Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion packages/@angular/cli/utilities/stats.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
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) {
return '0 bytes';
Expand Down