[BUG] npm install does not run prepare scripts of workspaces except for root #3840
Closed
1 task done
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 7.x
work is associated with a specific npm 7 release
Is there an existing issue for this?
Related issues that were considered fixed, but the issue seems to persist or have regressed:
npm install
,prepare
script runs in workspaces only if no package-lock.json or node_modules are present #2900Current Behavior
npm install
does not runprepare
scripts of workspaces except for the root workspace.Expected Behavior
It should run
prepare
of all workspaces.Steps To Reproduce
Reproduction repo comparing it with
lerna
: https://github.com/trusktr/npm-workspaces-vs-lernaSteps:
Notice that the
npm install
command runsprepare
only for packagea
, while thenpx lerna bootstrap
command runs it for all three packages a, b, and c.Environment
The text was updated successfully, but these errors were encountered: