From 0e760b908c4955300b9d329f6d7eb9fb475713d3 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sat, 15 Jul 2023 18:24:39 +0200 Subject: [PATCH] Fix: attempt to fix build --- scripts/generateIncludedImages.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/generateIncludedImages.ts b/scripts/generateIncludedImages.ts index fbe720a76..d54d60c11 100644 --- a/scripts/generateIncludedImages.ts +++ b/scripts/generateIncludedImages.ts @@ -5,7 +5,7 @@ function genImages(dryrun = false) { const dir = fs.readdirSync("./assets/svg") let module = - 'import Img from "./src/UI/Base/Img";\nimport {FixedUiElement} from "./src/UI/Base/FixedUiElement";\n\nexport default class Svg {\n\n\n' + 'import Img from "./UI/Base/Img";\nimport {FixedUiElement} from "./UI/Base/FixedUiElement";\n\nexport default class Svg {\n\n\n' const allNames: string[] = [] for (const path of dir) { if (path.endsWith("license_info.json")) { @@ -45,7 +45,7 @@ function genImages(dryrun = false) { } module += `public static All = {${allNames.join(",")}};` module += "}\n" - fs.writeFileSync("Svg.ts", module) + fs.writeFileSync("src/Svg.ts", module) console.log("Done") }