From 9c380d9f800313297621e2c6c874a313078f8349 Mon Sep 17 00:00:00 2001 From: Jason Jean Date: Tue, 22 Aug 2023 20:14:04 -0400 Subject: [PATCH] =?UTF-8?q?Revert=20"fix(core):=20nx=20should=20not=20brea?= =?UTF-8?q?k=20if=20packages=20were=20not=20installed=E2=80=A6=20(#18784)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/nx/src/plugins/js/index.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/nx/src/plugins/js/index.ts b/packages/nx/src/plugins/js/index.ts index 185bd51ffaf40..bc2d78223af8b 100644 --- a/packages/nx/src/plugins/js/index.ts +++ b/packages/nx/src/plugins/js/index.ts @@ -34,15 +34,11 @@ export const processProjectGraph: ProjectGraphProcessor = async ( let parsedLockFile: ProjectGraph; if (lockFileNeedsReprocessing(lockHash)) { parsedLockFile = parseLockFile(); - if (parsedLockFile) { - writeLastProcessedLockfileHash(lockHash, parsedLockFile); - } + writeLastProcessedLockfileHash(lockHash, parsedLockFile); } else { parsedLockFile = readParsedLockFile(); } - if (parsedLockFile) { - builder.mergeProjectGraph(parsedLockFile); - } + builder.mergeProjectGraph(parsedLockFile); } }