Skip to content

Commit

Permalink
[meta] handle npm failures in node < 4
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed May 2, 2021
1 parent 85cc816 commit 3e609b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"./pattern": "./pattern.js"
},
"scripts": {
"prepublish": "not-in-publish || npm run prepublishOnly",
"prepublish": "!(type safe-publish-latest 2>&1 >/dev/null) || not-in-publish || npm run prepublishOnly",
"prepublishOnly": "safe-publish-latest",
"lint": "eslint .",
"pretest": "npm run lint",
Expand Down Expand Up @@ -66,7 +66,6 @@
"auto-changelog": "^2.2.1",
"eslint": "^7.25.0",
"has-package-exports": "file:.",
"in-publish": "^2.0.1",
"nyc": "^10.3.2",
"safe-publish-latest": "^1.1.4",
"semver": "^6.3.0",
Expand Down

0 comments on commit 3e609b2

Please sign in to comment.