Skip to content

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

@dreid

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions