udpate
This commit is contained in:
@@ -188,7 +188,7 @@ const publishCommand = new Command('publish')
|
||||
console.log('发布逻辑实现', { key, version, config });
|
||||
});
|
||||
|
||||
const deployLoadFn = async (id: string, fileKey: string, force = false, install = false) => {
|
||||
const deployLoadFn = async (id: string, fileKey: string, force = true, install = false) => {
|
||||
if (!id) {
|
||||
console.error(chalk.red('id is required'));
|
||||
return;
|
||||
@@ -312,11 +312,10 @@ const packCommand = new Command('pack')
|
||||
const packDeployCommand = new Command('pack-deploy')
|
||||
.argument('<id>', 'id')
|
||||
.option('-k, --key <key>', 'fileKey, 服务器的部署文件夹的列表')
|
||||
.option('-f --force', 'force')
|
||||
.option('-i, --install ', 'install dependencies')
|
||||
.action(async (id, opts) => {
|
||||
let { force, key, install } = opts || {};
|
||||
const res = await deployLoadFn(id, key, force, install);
|
||||
let { key, install } = opts || {};
|
||||
const res = await deployLoadFn(id, key, true, install);
|
||||
});
|
||||
|
||||
program.addCommand(packDeployCommand);
|
||||
|
||||
Reference in New Issue
Block a user