Open spalger opened 4 years ago
I think that this was an unintended effect of this: https://github.com/yarnpkg/yarn/commit/1b334e687baa75c84440def211cca0636879d14d
It still works if you move the --json
flag earlier, e.g. yarn --json workspaces info
this also affect the workspace cmd when running scripts.
double stringified?
const result = shell.exec(`yarn --json workspaces info`, {
silent: true
}).stdout
const workspaceInfo = JSON.parse(JSON.parse(result).data)
Bug description
yarn workspaces info --json
no longer works as of thev1.22.0
release. The--json
flag seems to be ignored and the output is JSON wrapped in plain text. Inv1.21.1
this produced a single JSON encoded object on stdout.Command
What is the current behavior?
Output:
What is the expected behavior?
Output:
Environment
10.18.0
1.22.0