chalk/source/vendor
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
..
ansi-styles Fix exported styles names (#569) 2022-10-12 23:30:36 +07:00
supports-color Fix FORCE_COLOR override when COLORTERM is set 2026-02-13 00:50:03 -08:00