diff --git a/front-end/h5/package.json b/front-end/h5/package.json index 009b20d3..00471502 100644 --- a/front-end/h5/package.json +++ b/front-end/h5/package.json @@ -9,8 +9,8 @@ "deploy": "rm -rf dist && npm run build && ./deploy.sh", "test:e2e": "vue-cli-service test:e2e", "test:unit": "vue-cli-service test:unit", - "editor:build": "PAGE=EDITOR vue-cli-service build", - "engine:build": "PAGE=ENGINE vue-cli-service build --target lib --name engine ./src/engine-entry.js" + "editor:build": "cross-env PAGE=EDITOR vue-cli-service build", + "engine:build": "cross-env PAGE=ENGINE vue-cli-service build --target lib --name engine ./src/engine-entry.js" }, "dependencies": { "@luban-h5/lbc-button": "^0.0.2", @@ -50,6 +50,7 @@ "babel-eslint": "^10.0.1", "babel-jest": "^23.6.0", "babel-plugin-component": "^1.1.1", + "cross-env": "^6.0.3", "dart-sass": "^1.23.7", "eslint": "^5.16.0", "eslint-plugin-vue": "^5.0.0", diff --git a/front-end/h5/yarn.lock b/front-end/h5/yarn.lock index 7f92ad7d..e8d51a6b 100644 --- a/front-end/h5/yarn.lock +++ b/front-end/h5/yarn.lock @@ -3282,6 +3282,13 @@ 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@^6.0.3: + version "6.0.3" + resolved "https://registry.npm.taobao.org/cross-env/download/cross-env-6.0.3.tgz?cache=0&sync_timestamp=1570033342577&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcross-env%2Fdownload%2Fcross-env-6.0.3.tgz#4256b71e49b3a40637a0ce70768a6ef5c72ae941" + integrity sha1-Qla3HkmzpAY3oM5wdopu9ccq6UE= + dependencies: + cross-spawn "^7.0.0" + cross-spawn@^5.0.1, cross-spawn@^5.1.0: version "5.1.0" resolved "https://registry.npm.taobao.org/cross-spawn/download/cross-spawn-5.1.0.tgz?cache=0&sync_timestamp=1570439982137&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcross-spawn%2Fdownload%2Fcross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449"