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 19, 2021
1 parent 58601cc commit eccda6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -18,7 +18,8 @@
},
"type": "commonjs",
"scripts": {
"prepublish": "safe-publish-latest",
"prepublish": "not-in-publish || npm run prepublishOnly",
"prepublishOnly": "safe-publish-latest",
"lint": "eslint --ext=js,mjs .",
"pretest": "npm run lint",
"tests-only": "nyc node test/${TEST_VARIANT-}",
Expand Down

0 comments on commit eccda6b

Please sign in to comment.