Skip to content

Commit

Permalink
fix(core): skip local yarn patches for lock file pruning (#18700)
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav authored Aug 18, 2023
1 parent adb39c4 commit 97c5ecf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/nx/src/plugins/js/lock-file/yarn-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit 97c5ecf

Please sign in to comment.