Update initialize-email-theme script

This commit is contained in:
garronej 2023-03-21 01:50:21 +01:00
parent fd7760d9ed
commit ec479c7e91

View File

@ -34,7 +34,15 @@ import { getLogger } from "./tools/logger";
"destDirPath": keycloakThemeEmailDirPath
});
logger.log(`${pathRelative(process.cwd(), keycloakThemeEmailDirPath)} ready to be customized`);
{
const themePropertyFilePath = pathJoin(keycloakThemeEmailDirPath, "theme.properties");
fs.writeFileSync(themePropertyFilePath, Buffer.from(`parent=base\n${fs.readFileSync(themePropertyFilePath).toString("utf8")}`, "utf8"));
}
logger.log(
`${pathRelative(process.cwd(), keycloakThemeEmailDirPath)} ready to be customized, feel free to remove every file you do not customize`
);
fs.rmSync(builtinKeycloakThemeTmpDirPath, { "recursive": true, "force": true });
})();