Skip to content

Commit 18cadf9

Browse files
committed
[meta] add safe-publish-latest
1 parent 397cb62 commit 18cadf9

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
@@ -12,6 +12,8 @@
1212
"@ljharb/eslint-config": "^21.0.0",
1313
"aud": "^2.0.1",
1414
"eslint": "=8.8.0",
15+
"in-publish": "^2.0.1",
16+
"safe-publish-latest": "^2.0.0",
1517
"tape": "^5.6.1"
1618
},
1719
"homepage": "https://github.com/substack/node-shell-quote",
@@ -28,6 +30,8 @@
2830
"url": "https://github.com/substack/node-shell-quote.git"
2931
},
3032
"scripts": {
33+
"prepublish": "not-in-publish || npm run prepublishOnly",
34+
"prepublishOnly": "safe-publish-latest",
3135
"lint": "eslint --ext=js,mjs .",
3236
"pretest": "npm run lint",
3337
"tests-only": "tape 'test/**/*.js'",

0 commit comments

Comments
 (0)