You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When yarn installs a dependency that has an empty string as an entry for "bin" in the package.json it creates a symlink to the package's root directory in node_modules/ in the node_modules/.bin directory. An example package configured this way is file-loader
If the current behavior is a bug, please provide the steps to reproduce.
rhburrows$ yarn add file-loader
yarn add v1.10.1
... MORE OUTPUT HERE ...
✨ Done in 0.66s.
rhburrows$ ls -al node_modules/.bin/
total 0
drwxr-xr-x 4 rhburrows staff 128 Oct 7 09:32 .
drwxr-xr-x 18 rhburrows staff 576 Oct 7 09:32 ..
lrwxr-xr-x 1 rhburrows staff 14 Oct 7 09:32 file-loader -> ../file-loader
lrwxr-xr-x 1 rhburrows staff 19 Oct 7 09:32 json5 -> ../json5/lib/cli.js
What is the expected behavior?
There should be no symlink in node_modules/.bin. That's the result when installing the same dependency with npm.
Please mention your node.js, yarn and operating system version.
Tested on:
node 8.11.1 and 10.11.0
yarn 1.7 and 1.10.1
macOS 10.14
The text was updated successfully, but these errors were encountered:
It looks like this would be simple enough to fix. The module src/util/normalize-manifest/fix.js is normalizing the empty string entry into an object. It should skip this normalization when the entry is an empty string.
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When yarn installs a dependency that has an empty string as an entry for "bin" in the package.json it creates a symlink to the package's root directory in
node_modules/
in thenode_modules/.bin
directory. An example package configured this way is file-loaderIf the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
There should be no symlink in
node_modules/.bin
. That's the result when installing the same dependency with npm.Please mention your node.js, yarn and operating system version.
Tested on:
The text was updated successfully, but these errors were encountered: