diff --git a/.changeset/lemon-clocks-end.md b/.changeset/lemon-clocks-end.md new file mode 100644 index 0000000000..2adc0526fc --- /dev/null +++ b/.changeset/lemon-clocks-end.md @@ -0,0 +1,5 @@ +--- +"@definitelytyped/dtslint-runner": patch +--- + +Don’t mix console.log and console.error diff --git a/packages/dtslint-runner/src/main.ts b/packages/dtslint-runner/src/main.ts index f3ad507069..7e5da53db1 100644 --- a/packages/dtslint-runner/src/main.ts +++ b/packages/dtslint-runner/src/main.ts @@ -160,10 +160,10 @@ export async function runDTSLint({ } if (allFailures.length) { - console.error("\n\n=== ERRORS ===\n"); + console.log("\n\n=== ERRORS ===\n"); for (const [path, error] of allFailures) { - console.error(`\n\nError in ${path}`); - console.error(error); + console.log(`\n\nError in ${path}`); + console.log(error); } }