Skip to content

Commit

Permalink
Set default color config based on supports-color
Browse files Browse the repository at this point in the history
  • Loading branch information
novemberborn committed Apr 3, 2017
1 parent 2283247 commit 146c3e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ exports.run = () => {
],
default: {
cache: conf.cache,
color: 'color' in conf ? conf.color : true,
color: 'color' in conf ? conf.color : require('supports-color') !== false,
concurrency: conf.concurrency,
failFast: conf.failFast,
init: conf.init,
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@
"stack-utils": "^1.0.0",
"strip-ansi": "^3.0.1",
"strip-bom-buf": "^1.0.0",
"supports-color": "^3.2.3",
"time-require": "^0.1.2",
"unique-temp-dir": "^1.0.0",
"update-notifier": "^2.1.0"
Expand Down

0 comments on commit 146c3e2

Please sign in to comment.