chore: replace lerna with lerna-lite@4.11.0#2830
Conversation
- smaller dependency tree - no nx integration - more modular Use npm package linking instead of lerna bootstrap.
| }, | ||
| "scripts": { | ||
| "postinstall": "lerna bootstrap", | ||
| "postinstall": "lerna exec npm ci", |
There was a problem hiding this comment.
you shouldn't need this, just enable syncWorkspaceLock in your lerna config and that should do it (this option is only available in Lerna-Lite), see:
https://github.com/lerna-lite/lerna-lite/tree/main/packages/version#--sync-workspace-lock
There was a problem hiding this comment.
This command postinstall command install the dependencies of the packages. If I read well the documentation of the syncWorkspaceLock the this argument will run the npm install --package-lock-only command that just update the lock file of each package. But I don't wanna update the lock files I would like to install the dependencies.
I don't use npm workspace because it hoisting the dependencies but I don't want it.
If I misunderstood something then please provide a little bit more information or example or PR to understand better your suggestion.
Thank you.
Use npm package linking instead of lerna bootstrap.