Add `cross-env` to allow building on Windows (https://github.com/woocommerce/woocommerce-admin/pull/473)

This commit is contained in:
Kelly Dwan 2018-09-25 16:50:51 -04:00 committed by GitHub
parent 29cfde2ddd
commit e2aa414f4f
2 changed files with 27 additions and 1 deletions

View File

@ -3833,6 +3833,31 @@
"sha.js": "^2.4.8"
}
},
"cross-env": {
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/cross-env/-/cross-env-5.2.0.tgz",
"integrity": "sha512-jtdNFfFW1hB7sMhr/H6rW1Z45LFqyI431m3qU6bFXcQ3Eh7LtBuG3h74o7ohHZ3crrRkkqHlo4jYHFPcjroANg==",
"dev": true,
"requires": {
"cross-spawn": "^6.0.5",
"is-windows": "^1.0.0"
},
"dependencies": {
"cross-spawn": {
"version": "6.0.5",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz",
"integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==",
"dev": true,
"requires": {
"nice-try": "^1.0.4",
"path-key": "^2.0.1",
"semver": "^5.5.0",
"shebang-command": "^1.2.0",
"which": "^1.2.9"
}
}
}
},
"cross-spawn": {
"version": "5.1.0",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz",

View File

@ -13,7 +13,7 @@
"install-if-deps-outdated": "node bin/install-if-deps-outdated.js",
"install-if-no-packages": "node bin/install-if-no-packages.js",
"prebuild": "npm run -s install-if-deps-outdated",
"build": "NODE_ENV=production webpack",
"build": "cross-env NODE_ENV=production webpack",
"prestart": "npm run -s install-if-deps-outdated",
"start": "webpack --watch",
"lint": "npm run -s install-if-deps-outdated && eslint client --ext=js,jsx",
@ -54,6 +54,7 @@
"babel-plugin-transform-class-properties": "^6.24.1",
"chalk": "^2.4.1",
"core-js": "^2.5.7",
"cross-env": "^5.2.0",
"css-loader": "^1.0.0",
"deep-freeze": "^0.0.1",
"docsify-cli": "github:docsifyjs/docsify-cli#5df38996",