Fix extractlayer and contributors script

This commit is contained in:
Robin van der Linde 2023-02-01 11:57:26 +01:00 committed by Pieter Vander Vennet
parent d30ed22673
commit 890980d534
2 changed files with 18 additions and 5 deletions

View file

@ -15,7 +15,7 @@ function main(args: string[]) {
const layerId = args[1]
const themePath = "./assets/themes/" + themeId + "/" + themeId + ".json"
const contents = <LayoutConfigJson>JSON.parse(readFileSync(themePath, "UTF-8"))
const contents = <LayoutConfigJson>JSON.parse(readFileSync(themePath, { encoding: "utf8" }))
const layers = <LayerConfigJson[]>contents.layers.filter((l) => {
if (typeof l === "string") {
return false