From 3264adf87776e198898996d38ac4eb366733c74d Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Thu, 26 Jul 2018 15:13:28 -0400 Subject: [PATCH] add cross-env to enable env var set for windows --- package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 61ce838..d91bff4 100644 --- a/package.json +++ b/package.json @@ -18,10 +18,10 @@ ], "scripts": { "babel": "npm run babel:browser && npm run babel:node", - "babel:browser": "BABEL_ENV=browser babel --out-dir dist/browser src", - "babel:node": "BABEL_ENV=node babel --out-dir dist src", + "babel:browser": "cross-env BABEL_ENV=browser babel --out-dir dist/browser src", + "babel:node": "cross-env BABEL_ENV=node babel --out-dir dist src", "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", "prepare": "npm run build", "test": "echo \"Error: no test specified\" && exit 1", @@ -57,6 +57,7 @@ "@babel/preset-env": "7.0.0-beta.54", "ajv": "6.5.2", "babel-loader": "8.0.0-beta.4", + "cross-env": "5.2.0", "http-server": "0.11.1", "rimraf": "2.6.2", "webpack": "4.16.1",