forked from MapComplete/MapComplete
Fix: attempt to fix build
This commit is contained in:
parent
f9b1e9b2de
commit
0e760b908c
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue