Fix boolean logic

This commit is contained in:
garronej 2023-08-11 00:47:37 +02:00
parent 721d654cb8
commit 2a8d080681

View File

@ -184,7 +184,7 @@ export async function generateJavaStackFiles(params: {
"srcDirPath": pathJoin(builtinKeycloakThemeTmpDirPath, "keycloak", "account"), "srcDirPath": pathJoin(builtinKeycloakThemeTmpDirPath, "keycloak", "account"),
"destDirPath": pathJoin(keycloakThemeBuildingDirPath, "src", "main", "resources", "theme", accountV1Keycloak, "account"), "destDirPath": pathJoin(keycloakThemeBuildingDirPath, "src", "main", "resources", "theme", accountV1Keycloak, "account"),
"transformSourceCode": ({ sourceCode, filePath }) => { "transformSourceCode": ({ sourceCode, filePath }) => {
if (pathBasename(filePath) !== "theme.properties") { if (pathBasename(filePath) === "theme.properties") {
sourceCode = Buffer.from(sourceCode.toString("utf8").replace("parent=base", `parent=${accountV1}`), "utf8"); sourceCode = Buffer.from(sourceCode.toString("utf8").replace("parent=base", `parent=${accountV1}`), "utf8");
sourceCode = Buffer.from( sourceCode = Buffer.from(
sourceCode.toString("utf8").replace("import=common/keycloak", `import=common/${accountV1Keycloak}`), sourceCode.toString("utf8").replace("import=common/keycloak", `import=common/${accountV1Keycloak}`),