Skip to content

yarn install --production does not install dependencies that are transitive dependencies of a dependency and a dev dependency #2073

Description

@dreid

What is the current behavior?

When a package is depended on by both a dependency and a devDependency, the devDependency visibility takes precedence when installing into production, this results in shared dependencies not being installed in production.

If the current behavior is a bug, please provide the steps to reproduce.
https://github.com/dreid/yarn-dev-dep-failure

yarn install --production does not install function-bind

npm install --production does install function-bind

What is the expected behavior?

Production builds should install dependencies that are visible from production dependencies.

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

❯ yarn --version
0.17.9
❯ node -v
v7.1.0
❯ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.12.1
BuildVersion:	16B2555

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions