Skip to content

Commit

Permalink
fix(@angular-devkit/core): remove colors for info messages
Browse files Browse the repository at this point in the history
Rely on the terminal to provide the color for info messages

fixes #13497
  • Loading branch information
alan-agius4 authored and mgechev committed Jan 23, 2019
1 parent e34a0ca commit aad3856
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/angular_devkit/benchmark/src/main.ts
Expand Up @@ -98,10 +98,11 @@ export async function main({
let output = stdout;
switch (entry.level) {
case 'info':
color = terminal.white;
color = s => s;
break;
case 'warn':
color = terminal.yellow;
output = stderr;
break;
case 'error':
color = terminal.red;
Expand Down
2 changes: 1 addition & 1 deletion packages/angular_devkit/core/node/cli-logger.ts
Expand Up @@ -29,7 +29,7 @@ export function createConsoleLogger(
let output = stdout;
switch (entry.level) {
case 'info':
color = terminal.reset;
color = s => s;
break;
case 'warn':
color = (s: string) => terminal.bold(terminal.yellow(s));
Expand Down

0 comments on commit aad3856

Please sign in to comment.