workflow builder has template LOD output options

This commit is contained in:
Brian Madison
2025-12-02 22:36:44 -06:00
parent 1e6fc4ba14
commit 0b3964902a
21 changed files with 565 additions and 27 deletions

View File

@@ -536,6 +536,11 @@ class BaseIdeSetup {
if (typeof content === 'string' && content.includes('{bmad_folder}')) {
content = content.replaceAll('{bmad_folder}', this.bmadFolderName);
}
// Replace escape sequence {*bmad_folder*} with literal {bmad_folder}
if (typeof content === 'string' && content.includes('{*bmad_folder*}')) {
content = content.replaceAll('{*bmad_folder*}', '{bmad_folder}');
}
await this.ensureDir(path.dirname(filePath));
await fs.writeFile(filePath, content, 'utf8');
}
@@ -563,6 +568,11 @@ class BaseIdeSetup {
content = content.replaceAll('{bmad_folder}', this.bmadFolderName);
}
// Replace escape sequence {*bmad_folder*} with literal {bmad_folder}
if (content.includes('{*bmad_folder*}')) {
content = content.replaceAll('{*bmad_folder*}', '{bmad_folder}');
}
// Write to dest with replaced content
await fs.writeFile(dest, content, 'utf8');
} catch {