Skip to content

Commit 7bb3b29

Browse files
committed
[meta] use prepublishOnly script for npm 7+
1 parent 3af6a71 commit 7bb3b29

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
@@ -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 && npm run test:harmony",
1516
"tests-only": "nyc tape 'test/**/*.js'",

0 commit comments

Comments
 (0)