Skip to content

Commit df95abf

Browse files
joshblackAlessandra Davila
andauthored
fix(cli): update getPackages to use cleaned yarn output in berry (#7505)
Co-authored-by: Alessandra Davila <aledavila@ibm.com>
1 parent eee0a96 commit df95abf

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/cli/src/workspace.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,7 @@ async function getPackages() {
5353
'list',
5454
'--json',
5555
]);
56-
return JSON.parse(
57-
// Clean-up output by stripping out `yarn` information related to the
58-
// command and how long it took to run
59-
lernaListOutput.split('\n').slice(2, -1).join('\n')
60-
).filter((pkg) => !pkg.private);
56+
return JSON.parse(lernaListOutput).filter((pkg) => !pkg.private);
6157
}
6258

6359
module.exports = {

0 commit comments

Comments
 (0)