Skip to content

Commit faaf2e4

Browse files
committed
Separate build script
Also configures this to run the build on npm publish or a deploy to heroku.
1 parent ec3469a commit faaf2e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@
77
},
88
"scripts": {
99
"test": "mocha --exit",
10+
"build": "babel src/ --out-dir=dist/ --copy-files",
1011
"dev": "concurrently --kill-others --prefix=name --names=server,eslint --prefix-colors=green,magenta \"babel-watch --watch src src/server.js\" \"esw src/ --changed --watch\"",
1112
"start": "babel-node src/server.js",
1213
"start:prod": "node dist/server.js",
13-
"prepublishOnly": "babel src/ --out-dir=dist/ --copy-files"
14+
"heroku-postbuild": "npm run build",
15+
"prepublishOnly": "npm run build"
1416
},
1517
"author": "",
1618
"license": "MIT",

0 commit comments

Comments
 (0)