Skip to content

Commit b7bbedb

Browse files
committed
chore: use npm 7 workspaces instead of lerna bootstrap
It's faster - running `time npm i` shows a nice speed up: lerna ``` npm timing command:install Completed in 183859ms npm timing npm Completed in 184077ms npm info ok real 3m4.246s user 2m48.066s sys 0m58.948s ``` npm7 + workspaces ``` npm timing command:install Completed in 101724ms npm timing npm Completed in 101914ms npm info ok real 1m42.075s user 1m52.422s sys 0m46.022s ``` The downside is it requires npm7 - it's bundled with node 15 but will require users up upgrade if they are using node 14 or below.
1 parent cf4b2b8 commit b7bbedb

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"version": "1.0.0",
44
"description": "JS implementation of the IPFS UnixFS",
55
"scripts": {
6-
"postinstall": "lerna bootstrap",
76
"reset": "lerna run --parallel clean && rm -rf packages/*/node_modules node_modules",
87
"test": "lerna run --parallel test",
98
"test:node": "lerna run --parallel test:node",
@@ -49,5 +48,11 @@
4948
"Diogo Silva <fsdiogo@gmail.com>",
5049
"jbenet <juan@benet.ai>",
5150
"Bernard Mordan <bernard@tableflip.io>"
52-
]
51+
],
52+
"workspaces": [
53+
"packages/*"
54+
],
55+
"engines": {
56+
"npm": ">=7.0.0"
57+
}
5358
}

0 commit comments

Comments
 (0)