Skip to content

Commit 7d15c5d

Browse files
mikelwardKeen Yee Liau
authored and
Keen Yee Liau
committed
fix(@angular-devkit/core): Make default and info log messages use default colors
Previously, we set the color to white, which is (nearly) invisible on terminals with a white background. Fixes #13439.
1 parent 4f358f4 commit 7d15c5d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/angular_devkit/core/node/cli-logger.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@ export function createConsoleLogger(
2525
logger
2626
.pipe(filter(entry => (entry.level != 'debug' || verbose)))
2727
.subscribe(entry => {
28-
let color: (s: string) => string = x => terminal.dim(terminal.white(x));
28+
let color = terminal.dim;
2929
let output = stdout;
3030
switch (entry.level) {
3131
case 'info':
32-
color = terminal.white;
32+
color = terminal.reset;
3333
break;
3434
case 'warn':
35-
color = (x: string) => terminal.bold(terminal.yellow(x));
35+
color = (s: string) => terminal.bold(terminal.yellow(s));
3636
output = stderr;
3737
break;
3838
case 'fatal':
3939
case 'error':
40-
color = (x: string) => terminal.bold(terminal.red(x));
40+
color = (s: string) => terminal.bold(terminal.red(s));
4141
output = stderr;
4242
break;
4343
}

0 commit comments

Comments
 (0)