From 5318774efe47371031a3c455a64e2ce15164926c Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Mon, 20 Jul 2026 18:50:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E9=80=BB=E8=BE=91=EF=BC=8C=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E4=B8=B2=E8=A1=8C=E6=89=A7=E8=A1=8C=E4=BB=A5=E6=8F=90=E9=AB=98?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E5=8F=AF=E8=A7=81=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/turbo-run/src/run.ts | 10 +++++++--- scripts/vsh/src/lint/index.ts | 11 +++++------ 2 files changed, 12 insertions(+), 9 deletions(-) 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; }