Skip to content

Commit ea856a1

Browse files
committed
chore: upgrade Lerna to latest version; add clean npm script to monorepo root; cleanup bootstrap NPM script so packages are properly hoisted, even if running the lerna boostrap command directly
1 parent 2b70ff4 commit ea856a1

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

lerna.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
2-
"lerna": "3.0.0-beta.21",
3-
"packages": [
4-
"packages/*"
5-
],
2+
"lerna": "3.0.0-rc.0",
63
"version": "independent",
74
"command": {
85
"init": {

package.json

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
22
"devDependencies": {
3-
"lerna": "3.0.0-beta.21"
3+
"lerna": "3.0.0-rc.0"
44
},
5+
"private": true,
56
"scripts": {
6-
"bootstrap": "lerna bootstrap --hoist tap --hoist eslin* --hoist husky --hoist prettier --hoist pretty-quick",
7+
"bootstrap": "npx lerna bootstrap",
78
"precommit": "pretty-quick --staged",
89
"prettier": "prettier --config .prettierrc --write ./**/*.js",
9-
"test": "lerna run test"
10+
"test": "lerna run test",
11+
"clean": "git clean -dfx"
1012
},
1113
"nyc": {
1214
"exclude": [
@@ -15,5 +17,17 @@
1517
"packages/core/test",
1618
"packages/live-server"
1719
]
20+
},
21+
"workspaces": {
22+
"hoist": [
23+
"tap",
24+
"eslin*",
25+
"husky",
26+
"prettier",
27+
"pretty-quick"
28+
],
29+
"packages": [
30+
"packages/*"
31+
]
1832
}
1933
}

0 commit comments

Comments
 (0)