-
-
Notifications
You must be signed in to change notification settings - Fork 936
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): prevent duplication of peerDependencyRules in the lockfile (…
…#4576) If a workspace has a global peerDependencyRule that is applied by more than one package, the lockfile could contain duplicate copies of the patched range. For example react-dom might have `peerDependencies: 17.0.2 | 17 | 17 | 17 | 17` in the lockfile. This causes merge conflicts as package updates seem to regularly change the number of duplicates, causing lockfile conflicts. The fix checks if the same widened range has already been appended, and ignores subsequent duplicates if they exist.
- Loading branch information
Showing
3 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@pnpm/core": patch | ||
--- | ||
|
||
peerDependencyRules will no longer cause duplicated peer dependency rules in the lockfile when used in workspaces |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters