From 1f8eb31b9bda253a1b0ccd3c0096bae8fda60524 Mon Sep 17 00:00:00 2001 From: Gauvino Date: Mon, 29 Jun 2026 15:36:56 +0200 Subject: [PATCH] fix(scripts): merge tsc stdout+stderr before parsing typecheck output tsc writes diagnostics to stdout; preferring one stream could drop the real errors when stderr carries unrelated noise. Concatenate both streams before filtering/parsing. --- scripts/typecheck.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/typecheck.ts b/scripts/typecheck.ts index b3a5363b..ba2a7cbc 100644 --- a/scripts/typecheck.ts +++ b/scripts/typecheck.ts @@ -187,7 +187,9 @@ function runTypeCheck(): { ok: boolean } { return { ok: true }; } catch (error) { const execError = error as { stderr?: string; stdout?: string }; - const errorOutput = execError.stderr || execError.stdout; + const errorOutput = [execError.stdout, execError.stderr] + .filter((chunk): chunk is string => Boolean(chunk)) + .join("\n"); // No compiler output = tsc never ran (e.g. binary missing). Don't let a // launch failure fall through to the "passed" branch and green-light CI.