keycloakify 11.8.1 → 11.8.2

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/712.index.js CHANGED
@@ -1254,13 +1254,13 @@ async function generateResources(params) {
1254
1254
  break copy_main_theme_to_theme_variant_theme;
1255
1255
  }
1256
1256
  (0,transformCodebase/* transformCodebase */.N)({
1257
- srcDirPath: (0,external_path_.join)(resourcesDirPath, "theme", themeName),
1258
- destDirPath: (0,external_path_.join)(resourcesDirPath, "theme", themeVariantName),
1257
+ srcDirPath: (0,external_path_.join)(resourcesDirPath, "theme", themeName, themeType),
1258
+ destDirPath: (0,external_path_.join)(resourcesDirPath, "theme", themeVariantName, themeType),
1259
1259
  transformSourceCode: isNative
1260
1260
  ? undefined
1261
1261
  : ({ fileRelativePath, sourceCode }) => {
1262
1262
  if ((0,external_path_.extname)(fileRelativePath) === ".ftl" &&
1263
- fileRelativePath.split(external_path_.sep).length === 2) {
1263
+ fileRelativePath.split(external_path_.sep).length === 1) {
1264
1264
  const modifiedSourceCode = Buffer.from(Buffer.from(sourceCode)
1265
1265
  .toString("utf-8")
1266
1266
  .replace(`"themeName": "${themeName}"`, `"themeName": "${themeVariantName}"`), "utf8");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keycloakify",
3
- "version": "11.8.1",
3
+ "version": "11.8.2",
4
4
  "description": "Framework to create custom Keycloak UIs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -681,14 +681,19 @@ export async function generateResources(params: {
681
681
  }
682
682
 
683
683
  transformCodebase({
684
- srcDirPath: pathJoin(resourcesDirPath, "theme", themeName),
685
- destDirPath: pathJoin(resourcesDirPath, "theme", themeVariantName),
684
+ srcDirPath: pathJoin(resourcesDirPath, "theme", themeName, themeType),
685
+ destDirPath: pathJoin(
686
+ resourcesDirPath,
687
+ "theme",
688
+ themeVariantName,
689
+ themeType
690
+ ),
686
691
  transformSourceCode: isNative
687
692
  ? undefined
688
693
  : ({ fileRelativePath, sourceCode }) => {
689
694
  if (
690
695
  pathExtname(fileRelativePath) === ".ftl" &&
691
- fileRelativePath.split(pathSep).length === 2
696
+ fileRelativePath.split(pathSep).length === 1
692
697
  ) {
693
698
  const modifiedSourceCode = Buffer.from(
694
699
  Buffer.from(sourceCode)