fix: use corresponding bin entry when reporting cli commands to the user

This commit is contained in:
Max Schmitt 2024-03-04 08:58:59 +01:00
parent d5d4f591f3
commit 9587adc1f3

View file

@ -1040,7 +1040,8 @@ export function buildPlaywrightCLICommand(sdkLanguage: string, parameters: strin
return `pwsh bin/Debug/netX/playwright.ps1 ${parameters}`;
default: {
const packageManagerCommand = getPackageManagerExecCommand();
return `${packageManagerCommand} playwright ${parameters}`;
const binEntry = process.argv[1].endsWith(path.sep + 'playwright-core') ? 'playwright-core' : 'playwright';
return `${packageManagerCommand} ${binEntry} ${parameters}`;
}
}
}