yarnpkg / yarn

The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry
https://classic.yarnpkg.com
Other
41.45k stars 2.73k forks source link

yarn outdated --json returns bad formatted JSON #8094

Closed goldmont closed 2 years ago

goldmont commented 4 years ago

Bug description

yarn outdated --json

What is the current behavior?

Sometimes yarn outdated returns a bad formatted JSON.

{"type":"info","data":"Color legend : \n \"<red>\"    : Major Update backward-incompatible updates \n \"<yellow>\" : Minor Update backward-compatible features \n \"<green>\"  : Patch Update backward-compatible bug fixes"}
"css-loader","3.5.1","3.5.1","3.5.3","devDependencies","https://github.com/webpack-contrib/css-loader"],["jest","25.5.3","25.5.3","25.5.4","devDependencies","https://jestjs.io/"],["purgecss","2.1.0","2.1.0","2.1.2","devDependencies","https://purgecss.com"],["style-loader","1.1.3","1.1.3","1.2.1","devDependencies","https://github.com/webpack-contrib/style-loader"]]}}

Steps to Reproduce

  1. yarn outdated --json
  2. Parse

Environment

goldmont commented 4 years ago

Any news?