From a971d9c021d24d3c2229c59c7f1159d48784dbee Mon Sep 17 00:00:00 2001 From: Thomas Lynch Date: Mon, 11 Sep 2023 22:31:53 +1000 Subject: [PATCH] Add recursive folder creation to gulpfile langs() function because it goes inside the scrints dest folder (maybe should add a function that creates these in a loop buuuuut whatever) close #536 --- gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index e2a2709d..951200f3 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -462,7 +462,7 @@ async function custompages() { async function langs() { const i18n = require(__dirname+'/lib/locale/locale.js'); await del([ 'static/js/lang/' ]); - fs.mkdirSync(`${paths.scripts.dest}lang/`); + fs.mkdirSync(`${paths.scripts.dest}lang/`, { recursive: true }); const feStrings = require(__dirname+'/tools/festrings.json'); Object.entries(i18n.getCatalog()) .forEach(entry => {