angular
This commit is contained in:
@@ -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'),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user