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

--print-label swallows colors #38

Closed
rodneyrehm opened this issue Apr 25, 2016 · 2 comments
Closed

--print-label swallows colors #38

rodneyrehm opened this issue Apr 25, 2016 · 2 comments

Comments

@rodneyrehm
Copy link

output without --print-label:
without-labels

output with --print-label:
with-labels

@mysticatea
Copy link
Owner

mysticatea commented Apr 25, 2016

Thank you for this issue.

Yeah, this is a known limitation.
chalk will stop coloring when stdout is not TTY. npm-run-all cannot keep stdout of child processes as TTY if it adds labels to each line (stdout of child processes becomes pipe).

I will add this to documents.

Also, you can give --color option to tools (e.g. eslint) which are using chalk to revive coloring.

@mysticatea
Copy link
Owner

I added: https://github.com/mysticatea/npm-run-all/blob/master/docs/npm-run-all.md#known-limitations

enbytedev added a commit to enbytedev/Filing-Saucer that referenced this issue Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants