Skip to content

Some dependencies don't get installed if they're shared between a regular and a devDependency #1014

Description

@bouk

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

Bug

What is the current behavior?

Take the following package.json:

{
  "dependencies": {
    "babel-core": "6.17.0"
  },
  "devDependencies": {
    "eslint": "3.3.1"
  }
}

Running yarn install leads to the following yarn.lock https://gist.github.com/bouk/b96cf30321d696724ef926367c5af879

Yarn LS tells me the following https://gist.github.com/bouk/6514ee7102c7c386cf29f351747c8e54

If I remove node_modules and then run yarn install --production, I will end up with a situation where escape-string-regexp is missing, even though it's a dependency of babel-core, through babel-code-frame->chalk->escape-string-regexp

What is the expected behavior?

escape-string-regexp is installed

Please mention your node.js, yarn and operating system version.
Node v6.7.0
Yarn v0.15.1
macOS 10.12

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions