Skip to content

Commit

Permalink
[core] Update lerna (#962)
Browse files Browse the repository at this point in the history
* Make all build scripts prepare and update lerna

* Remove unnecessary lerna key inside lerna.json

* Rename publish to publish-packages

* Update lerna.json
  • Loading branch information
Henri authored and kof committed Dec 31, 2018
1 parent 69bb398 commit 0db3dcb
Show file tree
Hide file tree
Showing 21 changed files with 1,642 additions and 444 deletions.
9 changes: 7 additions & 2 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"lerna": "2.11.0",
"npmClient": "yarn",
"useWorkspaces": true,
"version": "10.0.0-alpha.3"
"version": "10.0.0-alpha.3",
"commands": {
"publish": {
"allowBranch": ["master"],
"forcePublish": "*"
}
}
}
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"packages/*"
],
"scripts": {
"build": "lerna run build",
"prepublishOnly": "yarn check-snapshots && yarn build && yarn typecheck && yarn lint && yarn format:ci && yarn test",
"publish": "lerna publish",
"build": "lerna run prepare",
"prepublish-packages": "yarn check-snapshots && yarn build && yarn typecheck && yarn lint && yarn format:ci && yarn test",
"publish-packages": "lerna publish",
"typecheck": "flow check --max-warnings=0",
"ts-check": "tsc",
"lint": "eslint scripts/ packages/ docs/ --ext js,md",
Expand Down Expand Up @@ -69,7 +69,7 @@
"karma-mocha-reporter": "^2.2.1",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^4.0.0-rc.5",
"lerna": "^2.11.0",
"lerna": "^3.8.0",
"lint-staged": "^3.2.2",
"mocha": "^3.2.0",
"pre-commit": "^1.1.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/jss-plugin-cache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"insane"
],
"scripts": {
"build": "node ../../scripts/build.js",
"prepare": "node ../../scripts/build.js",
"check-snapshot": "node ../../scripts/match-snapshot.js"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/jss-plugin-camel-case/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"camel case"
],
"scripts": {
"build": "node ../../scripts/build.js",
"prepare": "node ../../scripts/build.js",
"check-snapshot": "node ../../scripts/match-snapshot.js"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/jss-plugin-compose/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"composition"
],
"scripts": {
"build": "node ../../scripts/build.js",
"prepare": "node ../../scripts/build.js",
"check-snapshot": "node ../../scripts/match-snapshot.js"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/jss-plugin-default-unit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"default-unit"
],
"scripts": {
"build": "node ../../scripts/build.js",
"prepare": "node ../../scripts/build.js",
"check-snapshot": "node ../../scripts/match-snapshot.js"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/jss-plugin-expand/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"expand"
],
"scripts": {
"build": "node ../../scripts/build.js",
"prepare": "node ../../scripts/build.js",
"check-snapshot": "node ../../scripts/match-snapshot.js"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/jss-plugin-extend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"css in js"
],
"scripts": {
"build": "node ../../scripts/build.js",
"prepare": "node ../../scripts/build.js",
"check-snapshot": "node ../../scripts/match-snapshot.js"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/jss-plugin-global/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"unscoped"
],
"scripts": {
"build": "node ../../scripts/build.js",
"prepare": "node ../../scripts/build.js",
"check-snapshot": "node ../../scripts/match-snapshot.js"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/jss-plugin-isolate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"reset"
],
"scripts": {
"build": "node ../../scripts/build.js",
"prepare": "node ../../scripts/build.js",
"check-snapshot": "node ../../scripts/match-snapshot.js"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/jss-plugin-nested/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"nesting"
],
"scripts": {
"build": "node ../../scripts/build.js",
"prepare": "node ../../scripts/build.js",
"check-snapshot": "node ../../scripts/match-snapshot.js"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/jss-plugin-props-sort/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"props"
],
"scripts": {
"build": "node ../../scripts/build.js",
"prepare": "node ../../scripts/build.js",
"check-snapshot": "node ../../scripts/match-snapshot.js"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/jss-plugin-rule-value-function/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"animation"
],
"scripts": {
"build": "node ../../scripts/build.js",
"prepare": "node ../../scripts/build.js",
"check-snapshot": "node ../../scripts/match-snapshot.js"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/jss-plugin-rule-value-observable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"rxjs"
],
"scripts": {
"build": "node ../../scripts/build.js",
"prepare": "node ../../scripts/build.js",
"check-snapshot": "node ../../scripts/match-snapshot.js"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/jss-plugin-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"template"
],
"scripts": {
"build": "node ../../scripts/build.js",
"prepare": "node ../../scripts/build.js",
"check-snapshot": "node ../../scripts/match-snapshot.js"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/jss-plugin-vendor-prefixer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"prefixer"
],
"scripts": {
"build": "node ../../scripts/build.js",
"prepare": "node ../../scripts/build.js",
"check-snapshot": "node ../../scripts/match-snapshot.js"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/jss-preset-default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"default"
],
"scripts": {
"build": "node ../../scripts/build.js",
"prepare": "node ../../scripts/build.js",
"check-snapshot": "node ../../scripts/match-snapshot.js"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/jss-starter-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"css-in-js"
],
"scripts": {
"build": "node ../../scripts/build.js",
"prepare": "node ../../scripts/build.js",
"check-snapshot": "node ../../scripts/match-snapshot.js"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/jss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"css-in-js"
],
"scripts": {
"build": "node ../../scripts/build.js",
"prepare": "node ../../scripts/build.js",
"check-snapshot": "node ../../scripts/match-snapshot.js"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-jss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"decorator"
],
"scripts": {
"build": "node ../../scripts/build.js",
"prepare": "node ../../scripts/build.js",
"check-snapshot": "node ../../scripts/match-snapshot.js"
},
"peerDependencies": {
Expand Down
Loading

0 comments on commit 0db3dcb

Please sign in to comment.