fix: 优化命令执行逻辑,使用串行执行以提高错误可见性
This commit is contained in:
@@ -46,9 +46,13 @@ export async function run(options: RunOptions) {
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
execa('pnpm', [`--filter=${selectPkg}`, 'run', command], {
|
||||
stdio: 'inherit',
|
||||
});
|
||||
try {
|
||||
await execa('pnpm', [`--filter=${selectPkg}`, 'run', command], {
|
||||
stdio: 'inherit',
|
||||
});
|
||||
} catch (error: any) {
|
||||
process.exit(error.exitCode || 1);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user