Open talsi opened 3 years ago
@talsi sorry about the confusion, we should probably be throwing in these cases since our intent is not to allow workspace
definitions outside of the root. Our docs should be more clear about this &/or we may allow for this in the future - although that would be a net-new feature/support.
@darcyclarke
i think having built-in support for this will be much appreciated. it's a very productive feature and it's unfortunate that it can't be used for legacy projects (it's not easy, to say the least, moving existing projects around into other projects).
fyi, as a workaround, if anyone else is interested, you could -
now it works as expected for me.
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:
library-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: