Skip to content

Commit

Permalink
[logging] fix --no-color env configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
dmonad committed Apr 25, 2024
1 parent 616c7cc commit e8bb155
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ const forceColor = isNode &&
f.isOneOf(process.env.FORCE_COLOR, ['true', '1', '2'])

/* c8 ignore start */
export const supportsColor = !hasParam('no-colors') &&
export const supportsColor = !hasParam('--no-colors') &&
(!isNode || process.stdout.isTTY || forceColor) && (
!isNode || hasParam('color') || forceColor ||
!isNode || hasParam('--color') || forceColor ||
getVariable('COLORTERM') !== null ||
(getVariable('TERM') || '').includes('color')
)
Expand Down

0 comments on commit e8bb155

Please sign in to comment.