Skip to content

Commit

Permalink
fix(core): fix lockfile remapping for yarn berry with aliases (#17853)
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav authored Jun 29, 2023
1 parent fc4b6a8 commit cfe1fa0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/nx/src/plugins/js/lock-file/yarn-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,10 @@ function mapSnapshots(
.slice(0, key.indexOf('#'))
.replace(`@patch:${packageName}@`, '@npm:');
}
if (!existingKeys.get(packageName).has(normalizedKey)) {
if (
!existingKeys.get(packageName) ||
!existingKeys.get(packageName).has(normalizedKey)
) {
keysSet.delete(key);
}
}
Expand Down

1 comment on commit cfe1fa0

@vercel
Copy link

@vercel vercel bot commented on cfe1fa0 Jun 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-git-master-nrwl.vercel.app
nx-dev-nrwl.vercel.app
nx-five.vercel.app
nx.dev

Please sign in to comment.