From d6faa2588815828aa93ef5daed602ee55edeb8a3 Mon Sep 17 00:00:00 2001 From: Shefali Joshi Date: Fri, 6 Dec 2019 09:44:37 -0800 Subject: [PATCH] Fixes issue-2536: cross-env handles cross platform environment variable setting. (#2554) --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2c50d0dafa..6c990dc0c4 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "concurrently": "^3.6.1", "copy-webpack-plugin": "^4.5.2", "css-loader": "^1.0.0", + "cross-env": "^6.0.3", "d3-array": "1.2.x", "d3-axis": "1.0.x", "d3-collection": "1.0.x", @@ -77,11 +78,11 @@ "start": "node app.js", "lint": "eslint platform example src/**/*.{js,vue} openmct.js", "lint:fix": "eslint platform example src/**/*.{js,vue} openmct.js --fix", - "build:prod": "NODE_ENV=production webpack", + "build:prod": "cross-env NODE_ENV=production webpack", "build:dev": "webpack", "build:watch": "webpack --watch", "test": "karma start --single-run", - "test-debug": "NODE_ENV=debug karma start --no-single-run", + "test-debug": "cross-env NODE_ENV=debug karma start --no-single-run", "test:watch": "karma start --no-single-run", "verify": "concurrently 'npm:test' 'npm:lint'", "jsdoc": "jsdoc -c jsdoc.json -R API.md -r -d dist/docs/api",