A simple monorepo to demo a bug with 'yarn bin'
Note: This repo uses a yarn policy to ensure version
1.19.2of yarn is used.
- Run
yarnto install - CD into the
packages/my-packagefolder - Run
yarn bin semver
Observe that the output is a path to the semver that is hoisted in the root of the repo, but it should be
the semver installed by my-package.
To see another aspect of this bug you can also run yarn run semver -h (again from the packages/my-package
folder) and observe that the wrong help is printed.