Skip to content

Commit 1d0e3ea

Browse files
committed
[meta] use prepublishOnly script for npm 7+
1 parent 017d906 commit 1d0e3ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"license": "MIT",
1010
"main": "index.js",
1111
"scripts": {
12-
"prepublish": "safe-publish-latest",
12+
"prepublishOnly": "safe-publish-latest",
13+
"prepublish": "not-in-publish || npm run prepublishOnly",
1314
"pretest": "npm run lint",
1415
"test": "npm run tests-only",
1516
"tests-only": "nyc tape 'test/**/*.js'",

0 commit comments

Comments
 (0)