Skip to content

Commit ba0b719

Browse files
committed
[meta] add safe-publish-latest; use prepublishOnly script for npm 7+
1 parent ecf0918 commit ba0b719

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
"./package.json": "./package.json"
1818
},
1919
"scripts": {
20+
"prepublishOnly": "safe-publish-latest",
21+
"prepublish": "not-in-publish || npm run prepublishOnly",
2022
"lint": "eslint --ext=.js,.mjs .",
2123
"pretest": "npm run lint",
2224
"tests-only": "nyc tape 'test/**/*.js'",
@@ -51,6 +53,7 @@
5153
"for-each": "^0.3.3",
5254
"nyc": "^10.3.2",
5355
"object-inspect": "^1.9.0",
56+
"safe-publish-latest": "^1.1.4",
5457
"tape": "^5.2.2"
5558
},
5659
"auto-changelog": {

0 commit comments

Comments
 (0)