This commit is contained in:
Bastian Wagner
2026-07-17 14:34:44 +02:00
parent 357642ad22
commit d30d9cfdde
15 changed files with 569 additions and 152 deletions

View File

@@ -1,9 +1,6 @@
const { copyFileSync, existsSync, mkdirSync, readdirSync, statSync } = require('node:fs');
const { join } = require('node:path');
const source = join(__dirname, '..', 'src', 'mail', 'templates');
const target = join(__dirname, '..', 'dist', 'mail', 'templates');
function copyDirectory(from, to) {
if (!existsSync(from)) {
return;
@@ -21,4 +18,9 @@ function copyDirectory(from, to) {
}
}
copyDirectory(source, target);
for (const feature of ['mail', 'oidc']) {
copyDirectory(
join(__dirname, '..', 'src', feature, 'templates'),
join(__dirname, '..', 'dist', feature, 'templates'),
);
}