Do you want to request a feature or report a bug?
bug
What is the current behavior?
- (Top-level)
foo lists dependencies:
baz lists peerDependencies bar@5.
- (Top-level)
qux & quux list dependencies bar@4
- Causes
bar@4 to hoist, invalidating baz's peerDependency of bar@5)
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 babel-cli@6.24.1 stylelint@7.9.0 webpack@3.1
$ yarn check
yarn check v0.28.1
[...]
error "webpack#ajv-keywords#ajv@>=5.0.0" doesn't satisfy found match of "ajv@4.11.8"
[...]
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.
yarn@0.28.1
node@4.8.2
Related:
#3465
#2688
Dupes:
#3916
webpack/webpack#5262
Do you want to request a feature or report a bug?
bug
What is the current behavior?
foolistsdependencies:bar@5bazbazlistspeerDependenciesbar@5.qux&quuxlistdependenciesbar@4bar@4to hoist, invalidatingbaz's peerDependency ofbar@5)The result is the following tree:
If the current behavior is a bug, please provide the steps to reproduce.
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-keywordsshould not be hoisted, and left as a sub-dependency ofwebpack.Please mention your node.js, yarn and operating system version.
yarn@0.28.1
node@4.8.2
Related:
#3465
#2688
Dupes:
#3916
webpack/webpack#5262