Skip to content

Commit

Permalink
[meta] run the build in prepack, not prepublish
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Nov 18, 2022
1 parent 2b133ec commit e411ce3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
},
"main": "lib/index.js",
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated",
"prepack": "npmignore --auto --commentLines=autogenerated && npm run build",
"build": "rimraf lib && babel src --out-dir lib --copy-files",
"create": "node ./scripts/create-rule",
"flow": "flow",
"lint:fix": "npm run lint -- --fix",
"lint": "eslint --ext=js,mjs,cjs,ts,tsx .",
"prepublish": "not-in-publish || npm run prepublishOnly",
"prepublishOnly": "safe-publish-latest && npm run lint && npm run flow && npm run jest && npm run build",
"prepublishOnly": "safe-publish-latest && npm run lint && npm run flow && npm run jest",
"pretest": "npm run lint:fix && npm run flow",
"test": "npm run jest",
"posttest": "aud --production",
Expand Down

0 comments on commit e411ce3

Please sign in to comment.