Skip to content

Commit

Permalink
fix(core): deleted projects should not be in cached graph
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder committed Apr 10, 2023
1 parent 149ad5a commit f8ef99a
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 f8ef99a

Please sign in to comment.