ci-fix-5
All checks were successful
deploy / test (push) Has been skipped
deploy / Update templates on Mailgun (push) Successful in 18s

This commit is contained in:
Untone 2024-02-08 02:25:34 +03:00
parent 5e2cec5b5d
commit 39e2e37a26

View File

@ -8,6 +8,11 @@ const componentsDir = path.join(currentDir, 'templates', 'entries');
const components = ['email_confirmation', 'first_publication', 'new_comment', 'password_reset']; 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 { try {
// Read the template file // Read the template file
const template = fs.readFileSync(templatePath, 'utf-8'); const template = fs.readFileSync(templatePath, 'utf-8');