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 Nov 3, 2021
1 parent 0c5c9d8 commit 33acb0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"can-merge": "./bin/can-merge"
},
"scripts": {
"prepublishOnly": "safe-publish-latest",
"prepublish": "not-in-publish || npm run prepublishOnly",
"lint": "eslint --ext=js,mjs bin/** .",
"pretest": "npm run lint",
"tests-only": "nyc tape 'test/**/*.js'| tap-spec",
Expand All @@ -28,7 +30,9 @@
"@ljharb/eslint-config": "^18.0.0",
"aud": "^1.1.5",
"eslint": "^7.32.0",
"in-publish": "^2.0.1",
"nyc": "^15.1.0",
"safe-publish-latest": "^2.0.0",
"tap-spec": "^5.0.0",
"tape": "^5.3.1"
},
Expand Down

0 comments on commit 33acb0b

Please sign in to comment.