keycloakify 11.9.13 → 11.9.15

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/README.md CHANGED
@@ -131,6 +131,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
131
131
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/wnmzzzz"><img src="https://avatars.githubusercontent.com/u/117174301?v=4?s=100" width="100px;" alt="wnmzzzz"/><br /><sub><b>wnmzzzz</b></sub></a><br /><a href="https://github.com/keycloakify/keycloakify/commits?author=wnmzzzz" title="Tests">⚠️</a></td>
132
132
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/DerIch27"><img src="https://avatars.githubusercontent.com/u/62176944?v=4?s=100" width="100px;" alt="Lars Gottfriedsen"/><br /><sub><b>Lars Gottfriedsen</b></sub></a><br /><a href="https://github.com/keycloakify/keycloakify/commits?author=DerIch27" title="Code">💻</a></td>
133
133
  <td align="center" valign="top" width="14.28%"><a href="http://www.linkedin.com/in/antonioacg/"><img src="https://avatars.githubusercontent.com/u/8991621?v=4?s=100" width="100px;" alt="Antonio Casagrande"/><br /><sub><b>Antonio Casagrande</b></sub></a><br /><a href="https://github.com/keycloakify/keycloakify/commits?author=antonioacg" title="Code">💻</a></td>
134
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/emouty"><img src="https://avatars.githubusercontent.com/u/16755668?v=4?s=100" width="100px;" alt="emouty"/><br /><sub><b>emouty</b></sub></a><br /><a href="https://github.com/keycloakify/keycloakify/commits?author=emouty" title="Code">💻</a></td>
134
135
  </tr>
135
136
  </tbody>
136
137
  </table>
package/bin/511.index.js CHANGED
@@ -1628,7 +1628,11 @@ async function buildJar(params) {
1628
1628
  await promises_.writeFile((0,external_path_.join)(keycloakifyBuildCacheDirPath, "pom.xml"), Buffer.from(pomFileCode, "utf8"));
1629
1629
  }
1630
1630
  {
1631
- const mvnBuildCmd = `mvn -B -ntp clean install -Dmaven.repo.local="${(0,external_path_.join)(keycloakifyBuildCacheDirPath, ".m2")}"`;
1631
+ const useDefaultMavenRepo = process.env.KEYCLOAKIFY_USE_DEFAULT_MAVEN_REPO === "true";
1632
+ const mavenLocalRepoArg = useDefaultMavenRepo
1633
+ ? ""
1634
+ : `-Dmaven.repo.local="${(0,external_path_.join)(buildContext.cacheDirPath, ".m2")}"`;
1635
+ const mvnBuildCmd = `mvn -B -ntp clean install ${mavenLocalRepoArg}`.trim();
1632
1636
  await new Promise((resolve, reject) => external_child_process_default().exec(mvnBuildCmd, {
1633
1637
  cwd: keycloakifyBuildCacheDirPath,
1634
1638
  env: Object.assign(Object.assign({}, process.env), { MAVEN_OPTS: [process.env.MAVEN_OPTS, "-Xmx4096m"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keycloakify",
3
- "version": "11.9.13",
3
+ "version": "11.9.15",
4
4
  "description": "Framework to create custom Keycloak UIs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -3,13 +3,13 @@ import type {
3
3
  KeycloakAccountV1Version,
4
4
  KeycloakThemeAdditionalInfoExtensionVersion
5
5
  } from "./extensionVersions";
6
- import { join as pathJoin, dirname as pathDirname } from "path";
6
+ import { dirname as pathDirname, join as pathJoin } from "path";
7
7
  import { transformCodebase } from "../../tools/transformCodebase";
8
8
  import type { BuildContext } from "../../shared/buildContext";
9
9
  import * as fs from "fs/promises";
10
10
  import {
11
- generatePom,
12
- BuildContextLike as BuildContextLike_generatePom
11
+ BuildContextLike as BuildContextLike_generatePom,
12
+ generatePom
13
13
  } from "./generatePom";
14
14
  import { readFileSync } from "fs";
15
15
  import { isInside } from "../../tools/isInside";
@@ -222,7 +222,14 @@ export async function buildJar(params: {
222
222
  }
223
223
 
224
224
  {
225
- const mvnBuildCmd = `mvn -B -ntp clean install -Dmaven.repo.local="${pathJoin(keycloakifyBuildCacheDirPath, ".m2")}"`;
225
+ const useDefaultMavenRepo =
226
+ process.env.KEYCLOAKIFY_USE_DEFAULT_MAVEN_REPO === "true";
227
+
228
+ const mavenLocalRepoArg = useDefaultMavenRepo
229
+ ? ""
230
+ : `-Dmaven.repo.local="${pathJoin(buildContext.cacheDirPath, ".m2")}"`;
231
+
232
+ const mvnBuildCmd = `mvn -B -ntp clean install ${mavenLocalRepoArg}`.trim();
226
233
 
227
234
  await new Promise<void>((resolve, reject) =>
228
235
  child_process.exec(
@@ -177,7 +177,7 @@ function decodeHtmlEntities(htmlStr){
177
177
  <#break>
178
178
  </#if>
179
179
 
180
- <#local abort = "ABORT: should not be exposed">
180
+ <#local abort = "ABORT:Should not be exposed ">
181
181
 
182
182
  <#if stringified?starts_with("java.util.stream.")>
183
183
  <#return abort>
@@ -232,7 +232,7 @@ function decodeHtmlEntities(htmlStr){
232
232
 
233
233
  </#list>
234
234
 
235
- <#local outSeq += ["/* class: " + stringified?replace("@\\s*[0-9a-fA-F]+$", "") + "*/"]>
235
+ <#local outSeq += ["/* class: " + stringified?replace("@\\s*[0-9a-fA-F]+$", "", "r") + " */"]>
236
236
 
237
237
  </#list>
238
238