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
(cherry picked from commit 1df2d68)
  • Loading branch information
AgentEnder authored and FrozenPandaz committed Apr 11, 2023
1 parent 6fd9038 commit 4f67552
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 @@ -75,16 +75,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 @@ -104,7 +104,7 @@ export async function buildProjectGraphUsingProjectFileMap(
context,
cachedFileData,
projectGraphVersion,
cache
useCacheData ? cache : null
);
const projectGraphCache = createCache(
nxJson,
Expand Down

0 comments on commit 4f67552

Please sign in to comment.