fix: installation tool on Windows (#345)

This commit is contained in:
Max Schmitt
2025-05-04 15:56:59 +02:00
committed by GitHub
parent 5df011ad4b
commit 7dc689eee7

View File

@@ -33,7 +33,7 @@ const install = defineTool({
handle: async context => {
const channel = context.config.browser?.launchOptions?.channel ?? context.config.browser?.launchOptions.browserName ?? 'chrome';
const cliUrl = import.meta.resolve('playwright/package.json');
const cliPath = fileURLToPath(path.join(cliUrl, '..', 'cli.js'));
const cliPath = path.join(fileURLToPath(cliUrl), '..', 'cli.js');
const child = fork(cliPath, ['install', channel], {
stdio: 'pipe',
});