fix: use corresponding bin entry when reporting cli commands to the user
This commit is contained in:
parent
d5d4f591f3
commit
9587adc1f3
|
|
@ -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}`;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue