@keycloakify/angular-email 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/build.mjs +2 -2
- package/package.json +1 -1
package/bin/build.mjs
CHANGED
|
@@ -91,10 +91,10 @@ const build = async (emailFilesPath, outdir = 'dist/emails') => {
|
|
|
91
91
|
return Object.assign(Object.assign({}, module), { file });
|
|
92
92
|
});
|
|
93
93
|
const modules = await Promise.all(promises);
|
|
94
|
-
|
|
94
|
+
for (const module of modules) {
|
|
95
95
|
const html = await module.renderToHtml();
|
|
96
96
|
await writeFile(`${outdir}/${basename(module.file).split('.')[0]}.html`, html);
|
|
97
|
-
}
|
|
97
|
+
}
|
|
98
98
|
await rm(tmp, { recursive: true, force: true });
|
|
99
99
|
console.log('\x1b[36m%s\x1b[0m', `build complete!`);
|
|
100
100
|
exit(0);
|