Skip to content

Commit

Permalink
fix(cli): update getPackages to use cleaned yarn output in berry (#7505)
Browse files Browse the repository at this point in the history
Co-authored-by: Alessandra Davila <aledavila@ibm.com>
  • Loading branch information
joshblack and Alessandra Davila authored Jan 12, 2021
1 parent eee0a96 commit df95abf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/cli/src/workspace.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,7 @@ async function getPackages() {
'list',
'--json',
]);
return JSON.parse(
// Clean-up output by stripping out `yarn` information related to the
// command and how long it took to run
lernaListOutput.split('\n').slice(2, -1).join('\n')
).filter((pkg) => !pkg.private);
return JSON.parse(lernaListOutput).filter((pkg) => !pkg.private);
}

module.exports = {
Expand Down

0 comments on commit df95abf

Please sign in to comment.