Skip to content

Commit b65de02

Browse files
committed
EXPERIMENT: Check what colors in GitHub Actions look like
1 parent 856c838 commit b65de02

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

lib/supports-color.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,15 @@ function supportsColor() /*: boolean */ {
3232
return true;
3333
}
3434

35+
if ('CI' in env) {
36+
return true;
37+
}
38+
3539
if (process.stdout.isTTY !== true) {
3640
return false;
3741
}
3842

39-
if (process.platform === 'win32' || 'CI' in env) {
43+
if (process.platform === 'win32') {
4044
return true;
4145
}
4246

0 commit comments

Comments
 (0)