Skip to content

Commit a0f4f38

Browse files
committed
[meta] run build in prepack, not prepublish
1 parent c479841 commit a0f4f38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"description": "AST utility module for statically analyzing JSX",
55
"main": "lib/index.js",
66
"scripts": {
7-
"prepack": "npmignore --auto --commentLines=autogenerated",
7+
"prepack": "npmignore --auto --commentLines=autogenerated && npm run build",
88
"prebuild": "rimraf lib",
99
"build": "babel src --out-dir lib",
10-
"prepublishOnly": "safe-publish-latest && npm test && npm run build",
10+
"prepublishOnly": "safe-publish-latest && npm test",
1111
"prepublish": "not-in-publish || npm run prepublishOnly",
1212
"prelint": "npm run build",
1313
"lint": "eslint .",

0 commit comments

Comments
 (0)