diff --git a/package.json b/package.json index d218d6f73b52177d7666d585ee7855643d28bb36..4675c5bc67881d7ba17daa73c299d214338cee6f 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { "name": "uniapp-js-framework", "version": "0.0.1", - "scripts": { + "scripts": { "build:service:legacy": "npm run lint && rollup -c build/rollup.config.service.js", "lint": "eslint --fix --config package.json --ext .js --ext .vue --ignore-path .eslintignore build src", "lint:cli": "eslint --fix --config package.json --ignore-path .eslintignore packages/uni-cli-shared packages/uni-template-compiler \"packages/vue-cli-*/**/*.js\" \"packages/webpack-uni-*/**/*.js\"", "dev:h5": "npm run lint && cross-env NODE_ENV=production UNI_WATCH=true UNI_PLATFORM=h5 node build/build.js", - "build:h5": "npm run lint && cross-env NODE_ENV=production UNI_WATCH=false UNI_PLATFORM=h5 node build/build.js", + "build:h5": "npm run lint && cross-env NODE_ENV=production UNI_WATCH=false UNI_PLATFORM=h5 node build/build.js", "build:h5:ui": "cross-env NODE_ENV=production UNI_WATCH=false UNI_PLATFORM=h5 UNI_UI=true node build/build.js", "build:app-plus": "cross-env UNI_PLATFORM=app-plus rollup -c build/rollup.config.mp.js", "build:app:all": "npm run lint && npm run build:app:nvue && npm run build:app:legacy", @@ -22,7 +22,7 @@ "test:cli": "cross-env NODE_ENV=test jest", "test:unit": "cross-env NODE_ENV=test UNI_PLATFORM=h5 mocha-webpack --require tests/unit/setup.js --webpack-config build/webpack.config.test.js tests/unit/**/*.spec.js", "release": "npm run lint:cli && lerna publish --force-publish=*", - "release:alpha": "npm run lint:cli && lerna publish --force-publish=* --npm-tag=alpha", + "release:alpha": "npm run lint:cli && lerna publish --force-publish=* --npm-tag=alpha", "release:next": "npm run lint:cli && lerna publish --force-publish=* --npm-tag=next" }, "dependencies": { @@ -63,6 +63,7 @@ "rollup-plugin-commonjs": "^10.0.1", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-replace": "^2.1.0", + "shell-exec": "^1.0.2", "strip-json-comments": "^2.0.1", "vue": "^2.6.8", "vue-router": "^3.0.1", diff --git a/yarn.lock b/yarn.lock index af5fd04e488de8bf25b5a69d53901b3e4887b8c8..6948c2fd2160b1ba939db8a0ed299cd3364e9a6d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7934,6 +7934,10 @@ shebang-regex@^1.0.0: version "1.0.0" resolved "https://registry.npm.taobao.org/shebang-regex/download/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" +shell-exec@^1.0.2: + version "1.0.2" + resolved "https://registry.npm.taobao.org/shell-exec/download/shell-exec-1.0.2.tgz#2e9361b0fde1d73f476c4b6671fa17785f696756" + shell-quote@^1.6.1: version "1.6.1" resolved "https://registry.npm.taobao.org/shell-quote/download/shell-quote-1.6.1.tgz#f4781949cce402697127430ea3b3c5476f481767"