From c4beb11829944720d1589f5a4ec4eacf039ddf32 Mon Sep 17 00:00:00 2001 From: Miroslav Jonas Date: Fri, 18 Aug 2023 12:01:20 +0200 Subject: [PATCH] fix(core): skip local yarn patches for lock file pruning --- packages/nx/src/plugins/js/lock-file/yarn-parser.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/nx/src/plugins/js/lock-file/yarn-parser.ts b/packages/nx/src/plugins/js/lock-file/yarn-parser.ts index eb49cf1d19de5..4c902ea705a84 100644 --- a/packages/nx/src/plugins/js/lock-file/yarn-parser.ts +++ b/packages/nx/src/plugins/js/lock-file/yarn-parser.ts @@ -532,6 +532,10 @@ function findPatchedKeys( if (!keys[0].startsWith(`${node.data.packageName}@patch:`)) { continue; } + // local patches are currently not supported + if (keys[0].includes('.yarn/patches')) { + continue; + } if (snapshot.version === node.data.version) { return [keys, snapshot]; }