From 3374d70572c9d5b66c293807295feb8e98a26a71 Mon Sep 17 00:00:00 2001 From: Thomas Lynch Date: Thu, 19 Jan 2023 21:30:55 +1100 Subject: [PATCH] fix gulpfile race condition on deleting static lang folder --- gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 7d6d0e27..145852ff 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -466,7 +466,7 @@ const extraLocals = ${JSON.stringify({ meta: config.get.meta, reverseImageLinksU `; fs.writeFileSync('gulp/res/js/locals.js', locals); - del([ 'static/js/lang/' ]), + await del([ 'static/js/lang/' ]); fs.mkdirSync(`${paths.scripts.dest}lang/`); Object.entries(i18n.getCatalog()) .forEach(entry => {