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 Chalk error #2

Merged
merged 4 commits into from Feb 10, 2022
Merged

Fix Chalk error #2

merged 4 commits into from Feb 10, 2022

Conversation

savioxavier
Copy link
Owner

@savioxavier savioxavier commented Feb 10, 2022

This PR is a fix to an issue

Closes #1 (hopefully)

Description

  • Used a custom Chalk class with a custom level (level 2) to enforce terminal styling. Usually chalk would try to detect if the terminal supports color. If it doesn't it would disable color by setting the color level to 0, which would remove all styling. What I've done here is override the custom chalk level using a custom Chalk class, with options { level: 2 } to force colors to display in the terminal

Changes

  • Use a custom Chalk class with custom options
  • Remove chalk-template as it is no longer needed

@savioxavier
Copy link
Owner Author

Whoops, almost forgot to uninstall chalk-template

@savioxavier savioxavier merged commit 3ae9fe0 into master Feb 10, 2022
@savioxavier savioxavier deleted the chalk-options branch February 10, 2022 13:13
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.

ANSI color codes don't work when in production
1 participant