keycloakify 11.8.0 → 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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
- exports.id = 664;
3
- exports.ids = [664];
2
+ exports.id = 502;
3
+ exports.ids = [502];
4
4
  exports.modules = {
5
5
 
6
6
  /***/ 80339:
@@ -183,29 +183,48 @@ function rmSync(dirPath, options) {
183
183
 
184
184
  /***/ }),
185
185
 
186
- /***/ 50030:
186
+ /***/ 63046:
187
187
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
188
188
 
189
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
190
- /* harmony export */ "c": () => (/* binding */ npmInstall)
191
- /* harmony export */ });
192
- /* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(57147);
193
- /* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_0__);
194
- /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71017);
195
- /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);
196
- /* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(32081);
197
- /* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(child_process__WEBPACK_IMPORTED_MODULE_2__);
198
- /* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(78818);
199
- /* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(chalk__WEBPACK_IMPORTED_MODULE_3__);
200
- /* harmony import */ var zod__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(52300);
201
- /* harmony import */ var tsafe_assert__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(29041);
202
- /* harmony import */ var tsafe_id__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(38469);
203
- /* harmony import */ var tsafe_objectKeys__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(23483);
204
- /* harmony import */ var _getAbsoluteAndInOsFormatPath__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(84794);
205
- /* harmony import */ var tsafe_exclude__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(83101);
206
- /* harmony import */ var _fs_rmSync__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(89693);
207
- /* harmony import */ var evt_tools_Deferred__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(50689);
208
- /* harmony import */ var evt_tools_Deferred__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(evt_tools_Deferred__WEBPACK_IMPORTED_MODULE_7__);
189
+
190
+ // EXPORTS
191
+ __webpack_require__.d(__webpack_exports__, {
192
+ "c": () => (/* binding */ npmInstall)
193
+ });
194
+
195
+ // EXTERNAL MODULE: external "fs"
196
+ var external_fs_ = __webpack_require__(57147);
197
+ // EXTERNAL MODULE: external "path"
198
+ var external_path_ = __webpack_require__(71017);
199
+ // EXTERNAL MODULE: external "child_process"
200
+ var external_child_process_ = __webpack_require__(32081);
201
+ // EXTERNAL MODULE: ./node_modules/chalk/source/index.js
202
+ var source = __webpack_require__(78818);
203
+ var source_default = /*#__PURE__*/__webpack_require__.n(source);
204
+ // EXTERNAL MODULE: ./node_modules/zod/lib/index.mjs
205
+ var lib = __webpack_require__(52300);
206
+ // EXTERNAL MODULE: ./node_modules/tsafe/esm/assert.mjs + 1 modules
207
+ var assert = __webpack_require__(29041);
208
+ // EXTERNAL MODULE: ./node_modules/tsafe/esm/id.mjs
209
+ var id = __webpack_require__(38469);
210
+ ;// CONCATENATED MODULE: ./node_modules/tsafe/esm/objectKeys.mjs
211
+ /** https://docs.tsafe.dev/objectKeys */
212
+ function objectKeys(o) {
213
+ return Object.keys(o);
214
+ }
215
+
216
+
217
+ //# sourceMappingURL=objectKeys.mjs.map
218
+
219
+ // EXTERNAL MODULE: ./dist/bin/tools/getAbsoluteAndInOsFormatPath.js
220
+ var getAbsoluteAndInOsFormatPath = __webpack_require__(84794);
221
+ // EXTERNAL MODULE: ./node_modules/tsafe/esm/exclude.mjs
222
+ var exclude = __webpack_require__(83101);
223
+ // EXTERNAL MODULE: ./dist/bin/tools/fs.rmSync.js
224
+ var fs_rmSync = __webpack_require__(89693);
225
+ // EXTERNAL MODULE: ./node_modules/evt/tools/Deferred.js
226
+ var Deferred = __webpack_require__(50689);
227
+ ;// CONCATENATED MODULE: ./dist/bin/tools/npmInstall.js
209
228
 
210
229
 
211
230
 
@@ -244,8 +263,8 @@ async function npmInstall(params) {
244
263
  }
245
264
  ];
246
265
  for (const packageManager of packageMangers) {
247
- if (fs__WEBPACK_IMPORTED_MODULE_0__.existsSync((0,path__WEBPACK_IMPORTED_MODULE_1__.join)(packageJsonDirPath, packageManager.lockFileBasename)) ||
248
- fs__WEBPACK_IMPORTED_MODULE_0__.existsSync((0,path__WEBPACK_IMPORTED_MODULE_1__.join)(process.cwd(), packageManager.lockFileBasename))) {
266
+ if (external_fs_.existsSync((0,external_path_.join)(packageJsonDirPath, packageManager.lockFileBasename)) ||
267
+ external_fs_.existsSync((0,external_path_.join)(process.cwd(), packageManager.lockFileBasename))) {
249
268
  return packageManager.binName;
250
269
  }
251
270
  }
@@ -260,7 +279,7 @@ async function npmInstall(params) {
260
279
  if (garronejLinkInfos === undefined) {
261
280
  break install_without_breaking_links;
262
281
  }
263
- console.log(chalk__WEBPACK_IMPORTED_MODULE_3___default().green("Installing in a way that won't break the links..."));
282
+ console.log(source_default().green("Installing in a way that won't break the links..."));
264
283
  await installWithoutBreakingLinks({
265
284
  packageJsonDirPath,
266
285
  garronejLinkInfos
@@ -274,13 +293,13 @@ async function npmInstall(params) {
274
293
  });
275
294
  }
276
295
  catch (_a) {
277
- console.log(chalk__WEBPACK_IMPORTED_MODULE_3___default().yellow(`\`${packageManagerBinName} install\` failed, continuing anyway...`));
296
+ console.log(source_default().yellow(`\`${packageManagerBinName} install\` failed, continuing anyway...`));
278
297
  }
279
298
  }
280
299
  async function runPackageManagerInstall(params) {
281
300
  const { packageManagerBinName, cwd } = params;
282
- const dCompleted = new evt_tools_Deferred__WEBPACK_IMPORTED_MODULE_7__.Deferred();
283
- const child = child_process__WEBPACK_IMPORTED_MODULE_2__.spawn(packageManagerBinName, ["install"], {
301
+ const dCompleted = new Deferred.Deferred();
302
+ const child = external_child_process_.spawn(packageManagerBinName, ["install"], {
284
303
  cwd,
285
304
  env: process.env,
286
305
  shell: true
@@ -303,8 +322,8 @@ async function runPackageManagerInstall(params) {
303
322
  }
304
323
  function getGarronejLinkInfos(params) {
305
324
  const { packageJsonDirPath } = params;
306
- const nodeModuleDirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(packageJsonDirPath, "node_modules");
307
- if (!fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(nodeModuleDirPath)) {
325
+ const nodeModuleDirPath = (0,external_path_.join)(packageJsonDirPath, "node_modules");
326
+ if (!external_fs_.existsSync(nodeModuleDirPath)) {
308
327
  return undefined;
309
328
  }
310
329
  const linkedModuleNames = [];
@@ -312,7 +331,7 @@ function getGarronejLinkInfos(params) {
312
331
  const getIsLinkedByGarronejScript = (path) => {
313
332
  let realPath;
314
333
  try {
315
- realPath = fs__WEBPACK_IMPORTED_MODULE_0__.readlinkSync(path);
334
+ realPath = external_fs_.readlinkSync(path);
316
335
  }
317
336
  catch (_a) {
318
337
  return false;
@@ -325,17 +344,17 @@ function getGarronejLinkInfos(params) {
325
344
  if (yarnHomeDirPath !== undefined) {
326
345
  break set_yarnHomeDirPath;
327
346
  }
328
- const [firstElement] = (0,_getAbsoluteAndInOsFormatPath__WEBPACK_IMPORTED_MODULE_5__/* .getAbsoluteAndInOsFormatPath */ .c)({
347
+ const [firstElement] = (0,getAbsoluteAndInOsFormatPath/* getAbsoluteAndInOsFormatPath */.c)({
329
348
  pathIsh: realPath,
330
- cwd: (0,path__WEBPACK_IMPORTED_MODULE_1__.dirname)(path)
349
+ cwd: (0,external_path_.dirname)(path)
331
350
  }).split(".yarn_home");
332
- yarnHomeDirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(firstElement, ".yarn_home");
351
+ yarnHomeDirPath = (0,external_path_.join)(firstElement, ".yarn_home");
333
352
  }
334
353
  return true;
335
354
  };
336
- for (const basename of fs__WEBPACK_IMPORTED_MODULE_0__.readdirSync(nodeModuleDirPath)) {
337
- const path = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(nodeModuleDirPath, basename);
338
- if (fs__WEBPACK_IMPORTED_MODULE_0__.lstatSync(path).isSymbolicLink()) {
355
+ for (const basename of external_fs_.readdirSync(nodeModuleDirPath)) {
356
+ const path = (0,external_path_.join)(nodeModuleDirPath, basename);
357
+ if (external_fs_.lstatSync(path).isSymbolicLink()) {
339
358
  if (basename.startsWith("@")) {
340
359
  return undefined;
341
360
  }
@@ -345,13 +364,13 @@ function getGarronejLinkInfos(params) {
345
364
  linkedModuleNames.push(basename);
346
365
  continue;
347
366
  }
348
- if (!fs__WEBPACK_IMPORTED_MODULE_0__.lstatSync(path).isDirectory()) {
367
+ if (!external_fs_.lstatSync(path).isDirectory()) {
349
368
  continue;
350
369
  }
351
370
  if (basename.startsWith("@")) {
352
- for (const subBasename of fs__WEBPACK_IMPORTED_MODULE_0__.readdirSync(path)) {
353
- const subPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(path, subBasename);
354
- if (!fs__WEBPACK_IMPORTED_MODULE_0__.lstatSync(subPath).isSymbolicLink()) {
371
+ for (const subBasename of external_fs_.readdirSync(path)) {
372
+ const subPath = (0,external_path_.join)(path, subBasename);
373
+ if (!external_fs_.lstatSync(subPath).isSymbolicLink()) {
355
374
  continue;
356
375
  }
357
376
  if (!getIsLinkedByGarronejScript(subPath)) {
@@ -369,17 +388,17 @@ function getGarronejLinkInfos(params) {
369
388
  async function installWithoutBreakingLinks(params) {
370
389
  const { packageJsonDirPath, garronejLinkInfos: { linkedModuleNames, yarnHomeDirPath } } = params;
371
390
  const parsedPackageJson = (() => {
372
- const packageJsonFilePath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(packageJsonDirPath, "package.json");
391
+ const packageJsonFilePath = (0,external_path_.join)(packageJsonDirPath, "package.json");
373
392
  const zParsedPackageJson = (() => {
374
- const zTargetType = zod__WEBPACK_IMPORTED_MODULE_8__.z.object({
375
- scripts: zod__WEBPACK_IMPORTED_MODULE_8__.z.record(zod__WEBPACK_IMPORTED_MODULE_8__.z.string()).optional()
393
+ const zTargetType = lib.z.object({
394
+ scripts: lib.z.record(lib.z.string()).optional()
376
395
  });
377
- tsafe_assert__WEBPACK_IMPORTED_MODULE_4__/* .assert */ .h;
378
- return (0,tsafe_id__WEBPACK_IMPORTED_MODULE_9__.id)(zTargetType);
396
+ assert/* assert */.h;
397
+ return (0,id.id)(zTargetType);
379
398
  })();
380
- const parsedPackageJson = JSON.parse(fs__WEBPACK_IMPORTED_MODULE_0__.readFileSync(packageJsonFilePath).toString("utf8"));
399
+ const parsedPackageJson = JSON.parse(external_fs_.readFileSync(packageJsonFilePath).toString("utf8"));
381
400
  zParsedPackageJson.parse(parsedPackageJson);
382
- (0,tsafe_assert__WEBPACK_IMPORTED_MODULE_4__/* .assert */ .h)((0,tsafe_assert__WEBPACK_IMPORTED_MODULE_4__.is)(parsedPackageJson));
401
+ (0,assert/* assert */.h)((0,assert.is)(parsedPackageJson));
383
402
  return parsedPackageJson;
384
403
  })();
385
404
  const isImplementedScriptByName = {
@@ -390,7 +409,7 @@ async function installWithoutBreakingLinks(params) {
390
409
  if (parsedPackageJson.scripts === undefined) {
391
410
  break delete_postinstall_script;
392
411
  }
393
- for (const scriptName of (0,tsafe_objectKeys__WEBPACK_IMPORTED_MODULE_10__/* .objectKeys */ .Y)(isImplementedScriptByName)) {
412
+ for (const scriptName of objectKeys(isImplementedScriptByName)) {
394
413
  if (parsedPackageJson.scripts[scriptName] === undefined) {
395
414
  continue;
396
415
  }
@@ -398,14 +417,14 @@ async function installWithoutBreakingLinks(params) {
398
417
  delete parsedPackageJson.scripts[scriptName];
399
418
  }
400
419
  }
401
- const tmpProjectDirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(yarnHomeDirPath, "tmpProject");
402
- if (fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(tmpProjectDirPath)) {
403
- (0,_fs_rmSync__WEBPACK_IMPORTED_MODULE_6__/* .rmSync */ .a)(tmpProjectDirPath, { recursive: true });
420
+ const tmpProjectDirPath = (0,external_path_.join)(yarnHomeDirPath, "tmpProject");
421
+ if (external_fs_.existsSync(tmpProjectDirPath)) {
422
+ (0,fs_rmSync/* rmSync */.a)(tmpProjectDirPath, { recursive: true });
404
423
  }
405
- fs__WEBPACK_IMPORTED_MODULE_0__.mkdirSync(tmpProjectDirPath, { recursive: true });
406
- fs__WEBPACK_IMPORTED_MODULE_0__.writeFileSync((0,path__WEBPACK_IMPORTED_MODULE_1__.join)(tmpProjectDirPath, "package.json"), JSON.stringify(parsedPackageJson, undefined, 4));
424
+ external_fs_.mkdirSync(tmpProjectDirPath, { recursive: true });
425
+ external_fs_.writeFileSync((0,external_path_.join)(tmpProjectDirPath, "package.json"), JSON.stringify(parsedPackageJson, undefined, 4));
407
426
  const YARN_LOCK = "yarn.lock";
408
- fs__WEBPACK_IMPORTED_MODULE_0__.copyFileSync((0,path__WEBPACK_IMPORTED_MODULE_1__.join)(packageJsonDirPath, YARN_LOCK), (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(tmpProjectDirPath, YARN_LOCK));
427
+ external_fs_.copyFileSync((0,external_path_.join)(packageJsonDirPath, YARN_LOCK), (0,external_path_.join)(tmpProjectDirPath, YARN_LOCK));
409
428
  await runPackageManagerInstall({
410
429
  packageManagerBinName: "yarn",
411
430
  cwd: tmpProjectDirPath
@@ -415,18 +434,18 @@ async function installWithoutBreakingLinks(params) {
415
434
  {
416
435
  const { getAreSameVersions } = (() => {
417
436
  const zParsedPackageJson = (() => {
418
- const zTargetType = zod__WEBPACK_IMPORTED_MODULE_8__.z.object({
419
- version: zod__WEBPACK_IMPORTED_MODULE_8__.z.string()
437
+ const zTargetType = lib.z.object({
438
+ version: lib.z.string()
420
439
  });
421
- tsafe_assert__WEBPACK_IMPORTED_MODULE_4__/* .assert */ .h;
422
- return (0,tsafe_id__WEBPACK_IMPORTED_MODULE_9__.id)(zTargetType);
440
+ assert/* assert */.h;
441
+ return (0,id.id)(zTargetType);
423
442
  })();
424
443
  function readVersion(params) {
425
444
  const { moduleDirPath } = params;
426
- const packageJsonFilePath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(moduleDirPath, "package.json");
427
- const packageJson = JSON.parse(fs__WEBPACK_IMPORTED_MODULE_0__.readFileSync(packageJsonFilePath).toString("utf8"));
445
+ const packageJsonFilePath = (0,external_path_.join)(moduleDirPath, "package.json");
446
+ const packageJson = JSON.parse(external_fs_.readFileSync(packageJsonFilePath).toString("utf8"));
428
447
  zParsedPackageJson.parse(packageJson);
429
- (0,tsafe_assert__WEBPACK_IMPORTED_MODULE_4__/* .assert */ .h)((0,tsafe_assert__WEBPACK_IMPORTED_MODULE_4__.is)(packageJson));
448
+ (0,assert/* assert */.h)((0,assert.is)(packageJson));
430
449
  return packageJson.version;
431
450
  }
432
451
  function getAreSameVersions(params) {
@@ -436,44 +455,44 @@ async function installWithoutBreakingLinks(params) {
436
455
  }
437
456
  return { getAreSameVersions };
438
457
  })();
439
- const nodeModulesDirPath_tmpProject = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(tmpProjectDirPath, "node_modules");
440
- const nodeModulesDirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(packageJsonDirPath, "node_modules");
441
- const modulePaths = fs__WEBPACK_IMPORTED_MODULE_0__.readdirSync(nodeModulesDirPath_tmpProject)
458
+ const nodeModulesDirPath_tmpProject = (0,external_path_.join)(tmpProjectDirPath, "node_modules");
459
+ const nodeModulesDirPath = (0,external_path_.join)(packageJsonDirPath, "node_modules");
460
+ const modulePaths = external_fs_.readdirSync(nodeModulesDirPath_tmpProject)
442
461
  .map(basename => {
443
462
  if (basename.startsWith(".")) {
444
463
  return undefined;
445
464
  }
446
- const path = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(nodeModulesDirPath_tmpProject, basename);
465
+ const path = (0,external_path_.join)(nodeModulesDirPath_tmpProject, basename);
447
466
  if (basename.startsWith("@")) {
448
- return fs__WEBPACK_IMPORTED_MODULE_0__.readdirSync(path)
467
+ return external_fs_.readdirSync(path)
449
468
  .map(subBasename => {
450
469
  if (subBasename.startsWith(".")) {
451
470
  return undefined;
452
471
  }
453
- const subPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(path, subBasename);
454
- if (!fs__WEBPACK_IMPORTED_MODULE_0__.lstatSync(subPath).isDirectory()) {
472
+ const subPath = (0,external_path_.join)(path, subBasename);
473
+ if (!external_fs_.lstatSync(subPath).isDirectory()) {
455
474
  return undefined;
456
475
  }
457
476
  return {
458
477
  moduleName: `${basename}/${subBasename}`,
459
478
  moduleDirPath_tmpProject: subPath,
460
- moduleDirPath: (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(nodeModulesDirPath, basename, subBasename)
479
+ moduleDirPath: (0,external_path_.join)(nodeModulesDirPath, basename, subBasename)
461
480
  };
462
481
  })
463
- .filter((0,tsafe_exclude__WEBPACK_IMPORTED_MODULE_11__/* .exclude */ .D)(undefined));
482
+ .filter((0,exclude/* exclude */.D)(undefined));
464
483
  }
465
- if (!fs__WEBPACK_IMPORTED_MODULE_0__.lstatSync(path).isDirectory()) {
484
+ if (!external_fs_.lstatSync(path).isDirectory()) {
466
485
  return undefined;
467
486
  }
468
487
  return [
469
488
  {
470
489
  moduleName: basename,
471
490
  moduleDirPath_tmpProject: path,
472
- moduleDirPath: (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(nodeModulesDirPath, basename)
491
+ moduleDirPath: (0,external_path_.join)(nodeModulesDirPath, basename)
473
492
  }
474
493
  ];
475
494
  })
476
- .filter((0,tsafe_exclude__WEBPACK_IMPORTED_MODULE_11__/* .exclude */ .D)(undefined))
495
+ .filter((0,exclude/* exclude */.D)(undefined))
477
496
  .flat();
478
497
  for (const { moduleName, moduleDirPath, moduleDirPath_tmpProject } of modulePaths) {
479
498
  if (linkedModuleNames.includes(moduleName)) {
@@ -481,7 +500,7 @@ async function installWithoutBreakingLinks(params) {
481
500
  }
482
501
  let doesTargetModuleExist = false;
483
502
  skip_condition: {
484
- if (!fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(moduleDirPath)) {
503
+ if (!external_fs_.existsSync(moduleDirPath)) {
485
504
  break skip_condition;
486
505
  }
487
506
  doesTargetModuleExist = true;
@@ -495,39 +514,39 @@ async function installWithoutBreakingLinks(params) {
495
514
  continue;
496
515
  }
497
516
  if (doesTargetModuleExist) {
498
- (0,_fs_rmSync__WEBPACK_IMPORTED_MODULE_6__/* .rmSync */ .a)(moduleDirPath, { recursive: true });
517
+ (0,fs_rmSync/* rmSync */.a)(moduleDirPath, { recursive: true });
499
518
  }
500
519
  {
501
- const dirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.dirname)(moduleDirPath);
502
- if (!fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(dirPath)) {
503
- fs__WEBPACK_IMPORTED_MODULE_0__.mkdirSync(dirPath, { recursive: true });
520
+ const dirPath = (0,external_path_.dirname)(moduleDirPath);
521
+ if (!external_fs_.existsSync(dirPath)) {
522
+ external_fs_.mkdirSync(dirPath, { recursive: true });
504
523
  }
505
524
  }
506
- fs__WEBPACK_IMPORTED_MODULE_0__.renameSync(moduleDirPath_tmpProject, moduleDirPath);
525
+ external_fs_.renameSync(moduleDirPath_tmpProject, moduleDirPath);
507
526
  }
508
527
  move_bin: {
509
- const binDirPath_tmpProject = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(nodeModulesDirPath_tmpProject, ".bin");
510
- const binDirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(nodeModulesDirPath, ".bin");
511
- if (!fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(binDirPath_tmpProject)) {
528
+ const binDirPath_tmpProject = (0,external_path_.join)(nodeModulesDirPath_tmpProject, ".bin");
529
+ const binDirPath = (0,external_path_.join)(nodeModulesDirPath, ".bin");
530
+ if (!external_fs_.existsSync(binDirPath_tmpProject)) {
512
531
  break move_bin;
513
532
  }
514
- for (const basename of fs__WEBPACK_IMPORTED_MODULE_0__.readdirSync(binDirPath_tmpProject)) {
515
- const path_tmpProject = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(binDirPath_tmpProject, basename);
516
- const path = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(binDirPath, basename);
517
- if (fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(path)) {
533
+ for (const basename of external_fs_.readdirSync(binDirPath_tmpProject)) {
534
+ const path_tmpProject = (0,external_path_.join)(binDirPath_tmpProject, basename);
535
+ const path = (0,external_path_.join)(binDirPath, basename);
536
+ if (external_fs_.existsSync(path)) {
518
537
  continue;
519
538
  }
520
- fs__WEBPACK_IMPORTED_MODULE_0__.renameSync(path_tmpProject, path);
539
+ external_fs_.renameSync(path_tmpProject, path);
521
540
  }
522
541
  }
523
542
  }
524
- fs__WEBPACK_IMPORTED_MODULE_0__.cpSync((0,path__WEBPACK_IMPORTED_MODULE_1__.join)(tmpProjectDirPath, YARN_LOCK), (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(packageJsonDirPath, YARN_LOCK));
525
- (0,_fs_rmSync__WEBPACK_IMPORTED_MODULE_6__/* .rmSync */ .a)(tmpProjectDirPath, { recursive: true });
526
- for (const scriptName of (0,tsafe_objectKeys__WEBPACK_IMPORTED_MODULE_10__/* .objectKeys */ .Y)(isImplementedScriptByName)) {
543
+ external_fs_.cpSync((0,external_path_.join)(tmpProjectDirPath, YARN_LOCK), (0,external_path_.join)(packageJsonDirPath, YARN_LOCK));
544
+ (0,fs_rmSync/* rmSync */.a)(tmpProjectDirPath, { recursive: true });
545
+ for (const scriptName of objectKeys(isImplementedScriptByName)) {
527
546
  if (!isImplementedScriptByName[scriptName]) {
528
547
  continue;
529
548
  }
530
- child_process__WEBPACK_IMPORTED_MODULE_2__.execSync(`yarn run ${scriptName}`, {
549
+ external_child_process_.execSync(`yarn run ${scriptName}`, {
531
550
  cwd: packageJsonDirPath,
532
551
  stdio: "inherit"
533
552
  });
@@ -644,23 +663,6 @@ var overwriteReadonlyProp = function (obj, propertyName, value) {
644
663
  exports.overwriteReadonlyProp = overwriteReadonlyProp;
645
664
  //# sourceMappingURL=overwriteReadonlyProp.js.map
646
665
 
647
- /***/ }),
648
-
649
- /***/ 23483:
650
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
651
-
652
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
653
- /* harmony export */ "Y": () => (/* binding */ objectKeys)
654
- /* harmony export */ });
655
- /** https://docs.tsafe.dev/objectKeys */
656
- function objectKeys(o) {
657
- return Object.keys(o);
658
- }
659
-
660
-
661
- //# sourceMappingURL=objectKeys.mjs.map
662
-
663
-
664
666
  /***/ })
665
667
 
666
668
  };
package/bin/656.index.js CHANGED
@@ -18,7 +18,7 @@ __webpack_require__.r(__webpack_exports__);
18
18
  /* harmony import */ var tsafe_id__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(38469);
19
19
  /* harmony import */ var _addSyncExtensionsToPostinstallScript__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80339);
20
20
  /* harmony import */ var _tools_runPrettier__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(48433);
21
- /* harmony import */ var _tools_npmInstall__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50030);
21
+ /* harmony import */ var _tools_npmInstall__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(63046);
22
22
  /* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(32081);
23
23
  /* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(child_process__WEBPACK_IMPORTED_MODULE_6__);
24
24
  /* harmony import */ var zod__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(52300);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
- exports.id = 880;
3
- exports.ids = [880];
2
+ exports.id = 712;
3
+ exports.ids = [712];
4
4
  exports.modules = {
5
5
 
6
6
  /***/ 73817:
@@ -314,7 +314,7 @@ function recastParseTs(filePath) {
314
314
 
315
315
  /***/ }),
316
316
 
317
- /***/ 59880:
317
+ /***/ 35712:
318
318
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
319
319
 
320
320
  // ESM COMPAT FLAG
@@ -757,29 +757,6 @@ function readExtraPagesNames(params) {
757
757
  var generateMessageProperties = __webpack_require__(73817);
758
758
  // EXTERNAL MODULE: ./dist/bin/tools/readThisNpmPackageVersion.js
759
759
  var readThisNpmPackageVersion = __webpack_require__(64795);
760
- ;// CONCATENATED MODULE: ./dist/bin/shared/metaInfKeycloakThemes.js
761
-
762
-
763
- function writeMetaInfKeycloakThemes(params) {
764
- const { resourcesDirPath, getNewMetaInfKeycloakTheme } = params;
765
- const filePath = (0,external_path_.join)(resourcesDirPath, "META-INF", "keycloak-themes.json");
766
- const currentMetaInfKeycloakTheme = !external_fs_.existsSync(filePath)
767
- ? undefined
768
- : JSON.parse(external_fs_.readFileSync(filePath).toString("utf8"));
769
- const newMetaInfKeycloakThemes = getNewMetaInfKeycloakTheme({
770
- metaInfKeycloakTheme: currentMetaInfKeycloakTheme
771
- });
772
- {
773
- const dirPath = (0,external_path_.dirname)(filePath);
774
- if (!external_fs_.existsSync(dirPath)) {
775
- external_fs_.mkdirSync(dirPath, { recursive: true });
776
- }
777
- }
778
- external_fs_.writeFileSync(filePath, Buffer.from(JSON.stringify(newMetaInfKeycloakThemes, null, 2), "utf8"));
779
- }
780
- //# sourceMappingURL=metaInfKeycloakThemes.js.map
781
- // EXTERNAL MODULE: ./node_modules/tsafe/esm/objectEntries.mjs
782
- var objectEntries = __webpack_require__(91040);
783
760
  // EXTERNAL MODULE: ./dist/bin/tools/escapeStringForPropertiesFile.js
784
761
  var escapeStringForPropertiesFile = __webpack_require__(27190);
785
762
  // EXTERNAL MODULE: ./node_modules/properties-parser/index.js
@@ -868,8 +845,6 @@ var isInside = __webpack_require__(90665);
868
845
 
869
846
 
870
847
 
871
-
872
-
873
848
 
874
849
  (0,assert/* assert */.h)();
875
850
  async function generateResources(params) {
@@ -1279,13 +1254,13 @@ async function generateResources(params) {
1279
1254
  break copy_main_theme_to_theme_variant_theme;
1280
1255
  }
1281
1256
  (0,transformCodebase/* transformCodebase */.N)({
1282
- srcDirPath: (0,external_path_.join)(resourcesDirPath, "theme", themeName),
1283
- 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),
1284
1259
  transformSourceCode: isNative
1285
1260
  ? undefined
1286
1261
  : ({ fileRelativePath, sourceCode }) => {
1287
1262
  if ((0,external_path_.extname)(fileRelativePath) === ".ftl" &&
1288
- fileRelativePath.split(external_path_.sep).length === 2) {
1263
+ fileRelativePath.split(external_path_.sep).length === 1) {
1289
1264
  const modifiedSourceCode = Buffer.from(Buffer.from(sourceCode)
1290
1265
  .toString("utf-8")
1291
1266
  .replace(`"themeName": "${themeName}"`, `"themeName": "${themeVariantName}"`), "utf8");
@@ -1334,29 +1309,6 @@ async function generateResources(params) {
1334
1309
  }
1335
1310
  }
1336
1311
  }
1337
- // Generate meta-inf/keycloak-themes.json
1338
- {
1339
- const metaInfKeycloakThemes = { themes: [] };
1340
- for (const themeName of buildContext.themeNames) {
1341
- metaInfKeycloakThemes.themes.push({
1342
- name: themeName,
1343
- types: (0,objectEntries/* objectEntries */.q)(buildContext.implementedThemeTypes)
1344
- .filter(([, v]) => v.isImplemented || v.isImplemented_native)
1345
- .map(([themeType]) => themeType)
1346
- });
1347
- }
1348
- if (buildContext.implementedThemeTypes.account.isImplemented &&
1349
- buildContext.implementedThemeTypes.account.type === "Multi-Page") {
1350
- metaInfKeycloakThemes.themes.push({
1351
- name: "account-v1",
1352
- types: ["account"]
1353
- });
1354
- }
1355
- writeMetaInfKeycloakThemes({
1356
- resourcesDirPath,
1357
- getNewMetaInfKeycloakTheme: () => metaInfKeycloakThemes
1358
- });
1359
- }
1360
1312
  }
1361
1313
  //# sourceMappingURL=generateResources.js.map
1362
1314
  ;// CONCATENATED MODULE: ./dist/bin/keycloakify/generateResources/index.js
@@ -1517,7 +1469,6 @@ var fs_existsAsync = __webpack_require__(43765);
1517
1469
 
1518
1470
 
1519
1471
 
1520
-
1521
1472
  (0,assert/* assert */.h)();
1522
1473
  async function buildJar(params) {
1523
1474
  const { jarFileBasename, keycloakAccountV1Version, keycloakThemeAdditionalInfoExtensionVersion, resourcesDirPath, doesImplementAccountV1Theme, buildContext } = params;
@@ -1550,23 +1501,28 @@ async function buildJar(params) {
1550
1501
  return { modifiedSourceCode: sourceCode };
1551
1502
  }
1552
1503
  });
1553
- remove_account_v1_in_meta_inf: {
1554
- if (!doesImplementAccountV1Theme) {
1555
- // NOTE: We do not have account v1 anyway
1556
- break remove_account_v1_in_meta_inf;
1557
- }
1558
- if (keycloakAccountV1Version !== null) {
1559
- // NOTE: No, we need to keep account-v1 in meta-inf
1560
- break remove_account_v1_in_meta_inf;
1561
- }
1562
- writeMetaInfKeycloakThemes({
1563
- resourcesDirPath: tmpResourcesDirPath,
1564
- getNewMetaInfKeycloakTheme: ({ metaInfKeycloakTheme }) => {
1565
- (0,assert/* assert */.h)(metaInfKeycloakTheme !== undefined);
1566
- metaInfKeycloakTheme.themes = metaInfKeycloakTheme.themes.filter(({ name }) => name !== "account-v1");
1567
- return metaInfKeycloakTheme;
1568
- }
1569
- });
1504
+ {
1505
+ const filePath = (0,external_path_.join)(tmpResourcesDirPath, "META-INF", "keycloak-themes.json");
1506
+ await promises_.mkdir((0,external_path_.dirname)(filePath));
1507
+ await promises_.writeFile(filePath, Buffer.from(JSON.stringify({
1508
+ themes: await (async () => {
1509
+ const dirPath = (0,external_path_.join)(tmpResourcesDirPath, "theme");
1510
+ const themeNames = (await promises_.readdir(dirPath)).sort((a, b) => {
1511
+ const indexA = buildContext.themeNames.indexOf(a);
1512
+ const indexB = buildContext.themeNames.indexOf(b);
1513
+ const orderA = indexA === -1 ? Infinity : indexA;
1514
+ const orderB = indexB === -1 ? Infinity : indexB;
1515
+ return orderA - orderB;
1516
+ });
1517
+ return Promise.all(themeNames.map(async (themeName) => {
1518
+ const types = await promises_.readdir((0,external_path_.join)(dirPath, themeName));
1519
+ return {
1520
+ name: themeName,
1521
+ types
1522
+ };
1523
+ }));
1524
+ })()
1525
+ }, null, 2), "utf8"));
1570
1526
  }
1571
1527
  route_legacy_pages: {
1572
1528
  if (!buildContext.implementedThemeTypes.login.isImplemented) {
package/bin/780.index.js CHANGED
@@ -130,7 +130,7 @@ async function command(params) {
130
130
  break;
131
131
  case "Single-Page":
132
132
  {
133
- const { initializeSpa } = await Promise.all(/* import() */[__webpack_require__.e(664), __webpack_require__.e(656)]).then(__webpack_require__.bind(__webpack_require__, 98656));
133
+ const { initializeSpa } = await Promise.all(/* import() */[__webpack_require__.e(502), __webpack_require__.e(656)]).then(__webpack_require__.bind(__webpack_require__, 98656));
134
134
  await initializeSpa({
135
135
  themeType: "account",
136
136
  buildContext
package/bin/932.index.js CHANGED
@@ -22,7 +22,7 @@ __webpack_require__.r(__webpack_exports__);
22
22
  /* harmony import */ var tsafe_id__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(38469);
23
23
  /* harmony import */ var _shared_addSyncExtensionsToPostinstallScript__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(80339);
24
24
  /* harmony import */ var _tools_runPrettier__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(48433);
25
- /* harmony import */ var _tools_npmInstall__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(50030);
25
+ /* harmony import */ var _tools_npmInstall__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(63046);
26
26
  /* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(32081);
27
27
  /* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(child_process__WEBPACK_IMPORTED_MODULE_9__);
28
28
  /* harmony import */ var zod__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(52300);