In the newer versions of the yarn
package manager, almost all the commands have a --no-color
option.
I'm running yarn under a continuous integration server (Jenkins) and the color escape chars pollute the output. I'd like to put something in the .yarnrc
file to prevent the output of these escape chars. But I'd also to leave it on for when the developers run it on the terminal.
How to globally configure the --no-color option?
There is a global yarn option:
yarn config set color false --global
also
export NO_COLOR=1
as env option is possible.