- npm package with two workspaces
client
anduniversal
.client
has a dependency onuniversal
in itspackage.json
. - volta is configured in root
package.json
. workspaces reference root volta config. - lerna installed
- Run
npm ci
- Run
npm run dev
repeatedly.npm run dev
uses lerna to run thedev
script in each of the workspaces. Thedev
scripts just print the packages name and working directory.
After several times (sometimes even right after npm ci
), the output is as follows.
The dev
script of one workspace is run twice, but in both workspace folders.
This is not supposed to happen.
package universal started in /Users/simon/test/appshell-dev/packages/client
package universal started in /Users/simon/test/appshell-dev/packages/universal
or equivalently
package client started in /Users/simon/test/appshell-dev/packages/universal
package client started in /Users/simon/test/appshell-dev/packages/client
On every run, the dev
script of each package should be run in the correct workspace.
package universal started in /Users/simon/test/appshell-dev/packages/universal
package client started in /Users/simon/test/appshell-dev/packages/client
- Without volta, the
dev
scripts are run correctly every time. - After
npm ci
, the scripts are run correctly for a few times.