Skip to content

Commit

Permalink
fix(core): clone project graph during incremental update
Browse files Browse the repository at this point in the history
  • Loading branch information
vsavkin committed May 20, 2023
1 parent cdd4ced commit 8b1907a
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@ function copyFileMap(m: ProjectFileMap) {
return c;
}

function copyProjectGraph(p: ProjectGraph): ProjectGraph {
return { ...p };
}

async function createAndSerializeProjectGraph(): Promise<{
error: string | null;
projectGraph: ProjectGraph | null;
Expand All @@ -251,7 +255,9 @@ async function createAndSerializeProjectGraph(): Promise<{
allWorkspaceFiles,
{
fileMap: currentProjectFileMapCache || readProjectFileMapCache(),
projectGraph: currentProjectGraph || readProjectGraphCache(),
projectGraph: copyProjectGraph(
currentProjectGraph || readProjectGraphCache()
),
},
true
);
Expand Down

1 comment on commit 8b1907a

@vercel
Copy link

@vercel vercel bot commented on 8b1907a May 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-nrwl.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx.dev
nx-five.vercel.app

Please sign in to comment.