From 160e9e49394c1433723b637f21ae9e9dbb5b4e16 Mon Sep 17 00:00:00 2001 From: Lev Chelyadinov Date: Sat, 4 Jan 2025 22:20:10 +0200 Subject: [PATCH] Make the JSON reporter output to stderr --- packages/steiger/src/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/steiger/src/cli.ts b/packages/steiger/src/cli.ts index d407875..0751978 100755 --- a/packages/steiger/src/cli.ts +++ b/packages/steiger/src/cli.ts @@ -102,7 +102,7 @@ try { const printDiagnostics = (diagnostics: Array) => { if (consoleArgs.reporter === 'json') { - console.log(JSON.stringify(diagnostics, null, 2)) + console.error(JSON.stringify(diagnostics, null, 2)) } else { reportPretty(diagnostics, process.cwd()) }