From 425e44d860509b0198f1693cf171298aa96bde4f Mon Sep 17 00:00:00 2001 From: ly525 Date: Mon, 16 Dec 2019 21:29:38 +0800 Subject: [PATCH] fix: #118 --- front-end/h5/package.json | 5 +++-- front-end/h5/yarn.lock | 7 +++++++ 2 files changed, 10 insertions(+), 2 deletions(-) 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"