NPM Workspaces only install root packages

Viewed 90

During my CI deployments I want to only install package relavent depancies required for that run.

I can do this with npm install --workspace package-name

However I have some root level scripts with only a handful of deps in the root package.json, how do I install just those?

npm install without a workspace flag will install everything.

I'm looking for something like:

npm install --workspace none

0 Answers
Related