Skip to content

Commit

Permalink
fix(js): do not write cached lockfile parsed results when an error is… (
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz committed Mar 27, 2024
1 parent c0b209f commit d877873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nx/src/plugins/js/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const createDependencies: CreateDependencies = (
if (
pluginConfig.analyzeLockfile &&
lockFileExists(packageManager) &&
parsedLockFile
parsedLockFile.externalNodes
) {
const lockFilePath = join(workspaceRoot, getLockFileName(packageManager));
const lockFileContents = readFileSync(lockFilePath).toString();
Expand Down

0 comments on commit d877873

Please sign in to comment.