Fix previous release

This commit is contained in:
garronej
2023-03-24 06:25:25 +01:00
parent caea64cef3
commit 92c1486f6a

View File

@ -38,7 +38,15 @@ export async function main() {
const { doBundlesEmailTemplate } = await generateKeycloakThemeResources({
keycloakThemeBuildingDirPath,
"emailThemeSrcDirPath": getEmailThemeSrcDirPath().emailThemeSrcDirPath,
"emailThemeSrcDirPath": (() => {
const { emailThemeSrcDirPath } = getEmailThemeSrcDirPath();
if (emailThemeSrcDirPath === undefined || !fs.existsSync(emailThemeSrcDirPath)) {
return;
}
return emailThemeSrcDirPath;
})(),
"reactAppBuildDirPath": pathJoin(reactProjectDirPath, "build"),
buildOptions,
//We have to leave it at that otherwise we break our default theme.