mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 10:33:43 +08:00
feat(@ngtools/webpack): use STDERR to report warnings
This commit is contained in:
parent
20b5d916d2
commit
2a1e19c4e4
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user