mirror of
https://github.com/smogon/sprites.git
synced 2026-09-26 19:27:53 -05:00
sheet: import with file:/// prefix for Windows
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user