keycloakify 11.7.4 → 11.8.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.
Files changed (38) hide show
  1. package/bin/{33.index.js → 226.index.js} +2 -19
  2. package/bin/{911.index.js → 297.index.js} +18918 -11359
  3. package/bin/355.index.js +41 -703
  4. package/bin/363.index.js +115 -93
  5. package/bin/369.index.js +968 -0
  6. package/bin/{288.index.js → 502.index.js} +123 -227
  7. package/bin/656.index.js +111 -0
  8. package/bin/{880.index.js → 712.index.js} +227 -216
  9. package/bin/780.index.js +9 -7
  10. package/bin/932.index.js +965 -0
  11. package/bin/97.index.js +2099 -769
  12. package/bin/main.js +66 -49
  13. package/bin/shared/buildContext.d.ts +11 -3
  14. package/bin/start-keycloak/realmConfig/prepareRealmConfig.d.ts +5 -6
  15. package/bin/start-keycloak/realmConfig/realmConfig.d.ts +6 -2
  16. package/package.json +12 -17
  17. package/src/bin/initialize-account-theme/initialize-account-theme.ts +29 -27
  18. package/src/bin/initialize-email-theme.ts +103 -53
  19. package/src/bin/keycloakify/buildJars/buildJar.ts +45 -20
  20. package/src/bin/keycloakify/generateResources/generateResources.ts +263 -217
  21. package/src/bin/shared/{initializeSpa/addSyncExtensionsToPostinstallScript.ts → addSyncExtensionsToPostinstallScript.ts} +1 -1
  22. package/src/bin/shared/buildContext.ts +69 -24
  23. package/src/bin/shared/{initializeSpa/initializeSpa.ts → initializeSpa.ts} +3 -3
  24. package/src/bin/start-keycloak/realmConfig/prepareRealmConfig.ts +12 -23
  25. package/src/bin/start-keycloak/realmConfig/realmConfig.ts +14 -12
  26. package/src/bin/start-keycloak/start-keycloak.ts +55 -28
  27. package/src/bin/sync-extensions/getExtensionModuleFileSourceCodeReadyToBeCopied.ts +6 -0
  28. package/vite-plugin/index.js +48 -20
  29. package/bin/313.index.js +0 -377
  30. package/bin/678.index.js +0 -7565
  31. package/bin/9.index.js +0 -850
  32. package/bin/947.index.js +0 -1565
  33. package/bin/shared/initializeSpa/index.d.ts +0 -1
  34. package/bin/shared/metaInfKeycloakThemes.d.ts +0 -13
  35. package/src/bin/shared/initializeSpa/index.ts +0 -1
  36. package/src/bin/shared/metaInfKeycloakThemes.ts +0 -40
  37. /package/bin/shared/{initializeSpa/addSyncExtensionsToPostinstallScript.d.ts → addSyncExtensionsToPostinstallScript.d.ts} +0 -0
  38. /package/bin/shared/{initializeSpa/initializeSpa.d.ts → initializeSpa.d.ts} +0 -0
package/bin/363.index.js CHANGED
@@ -351,6 +351,9 @@ function addCommentToSourceCode(params) {
351
351
  if (fileRelativePath.endsWith(".properties")) {
352
352
  return toResult(commentLines.map(line => `# ${line}`).join("\n"));
353
353
  }
354
+ if (fileRelativePath.endsWith(".ftl")) {
355
+ return toResult([`<#--`, ...commentLines.map(line => ` ${line}`), `-->`].join("\n"));
356
+ }
354
357
  if (fileRelativePath.endsWith(".html") || fileRelativePath.endsWith(".svg")) {
355
358
  const comment = [
356
359
  `<!--`,
@@ -503,8 +506,8 @@ var SemVer = __webpack_require__(12171);
503
506
  var same = __webpack_require__(33805);
504
507
  // EXTERNAL MODULE: ./dist/bin/tools/runPrettier.js
505
508
  var runPrettier = __webpack_require__(48433);
506
- // EXTERNAL MODULE: ./dist/bin/tools/npmInstall.js
507
- var npmInstall = __webpack_require__(50030);
509
+ // EXTERNAL MODULE: ./dist/bin/tools/npmInstall.js + 1 modules
510
+ var npmInstall = __webpack_require__(63046);
508
511
  // EXTERNAL MODULE: external "path"
509
512
  var external_path_ = __webpack_require__(71017);
510
513
  ;// CONCATENATED MODULE: ./dist/bin/sync-extensions/installExtensionModulesPeerDependencies.js
@@ -1081,29 +1084,48 @@ function getNodeModulesBinDirPath() {
1081
1084
 
1082
1085
  /***/ }),
1083
1086
 
1084
- /***/ 50030:
1087
+ /***/ 63046:
1085
1088
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1086
1089
 
1087
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1088
- /* harmony export */ "c": () => (/* binding */ npmInstall)
1089
- /* harmony export */ });
1090
- /* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(57147);
1091
- /* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_0__);
1092
- /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71017);
1093
- /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);
1094
- /* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(32081);
1095
- /* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(child_process__WEBPACK_IMPORTED_MODULE_2__);
1096
- /* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(78818);
1097
- /* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(chalk__WEBPACK_IMPORTED_MODULE_3__);
1098
- /* harmony import */ var zod__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(52300);
1099
- /* harmony import */ var tsafe_assert__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(29041);
1100
- /* harmony import */ var tsafe_id__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(38469);
1101
- /* harmony import */ var tsafe_objectKeys__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(23483);
1102
- /* harmony import */ var _getAbsoluteAndInOsFormatPath__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(84794);
1103
- /* harmony import */ var tsafe_exclude__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(83101);
1104
- /* harmony import */ var _fs_rmSync__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(89693);
1105
- /* harmony import */ var evt_tools_Deferred__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(50689);
1106
- /* harmony import */ var evt_tools_Deferred__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(evt_tools_Deferred__WEBPACK_IMPORTED_MODULE_7__);
1090
+
1091
+ // EXPORTS
1092
+ __webpack_require__.d(__webpack_exports__, {
1093
+ "c": () => (/* binding */ npmInstall)
1094
+ });
1095
+
1096
+ // EXTERNAL MODULE: external "fs"
1097
+ var external_fs_ = __webpack_require__(57147);
1098
+ // EXTERNAL MODULE: external "path"
1099
+ var external_path_ = __webpack_require__(71017);
1100
+ // EXTERNAL MODULE: external "child_process"
1101
+ var external_child_process_ = __webpack_require__(32081);
1102
+ // EXTERNAL MODULE: ./node_modules/chalk/source/index.js
1103
+ var source = __webpack_require__(78818);
1104
+ var source_default = /*#__PURE__*/__webpack_require__.n(source);
1105
+ // EXTERNAL MODULE: ./node_modules/zod/lib/index.mjs
1106
+ var lib = __webpack_require__(52300);
1107
+ // EXTERNAL MODULE: ./node_modules/tsafe/esm/assert.mjs + 1 modules
1108
+ var assert = __webpack_require__(29041);
1109
+ // EXTERNAL MODULE: ./node_modules/tsafe/esm/id.mjs
1110
+ var id = __webpack_require__(38469);
1111
+ ;// CONCATENATED MODULE: ./node_modules/tsafe/esm/objectKeys.mjs
1112
+ /** https://docs.tsafe.dev/objectKeys */
1113
+ function objectKeys(o) {
1114
+ return Object.keys(o);
1115
+ }
1116
+
1117
+
1118
+ //# sourceMappingURL=objectKeys.mjs.map
1119
+
1120
+ // EXTERNAL MODULE: ./dist/bin/tools/getAbsoluteAndInOsFormatPath.js
1121
+ var getAbsoluteAndInOsFormatPath = __webpack_require__(84794);
1122
+ // EXTERNAL MODULE: ./node_modules/tsafe/esm/exclude.mjs
1123
+ var exclude = __webpack_require__(83101);
1124
+ // EXTERNAL MODULE: ./dist/bin/tools/fs.rmSync.js
1125
+ var fs_rmSync = __webpack_require__(89693);
1126
+ // EXTERNAL MODULE: ./node_modules/evt/tools/Deferred.js
1127
+ var Deferred = __webpack_require__(50689);
1128
+ ;// CONCATENATED MODULE: ./dist/bin/tools/npmInstall.js
1107
1129
 
1108
1130
 
1109
1131
 
@@ -1142,8 +1164,8 @@ async function npmInstall(params) {
1142
1164
  }
1143
1165
  ];
1144
1166
  for (const packageManager of packageMangers) {
1145
- if (fs__WEBPACK_IMPORTED_MODULE_0__.existsSync((0,path__WEBPACK_IMPORTED_MODULE_1__.join)(packageJsonDirPath, packageManager.lockFileBasename)) ||
1146
- fs__WEBPACK_IMPORTED_MODULE_0__.existsSync((0,path__WEBPACK_IMPORTED_MODULE_1__.join)(process.cwd(), packageManager.lockFileBasename))) {
1167
+ if (external_fs_.existsSync((0,external_path_.join)(packageJsonDirPath, packageManager.lockFileBasename)) ||
1168
+ external_fs_.existsSync((0,external_path_.join)(process.cwd(), packageManager.lockFileBasename))) {
1147
1169
  return packageManager.binName;
1148
1170
  }
1149
1171
  }
@@ -1158,7 +1180,7 @@ async function npmInstall(params) {
1158
1180
  if (garronejLinkInfos === undefined) {
1159
1181
  break install_without_breaking_links;
1160
1182
  }
1161
- console.log(chalk__WEBPACK_IMPORTED_MODULE_3___default().green("Installing in a way that won't break the links..."));
1183
+ console.log(source_default().green("Installing in a way that won't break the links..."));
1162
1184
  await installWithoutBreakingLinks({
1163
1185
  packageJsonDirPath,
1164
1186
  garronejLinkInfos
@@ -1172,13 +1194,13 @@ async function npmInstall(params) {
1172
1194
  });
1173
1195
  }
1174
1196
  catch (_a) {
1175
- console.log(chalk__WEBPACK_IMPORTED_MODULE_3___default().yellow(`\`${packageManagerBinName} install\` failed, continuing anyway...`));
1197
+ console.log(source_default().yellow(`\`${packageManagerBinName} install\` failed, continuing anyway...`));
1176
1198
  }
1177
1199
  }
1178
1200
  async function runPackageManagerInstall(params) {
1179
1201
  const { packageManagerBinName, cwd } = params;
1180
- const dCompleted = new evt_tools_Deferred__WEBPACK_IMPORTED_MODULE_7__.Deferred();
1181
- const child = child_process__WEBPACK_IMPORTED_MODULE_2__.spawn(packageManagerBinName, ["install"], {
1202
+ const dCompleted = new Deferred.Deferred();
1203
+ const child = external_child_process_.spawn(packageManagerBinName, ["install"], {
1182
1204
  cwd,
1183
1205
  env: process.env,
1184
1206
  shell: true
@@ -1201,8 +1223,8 @@ async function runPackageManagerInstall(params) {
1201
1223
  }
1202
1224
  function getGarronejLinkInfos(params) {
1203
1225
  const { packageJsonDirPath } = params;
1204
- const nodeModuleDirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(packageJsonDirPath, "node_modules");
1205
- if (!fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(nodeModuleDirPath)) {
1226
+ const nodeModuleDirPath = (0,external_path_.join)(packageJsonDirPath, "node_modules");
1227
+ if (!external_fs_.existsSync(nodeModuleDirPath)) {
1206
1228
  return undefined;
1207
1229
  }
1208
1230
  const linkedModuleNames = [];
@@ -1210,7 +1232,7 @@ function getGarronejLinkInfos(params) {
1210
1232
  const getIsLinkedByGarronejScript = (path) => {
1211
1233
  let realPath;
1212
1234
  try {
1213
- realPath = fs__WEBPACK_IMPORTED_MODULE_0__.readlinkSync(path);
1235
+ realPath = external_fs_.readlinkSync(path);
1214
1236
  }
1215
1237
  catch (_a) {
1216
1238
  return false;
@@ -1223,17 +1245,17 @@ function getGarronejLinkInfos(params) {
1223
1245
  if (yarnHomeDirPath !== undefined) {
1224
1246
  break set_yarnHomeDirPath;
1225
1247
  }
1226
- const [firstElement] = (0,_getAbsoluteAndInOsFormatPath__WEBPACK_IMPORTED_MODULE_5__/* .getAbsoluteAndInOsFormatPath */ .c)({
1248
+ const [firstElement] = (0,getAbsoluteAndInOsFormatPath/* getAbsoluteAndInOsFormatPath */.c)({
1227
1249
  pathIsh: realPath,
1228
- cwd: (0,path__WEBPACK_IMPORTED_MODULE_1__.dirname)(path)
1250
+ cwd: (0,external_path_.dirname)(path)
1229
1251
  }).split(".yarn_home");
1230
- yarnHomeDirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(firstElement, ".yarn_home");
1252
+ yarnHomeDirPath = (0,external_path_.join)(firstElement, ".yarn_home");
1231
1253
  }
1232
1254
  return true;
1233
1255
  };
1234
- for (const basename of fs__WEBPACK_IMPORTED_MODULE_0__.readdirSync(nodeModuleDirPath)) {
1235
- const path = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(nodeModuleDirPath, basename);
1236
- if (fs__WEBPACK_IMPORTED_MODULE_0__.lstatSync(path).isSymbolicLink()) {
1256
+ for (const basename of external_fs_.readdirSync(nodeModuleDirPath)) {
1257
+ const path = (0,external_path_.join)(nodeModuleDirPath, basename);
1258
+ if (external_fs_.lstatSync(path).isSymbolicLink()) {
1237
1259
  if (basename.startsWith("@")) {
1238
1260
  return undefined;
1239
1261
  }
@@ -1243,13 +1265,13 @@ function getGarronejLinkInfos(params) {
1243
1265
  linkedModuleNames.push(basename);
1244
1266
  continue;
1245
1267
  }
1246
- if (!fs__WEBPACK_IMPORTED_MODULE_0__.lstatSync(path).isDirectory()) {
1268
+ if (!external_fs_.lstatSync(path).isDirectory()) {
1247
1269
  continue;
1248
1270
  }
1249
1271
  if (basename.startsWith("@")) {
1250
- for (const subBasename of fs__WEBPACK_IMPORTED_MODULE_0__.readdirSync(path)) {
1251
- const subPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(path, subBasename);
1252
- if (!fs__WEBPACK_IMPORTED_MODULE_0__.lstatSync(subPath).isSymbolicLink()) {
1272
+ for (const subBasename of external_fs_.readdirSync(path)) {
1273
+ const subPath = (0,external_path_.join)(path, subBasename);
1274
+ if (!external_fs_.lstatSync(subPath).isSymbolicLink()) {
1253
1275
  continue;
1254
1276
  }
1255
1277
  if (!getIsLinkedByGarronejScript(subPath)) {
@@ -1267,17 +1289,17 @@ function getGarronejLinkInfos(params) {
1267
1289
  async function installWithoutBreakingLinks(params) {
1268
1290
  const { packageJsonDirPath, garronejLinkInfos: { linkedModuleNames, yarnHomeDirPath } } = params;
1269
1291
  const parsedPackageJson = (() => {
1270
- const packageJsonFilePath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(packageJsonDirPath, "package.json");
1292
+ const packageJsonFilePath = (0,external_path_.join)(packageJsonDirPath, "package.json");
1271
1293
  const zParsedPackageJson = (() => {
1272
- const zTargetType = zod__WEBPACK_IMPORTED_MODULE_8__.z.object({
1273
- scripts: zod__WEBPACK_IMPORTED_MODULE_8__.z.record(zod__WEBPACK_IMPORTED_MODULE_8__.z.string()).optional()
1294
+ const zTargetType = lib.z.object({
1295
+ scripts: lib.z.record(lib.z.string()).optional()
1274
1296
  });
1275
- tsafe_assert__WEBPACK_IMPORTED_MODULE_4__/* .assert */ .h;
1276
- return (0,tsafe_id__WEBPACK_IMPORTED_MODULE_9__.id)(zTargetType);
1297
+ assert/* assert */.h;
1298
+ return (0,id.id)(zTargetType);
1277
1299
  })();
1278
- const parsedPackageJson = JSON.parse(fs__WEBPACK_IMPORTED_MODULE_0__.readFileSync(packageJsonFilePath).toString("utf8"));
1300
+ const parsedPackageJson = JSON.parse(external_fs_.readFileSync(packageJsonFilePath).toString("utf8"));
1279
1301
  zParsedPackageJson.parse(parsedPackageJson);
1280
- (0,tsafe_assert__WEBPACK_IMPORTED_MODULE_4__/* .assert */ .h)((0,tsafe_assert__WEBPACK_IMPORTED_MODULE_4__.is)(parsedPackageJson));
1302
+ (0,assert/* assert */.h)((0,assert.is)(parsedPackageJson));
1281
1303
  return parsedPackageJson;
1282
1304
  })();
1283
1305
  const isImplementedScriptByName = {
@@ -1288,7 +1310,7 @@ async function installWithoutBreakingLinks(params) {
1288
1310
  if (parsedPackageJson.scripts === undefined) {
1289
1311
  break delete_postinstall_script;
1290
1312
  }
1291
- for (const scriptName of (0,tsafe_objectKeys__WEBPACK_IMPORTED_MODULE_10__/* .objectKeys */ .Y)(isImplementedScriptByName)) {
1313
+ for (const scriptName of objectKeys(isImplementedScriptByName)) {
1292
1314
  if (parsedPackageJson.scripts[scriptName] === undefined) {
1293
1315
  continue;
1294
1316
  }
@@ -1296,14 +1318,14 @@ async function installWithoutBreakingLinks(params) {
1296
1318
  delete parsedPackageJson.scripts[scriptName];
1297
1319
  }
1298
1320
  }
1299
- const tmpProjectDirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(yarnHomeDirPath, "tmpProject");
1300
- if (fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(tmpProjectDirPath)) {
1301
- (0,_fs_rmSync__WEBPACK_IMPORTED_MODULE_6__/* .rmSync */ .a)(tmpProjectDirPath, { recursive: true });
1321
+ const tmpProjectDirPath = (0,external_path_.join)(yarnHomeDirPath, "tmpProject");
1322
+ if (external_fs_.existsSync(tmpProjectDirPath)) {
1323
+ (0,fs_rmSync/* rmSync */.a)(tmpProjectDirPath, { recursive: true });
1302
1324
  }
1303
- fs__WEBPACK_IMPORTED_MODULE_0__.mkdirSync(tmpProjectDirPath, { recursive: true });
1304
- fs__WEBPACK_IMPORTED_MODULE_0__.writeFileSync((0,path__WEBPACK_IMPORTED_MODULE_1__.join)(tmpProjectDirPath, "package.json"), JSON.stringify(parsedPackageJson, undefined, 4));
1325
+ external_fs_.mkdirSync(tmpProjectDirPath, { recursive: true });
1326
+ external_fs_.writeFileSync((0,external_path_.join)(tmpProjectDirPath, "package.json"), JSON.stringify(parsedPackageJson, undefined, 4));
1305
1327
  const YARN_LOCK = "yarn.lock";
1306
- 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));
1328
+ external_fs_.copyFileSync((0,external_path_.join)(packageJsonDirPath, YARN_LOCK), (0,external_path_.join)(tmpProjectDirPath, YARN_LOCK));
1307
1329
  await runPackageManagerInstall({
1308
1330
  packageManagerBinName: "yarn",
1309
1331
  cwd: tmpProjectDirPath
@@ -1313,18 +1335,18 @@ async function installWithoutBreakingLinks(params) {
1313
1335
  {
1314
1336
  const { getAreSameVersions } = (() => {
1315
1337
  const zParsedPackageJson = (() => {
1316
- const zTargetType = zod__WEBPACK_IMPORTED_MODULE_8__.z.object({
1317
- version: zod__WEBPACK_IMPORTED_MODULE_8__.z.string()
1338
+ const zTargetType = lib.z.object({
1339
+ version: lib.z.string()
1318
1340
  });
1319
- tsafe_assert__WEBPACK_IMPORTED_MODULE_4__/* .assert */ .h;
1320
- return (0,tsafe_id__WEBPACK_IMPORTED_MODULE_9__.id)(zTargetType);
1341
+ assert/* assert */.h;
1342
+ return (0,id.id)(zTargetType);
1321
1343
  })();
1322
1344
  function readVersion(params) {
1323
1345
  const { moduleDirPath } = params;
1324
- const packageJsonFilePath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(moduleDirPath, "package.json");
1325
- const packageJson = JSON.parse(fs__WEBPACK_IMPORTED_MODULE_0__.readFileSync(packageJsonFilePath).toString("utf8"));
1346
+ const packageJsonFilePath = (0,external_path_.join)(moduleDirPath, "package.json");
1347
+ const packageJson = JSON.parse(external_fs_.readFileSync(packageJsonFilePath).toString("utf8"));
1326
1348
  zParsedPackageJson.parse(packageJson);
1327
- (0,tsafe_assert__WEBPACK_IMPORTED_MODULE_4__/* .assert */ .h)((0,tsafe_assert__WEBPACK_IMPORTED_MODULE_4__.is)(packageJson));
1349
+ (0,assert/* assert */.h)((0,assert.is)(packageJson));
1328
1350
  return packageJson.version;
1329
1351
  }
1330
1352
  function getAreSameVersions(params) {
@@ -1334,44 +1356,44 @@ async function installWithoutBreakingLinks(params) {
1334
1356
  }
1335
1357
  return { getAreSameVersions };
1336
1358
  })();
1337
- const nodeModulesDirPath_tmpProject = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(tmpProjectDirPath, "node_modules");
1338
- const nodeModulesDirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(packageJsonDirPath, "node_modules");
1339
- const modulePaths = fs__WEBPACK_IMPORTED_MODULE_0__.readdirSync(nodeModulesDirPath_tmpProject)
1359
+ const nodeModulesDirPath_tmpProject = (0,external_path_.join)(tmpProjectDirPath, "node_modules");
1360
+ const nodeModulesDirPath = (0,external_path_.join)(packageJsonDirPath, "node_modules");
1361
+ const modulePaths = external_fs_.readdirSync(nodeModulesDirPath_tmpProject)
1340
1362
  .map(basename => {
1341
1363
  if (basename.startsWith(".")) {
1342
1364
  return undefined;
1343
1365
  }
1344
- const path = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(nodeModulesDirPath_tmpProject, basename);
1366
+ const path = (0,external_path_.join)(nodeModulesDirPath_tmpProject, basename);
1345
1367
  if (basename.startsWith("@")) {
1346
- return fs__WEBPACK_IMPORTED_MODULE_0__.readdirSync(path)
1368
+ return external_fs_.readdirSync(path)
1347
1369
  .map(subBasename => {
1348
1370
  if (subBasename.startsWith(".")) {
1349
1371
  return undefined;
1350
1372
  }
1351
- const subPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(path, subBasename);
1352
- if (!fs__WEBPACK_IMPORTED_MODULE_0__.lstatSync(subPath).isDirectory()) {
1373
+ const subPath = (0,external_path_.join)(path, subBasename);
1374
+ if (!external_fs_.lstatSync(subPath).isDirectory()) {
1353
1375
  return undefined;
1354
1376
  }
1355
1377
  return {
1356
1378
  moduleName: `${basename}/${subBasename}`,
1357
1379
  moduleDirPath_tmpProject: subPath,
1358
- moduleDirPath: (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(nodeModulesDirPath, basename, subBasename)
1380
+ moduleDirPath: (0,external_path_.join)(nodeModulesDirPath, basename, subBasename)
1359
1381
  };
1360
1382
  })
1361
- .filter((0,tsafe_exclude__WEBPACK_IMPORTED_MODULE_11__/* .exclude */ .D)(undefined));
1383
+ .filter((0,exclude/* exclude */.D)(undefined));
1362
1384
  }
1363
- if (!fs__WEBPACK_IMPORTED_MODULE_0__.lstatSync(path).isDirectory()) {
1385
+ if (!external_fs_.lstatSync(path).isDirectory()) {
1364
1386
  return undefined;
1365
1387
  }
1366
1388
  return [
1367
1389
  {
1368
1390
  moduleName: basename,
1369
1391
  moduleDirPath_tmpProject: path,
1370
- moduleDirPath: (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(nodeModulesDirPath, basename)
1392
+ moduleDirPath: (0,external_path_.join)(nodeModulesDirPath, basename)
1371
1393
  }
1372
1394
  ];
1373
1395
  })
1374
- .filter((0,tsafe_exclude__WEBPACK_IMPORTED_MODULE_11__/* .exclude */ .D)(undefined))
1396
+ .filter((0,exclude/* exclude */.D)(undefined))
1375
1397
  .flat();
1376
1398
  for (const { moduleName, moduleDirPath, moduleDirPath_tmpProject } of modulePaths) {
1377
1399
  if (linkedModuleNames.includes(moduleName)) {
@@ -1379,7 +1401,7 @@ async function installWithoutBreakingLinks(params) {
1379
1401
  }
1380
1402
  let doesTargetModuleExist = false;
1381
1403
  skip_condition: {
1382
- if (!fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(moduleDirPath)) {
1404
+ if (!external_fs_.existsSync(moduleDirPath)) {
1383
1405
  break skip_condition;
1384
1406
  }
1385
1407
  doesTargetModuleExist = true;
@@ -1393,39 +1415,39 @@ async function installWithoutBreakingLinks(params) {
1393
1415
  continue;
1394
1416
  }
1395
1417
  if (doesTargetModuleExist) {
1396
- (0,_fs_rmSync__WEBPACK_IMPORTED_MODULE_6__/* .rmSync */ .a)(moduleDirPath, { recursive: true });
1418
+ (0,fs_rmSync/* rmSync */.a)(moduleDirPath, { recursive: true });
1397
1419
  }
1398
1420
  {
1399
- const dirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.dirname)(moduleDirPath);
1400
- if (!fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(dirPath)) {
1401
- fs__WEBPACK_IMPORTED_MODULE_0__.mkdirSync(dirPath, { recursive: true });
1421
+ const dirPath = (0,external_path_.dirname)(moduleDirPath);
1422
+ if (!external_fs_.existsSync(dirPath)) {
1423
+ external_fs_.mkdirSync(dirPath, { recursive: true });
1402
1424
  }
1403
1425
  }
1404
- fs__WEBPACK_IMPORTED_MODULE_0__.renameSync(moduleDirPath_tmpProject, moduleDirPath);
1426
+ external_fs_.renameSync(moduleDirPath_tmpProject, moduleDirPath);
1405
1427
  }
1406
1428
  move_bin: {
1407
- const binDirPath_tmpProject = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(nodeModulesDirPath_tmpProject, ".bin");
1408
- const binDirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(nodeModulesDirPath, ".bin");
1409
- if (!fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(binDirPath_tmpProject)) {
1429
+ const binDirPath_tmpProject = (0,external_path_.join)(nodeModulesDirPath_tmpProject, ".bin");
1430
+ const binDirPath = (0,external_path_.join)(nodeModulesDirPath, ".bin");
1431
+ if (!external_fs_.existsSync(binDirPath_tmpProject)) {
1410
1432
  break move_bin;
1411
1433
  }
1412
- for (const basename of fs__WEBPACK_IMPORTED_MODULE_0__.readdirSync(binDirPath_tmpProject)) {
1413
- const path_tmpProject = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(binDirPath_tmpProject, basename);
1414
- const path = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(binDirPath, basename);
1415
- if (fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(path)) {
1434
+ for (const basename of external_fs_.readdirSync(binDirPath_tmpProject)) {
1435
+ const path_tmpProject = (0,external_path_.join)(binDirPath_tmpProject, basename);
1436
+ const path = (0,external_path_.join)(binDirPath, basename);
1437
+ if (external_fs_.existsSync(path)) {
1416
1438
  continue;
1417
1439
  }
1418
- fs__WEBPACK_IMPORTED_MODULE_0__.renameSync(path_tmpProject, path);
1440
+ external_fs_.renameSync(path_tmpProject, path);
1419
1441
  }
1420
1442
  }
1421
1443
  }
1422
- 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));
1423
- (0,_fs_rmSync__WEBPACK_IMPORTED_MODULE_6__/* .rmSync */ .a)(tmpProjectDirPath, { recursive: true });
1424
- for (const scriptName of (0,tsafe_objectKeys__WEBPACK_IMPORTED_MODULE_10__/* .objectKeys */ .Y)(isImplementedScriptByName)) {
1444
+ external_fs_.cpSync((0,external_path_.join)(tmpProjectDirPath, YARN_LOCK), (0,external_path_.join)(packageJsonDirPath, YARN_LOCK));
1445
+ (0,fs_rmSync/* rmSync */.a)(tmpProjectDirPath, { recursive: true });
1446
+ for (const scriptName of objectKeys(isImplementedScriptByName)) {
1425
1447
  if (!isImplementedScriptByName[scriptName]) {
1426
1448
  continue;
1427
1449
  }
1428
- child_process__WEBPACK_IMPORTED_MODULE_2__.execSync(`yarn run ${scriptName}`, {
1450
+ external_child_process_.execSync(`yarn run ${scriptName}`, {
1429
1451
  cwd: packageJsonDirPath,
1430
1452
  stdio: "inherit"
1431
1453
  });