From df95abf4a4ee6b5adb6fddd9904b289ef5f782b3 Mon Sep 17 00:00:00 2001 From: Josh Black Date: Tue, 12 Jan 2021 13:29:36 -0600 Subject: [PATCH] fix(cli): update getPackages to use cleaned yarn output in berry (#7505) Co-authored-by: Alessandra Davila --- packages/cli/src/workspace.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/cli/src/workspace.js b/packages/cli/src/workspace.js index 9575d909664e..0ae986d466a2 100644 --- a/packages/cli/src/workspace.js +++ b/packages/cli/src/workspace.js @@ -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 = {