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 May 2, 2021
1 parent 79f73f8 commit c81fde6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"./implementation": "./implementation.browser.js"
},
"scripts": {
"prepublish": "safe-publish-latest && (not-in-publish || npm run --silent build)",
"prepublishOnly": "safe-publish-latest && npm run build",
"prepublish": "not-in-publish || npm run prepublishOnly",
"pretest": "npm run lint",
"test": "npm run --silent tests-only",
"posttest": "npx aud --production",
Expand Down

0 comments on commit c81fde6

Please sign in to comment.