bcomnes / npm-run-all2

A CLI tool to run multiple npm-scripts in parallel or sequential. (Maintenance fork)
MIT License
250 stars 12 forks source link

--print-label strips colors from log ouput #137

Closed bcomnes closed 2 months ago

bcomnes commented 4 months ago

When using the --print-label option, colors are stripped from the log output. It would be preferable if that wasn't the case.

travi commented 4 months ago

a potential related approach to possibly consider: https://github.com/mysticatea/npm-run-all/issues/131

bcomnes commented 4 months ago

Oh good technique. Will add it to the docs and see if I can patch it into the labels. I noticed that there is already a known issues section.

voxpelli commented 4 months ago

If it's eg chalk that deactivate the color then we should maybe check if we could upstream it to not just check TTY but also that env variable?

bcomnes commented 4 months ago

The force color env var works pretty well. Been playing with that.

bcomnes commented 2 months ago

Using env vars and whatnot, I think thats probably the best solution with this flag for now.