Skip to content

Conversation

@valadaptive
Copy link

@valadaptive valadaptive commented Sep 30, 2025

PR Checklist

Overview

This PR removes the supports-color dependency and instead uses the isColorSupported export from picocolors. This saves on install size and ensures consistency between our use of color and picocolors' use of it.

@mark-wiemer
Copy link
Member

Excellent! I'm mildly curious if we can add some sort of test for this? Otherwise I'll just test locally and see what I can repro. Thanks for this find!

Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the removal of the dependency & unification to just the one checker... but the should not output colors to pipe is failing consistently in CI. Could you please take a look?

Interestingly, it doesn't fail for me locally. This might be related to alexeyraspopov/picocolors#41 <- actions/runner#241? alexeyraspopov/picocolors#87 fixed a bunch of issues.

@valadaptive
Copy link
Author

Looks like supports-color unconditionally disables color if isTTY is false, including in GitHub Actions. picocolors should probably be changed to do that as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: blocked Waiting for something else to be resolved

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants