keycloakify 11.8.38 → 11.8.39

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/main.js CHANGED
@@ -206,6 +206,12 @@ function getBuildContext(params) {
206
206
  }
207
207
  }
208
208
  }
209
+ for (const themeType of [...constants/* THEME_TYPES */.Jh, "email"]) {
210
+ if (!external_fs_.existsSync((0,external_path_.join)(srcDirPath, themeType))) {
211
+ continue;
212
+ }
213
+ return { themeSrcDirPath: srcDirPath };
214
+ }
209
215
  console.log(source_default().red([
210
216
  `Can't locate your Keycloak theme source directory in .${external_path_.sep}${(0,external_path_.relative)(process.cwd(), srcDirPath)}`,
211
217
  `Make sure to either use the Keycloakify CLI in the root of your Keycloakify project or use the --project CLI option`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keycloakify",
3
- "version": "11.8.38",
3
+ "version": "11.8.39",
4
4
  "description": "Framework to create custom Keycloak UIs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,7 +13,8 @@ import { assert, type Equals, is } from "tsafe/assert";
13
13
  import * as child_process from "child_process";
14
14
  import {
15
15
  VITE_PLUGIN_SUB_SCRIPTS_ENV_NAMES,
16
- BUILD_FOR_KEYCLOAK_MAJOR_VERSION_ENV_NAME
16
+ BUILD_FOR_KEYCLOAK_MAJOR_VERSION_ENV_NAME,
17
+ THEME_TYPES
17
18
  } from "./constants";
18
19
  import type { KeycloakVersionRange } from "./KeycloakVersionRange";
19
20
  import { exclude } from "tsafe";
@@ -182,6 +183,13 @@ export function getBuildContext(params: {
182
183
  }
183
184
  }
184
185
 
186
+ for (const themeType of [...THEME_TYPES, "email"]) {
187
+ if (!fs.existsSync(pathJoin(srcDirPath, themeType))) {
188
+ continue;
189
+ }
190
+ return { themeSrcDirPath: srcDirPath };
191
+ }
192
+
185
193
  console.log(
186
194
  chalk.red(
187
195
  [
@@ -420,6 +420,12 @@ function getBuildContext(params) {
420
420
  }
421
421
  }
422
422
  }
423
+ for (const themeType of [...constants.THEME_TYPES, "email"]) {
424
+ if (!external_fs_.existsSync((0,external_path_.join)(srcDirPath, themeType))) {
425
+ continue;
426
+ }
427
+ return { themeSrcDirPath: srcDirPath };
428
+ }
423
429
  console.log(source_default().red([
424
430
  `Can't locate your Keycloak theme source directory in .${external_path_.sep}${(0,external_path_.relative)(process.cwd(), srcDirPath)}`,
425
431
  `Make sure to either use the Keycloakify CLI in the root of your Keycloakify project or use the --project CLI option`,