diff --git a/e2e/utils/command-utils.ts b/e2e/utils/command-utils.ts index 1b02ac0fa2014..5f77623da9f3d 100644 --- a/e2e/utils/command-utils.ts +++ b/e2e/utils/command-utils.ts @@ -152,7 +152,7 @@ export function getPackageManagerCommand({ ciInstall: 'yarn --frozen-lockfile', addProd: isYarnWorkspace ? 'yarn add -W' : 'yarn add', addDev: isYarnWorkspace ? 'yarn add -DW' : 'yarn add -D', - list: 'npm ls --depth 10', + list: 'yarn list --pattern', runLerna: `yarn --silent lerna`, }, // Pnpm 3.5+ adds nx to @@ -166,7 +166,7 @@ export function getPackageManagerCommand({ ciInstall: 'pnpm install --frozen-lockfile', addProd: isPnpmWorkspace ? 'pnpm add -w' : 'pnpm add', addDev: isPnpmWorkspace ? 'pnpm add -Dw' : 'pnpm add -D', - list: 'npm ls --depth 10', + list: 'pnpm ls --depth 10', runLerna: `pnpm exec lerna`, }, }[packageManager.trim() as PackageManager];