Skip to content

Commit 42ceaaf

Browse files
alexmateosmartijnrusschen
authored andcommitted
Changed package.json, created build-dev for development env and build for production only. (Hacker0x01#1275)
1 parent 859ab87 commit 42ceaaf

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@
106106
"codecov":
107107
"cat coverage/*/lcov.info | ./node_modules/codecov.io/bin/codecov.io.js",
108108
"prebuild": "rimraf es lib dist",
109-
"build": "run-p build:** && run-p css:**",
109+
"build": "NODE_ENV=production run-p build:** && run-p css:**",
110+
"build-dev": "NODE_ENV=development run-p build:** && run-p css:**",
110111
"css:prod":
111112
"node-sass --output-style compressed src/stylesheets/datepicker.scss > dist/react-datepicker.min.css",
112113
"css:modules:prod":
@@ -119,10 +120,10 @@
119120
"cross-env BABEL_ENV=es rollup -c -i src/index.jsx -o es/index.js",
120121
"build:cjs":
121122
"cross-env BABEL_ENV=cjs rollup -c -i src/index.jsx -o lib/index.js",
122-
"build:umd:prod":
123-
"cross-env BABEL_ENV=es NODE_ENV=production rollup -c rollup.umd.config.js -i src/index.jsx -o dist/react-datepicker.min.js",
124123
"build:umd:dev":
125-
"cross-env BABEL_ENV=es NODE_ENV=development rollup -c rollup.umd.config.js -i src/index.jsx -o dist/react-datepicker.js",
124+
"cross-env BABEL_ENV=es rollup -c rollup.umd.config.js -i src/index.jsx -o dist/react-datepicker.js",
125+
"build:umd:prod":
126+
"cross-env BABEL_ENV=es rollup -c rollup.umd.config.js -i src/index.jsx -o dist/react-datepicker.min.js",
126127
"build:docs":
127128
"cross-env MODULES=false webpack --config webpack.docs.config.js"
128129
},

0 commit comments

Comments
 (0)