From b7074e428fa6a20b45290db7e40b4fdb99f076e9 Mon Sep 17 00:00:00 2001 From: Cormac Relf Date: Tue, 14 Nov 2017 17:14:55 +1100 Subject: [PATCH] windows build: fix NODE_ENV on windows --- package.json | 4 ++-- yarn.lock | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 771894d4..d5067993 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "e2e": "node test/e2e/runner.js", "test": "npm run unit", "lint": "eslint --ext .js,.vue src test/unit/specs test/e2e/specs", - "release": "webpack --progress --hide-modules --config ./build/webpack.release.js && NODE_ENV=production webpack --progress --hide-modules --config ./build/webpack.release.min.js", + "release": "webpack --progress --hide-modules --config ./build/webpack.release.js && cross-env NODE_ENV=production webpack --progress --hide-modules --config ./build/webpack.release.min.js", "prepublishOnly": "yarn run lint && yarn run test && yarn run build" }, "dependencies": { @@ -72,7 +72,7 @@ "chart.js": "2.7.0", "chromedriver": "^2.28.0", "connect-history-api-fallback": "^1.1.0", - "cross-env": "^3.2.4", + "cross-env": "^5.1.1", "cross-spawn": "^5.1.0", "css-loader": "^0.28.0", "eslint": "^3.19.0", diff --git a/yarn.lock b/yarn.lock index 88bce607..816c837b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1646,9 +1646,9 @@ create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4: safe-buffer "^5.0.1" sha.js "^2.4.8" -cross-env@^3.2.4: - version "3.2.4" - resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-3.2.4.tgz#9e0585f277864ed421ce756f81a980ff0d698aba" +cross-env@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-5.1.1.tgz#b6d8ab97f304c0f71dae7277b75fe424c08dfa74" dependencies: cross-spawn "^5.1.0" is-windows "^1.0.0"