Skip to content

Commit c0e3ac4

Browse files
committed
[meta] use prepublishOnly, for npm 7+
1 parent 9714be7 commit c0e3ac4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"license": "MIT",
2121
"main": "index",
2222
"scripts": {
23-
"prepublish": "safe-publish-latest",
23+
"prepublish": "not-in-publish || npm run prepublishOnly",
24+
"prepublishOnly": "safe-publish-latest",
2425
"pretest": "npm run --silent lint && evalmd README.md",
2526
"test": "npm run tests-only",
2627
"posttest": "aud --production",

0 commit comments

Comments
 (0)