Skip to content

nohoist installs peerDependencies if root package.json has it #5520

@SEAPUNK

Description

@SEAPUNK

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

bug

What is the current behavior?

if a workspace package has a peerDependency that the root package.json has in its devDependencies (+ dependencies?), and the dependency is nohoisted for the workspace package, it gets installed in the workspace package's node_modules

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

repo: https://github.com/SEAPUNK/yarn-nohoist-peerdep

clone, yarn install, and see that nice/node_modules/left-pad exists (and subsequently, proj/node_modules/left-pad exists as well)

What is the expected behavior?

left-pad should not be installed in nice/node_modules

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

nodejs 8.9.4
yarn 1.5.1
macOS high sierra

Metadata

Metadata

Assignees

Labels

fixed-in-modernThis issue has been fixed / implemented in Yarn 2+.triaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions