Ask questionsYarn outputs script meta-information to stdout instead of stderr
<!-- Before creating an issue please make sure you are using the latest version of yarn. -->
Do you want to request a feature or report a bug?
What is the current behavior?
When you run a script via
yarn some-script, yarn outputs meta-information like "yarn run v1.12.3" and "Done in 0.06s" to stdout. This makes it inconvenient when you want to pipe the output of the script somewhere, since it's included in that pipe. If yarn were to output to stderr, this would not be an issue -- and would be more respectful of the script's output.
If the current behavior is a bug, please provide the steps to reproduce.
Here's a tiny repository illustrating this issue: https://github.com/wcauchois/yarn-stderr-repro
$ yarn some-script > ./hello.txt $ cat hello.txt yarn run v1.12.3 $ echo hi from some script! hi from some script! Done in 0.06s.
What is the expected behavior?
I would expect hello.txt in that case to consist only of the string "hi from some script!"
Please mention your node.js, yarn and operating system version.
$ node --version v10.7.0 $ yarn --version 1.12.3 $ sw_vers ProductName: Mac OS X ProductVersion: 10.14 BuildVersion: 18A391
Answer questions bolinfest
This doesn't answer the question of why
yarn run writes to stderr rather than stdout by default. This is not particularly command-line friendly.