This commit is contained in:
2025-12-06 18:55:43 +08:00
parent ee33208e6c
commit eca7b42377
5 changed files with 148 additions and 5 deletions

View File

@@ -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);