-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
Description
Do you want to request a feature or report a bug?
bug
What is the current behavior?
- (Top-level)
foo
listsdependencies
:bar@5
baz
baz
listspeerDependencies
bar@5
.- (Top-level)
qux
&quux
listdependencies
bar@4
- Causes
bar@4
to hoist, invalidatingbaz
's peerDependency ofbar@5
)
- Causes
The result is the following tree:
├─foo
│ └─bar@5
├─baz // (Why is this hoisted? Causes invalid bar peerDependency)
├─bar@4 // (due to qux & quux)
├─qux
└─quux
If the current behavior is a bug, please provide the steps to reproduce.
// In empty directory
$ yarn add [email protected] [email protected] [email protected]
$ yarn check
yarn check v0.28.1
[...]
error "webpack#ajv-keywords#ajv@>=5.0.0" doesn't satisfy found match of "[email protected]"
[...]
error Found 1 errors.
What is the expected behavior?
Don't hoist dependencies (i.e., baz
& ajv-keywords
) w/o hoisting peerDependencies (i.e., bar
& ajv
).
In the example above, ajv-keywords
should not be hoisted, and left as a sub-dependency of webpack
.
Please mention your node.js, yarn and operating system version.
[email protected]
[email protected]
Related:
Dupes: