diff --git a/scripts/turbo-run/src/run.ts b/scripts/turbo-run/src/run.ts index e92c3de6..c8f4b787 100644 --- a/scripts/turbo-run/src/run.ts +++ b/scripts/turbo-run/src/run.ts @@ -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); + } } /** diff --git a/scripts/vsh/src/lint/index.ts b/scripts/vsh/src/lint/index.ts index 1ea198f8..5661a97e 100644 --- a/scripts/vsh/src/lint/index.ts +++ b/scripts/vsh/src/lint/index.ts @@ -111,13 +111,12 @@ async function runLint({ format, threads }: LintCommandOptions) { const threadsArg = `--threads=${threads || defaultThreads}`; if (format) { - await runCommand([ - 'stylelint', - ['**/*.{vue,css,less,scss}', '--cache', '--fix'], + await runSerial([ + ['stylelint', ['**/*.{vue,css,less,scss}', '--cache', '--fix']], + ['oxfmt', [threadsArg]], + ['oxlint', ['--fix', '--type-aware', threadsArg]], + ['eslint', ['.', '--cache', '--fix']], ]); - await runCommand(['oxfmt', [threadsArg]]); - await runCommand(['oxlint', ['--fix', '--type-aware', threadsArg]]); - await runCommand(['eslint', ['.', '--cache', '--fix']]); return; }