fix(deps): run freshness check from escaped paths
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user