Skip to content

Commit 285dfe1

Browse files
committedNov 9, 2017
fix colors with supports-color@5
1 parent ab5083f commit 285dfe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/node.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ exports.colors = [ 6, 2, 3, 4, 5, 1 ];
2424

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

1 commit comments

Comments
 (1)

realityking commented on Feb 12, 2018

@realityking
Contributor

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

Please sign in to comment.