From 7374751dc353e3ed161cd695f2cbf80128eff56e Mon Sep 17 00:00:00 2001 From: Miroslav Jonas Date: Mon, 24 Apr 2023 16:23:45 +0200 Subject: [PATCH] fix(repo): fix mismatched package manager e2e utils --- e2e/utils/command-utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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];