Skip to content

Commit ec3469a

Browse files
committed
Compile to dist/ folder on npm publish only
We distribute the dist folder as part of the npm package; no need to compile again when a user installs the library.
1 parent 75727ea commit ec3469a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"dev": "concurrently --kill-others --prefix=name --names=server,eslint --prefix-colors=green,magenta \"babel-watch --watch src src/server.js\" \"esw src/ --changed --watch\"",
1111
"start": "babel-node src/server.js",
1212
"start:prod": "node dist/server.js",
13-
"prepare": "babel src/ --out-dir=dist/ --copy-files"
13+
"prepublishOnly": "babel src/ --out-dir=dist/ --copy-files"
1414
},
1515
"author": "",
1616
"license": "MIT",

0 commit comments

Comments
 (0)