ci-fix-5
This commit is contained in:
parent
5e2cec5b5d
commit
39e2e37a26
|
@ -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');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user