mirror of
https://github.com/smogon/sprites.git
synced 2026-07-18 16:31:33 -05:00
sheet: import with file:/// prefix for Windows
This commit is contained in:
parent
6dd5d94cb0
commit
c3681ef28e
|
|
@ -12,7 +12,8 @@ if (!sheetjs || !dest) {
|
|||
throw new Error(`node tools/sheet <file.sheet.js> <dest>`);
|
||||
}
|
||||
|
||||
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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user