Skip to content

Commit 5af181f

Browse files
committed
[meta] add safe-publish-latest; use prepublishOnly script for npm 7+
1 parent 8431b46 commit 5af181f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"test": "npm run tests-only",
3131
"test-compiled": "npm run prepublish && BABEL_ENV=testCompiled mocha --compilers js:babel-register tests/src",
3232
"test-all": "node --require babel-register ./scripts/testAll",
33-
"prepublish": "not-in-publish || npm run build",
33+
"prepublishOnly": "safe-publish-latest && npm run build",
34+
"prepublish": "not-in-publish || npm run prepublishOnly",
3435
"coveralls": "nyc report --reporter lcovonly && coveralls < ./coverage/lcov.info"
3536
},
3637
"repository": {
@@ -88,6 +89,7 @@
8889
"nyc": "^11.9.0",
8990
"redux": "^3.7.2",
9091
"rimraf": "^2.7.1",
92+
"safe-publish-latest": "^1.1.4",
9193
"semver": "^6.3.0",
9294
"sinon": "^2.4.1",
9395
"typescript": "^2.8.1 || ~3.9.5",

0 commit comments

Comments
 (0)