Skip to content

Commit 5bfc1be

Browse files
committed
Fix windows issue
1 parent df29d74 commit 5bfc1be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cli/cli.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import path from "node:path";
33
import fs from "node:fs/promises";
44
import process from "node:process";
5+
import url from "node:url";
56
import fg from "fast-glob";
67
import minimist from "minimist";
78
import { formatAndPrintResults } from "../formatter.js";
@@ -110,7 +111,7 @@ async function runCli(): Promise<number> {
110111
}
111112

112113
const pool = workerpool.pool(
113-
new URL("./worker.js", import.meta.url).pathname,
114+
url.fileURLToPath(new URL("./worker.js", import.meta.url)),
114115
);
115116

116117
const results: RunLinterSuccess[] = await Promise.all(

0 commit comments

Comments
 (0)