Skip to content

Commit

Permalink
fix: use chalk.supportColors rather than isTTY
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey authored and lukastaegert committed Jan 12, 2018
1 parent 8ce5592 commit 8270798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/src/logging.ts
Expand Up @@ -2,7 +2,7 @@ import chalk from 'chalk';
import relativeId from '../../src/utils/relativeId.js';
import { RollupError } from '../../src/utils/error';

if (!process.stderr.isTTY) chalk.enabled = false;
if (!chalk.supportsColor) chalk.enabled = false;

// log to stderr to keep `rollup main.js > bundle.js` from breaking
export const stderr = console.error.bind(console); // eslint-disable-line no-console
Expand Down

0 comments on commit 8270798

Please sign in to comment.