Skip to content

Commit e52ee09

Browse files
committed
[meta] use prepublishOnly script for npm 7+
1 parent d8abb8a commit e52ee09

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
@@ -17,7 +17,8 @@
1717
"tape": "^5.2.2"
1818
},
1919
"scripts": {
20-
"prepublish": "safe-publish-latest",
20+
"prepublish": "not-in-publish || npm run prepublishOnly",
21+
"prepublishOnly": "safe-publish-latest",
2122
"pretest": "npm run lint",
2223
"lint": "eslint .",
2324
"test": "npm run tests-only",

0 commit comments

Comments
 (0)