From e8bb1550fdb5394d7b72345db91fe409ede4111a Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Thu, 25 Apr 2024 22:51:49 +0200 Subject: [PATCH] [logging] fix --no-color env configuration --- environment.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/environment.js b/environment.js index 94d75e7..0afdd7f 100644 --- a/environment.js +++ b/environment.js @@ -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') )