Skip to content

Commit aba1931

Browse files
committed
[meta] add safe-publish-latest
1 parent e41c881 commit aba1931

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
"main": "index.js",
66
"scripts": {
77
"prepack": "npmignore --auto --commentLines=autogenerated",
8+
"prepublish": "not-in-publish || npm run prepublishOnly",
9+
"prepublishOnly": "safe-publish-latest",
810
"lint": "eslint --ext=js,mjs .",
911
"tests-only": "tape 'test/**/*.js'",
1012
"pretest": "npm run lint",
@@ -32,7 +34,9 @@
3234
"aud": "^2.0.4",
3335
"auto-changelog": "^2.4.0",
3436
"eslint": "=8.8.0",
37+
"in-publish": "^2.0.1",
3538
"npmignore": "^0.3.1",
39+
"safe-publish-latest": "^2.0.0",
3640
"tape": "^5.7.5"
3741
},
3842
"engines": {

0 commit comments

Comments
 (0)