feat(@ngtools/webpack): use STDERR to report warnings

This commit is contained in:
Hans Larsen 2018-08-15 15:41:03 -07:00 committed by Hans
parent 20b5d916d2
commit 2a1e19c4e4
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ export function transformTypescript(
// Log diagnostics if emit wasn't successfull. // Log diagnostics if emit wasn't successfull.
if (emitSkipped) { if (emitSkipped) {
console.log(diagnostics); console.error(diagnostics);
return null; return null;
} }

View File

@ -128,7 +128,7 @@ export class TypeChecker {
if (warnings.length > 0) { if (warnings.length > 0) {
const message = formatDiagnostics(warnings); const message = formatDiagnostics(warnings);
console.log(terminal.bold(terminal.yellow('WARNING in ' + message))); console.error(terminal.bold(terminal.yellow('WARNING in ' + message)));
} }
} }
} }