fix(deps): run freshness check from escaped paths

This commit is contained in:
morluto
2026-07-16 19:51:25 +08:00
parent f23f52903c
commit 8a1c128b67
2 changed files with 19 additions and 2 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
import { readFile } from "node:fs/promises";
import { resolve } from "node:path";
import { fileURLToPath } from "node:url";
const REMEDIATION = "Run `npm ci`, then retry.";
@@ -57,4 +58,4 @@ const main = async () => {
}
};
if (process.argv[1] === new URL(import.meta.url).pathname) await main();
if (process.argv[1] === fileURLToPath(import.meta.url)) await main();