Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

chore: use npm7 workspaces instead of lerna bootstrap #3565

Merged
merged 4 commits into from Aug 25, 2021

Conversation

achingbrain
Copy link
Member

It's much faster! npm@7 is required so people will need to upgrade
if they are running node 14. Node 15 comes with npm@7 so all good
there.

npm7

real	2m30.996s
user	8m11.495s
sys	0m48.380sit

lerna

real	4m19.727s
user	4m36.371s
sys	0m51.310s

package.json Outdated
Comment on lines 29 to 30
"configure-examples:add-examples-lerna": "npx json -I -f ./lerna.json -e \"this.packages.push('examples/*'); this.packages = [...new Set(this.packages)]\"",
"configure-examples:add-examples-npm": "npx json -I -f ./package.json -e \"this.workspaces.push('examples/*'); this.workspaces = [...new Set(this.workspaces)]\"",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we define workspaces in the package.json we still need it in lerna.json ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the time being yes - when v4.0.0 is stable we can probably get rid of it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I type that and lerna 4 is now tagged latest instead of next so maybe it's ready

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Though there's this: lerna/lerna#2841

It's much faster!  npm@7 is required so people will need to upgrade
if they are running node 14.  Node 15 comes with npm@7 so all good
there.

```
npm7

real	2m30.996s
user	8m11.495s
sys	0m48.380sit

lerna

real	4m19.727s
user	4m36.371s
sys	0m51.310s
```
@lidel lidel marked this pull request as draft April 19, 2021 14:40
@achingbrain
Copy link
Member Author

So close! Needs ipfs-examples/js-ipfs-examples#29

@achingbrain achingbrain marked this pull request as ready for review August 25, 2021 14:25
@achingbrain achingbrain merged commit e2f3cad into master Aug 25, 2021
@achingbrain achingbrain deleted the chore/use-npm7-workspaces branch August 25, 2021 14:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants