Skip to content

Commit 36102cd

Browse files
committedApr 8, 2021
[meta] use prepublishOnly script for npm 7+
1 parent 7cdbe6b commit 36102cd

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
@@ -22,7 +22,8 @@
2222
"flow": "if [ ! -e ./.flowconfig ]; then echo \"Could not find .flowconfig\"; else flow; test $? -eq 0 -o $? -eq 2; fi",
2323
"lint:fix": "npm run lint -- --fix",
2424
"lint": "eslint --config .eslintrc src __tests__ __mocks__ scripts",
25-
"prepublish": "safe-publish-latest && not-in-publish || (npm run lint && npm run flow && npm run jest && npm run build)",
25+
"prepublish": "safe-publish-latest && not-in-publish || npm run prepublishOnly",
26+
"prepublishOnly": "npm run lint && npm run flow && npm run jest && npm run build",
2627
"pretest": "npm run lint:fix && npm run flow",
2728
"test": "npm run jest",
2829
"posttest": "aud --production",

0 commit comments

Comments
 (0)
Please sign in to comment.