Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use chalk to style error message insted of using directly ansi escape codes #150

Merged
merged 4 commits into from
Jun 13, 2024

Conversation

matteo-cristino
Copy link
Collaborator

  • chore: import chalk in @slangroom/deps and expose error coloring and formatting functions from @slagnroom/shared
  • fix: use chalk to style error message insted of using directly ansi escape codes

…formatting functions from @slagnroom/shared

In this way in the future we can easily have also colored error in the plugin
@matteo-cristino matteo-cristino marked this pull request as draft June 3, 2024 10:02
@puria
Copy link
Member

puria commented Jun 13, 2024

is this ready? should I merge it @matteo-cristino

@matteo-cristino
Copy link
Collaborator Author

I was not able to test it in some console without the color like the browser example that you did said on the issue, thus I don't know if this solve that issue. Other than that this should be ready 🥠

@puria puria marked this pull request as ready for review June 13, 2024 09:43
@puria puria merged commit 077feb4 into main Jun 13, 2024
7 checks passed
@puria puria deleted the fix/colors branch June 13, 2024 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Print only colors when in terminal or escape sequence are allowed
2 participants