yarn icon indicating copy to clipboard operation
yarn copied to clipboard

Yarn doesn't print script output when it contains yarn command

Open eddig opened this issue 9 years ago • 2 comments

Do you want to request a feature or report a bug?

bug

What is the current behavior?

If the yarn executes another yarn command in the script, then it does not print output of the executed yarn command.

If the current behavior is a bug, please provide the steps to reproduce.

git clone https://github.com/EddiG/issue-yarn-quiet.git
cd issue-yarn-quiet
yarn install
yarn run test

screenshot from 2017-06-19 18-59-53

What is the expected behavior?

Yarn should print the output like the npm run test does

screenshot from 2017-06-19 19-00-08

Please mention your node.js, yarn and operating system version.

$ node -v
v8.1.2

$ npm -v
5.0.1

$ yarn --version
0.26.1

$ lsb_release -d
Description:	Ubuntu 16.04.2 LTS

In real life script would be like this

scripts: {
"outdated:all": "lerna exec -- 'yarn outdated || true'"
}

This execute the yarn outdated || true command in each package of the monorepo package.

eddig avatar Jun 19 '17 13:06 eddig

Probably caused by #3536 - @kittens is there a way to force-disable the quiet mode?

arcanis avatar Jun 19 '17 16:06 arcanis

Thanks for guess @arcanis.

  "scripts": {
    "test": "YARN_SILENT=0 yarn outdated || true"
  } 

With YARN_SILENT=0 works as expected.

eddig avatar Jun 19 '17 16:06 eddig