From c3681ef28e6a4429ccb46f7b7c2f0ee8927df988 Mon Sep 17 00:00:00 2001 From: Christopher Monsanto Date: Tue, 15 Sep 2020 00:15:03 -0400 Subject: [PATCH] sheet: import with file:/// prefix for Windows --- tools/sheet/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/sheet/index.ts b/tools/sheet/index.ts index b3773efa..90c4d0b9 100644 --- a/tools/sheet/index.ts +++ b/tools/sheet/index.ts @@ -12,7 +12,8 @@ if (!sheetjs || !dest) { throw new Error(`node tools/sheet `); } -const {default: sheet} = await import(path.join(process.cwd(), sheetjs)); +// Must have file:/// for Windows +const {default: sheet} = await import(path.join("file:///", process.cwd(), sheetjs)); for (let i = 0; i < sheet.entries.length; i++) { if (sheet.entries[i] === undefined)