From 7dc689eee7ea72c392af28bbd93b558f4d8c7aa0 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Sun, 4 May 2025 15:56:59 +0200 Subject: [PATCH] fix: installation tool on Windows (#345) --- src/tools/install.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/install.ts b/src/tools/install.ts index 594ff61..f9b16ad 100644 --- a/src/tools/install.ts +++ b/src/tools/install.ts @@ -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', });