keycloakify 7.16.0-rc.0 → 7.16.0-rc.1

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.
@@ -243,7 +243,7 @@ function generateJavaStackFiles(params) {
243
243
  "destDirPath": (0, path_1.join)(keycloakThemeBuildingDirPath, "src", "main", "resources", "theme", exports.accountV1Keycloak, "account"),
244
244
  "transformSourceCode": function (_a) {
245
245
  var sourceCode = _a.sourceCode, filePath = _a.filePath;
246
- if ((0, path_1.basename)(filePath) !== "theme.properties") {
246
+ if ((0, path_1.basename)(filePath) === "theme.properties") {
247
247
  sourceCode = Buffer.from(sourceCode.toString("utf8").replace("parent=base", "parent=".concat(accountV1)), "utf8");
248
248
  sourceCode = Buffer.from(sourceCode.toString("utf8").replace("import=common/keycloak", "import=common/".concat(exports.accountV1Keycloak)), "utf8");
249
249
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keycloakify",
3
- "version": "7.16.0-rc.0",
3
+ "version": "7.16.0-rc.1",
4
4
  "description": "Create Keycloak themes using React",
5
5
  "repository": {
6
6
  "type": "git",
@@ -184,7 +184,7 @@ export async function generateJavaStackFiles(params: {
184
184
  "srcDirPath": pathJoin(builtinKeycloakThemeTmpDirPath, "keycloak", "account"),
185
185
  "destDirPath": pathJoin(keycloakThemeBuildingDirPath, "src", "main", "resources", "theme", accountV1Keycloak, "account"),
186
186
  "transformSourceCode": ({ sourceCode, filePath }) => {
187
- if (pathBasename(filePath) !== "theme.properties") {
187
+ if (pathBasename(filePath) === "theme.properties") {
188
188
  sourceCode = Buffer.from(sourceCode.toString("utf8").replace("parent=base", `parent=${accountV1}`), "utf8");
189
189
  sourceCode = Buffer.from(
190
190
  sourceCode.toString("utf8").replace("import=common/keycloak", `import=common/${accountV1Keycloak}`),