Skip to content

Commit

Permalink
fix(core): nx should not break if packages were not installed (#18687)
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav authored Aug 17, 2023
1 parent 2ff1364 commit 20acfbe
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/nx/src/plugins/js/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,15 @@ export const processProjectGraph: ProjectGraphProcessor = async (
let parsedLockFile: ProjectGraph;
if (lockFileNeedsReprocessing(lockHash)) {
parsedLockFile = parseLockFile();
writeLastProcessedLockfileHash(lockHash, parsedLockFile);
if (parsedLockFile) {
writeLastProcessedLockfileHash(lockHash, parsedLockFile);
}
} else {
parsedLockFile = readParsedLockFile();
}
builder.mergeProjectGraph(parsedLockFile);
if (parsedLockFile) {
builder.mergeProjectGraph(parsedLockFile);
}
}
}

Expand Down

1 comment on commit 20acfbe

@vercel
Copy link

@vercel vercel bot commented on 20acfbe Aug 17, 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-git-master-nrwl.vercel.app
nx-five.vercel.app
nx-dev-nrwl.vercel.app
nx.dev

Please sign in to comment.