chalk/source
Varun Chawla dab86650a7 Fix FORCE_COLOR override when COLORTERM is set
When COLORTERM=truecolor is set, FORCE_COLOR=1 and FORCE_COLOR=2 were both returning level 3 instead of respecting the specified level. This happened because terminal detection (checking for COLORTERM) was running after FORCE_COLOR was parsed, overriding the explicit user preference.

The fix adds an early return when FORCE_COLOR is explicitly set, preventing any terminal detection logic from overriding the user's choice. This ensures FORCE_COLOR takes priority over automatic terminal capability detection.

Fixes #624
2026-02-13 00:50:03 -08:00
..
vendor Fix FORCE_COLOR override when COLORTERM is set 2026-02-13 00:50:03 -08:00
index.d.ts Meta tweaks 2024-08-08 00:00:20 +02:00
index.js Export styles from ansi-styles (#567) 2022-10-12 16:35:02 +07:00
index.test-d.ts Meta tweaks 2024-08-08 00:00:20 +02:00
utilities.js Refactor: Replace deprecated String#substr() (#541) 2022-03-28 01:11:02 +07:00