moxagek581
moxagek581

Reputation: 13

Installing packages with npm workspaces

I'm using npm workspaces. There is a need to build each project separately

npm ci - will install dependencies for all packages + root dependencies npm ci -w @project/foo will only install dependencies for the selected package How do I now put dependencies on the root package.json only? 😅 Without it, nothing wants to start because there are common dependencies I found npm ci --workspaces=false, but if you install package dependencies after or before, they will be overwritten

Upvotes: 0

Views: 777

Answers (1)

moxagek581
moxagek581

Reputation: 13

I think I found the answer:

npm ci -w @project/foo/brain -include-workspace-root

Upvotes: 0

Related Questions