Skip to content

"bin" symlinks not created for sub-dependencies #2874

@rally25rs

Description

@rally25rs

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
Yarn does not create node_modules/.bin symlinks for nested dependencies that have a bin specified in their package.json

If the current behavior is a bug, please provide the steps to reproduce.

  1. Add grunt-eslint to your package.json
  2. yarn install

"grunt-eslint" depends on "eslint", which has this line in its package.json:

  "bin": {
    "eslint": "./bin/eslint.js"
  },

After install, no symlink is made in node_modules/.bin

What is the expected behavior?

If you npm install instead, the symlink is made.

$ ls -l node_modules/.bin/eslint

lrwxr-xr-x  1 user  computer\Domain Users  23 Mar  8 09:48 node_modules/.bin/eslint -> ../eslint/bin/eslint.js

Please mention your node.js, yarn and operating system version.

yarn v0.21.3
node v6.3
OSX

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions