keycloakify 11.4.5 → 11.5.1
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/375.index.js +4089 -0
- package/bin/{20.index.js → 490.index.js} +378 -56
- package/bin/{36.index.js → 503.index.js} +53 -2
- package/bin/{450.index.js → 525.index.js} +2 -4085
- package/bin/653.index.js +108 -110
- package/bin/682.index.js +1987 -0
- package/bin/735.index.js +107 -109
- package/bin/921.index.js +1 -1
- package/bin/main.js +8 -2
- package/bin/shared/constants.d.ts +3 -0
- package/bin/shared/constants.js +3 -0
- package/bin/shared/constants.js.map +1 -1
- package/bin/start-keycloak/getSupportedDockerImageTags.d.ts +8 -0
- package/bin/start-keycloak/realmConfig/ParsedRealmJson.d.ts +45 -0
- package/bin/start-keycloak/realmConfig/defaultConfig/defaultConfig.d.ts +8 -0
- package/bin/start-keycloak/realmConfig/defaultConfig/index.d.ts +1 -0
- package/bin/start-keycloak/realmConfig/dumpContainerConfig.d.ts +9 -0
- package/bin/start-keycloak/realmConfig/index.d.ts +1 -0
- package/bin/start-keycloak/realmConfig/prepareRealmConfig.d.ts +15 -0
- package/bin/start-keycloak/realmConfig/realmConfig.d.ts +16 -0
- package/package.json +31 -14
- package/src/bin/shared/constants.ts +6 -0
- package/src/bin/start-keycloak/getSupportedDockerImageTags.ts +230 -0
- package/src/bin/start-keycloak/keycloakify-logging-1.0.3.jar +0 -0
- package/src/bin/start-keycloak/realmConfig/ParsedRealmJson.ts +136 -0
- package/src/bin/start-keycloak/realmConfig/defaultConfig/defaultConfig.ts +75 -0
- package/src/bin/start-keycloak/realmConfig/defaultConfig/index.ts +1 -0
- package/src/bin/start-keycloak/{myrealm-realm-18.json → realmConfig/defaultConfig/realm-kc-18.json} +123 -60
- package/src/bin/start-keycloak/{myrealm-realm-19.json → realmConfig/defaultConfig/realm-kc-19.json} +81 -41
- package/src/bin/start-keycloak/{myrealm-realm-20.json → realmConfig/defaultConfig/realm-kc-20.json} +83 -42
- package/src/bin/start-keycloak/{myrealm-realm-21.json → realmConfig/defaultConfig/realm-kc-21.json} +58 -17
- package/src/bin/start-keycloak/{myrealm-realm-23.json → realmConfig/defaultConfig/realm-kc-23.json} +64 -20
- package/src/bin/start-keycloak/{myrealm-realm-24.json → realmConfig/defaultConfig/realm-kc-24.json} +63 -19
- package/src/bin/start-keycloak/{myrealm-realm-25.json → realmConfig/defaultConfig/realm-kc-25.json} +75 -20
- package/src/bin/start-keycloak/{myrealm-realm-26.json → realmConfig/defaultConfig/realm-kc-26.json} +103 -19
- package/src/bin/start-keycloak/realmConfig/dumpContainerConfig.ts +194 -0
- package/src/bin/start-keycloak/realmConfig/index.ts +1 -0
- package/src/bin/start-keycloak/realmConfig/prepareRealmConfig.ts +365 -0
- package/src/bin/start-keycloak/realmConfig/realmConfig.ts +159 -0
- package/src/bin/start-keycloak/start-keycloak.ts +160 -184
- package/src/bin/start-keycloak/startViteDevServer.ts +1 -0
- package/vite-plugin/index.js +6 -0
- package/bin/392.index.js +0 -740
- package/bin/932.index.js +0 -327
package/bin/653.index.js
CHANGED
@@ -30,8 +30,8 @@ var SemVer = __webpack_require__(12171);
|
|
30
30
|
var same = __webpack_require__(33805);
|
31
31
|
// EXTERNAL MODULE: ./dist/bin/tools/runPrettier.js
|
32
32
|
var runPrettier = __webpack_require__(48433);
|
33
|
-
// EXTERNAL MODULE: ./dist/bin/tools/npmInstall.js
|
34
|
-
var npmInstall = __webpack_require__(
|
33
|
+
// EXTERNAL MODULE: ./dist/bin/tools/npmInstall.js
|
34
|
+
var npmInstall = __webpack_require__(50030);
|
35
35
|
// EXTERNAL MODULE: external "path"
|
36
36
|
var external_path_ = __webpack_require__(71017);
|
37
37
|
;// CONCATENATED MODULE: ./dist/bin/postinstall/installUiModulesPeerDependencies.js
|
@@ -293,46 +293,27 @@ function rmSync(dirPath, options) {
|
|
293
293
|
|
294
294
|
/***/ }),
|
295
295
|
|
296
|
-
/***/
|
296
|
+
/***/ 50030:
|
297
297
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
298
298
|
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
var
|
307
|
-
|
308
|
-
var
|
309
|
-
|
310
|
-
var
|
311
|
-
|
312
|
-
var
|
313
|
-
var
|
314
|
-
|
315
|
-
var
|
316
|
-
|
317
|
-
var assert = __webpack_require__(29041);
|
318
|
-
// EXTERNAL MODULE: ./node_modules/tsafe/esm/id.mjs
|
319
|
-
var id = __webpack_require__(38469);
|
320
|
-
;// CONCATENATED MODULE: ./node_modules/tsafe/esm/objectKeys.mjs
|
321
|
-
/** https://docs.tsafe.dev/objectKeys */
|
322
|
-
function objectKeys(o) {
|
323
|
-
return Object.keys(o);
|
324
|
-
}
|
325
|
-
|
326
|
-
|
327
|
-
//# sourceMappingURL=objectKeys.mjs.map
|
328
|
-
|
329
|
-
// EXTERNAL MODULE: ./dist/bin/tools/getAbsoluteAndInOsFormatPath.js
|
330
|
-
var getAbsoluteAndInOsFormatPath = __webpack_require__(84794);
|
331
|
-
// EXTERNAL MODULE: ./node_modules/tsafe/esm/exclude.mjs
|
332
|
-
var exclude = __webpack_require__(83101);
|
333
|
-
// EXTERNAL MODULE: ./dist/bin/tools/fs.rmSync.js
|
334
|
-
var fs_rmSync = __webpack_require__(89693);
|
335
|
-
;// CONCATENATED MODULE: ./dist/bin/tools/npmInstall.js
|
299
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
300
|
+
/* harmony export */ "c": () => (/* binding */ npmInstall)
|
301
|
+
/* harmony export */ });
|
302
|
+
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(57147);
|
303
|
+
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_0__);
|
304
|
+
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71017);
|
305
|
+
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);
|
306
|
+
/* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(32081);
|
307
|
+
/* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(child_process__WEBPACK_IMPORTED_MODULE_2__);
|
308
|
+
/* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(78818);
|
309
|
+
/* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(chalk__WEBPACK_IMPORTED_MODULE_3__);
|
310
|
+
/* harmony import */ var zod__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(52300);
|
311
|
+
/* harmony import */ var tsafe_assert__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(29041);
|
312
|
+
/* harmony import */ var tsafe_id__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(38469);
|
313
|
+
/* harmony import */ var tsafe_objectKeys__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(23483);
|
314
|
+
/* harmony import */ var _getAbsoluteAndInOsFormatPath__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(84794);
|
315
|
+
/* harmony import */ var tsafe_exclude__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(83101);
|
316
|
+
/* harmony import */ var _fs_rmSync__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(89693);
|
336
317
|
|
337
318
|
|
338
319
|
|
@@ -370,8 +351,8 @@ function npmInstall(params) {
|
|
370
351
|
}
|
371
352
|
];
|
372
353
|
for (const packageManager of packageMangers) {
|
373
|
-
if (
|
374
|
-
|
354
|
+
if (fs__WEBPACK_IMPORTED_MODULE_0__.existsSync((0,path__WEBPACK_IMPORTED_MODULE_1__.join)(packageJsonDirPath, packageManager.lockFileBasename)) ||
|
355
|
+
fs__WEBPACK_IMPORTED_MODULE_0__.existsSync((0,path__WEBPACK_IMPORTED_MODULE_1__.join)(process.cwd(), packageManager.lockFileBasename))) {
|
375
356
|
return packageManager.binName;
|
376
357
|
}
|
377
358
|
}
|
@@ -386,7 +367,7 @@ function npmInstall(params) {
|
|
386
367
|
if (garronejLinkInfos === undefined) {
|
387
368
|
break install_without_breaking_links;
|
388
369
|
}
|
389
|
-
console.log(
|
370
|
+
console.log(chalk__WEBPACK_IMPORTED_MODULE_3___default().green("Installing in a way that won't break the links..."));
|
390
371
|
installWithoutBreakingLinks({
|
391
372
|
packageJsonDirPath,
|
392
373
|
garronejLinkInfos
|
@@ -394,19 +375,19 @@ function npmInstall(params) {
|
|
394
375
|
return;
|
395
376
|
}
|
396
377
|
try {
|
397
|
-
|
378
|
+
child_process__WEBPACK_IMPORTED_MODULE_2__.execSync(`${packageManagerBinName} install`, {
|
398
379
|
cwd: packageJsonDirPath,
|
399
380
|
stdio: "inherit"
|
400
381
|
});
|
401
382
|
}
|
402
383
|
catch (_a) {
|
403
|
-
console.log(
|
384
|
+
console.log(chalk__WEBPACK_IMPORTED_MODULE_3___default().yellow(`\`${packageManagerBinName} install\` failed, continuing anyway...`));
|
404
385
|
}
|
405
386
|
}
|
406
387
|
function getGarronejLinkInfos(params) {
|
407
388
|
const { packageJsonDirPath } = params;
|
408
|
-
const nodeModuleDirPath = (0,
|
409
|
-
if (!
|
389
|
+
const nodeModuleDirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(packageJsonDirPath, "node_modules");
|
390
|
+
if (!fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(nodeModuleDirPath)) {
|
410
391
|
return undefined;
|
411
392
|
}
|
412
393
|
const linkedModuleNames = [];
|
@@ -414,7 +395,7 @@ function getGarronejLinkInfos(params) {
|
|
414
395
|
const getIsLinkedByGarronejScript = (path) => {
|
415
396
|
let realPath;
|
416
397
|
try {
|
417
|
-
realPath =
|
398
|
+
realPath = fs__WEBPACK_IMPORTED_MODULE_0__.readlinkSync(path);
|
418
399
|
}
|
419
400
|
catch (_a) {
|
420
401
|
return false;
|
@@ -427,17 +408,17 @@ function getGarronejLinkInfos(params) {
|
|
427
408
|
if (yarnHomeDirPath !== undefined) {
|
428
409
|
break set_yarnHomeDirPath;
|
429
410
|
}
|
430
|
-
const [firstElement] = (0,
|
411
|
+
const [firstElement] = (0,_getAbsoluteAndInOsFormatPath__WEBPACK_IMPORTED_MODULE_5__/* .getAbsoluteAndInOsFormatPath */ .c)({
|
431
412
|
pathIsh: realPath,
|
432
|
-
cwd: (0,
|
413
|
+
cwd: (0,path__WEBPACK_IMPORTED_MODULE_1__.dirname)(path)
|
433
414
|
}).split(".yarn_home");
|
434
|
-
yarnHomeDirPath = (0,
|
415
|
+
yarnHomeDirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(firstElement, ".yarn_home");
|
435
416
|
}
|
436
417
|
return true;
|
437
418
|
};
|
438
|
-
for (const basename of
|
439
|
-
const path = (0,
|
440
|
-
if (
|
419
|
+
for (const basename of fs__WEBPACK_IMPORTED_MODULE_0__.readdirSync(nodeModuleDirPath)) {
|
420
|
+
const path = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(nodeModuleDirPath, basename);
|
421
|
+
if (fs__WEBPACK_IMPORTED_MODULE_0__.lstatSync(path).isSymbolicLink()) {
|
441
422
|
if (basename.startsWith("@")) {
|
442
423
|
return undefined;
|
443
424
|
}
|
@@ -447,13 +428,13 @@ function getGarronejLinkInfos(params) {
|
|
447
428
|
linkedModuleNames.push(basename);
|
448
429
|
continue;
|
449
430
|
}
|
450
|
-
if (!
|
431
|
+
if (!fs__WEBPACK_IMPORTED_MODULE_0__.lstatSync(path).isDirectory()) {
|
451
432
|
continue;
|
452
433
|
}
|
453
434
|
if (basename.startsWith("@")) {
|
454
|
-
for (const subBasename of
|
455
|
-
const subPath = (0,
|
456
|
-
if (!
|
435
|
+
for (const subBasename of fs__WEBPACK_IMPORTED_MODULE_0__.readdirSync(path)) {
|
436
|
+
const subPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(path, subBasename);
|
437
|
+
if (!fs__WEBPACK_IMPORTED_MODULE_0__.lstatSync(subPath).isSymbolicLink()) {
|
457
438
|
continue;
|
458
439
|
}
|
459
440
|
if (!getIsLinkedByGarronejScript(subPath)) {
|
@@ -471,17 +452,17 @@ function getGarronejLinkInfos(params) {
|
|
471
452
|
function installWithoutBreakingLinks(params) {
|
472
453
|
const { packageJsonDirPath, garronejLinkInfos: { linkedModuleNames, yarnHomeDirPath } } = params;
|
473
454
|
const parsedPackageJson = (() => {
|
474
|
-
const packageJsonFilePath = (0,
|
455
|
+
const packageJsonFilePath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(packageJsonDirPath, "package.json");
|
475
456
|
const zParsedPackageJson = (() => {
|
476
|
-
const zTargetType =
|
477
|
-
scripts:
|
457
|
+
const zTargetType = zod__WEBPACK_IMPORTED_MODULE_7__.z.object({
|
458
|
+
scripts: zod__WEBPACK_IMPORTED_MODULE_7__.z.record(zod__WEBPACK_IMPORTED_MODULE_7__.z.string()).optional()
|
478
459
|
});
|
479
|
-
|
480
|
-
return (0,
|
460
|
+
tsafe_assert__WEBPACK_IMPORTED_MODULE_4__/* .assert */ .h;
|
461
|
+
return (0,tsafe_id__WEBPACK_IMPORTED_MODULE_8__.id)(zTargetType);
|
481
462
|
})();
|
482
|
-
const parsedPackageJson = JSON.parse(
|
463
|
+
const parsedPackageJson = JSON.parse(fs__WEBPACK_IMPORTED_MODULE_0__.readFileSync(packageJsonFilePath).toString("utf8"));
|
483
464
|
zParsedPackageJson.parse(parsedPackageJson);
|
484
|
-
(0,
|
465
|
+
(0,tsafe_assert__WEBPACK_IMPORTED_MODULE_4__/* .assert */ .h)((0,tsafe_assert__WEBPACK_IMPORTED_MODULE_4__.is)(parsedPackageJson));
|
485
466
|
return parsedPackageJson;
|
486
467
|
})();
|
487
468
|
const isImplementedScriptByName = {
|
@@ -492,7 +473,7 @@ function installWithoutBreakingLinks(params) {
|
|
492
473
|
if (parsedPackageJson.scripts === undefined) {
|
493
474
|
break delete_postinstall_script;
|
494
475
|
}
|
495
|
-
for (const scriptName of objectKeys(isImplementedScriptByName)) {
|
476
|
+
for (const scriptName of (0,tsafe_objectKeys__WEBPACK_IMPORTED_MODULE_9__/* .objectKeys */ .Y)(isImplementedScriptByName)) {
|
496
477
|
if (parsedPackageJson.scripts[scriptName] === undefined) {
|
497
478
|
continue;
|
498
479
|
}
|
@@ -500,15 +481,15 @@ function installWithoutBreakingLinks(params) {
|
|
500
481
|
delete parsedPackageJson.scripts[scriptName];
|
501
482
|
}
|
502
483
|
}
|
503
|
-
const tmpProjectDirPath = (0,
|
504
|
-
if (
|
505
|
-
(0,
|
484
|
+
const tmpProjectDirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(yarnHomeDirPath, "tmpProject");
|
485
|
+
if (fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(tmpProjectDirPath)) {
|
486
|
+
(0,_fs_rmSync__WEBPACK_IMPORTED_MODULE_6__/* .rmSync */ .a)(tmpProjectDirPath, { recursive: true });
|
506
487
|
}
|
507
|
-
|
508
|
-
|
488
|
+
fs__WEBPACK_IMPORTED_MODULE_0__.mkdirSync(tmpProjectDirPath, { recursive: true });
|
489
|
+
fs__WEBPACK_IMPORTED_MODULE_0__.writeFileSync((0,path__WEBPACK_IMPORTED_MODULE_1__.join)(tmpProjectDirPath, "package.json"), JSON.stringify(parsedPackageJson, undefined, 4));
|
509
490
|
const YARN_LOCK = "yarn.lock";
|
510
|
-
|
511
|
-
|
491
|
+
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));
|
492
|
+
child_process__WEBPACK_IMPORTED_MODULE_2__.execSync(`yarn install`, {
|
512
493
|
cwd: tmpProjectDirPath,
|
513
494
|
stdio: "inherit"
|
514
495
|
});
|
@@ -517,18 +498,18 @@ function installWithoutBreakingLinks(params) {
|
|
517
498
|
{
|
518
499
|
const { getAreSameVersions } = (() => {
|
519
500
|
const zParsedPackageJson = (() => {
|
520
|
-
const zTargetType =
|
521
|
-
version:
|
501
|
+
const zTargetType = zod__WEBPACK_IMPORTED_MODULE_7__.z.object({
|
502
|
+
version: zod__WEBPACK_IMPORTED_MODULE_7__.z.string()
|
522
503
|
});
|
523
|
-
|
524
|
-
return (0,
|
504
|
+
tsafe_assert__WEBPACK_IMPORTED_MODULE_4__/* .assert */ .h;
|
505
|
+
return (0,tsafe_id__WEBPACK_IMPORTED_MODULE_8__.id)(zTargetType);
|
525
506
|
})();
|
526
507
|
function readVersion(params) {
|
527
508
|
const { moduleDirPath } = params;
|
528
|
-
const packageJsonFilePath = (0,
|
529
|
-
const packageJson = JSON.parse(
|
509
|
+
const packageJsonFilePath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(moduleDirPath, "package.json");
|
510
|
+
const packageJson = JSON.parse(fs__WEBPACK_IMPORTED_MODULE_0__.readFileSync(packageJsonFilePath).toString("utf8"));
|
530
511
|
zParsedPackageJson.parse(packageJson);
|
531
|
-
(0,
|
512
|
+
(0,tsafe_assert__WEBPACK_IMPORTED_MODULE_4__/* .assert */ .h)((0,tsafe_assert__WEBPACK_IMPORTED_MODULE_4__.is)(packageJson));
|
532
513
|
return packageJson.version;
|
533
514
|
}
|
534
515
|
function getAreSameVersions(params) {
|
@@ -538,44 +519,44 @@ function installWithoutBreakingLinks(params) {
|
|
538
519
|
}
|
539
520
|
return { getAreSameVersions };
|
540
521
|
})();
|
541
|
-
const nodeModulesDirPath_tmpProject = (0,
|
542
|
-
const nodeModulesDirPath = (0,
|
543
|
-
const modulePaths =
|
522
|
+
const nodeModulesDirPath_tmpProject = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(tmpProjectDirPath, "node_modules");
|
523
|
+
const nodeModulesDirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(packageJsonDirPath, "node_modules");
|
524
|
+
const modulePaths = fs__WEBPACK_IMPORTED_MODULE_0__.readdirSync(nodeModulesDirPath_tmpProject)
|
544
525
|
.map(basename => {
|
545
526
|
if (basename.startsWith(".")) {
|
546
527
|
return undefined;
|
547
528
|
}
|
548
|
-
const path = (0,
|
529
|
+
const path = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(nodeModulesDirPath_tmpProject, basename);
|
549
530
|
if (basename.startsWith("@")) {
|
550
|
-
return
|
531
|
+
return fs__WEBPACK_IMPORTED_MODULE_0__.readdirSync(path)
|
551
532
|
.map(subBasename => {
|
552
533
|
if (subBasename.startsWith(".")) {
|
553
534
|
return undefined;
|
554
535
|
}
|
555
|
-
const subPath = (0,
|
556
|
-
if (!
|
536
|
+
const subPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(path, subBasename);
|
537
|
+
if (!fs__WEBPACK_IMPORTED_MODULE_0__.lstatSync(subPath).isDirectory()) {
|
557
538
|
return undefined;
|
558
539
|
}
|
559
540
|
return {
|
560
541
|
moduleName: `${basename}/${subBasename}`,
|
561
542
|
moduleDirPath_tmpProject: subPath,
|
562
|
-
moduleDirPath: (0,
|
543
|
+
moduleDirPath: (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(nodeModulesDirPath, basename, subBasename)
|
563
544
|
};
|
564
545
|
})
|
565
|
-
.filter((0,
|
546
|
+
.filter((0,tsafe_exclude__WEBPACK_IMPORTED_MODULE_10__/* .exclude */ .D)(undefined));
|
566
547
|
}
|
567
|
-
if (!
|
548
|
+
if (!fs__WEBPACK_IMPORTED_MODULE_0__.lstatSync(path).isDirectory()) {
|
568
549
|
return undefined;
|
569
550
|
}
|
570
551
|
return [
|
571
552
|
{
|
572
553
|
moduleName: basename,
|
573
554
|
moduleDirPath_tmpProject: path,
|
574
|
-
moduleDirPath: (0,
|
555
|
+
moduleDirPath: (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(nodeModulesDirPath, basename)
|
575
556
|
}
|
576
557
|
];
|
577
558
|
})
|
578
|
-
.filter((0,
|
559
|
+
.filter((0,tsafe_exclude__WEBPACK_IMPORTED_MODULE_10__/* .exclude */ .D)(undefined))
|
579
560
|
.flat();
|
580
561
|
for (const { moduleName, moduleDirPath, moduleDirPath_tmpProject } of modulePaths) {
|
581
562
|
if (linkedModuleNames.includes(moduleName)) {
|
@@ -583,7 +564,7 @@ function installWithoutBreakingLinks(params) {
|
|
583
564
|
}
|
584
565
|
let doesTargetModuleExist = false;
|
585
566
|
skip_condition: {
|
586
|
-
if (!
|
567
|
+
if (!fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(moduleDirPath)) {
|
587
568
|
break skip_condition;
|
588
569
|
}
|
589
570
|
doesTargetModuleExist = true;
|
@@ -597,39 +578,39 @@ function installWithoutBreakingLinks(params) {
|
|
597
578
|
continue;
|
598
579
|
}
|
599
580
|
if (doesTargetModuleExist) {
|
600
|
-
(0,
|
581
|
+
(0,_fs_rmSync__WEBPACK_IMPORTED_MODULE_6__/* .rmSync */ .a)(moduleDirPath, { recursive: true });
|
601
582
|
}
|
602
583
|
{
|
603
|
-
const dirPath = (0,
|
604
|
-
if (!
|
605
|
-
|
584
|
+
const dirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.dirname)(moduleDirPath);
|
585
|
+
if (!fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(dirPath)) {
|
586
|
+
fs__WEBPACK_IMPORTED_MODULE_0__.mkdirSync(dirPath, { recursive: true });
|
606
587
|
}
|
607
588
|
}
|
608
|
-
|
589
|
+
fs__WEBPACK_IMPORTED_MODULE_0__.renameSync(moduleDirPath_tmpProject, moduleDirPath);
|
609
590
|
}
|
610
591
|
move_bin: {
|
611
|
-
const binDirPath_tmpProject = (0,
|
612
|
-
const binDirPath = (0,
|
613
|
-
if (!
|
592
|
+
const binDirPath_tmpProject = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(nodeModulesDirPath_tmpProject, ".bin");
|
593
|
+
const binDirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(nodeModulesDirPath, ".bin");
|
594
|
+
if (!fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(binDirPath_tmpProject)) {
|
614
595
|
break move_bin;
|
615
596
|
}
|
616
|
-
for (const basename of
|
617
|
-
const path_tmpProject = (0,
|
618
|
-
const path = (0,
|
619
|
-
if (
|
597
|
+
for (const basename of fs__WEBPACK_IMPORTED_MODULE_0__.readdirSync(binDirPath_tmpProject)) {
|
598
|
+
const path_tmpProject = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(binDirPath_tmpProject, basename);
|
599
|
+
const path = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(binDirPath, basename);
|
600
|
+
if (fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(path)) {
|
620
601
|
continue;
|
621
602
|
}
|
622
|
-
|
603
|
+
fs__WEBPACK_IMPORTED_MODULE_0__.renameSync(path_tmpProject, path);
|
623
604
|
}
|
624
605
|
}
|
625
606
|
}
|
626
|
-
|
627
|
-
(0,
|
628
|
-
for (const scriptName of objectKeys(isImplementedScriptByName)) {
|
607
|
+
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));
|
608
|
+
(0,_fs_rmSync__WEBPACK_IMPORTED_MODULE_6__/* .rmSync */ .a)(tmpProjectDirPath, { recursive: true });
|
609
|
+
for (const scriptName of (0,tsafe_objectKeys__WEBPACK_IMPORTED_MODULE_9__/* .objectKeys */ .Y)(isImplementedScriptByName)) {
|
629
610
|
if (!isImplementedScriptByName[scriptName]) {
|
630
611
|
continue;
|
631
612
|
}
|
632
|
-
|
613
|
+
child_process__WEBPACK_IMPORTED_MODULE_2__.execSync(`yarn run ${scriptName}`, {
|
633
614
|
cwd: packageJsonDirPath,
|
634
615
|
stdio: "inherit"
|
635
616
|
});
|
@@ -746,6 +727,23 @@ var overwriteReadonlyProp = function (obj, propertyName, value) {
|
|
746
727
|
exports.overwriteReadonlyProp = overwriteReadonlyProp;
|
747
728
|
//# sourceMappingURL=overwriteReadonlyProp.js.map
|
748
729
|
|
730
|
+
/***/ }),
|
731
|
+
|
732
|
+
/***/ 23483:
|
733
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
734
|
+
|
735
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
736
|
+
/* harmony export */ "Y": () => (/* binding */ objectKeys)
|
737
|
+
/* harmony export */ });
|
738
|
+
/** https://docs.tsafe.dev/objectKeys */
|
739
|
+
function objectKeys(o) {
|
740
|
+
return Object.keys(o);
|
741
|
+
}
|
742
|
+
|
743
|
+
|
744
|
+
//# sourceMappingURL=objectKeys.mjs.map
|
745
|
+
|
746
|
+
|
749
747
|
/***/ })
|
750
748
|
|
751
749
|
};
|