Fix: attempt to fix build

This commit is contained in:
Pieter Vander Vennet 2023-07-15 18:24:39 +02:00
parent f9b1e9b2de
commit 0e760b908c

View file

@ -5,7 +5,7 @@ function genImages(dryrun = false) {
const dir = fs.readdirSync("./assets/svg") const dir = fs.readdirSync("./assets/svg")
let module = 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[] = [] const allNames: string[] = []
for (const path of dir) { for (const path of dir) {
if (path.endsWith("license_info.json")) { if (path.endsWith("license_info.json")) {
@ -45,7 +45,7 @@ function genImages(dryrun = false) {
} }
module += `public static All = {${allNames.join(",")}};` module += `public static All = {${allNames.join(",")}};`
module += "}\n" module += "}\n"
fs.writeFileSync("Svg.ts", module) fs.writeFileSync("src/Svg.ts", module)
console.log("Done") console.log("Done")
} }