keycloakify 10.0.0-rc.109 → 10.0.0-rc.110

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/440.index.js CHANGED
@@ -1147,9 +1147,9 @@ var isInside = __webpack_require__(90665);
1147
1147
  (0,assert.assert)();
1148
1148
  async function buildJar(params) {
1149
1149
  const { jarFileBasename, keycloakAccountV1Version, keycloakThemeAdditionalInfoExtensionVersion, resourcesDirPath, doesImplementAccountV1Theme, buildContext } = params;
1150
- const keycloakifyBuildTmpDirPath = (0,external_path_.join)(buildContext.cacheDirPath, jarFileBasename.replace(".jar", ""));
1151
- (0,fs_rmSync/* rmSync */.a)(keycloakifyBuildTmpDirPath, { recursive: true, force: true });
1152
- const tmpResourcesDirPath = (0,external_path_.join)(keycloakifyBuildTmpDirPath, "src", "main", "resources");
1150
+ const keycloakifyBuildCacheDirPath = (0,external_path_.join)(buildContext.cacheDirPath, "maven", jarFileBasename.replace(".jar", ""));
1151
+ const tmpResourcesDirPath = (0,external_path_.join)(keycloakifyBuildCacheDirPath, "src", "main", "resources");
1152
+ (0,fs_rmSync/* rmSync */.a)(tmpResourcesDirPath, { recursive: true, force: true });
1153
1153
  (0,transformCodebase/* transformCodebase */.N)({
1154
1154
  srcDirPath: resourcesDirPath,
1155
1155
  destDirPath: tmpResourcesDirPath,
@@ -1213,7 +1213,7 @@ async function buildJar(params) {
1213
1213
  break route_legacy_pages;
1214
1214
  }
1215
1215
  ["register.ftl", "login-update-profile.ftl"].forEach(pageId => buildContext.themeNames.map(themeName => {
1216
- const ftlFilePath = (0,external_path_.join)(keycloakifyBuildTmpDirPath, "src", "main", "resources", "theme", themeName, "login", pageId);
1216
+ const ftlFilePath = (0,external_path_.join)(tmpResourcesDirPath, "theme", themeName, "login", pageId);
1217
1217
  const ftlFileContent = (0,external_fs_.readFileSync)(ftlFilePath).toString("utf8");
1218
1218
  const realPageId = (() => {
1219
1219
  switch (pageId) {
@@ -1235,9 +1235,9 @@ async function buildJar(params) {
1235
1235
  keycloakAccountV1Version,
1236
1236
  keycloakThemeAdditionalInfoExtensionVersion
1237
1237
  });
1238
- await promises_.writeFile((0,external_path_.join)(keycloakifyBuildTmpDirPath, "pom.xml"), Buffer.from(pomFileCode, "utf8"));
1238
+ await promises_.writeFile((0,external_path_.join)(keycloakifyBuildCacheDirPath, "pom.xml"), Buffer.from(pomFileCode, "utf8"));
1239
1239
  }
1240
- await new Promise((resolve, reject) => external_child_process_default().exec(`mvn clean install -Dmaven.repo.local="${(0,external_path_.join)(keycloakifyBuildTmpDirPath, ".m2")}"`, { cwd: keycloakifyBuildTmpDirPath }, error => {
1240
+ await new Promise((resolve, reject) => external_child_process_default().exec(`mvn install -Dmaven.repo.local="${(0,external_path_.join)(keycloakifyBuildCacheDirPath, ".m2")}"`, { cwd: keycloakifyBuildCacheDirPath }, error => {
1241
1241
  if (error !== null) {
1242
1242
  console.error(`Build jar failed: ${JSON.stringify({
1243
1243
  jarFileBasename,
@@ -1249,8 +1249,7 @@ async function buildJar(params) {
1249
1249
  }
1250
1250
  resolve();
1251
1251
  }));
1252
- await promises_.rename((0,external_path_.join)(keycloakifyBuildTmpDirPath, "target", `${buildContext.artifactId}-${buildContext.themeVersion}.jar`), (0,external_path_.join)(buildContext.keycloakifyBuildDirPath, jarFileBasename));
1253
- (0,fs_rmSync/* rmSync */.a)(keycloakifyBuildTmpDirPath, { recursive: true });
1252
+ await promises_.rename((0,external_path_.join)(keycloakifyBuildCacheDirPath, "target", `${buildContext.artifactId}-${buildContext.themeVersion}.jar`), (0,external_path_.join)(buildContext.keycloakifyBuildDirPath, jarFileBasename));
1254
1253
  }
1255
1254
  //# sourceMappingURL=buildJar.js.map
1256
1255
  ;// CONCATENATED MODULE: ./dist/bin/keycloakify/buildJars/buildJars.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keycloakify",
3
- "version": "10.0.0-rc.109",
3
+ "version": "10.0.0-rc.110",
4
4
  "description": "Create Keycloak themes using React",
5
5
  "repository": {
6
6
  "type": "git",
@@ -45,20 +45,21 @@ export async function buildJar(params: {
45
45
  buildContext
46
46
  } = params;
47
47
 
48
- const keycloakifyBuildTmpDirPath = pathJoin(
48
+ const keycloakifyBuildCacheDirPath = pathJoin(
49
49
  buildContext.cacheDirPath,
50
+ "maven",
50
51
  jarFileBasename.replace(".jar", "")
51
52
  );
52
53
 
53
- rmSync(keycloakifyBuildTmpDirPath, { recursive: true, force: true });
54
-
55
54
  const tmpResourcesDirPath = pathJoin(
56
- keycloakifyBuildTmpDirPath,
55
+ keycloakifyBuildCacheDirPath,
57
56
  "src",
58
57
  "main",
59
58
  "resources"
60
59
  );
61
60
 
61
+ rmSync(tmpResourcesDirPath, { recursive: true, force: true });
62
+
62
63
  transformCodebase({
63
64
  srcDirPath: resourcesDirPath,
64
65
  destDirPath: tmpResourcesDirPath,
@@ -155,10 +156,7 @@ export async function buildJar(params: {
155
156
  (["register.ftl", "login-update-profile.ftl"] as const).forEach(pageId =>
156
157
  buildContext.themeNames.map(themeName => {
157
158
  const ftlFilePath = pathJoin(
158
- keycloakifyBuildTmpDirPath,
159
- "src",
160
- "main",
161
- "resources",
159
+ tmpResourcesDirPath,
162
160
  "theme",
163
161
  themeName,
164
162
  "login",
@@ -200,15 +198,15 @@ export async function buildJar(params: {
200
198
  });
201
199
 
202
200
  await fs.writeFile(
203
- pathJoin(keycloakifyBuildTmpDirPath, "pom.xml"),
201
+ pathJoin(keycloakifyBuildCacheDirPath, "pom.xml"),
204
202
  Buffer.from(pomFileCode, "utf8")
205
203
  );
206
204
  }
207
205
 
208
206
  await new Promise<void>((resolve, reject) =>
209
207
  child_process.exec(
210
- `mvn clean install -Dmaven.repo.local="${pathJoin(keycloakifyBuildTmpDirPath, ".m2")}"`,
211
- { cwd: keycloakifyBuildTmpDirPath },
208
+ `mvn install -Dmaven.repo.local="${pathJoin(keycloakifyBuildCacheDirPath, ".m2")}"`,
209
+ { cwd: keycloakifyBuildCacheDirPath },
212
210
  error => {
213
211
  if (error !== null) {
214
212
  console.error(
@@ -233,12 +231,10 @@ export async function buildJar(params: {
233
231
 
234
232
  await fs.rename(
235
233
  pathJoin(
236
- keycloakifyBuildTmpDirPath,
234
+ keycloakifyBuildCacheDirPath,
237
235
  "target",
238
236
  `${buildContext.artifactId}-${buildContext.themeVersion}.jar`
239
237
  ),
240
238
  pathJoin(buildContext.keycloakifyBuildDirPath, jarFileBasename)
241
239
  );
242
-
243
- rmSync(keycloakifyBuildTmpDirPath, { recursive: true });
244
240
  }