Skip to content

Commit

Permalink
[meta] use prepublishOnly script for npm 7+
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Apr 8, 2021
1 parent 7cdbe6b commit 36102cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -22,7 +22,8 @@
"flow": "if [ ! -e ./.flowconfig ]; then echo \"Could not find .flowconfig\"; else flow; test $? -eq 0 -o $? -eq 2; fi",
"lint:fix": "npm run lint -- --fix",
"lint": "eslint --config .eslintrc src __tests__ __mocks__ scripts",
"prepublish": "safe-publish-latest && not-in-publish || (npm run lint && npm run flow && npm run jest && npm run build)",
"prepublish": "safe-publish-latest && not-in-publish || npm run prepublishOnly",
"prepublishOnly": "npm run lint && npm run flow && npm run jest && npm run build",
"pretest": "npm run lint:fix && npm run flow",
"test": "npm run jest",
"posttest": "aud --production",
Expand Down

0 comments on commit 36102cd

Please sign in to comment.