From 35a84a6f142531aa9966d64145c2db444504ae46 Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Wed, 1 Nov 2023 17:44:32 -0700 Subject: [PATCH] Really fix it --- packages/history/scripts/generateFull.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/history/scripts/generateFull.ts b/packages/history/scripts/generateFull.ts index 8e2d26f..e123c7b 100644 --- a/packages/history/scripts/generateFull.ts +++ b/packages/history/scripts/generateFull.ts @@ -48,7 +48,7 @@ const dates = Array.from( let datesModified = false; let fullModified = false; const npmHighImpactVersion = JSON.parse( - await readFile(path.resolve(path.dirname(import.meta.resolve("npm-high-impact")), "./package.json"), "utf8"), + await readFile(new URL("package.json", import.meta.resolve("npm-high-impact")), "utf8"), ).version; const outJsonFileName = new URL("../data/out.json", import.meta.url); try {