@aligov/cloud-builder
Advanced tools
Comparing version 1.7.4 to 1.7.5
@@ -29,2 +29,7 @@ #!/usr/bin/env node | ||
}); | ||
yargs.positional("--npmType", { | ||
describe: "npm类型", | ||
type: "string", | ||
default: "cnpm" | ||
}); | ||
yargs.positional("--hash", { | ||
@@ -31,0 +36,0 @@ describe: "使用hash模式", |
@@ -10,2 +10,3 @@ const shell = require("shelljs"); | ||
const skipNpmI = Boolean(config.skipNpmI); | ||
const { npmType } = config; | ||
const { publicpath } = util.getPath(config); | ||
@@ -16,3 +17,3 @@ // 构建 | ||
shell.exec("rm -rf ./node_modules"); | ||
shell.exec("cnpm install"); | ||
shell.exec(`${npmType} install`); | ||
} | ||
@@ -19,0 +20,0 @@ shell.exec( |
{ | ||
"name": "@aligov/cloud-builder", | ||
"version": "1.7.4", | ||
"version": "1.7.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
16078
505