mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-06-30 09:32:50 +01:00
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.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user