Skip to content

Commit 3d035ac

Browse files
committed
[meta] use prepublishOnly script for npm 7+
1 parent 0ff6804 commit 3d035ac

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
@@ -41,7 +41,8 @@
4141
}
4242
],
4343
"scripts": {
44-
"prepublish": "safe-publish-latest",
44+
"prepublishOnly": "safe-publish-latest",
45+
"prepublish": "not-in-publish || npm run prepubishOnly",
4546
"pretest": "npm run lint",
4647
"lint": "eslint --ext=.js,.mjs .",
4748
"tests-only": "nyc tape 'test/**/*.js'",

0 commit comments

Comments
 (0)