Skip to content

Commit 44c5433

Browse files
committed
[meta] use prepublishOnly script for npm 7+
1 parent 42b3cbf commit 44c5433

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"./package.json": "./package.json"
2020
},
2121
"scripts": {
22-
"prepublish": "safe-publish-latest",
22+
"prepublish": "not-in-publish || npm run prepublishOnly",
23+
"prepublishOnly": "safe-publish-latest",
2324
"lint": "eslint --ext=.js,.mjs .",
2425
"pretest": "npm run lint",
2526
"tests-only": "nyc tape 'test/*'",

0 commit comments

Comments
 (0)