Skip to content

Commit 62ff3d9

Browse files
committed
[meta] add build script to prepack, so it‘s not forgotten
1 parent a34cec3 commit 62ff3d9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
"lib"
88
],
99
"scripts": {
10-
"build": "rimraf lib && babel src --out-dir lib",
11-
"flow": "flow",
10+
"prepack": "npm run build",
11+
"prebuild": "rimraf lib",
12+
"build": "babel src --out-dir lib",
1213
"lint": "eslint --ext=js,mjs .",
1314
"prepublishOnly": "npm run build",
14-
"pretest": "npm run lint && npm run flow",
15+
"pretest": "npm run lint && flow",
1516
"test": "npm run jest",
1617
"test:ci": "npm run jest -- --ci --runInBand",
1718
"jest": "jest --coverage __tests__/**/*",

0 commit comments

Comments
 (0)