Skip to content

Commit dcf49ce

Browse files
committedSep 20, 2023
[meta] add safe-publish-latest
1 parent 4418183 commit dcf49ce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎package.json

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
},
1919
"scripts": {
2020
"prepack": "npmignore --auto --commentLines=autogenerated",
21+
"prepublish": "not-in-publish || npm run prepublishOnly",
22+
"prepublishOnly": "safe-publish-latest",
2123
"lint": "eslint --ext=js,mjs .",
2224
"tests-only": "nyc tape 'test/**/*.js'",
2325
"pretest": "npm run lint",
@@ -42,8 +44,10 @@
4244
"aud": "^2.0.3",
4345
"auto-changelog": "^2.4.0",
4446
"eslint": "=8.8.0",
47+
"in-publish": "^2.0.1",
4548
"npmignore": "^0.3.0",
4649
"nyc": "^10.3.2",
50+
"safe-publish-latest": "^2.0.0",
4751
"semver": "^6.3.1",
4852
"tape": "^5.6.6"
4953
},

0 commit comments

Comments
 (0)
Please sign in to comment.