- package-a depends on webpack@3
- package-b depends on webpack@1
- package-c depends on webpack@1
- Yarn Workspaces enabled
yarn install
inside package-b
webpack@1 is hoisted to [root-folder]/node_modules
, while webpack@3 is installed in package-a/node_modules
.
This is good, but the problem is with the linked binary:
package-b/node_modules/.bin/webpack
is linked to [root-folder]/node_modules/webpack/bin/webpack.js
package-b/node_modules/.bin/webpack
is linked to package-a/node_modules/webpack/bin/webpack.js