From ce7b3d47d90746021e2182c2de51b01904081bf1 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Mon, 18 Jul 2022 16:03:56 +0200 Subject: [PATCH] Attempt to fix the build --- scripts/generateTranslations.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/generateTranslations.ts b/scripts/generateTranslations.ts index 35043cc60..50fce6e6b 100644 --- a/scripts/generateTranslations.ts +++ b/scripts/generateTranslations.ts @@ -1,5 +1,5 @@ import * as fs from "fs"; -import {readFileSync, writeFileSync} from "fs"; +import {existsSync, mkdirSync, readFileSync, writeFileSync} from "fs"; import {Utils} from "../Utils"; import ScriptUtils from "./ScriptUtils"; @@ -591,7 +591,9 @@ function mergeThemeTranslations() { } } - +if(!existsSync("./langs/themes")){ + mkdirSync("./langs/themes") +} const themeOverwritesWeblate = process.argv[2] === "--ignore-weblate" const questionsPath = "assets/tagRenderings/questions.json" const questionsParsed = JSON.parse(readFileSync(questionsPath, 'utf8'))