Skip to content

Commit

Permalink
[meta] add safe-publish-latest and use prepublishOnly
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Feb 21, 2023
1 parent aeb3ddf commit 982144b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions package.json
Expand Up @@ -5,7 +5,8 @@
"main": "lib/index.js",
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated",
"prepublish": "npm run build",
"prepublishOnly": "npm run build && safe-publish-latest",
"prepublish": "not-in-publish || npm run prepublishOnly",
"pretest": "npm run lint",
"lint": "eslint --ext=js,mjs .",
"pretests-only": "npm run build",
Expand Down Expand Up @@ -44,8 +45,10 @@
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.32.2",
"in-publish": "^2.0.1",
"npmignore": "^0.3.0",
"react": "^15.3.1"
"react": "^15.3.1",
"safe-publish-latest": "^2.0.0"
},
"peerDependencies": {
"@babel/core": "^7.0.0"
Expand Down

0 comments on commit 982144b

Please sign in to comment.