Skip to content

Commit add8424

Browse files
meeroslavFrozenPandaz
authored andcommittedAug 21, 2023
fix(core): skip local yarn patches for lock file pruning (#18700)
(cherry picked from commit 97c5ecf)
1 parent 426e3aa commit add8424

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎packages/nx/src/plugins/js/lock-file/yarn-parser.ts

+4
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,10 @@ function findPatchedKeys(
532532
if (!keys[0].startsWith(`${node.data.packageName}@patch:`)) {
533533
continue;
534534
}
535+
// local patches are currently not supported
536+
if (keys[0].includes('.yarn/patches')) {
537+
continue;
538+
}
535539
if (snapshot.version === node.data.version) {
536540
return [keys, snapshot];
537541
}

0 commit comments

Comments
 (0)
Please sign in to comment.