Skip to content

Commit

Permalink
fix(@angular/cli): fix colors on git bash
Browse files Browse the repository at this point in the history
  • Loading branch information
filipesilva committed Sep 1, 2017
1 parent b33c696 commit 6182074
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/@angular/cli/utilities/stats.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { bold, green, red, reset, white, yellow } from 'chalk';
import * as chalk from 'chalk';
import { stripIndents } from 'common-tags';

// Force basic color support on terminals with no color support.
// Chalk typings don't have the correct constructor parameters.
const chalkCtx = new (chalk.constructor as any)(chalk.supportsColor ? {} : { level: 1 });
const { bold, green, red, reset, white, yellow } = chalkCtx;

function _formatSize(size: number): string {
if (size <= 0) {
Expand Down

0 comments on commit 6182074

Please sign in to comment.