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 = {