Skip to content
Permalink
Browse files
fix colors with supports-color@5
  • Loading branch information
TooTallNate committed Nov 9, 2017
1 parent ab5083f commit 285dfe10a5c06d4a86176b54bef2d7591eedaf40
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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,

1 comment on commit 285dfe1

@realityking
Copy link
Contributor

@realityking realityking commented on 285dfe1 Feb 12, 2018

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.