We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b33c696 commit 6182074Copy full SHA for 6182074
packages/@angular/cli/utilities/stats.ts
@@ -1,6 +1,10 @@
1
-import { bold, green, red, reset, white, yellow } from 'chalk';
+import * as chalk from 'chalk';
2
import { stripIndents } from 'common-tags';
3
4
+// Force basic color support on terminals with no color support.
5
+// Chalk typings don't have the correct constructor parameters.
6
+const chalkCtx = new (chalk.constructor as any)(chalk.supportsColor ? {} : { level: 1 });
7
+const { bold, green, red, reset, white, yellow } = chalkCtx;
8
9
function _formatSize(size: number): string {
10
if (size <= 0) {
0 commit comments