Description
Yarn 1.6.0, node 8.9.4 on OS X High Sierra
I suspect this is a bug in workspaces but I could be incorrect about that.
I discovered that node_modules/.bin/mocha is linked to the first package in my workspace to use mocha.
However, Yarn also decided to install mocha in node_modules, resulting in this curious little bit of behavior:
$ node_modules/.bin/mocha --version
5.1.1
$ node_modules/mocha/bin/mocha --version
3.5.3
Expected behavior:
The contents of node_modules/.bin should always point to ../../node_modules/*/bin (custom bin: properties notwithstanding).
It makes me wonder if the bin folder is being evaluated in the wrong order, causing it to make decisions on incomplete or simply different information.
Edit: nohoist has no effect on the behavior