From 39e2e37a260d32cd139f62ba70dd45d263044b9d Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 8 Feb 2024 02:25:34 +0300 Subject: [PATCH] ci-fix-5 --- templates/compile.cjs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/compile.cjs b/templates/compile.cjs index b13b9380..b1f3cc7f 100644 --- a/templates/compile.cjs +++ b/templates/compile.cjs @@ -8,6 +8,11 @@ const componentsDir = path.join(currentDir, 'templates', 'entries'); const components = ['email_confirmation', 'first_publication', 'new_comment', 'password_reset']; +// Ensure the output directory exists, if not create it +if (!fs.existsSync(outputDir)) { + fs.mkdirSync(outputDir, { recursive: true }); +} + try { // Read the template file const template = fs.readFileSync(templatePath, 'utf-8');