From 4ece3f828e833d57b57e6ff587e2cb6d5435b095 Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Tue, 23 Jan 2024 16:38:08 -0800 Subject: [PATCH] fix(cli): Appease TypeScript --- packages/cli/src/run.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/run.js b/packages/cli/src/run.js index 8a0f1641a0..c1bcd906b9 100644 --- a/packages/cli/src/run.js +++ b/packages/cli/src/run.js @@ -59,7 +59,7 @@ export const run = async ({ args.unshift(filePath); } - const importUrl = url.pathToFileURL(importPath); + const importUrl = url.pathToFileURL(importPath).href; const namespace = await import(importUrl); const result = await namespace.main(powersP, ...args); if (result !== undefined) {