Skip to content

Commit

Permalink
Make the JSON reporter output to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
illright committed Jan 4, 2025
1 parent 66d6f40 commit 160e9e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/steiger/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ try {

const printDiagnostics = (diagnostics: Array<Diagnostic>) => {
if (consoleArgs.reporter === 'json') {
console.log(JSON.stringify(diagnostics, null, 2))
console.error(JSON.stringify(diagnostics, null, 2))
} else {
reportPretty(diagnostics, process.cwd())
}
Expand Down

0 comments on commit 160e9e4

Please sign in to comment.