Skip to content

Commit 2a1e19c

Browse files
committed
feat(@ngtools/webpack): use STDERR to report warnings
1 parent 20b5d91 commit 2a1e19c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/ngtools/webpack/src/transformers/ast_helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export function transformTypescript(
9191

9292
// Log diagnostics if emit wasn't successfull.
9393
if (emitSkipped) {
94-
console.log(diagnostics);
94+
console.error(diagnostics);
9595

9696
return null;
9797
}

packages/ngtools/webpack/src/type_checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export class TypeChecker {
128128

129129
if (warnings.length > 0) {
130130
const message = formatDiagnostics(warnings);
131-
console.log(terminal.bold(terminal.yellow('WARNING in ' + message)));
131+
console.error(terminal.bold(terminal.yellow('WARNING in ' + message)));
132132
}
133133
}
134134
}

0 commit comments

Comments
 (0)