This repository has been archived by the owner on Jan 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: skip dep->targetEdge conflict check when placing if there is a c…
…urrent node (#337) Fix: npm/cli#3881 When placing a peer set containing a dependency that could not be placed higher in the tree due to a conflict, the entire peer set would get nested even though the current node would satisfy the condition at the target. For example: ``` root -> (k, y@1) k -> (x) x -> PEER(y@1||2) ``` When placing `x` it would previously result in a tree with `x` nested under `k` even though it can be properly hoisted to the root: ``` root +-- k@1 | +-- x@1 +-- y@1 ``` After this patch the tree will now result in `x` being properly hoisted: ``` root +-- k@1 +-- x@1 +-- y@1 ``` Co-authored-by: @isaacs
- Loading branch information
1 parent
75a0347
commit 5fab942
Showing
4 changed files
with
107 additions
and
66 deletions.
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
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
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