[BUG] not installing peer dependencies for workspaces if they are not nested inside the root package #2650
Labels
Documentation
documentation related issue
Enhancement
new feature or improvement
Release 7.x
work is associated with a specific npm 7 release
Current Behavior:
having 'library-project' with peer-dependencies adjacent to 'main-project'
and 'main-project' with workspaces: ['../library-project'] (outside of 'main-project' folder)
'npm install' in 'main-project' is not installing the peer-dependencies
example:
Expected Behavior:
expecting node_modules in 'main-project' after 'npm i' to include 'dep-a':
actual result: missing 'dep-a' in node_modules
this works fine if 'library-project' would be inside 'main-project'
Steps To Reproduce:
main-project and library-project are two adjacent projects
main-project package.json:
run 'npm install' in 'main-project'
expected "@angular/core" to be installed as it's a peer dependency of 'library-project'
Environment:
The text was updated successfully, but these errors were encountered: