Skip to content

Commit

Permalink
fix(core): deleted projects should not be in cached graph (#16210)
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder authored Apr 11, 2023
1 parent e951fc6 commit 1df2d68
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/nx/src/project-graph/build-project-graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,16 @@ export async function buildProjectGraphUsingProjectFileMap(

let filesToProcess;
let cachedFileData;
if (
const useCacheData =
cache &&
!shouldRecomputeWholeGraph(
cache,
packageJsonDeps,
projectsConfigurations,
nxJson,
rootTsConfig
)
) {
);
if (useCacheData) {
const fromCache = extractCachedFileData(projectFileMap, cache);
filesToProcess = fromCache.filesToProcess;
cachedFileData = fromCache.cachedFileData;
Expand All @@ -103,7 +103,7 @@ export async function buildProjectGraphUsingProjectFileMap(
context,
cachedFileData,
projectGraphVersion,
cache
useCacheData ? cache : null
);
const projectGraphCache = createCache(
nxJson,
Expand Down

0 comments on commit 1df2d68

Please sign in to comment.