add cross-env to enable env var set for windows
This commit is contained in:
parent
22bf8f7d5e
commit
3264adf877
|
@ -18,10 +18,10 @@
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"babel": "npm run babel:browser && npm run babel:node",
|
"babel": "npm run babel:browser && npm run babel:node",
|
||||||
"babel:browser": "BABEL_ENV=browser babel --out-dir dist/browser src",
|
"babel:browser": "cross-env BABEL_ENV=browser babel --out-dir dist/browser src",
|
||||||
"babel:node": "BABEL_ENV=node babel --out-dir dist src",
|
"babel:node": "cross-env BABEL_ENV=node babel --out-dir dist src",
|
||||||
"build": "npm run clean && npm run babel && npm run webpack",
|
"build": "npm run clean && npm run babel && npm run webpack",
|
||||||
"clean": "rimraf dist embark.min.js embarkjs-*.tgz package",
|
"clean": "cross-env rimraf dist embark.min.js embarkjs-*.tgz package",
|
||||||
"http-server": "http-server",
|
"http-server": "http-server",
|
||||||
"prepare": "npm run build",
|
"prepare": "npm run build",
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
|
@ -57,6 +57,7 @@
|
||||||
"@babel/preset-env": "7.0.0-beta.54",
|
"@babel/preset-env": "7.0.0-beta.54",
|
||||||
"ajv": "6.5.2",
|
"ajv": "6.5.2",
|
||||||
"babel-loader": "8.0.0-beta.4",
|
"babel-loader": "8.0.0-beta.4",
|
||||||
|
"cross-env": "5.2.0",
|
||||||
"http-server": "0.11.1",
|
"http-server": "0.11.1",
|
||||||
"rimraf": "2.6.2",
|
"rimraf": "2.6.2",
|
||||||
"webpack": "4.16.1",
|
"webpack": "4.16.1",
|
||||||
|
|
Loading…
Reference in New Issue