Skip to content

Commit

Permalink
打包
Browse files Browse the repository at this point in the history
  • Loading branch information
biaov committed Oct 11, 2023
1 parent 081f98c commit 7b63f9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/commander/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ const execCommand = (cmd: string) => {
info(`开始执行 ${chalk.cyanBright(cmd)} 命令`)
const spinner = ora({ text: '正在执行命令中...', color: 'yellow' })
spinner.start()
execSync(cmd, { cwd: process.cwd() })
const childProcess = execSync(cmd, { cwd: process.cwd() })
info(childProcess.toString())
spinner.succeed(`${chalk.green(cmd)} 命令执行成功`)
info()
}
Expand Down
6 changes: 1 addition & 5 deletions src/commander/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,4 @@ program.arguments('<cmd> [env]').action((cmd: any, env: any) => {
/**
* 处理参数
*/
if (process.argv.length < 3) {
program.help()
} else {
program.parse(process.argv)
}
process.argv.length < 3 ? program.help() : program.parse(process.argv)

0 comments on commit 7b63f9c

Please sign in to comment.