refactor: switch from chalk to styleText (node:util)
escapedcat opened this issue · comments
escapedcat commented
Expected Behavior
Colors should work like before in the terminal but without an extra dependency
Packages using this dep:
- cz-commitlint
- format
- load
- prompt
- types
Current Behavior
https://github.com/chalk/chalk is being used
Affected packages
- cli
- core
- prompt
- config-angular
Possible Solution
No response
Context
LetĂcia Aguiar commented
Since styleText is a feature added in node version 21.7.0 this introduces a breaking change, right?
escapedcat commented
@letsaguiar ah thanks! I just saw the tweet but didn't check which version is needed.
In this case this issue should wait till
- Version 22 is out
- We have a better reason for a breaking change
Andres G. Aragoneses commented
Version 22 is out
If you raise the node version requirement to 22, then you break compatibility with Ubuntu LTS.
escapedcat commented
Yeah, this is something for the future. Wouldn't want to break anything because of this.