Skip to content

Commit

Permalink
fix colors with supports-color@5
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Nov 9, 2017
1 parent ab5083f commit 285dfe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ exports.colors = [ 6, 2, 3, 4, 5, 1 ];

try {
var supportsColor = require('supports-color');
if (supportsColor && supportsColor.level >= 2) {
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
exports.colors = [
20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68,
69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134,
Expand Down

1 comment on commit 285dfe1

@realityking
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TooTallNate Can we get a release with this fix? chalk just updated to support-color 5.

Please sign in to comment.