Skip to content

Commit 5c70cdb

Browse files
committed
Check upgrade package dependencies before publish
1 parent b5749c3 commit 5c70cdb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
"standard": "latest",
2828
"finepack": "latest",
2929
"standard-markdown": "latest",
30-
"unfluff": "latest"
30+
"unfluff": "latest",
31+
"npm-check-updates": "latest"
3132
},
3233
"engines": {
3334
"node": ">= 8"
@@ -36,7 +37,7 @@
3637
"dev": "concurrently \"gulp\" \"npm run server:dev\"",
3738
"build": "gulp build",
3839
"server:dev": "browser-sync start --server --files \"index.html, README.md, static/**/*.(css|js)\"",
39-
"publish": "lerna publish --sort && npm run changelog:commit",
40+
"publish": "npm run upgrade && lerna publish --sort && npm run changelog:commit",
4041
"postinstall": "lerna bootstrap && lerna link --force-local",
4142
"clean": "rm -rf node_modules && cd packages && eachdir rm -rf node_modules",
4243
"changelog": "conventional-changelog --release-count=0 > CHANGELOG.md",
@@ -45,7 +46,8 @@
4546
"precommit": "lint-staged",
4647
"pretest": "npm run lint",
4748
"pretty": "prettier-standard index.js {test,src}/**/*.js --single-quote",
48-
"test": "lerna exec npm run test"
49+
"test": "lerna exec npm run test",
50+
"upgrade": "lerna exec ncu -- --error-level 2"
4951
},
5052
"license": "MIT",
5153
"lint-staged": {

0 commit comments

Comments
 (0)