Skip to content

Commit

Permalink
[meta] add safe-publish-latest; use prepublishOnly script for npm 7+
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed May 15, 2021
1 parent 8431b46 commit 5af181f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"test": "npm run tests-only",
"test-compiled": "npm run prepublish && BABEL_ENV=testCompiled mocha --compilers js:babel-register tests/src",
"test-all": "node --require babel-register ./scripts/testAll",
"prepublish": "not-in-publish || npm run build",
"prepublishOnly": "safe-publish-latest && npm run build",
"prepublish": "not-in-publish || npm run prepublishOnly",
"coveralls": "nyc report --reporter lcovonly && coveralls < ./coverage/lcov.info"
},
"repository": {
Expand Down Expand Up @@ -88,6 +89,7 @@
"nyc": "^11.9.0",
"redux": "^3.7.2",
"rimraf": "^2.7.1",
"safe-publish-latest": "^1.1.4",
"semver": "^6.3.0",
"sinon": "^2.4.1",
"typescript": "^2.8.1 || ~3.9.5",
Expand Down

0 comments on commit 5af181f

Please sign in to comment.