Skip to content

Commit e411ce3

Browse files
committed
[meta] run the build in prepack, not prepublish
1 parent 2b133ec commit e411ce3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
},
1818
"main": "lib/index.js",
1919
"scripts": {
20-
"prepack": "npmignore --auto --commentLines=autogenerated",
20+
"prepack": "npmignore --auto --commentLines=autogenerated && npm run build",
2121
"build": "rimraf lib && babel src --out-dir lib --copy-files",
2222
"create": "node ./scripts/create-rule",
2323
"flow": "flow",
2424
"lint:fix": "npm run lint -- --fix",
2525
"lint": "eslint --ext=js,mjs,cjs,ts,tsx .",
2626
"prepublish": "not-in-publish || npm run prepublishOnly",
27-
"prepublishOnly": "safe-publish-latest && npm run lint && npm run flow && npm run jest && npm run build",
27+
"prepublishOnly": "safe-publish-latest && npm run lint && npm run flow && npm run jest",
2828
"pretest": "npm run lint:fix && npm run flow",
2929
"test": "npm run jest",
3030
"posttest": "aud --production",

0 commit comments

Comments
 (0)