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.
- package/bin/{33.index.js → 226.index.js} +2 -19
- package/bin/355.index.js +1 -1
- package/bin/363.index.js +112 -93
- package/bin/{664.index.js → 502.index.js} +112 -110
- package/bin/656.index.js +1 -1
- package/bin/{880.index.js → 712.index.js} +28 -72
- package/bin/780.index.js +1 -1
- package/bin/932.index.js +1 -1
- package/bin/97.index.js +42 -34
- package/bin/main.js +17 -28
- package/bin/start-keycloak/realmConfig/prepareRealmConfig.d.ts +5 -6
- package/bin/start-keycloak/realmConfig/realmConfig.d.ts +6 -2
- package/package.json +4 -6
- package/src/bin/keycloakify/buildJars/buildJar.ts +45 -20
- package/src/bin/keycloakify/generateResources/generateResources.ts +8 -37
- package/src/bin/start-keycloak/realmConfig/prepareRealmConfig.ts +12 -23
- package/src/bin/start-keycloak/realmConfig/realmConfig.ts +14 -12
- package/src/bin/start-keycloak/start-keycloak.ts +55 -28
- package/bin/shared/metaInfKeycloakThemes.d.ts +0 -13
- package/src/bin/shared/metaInfKeycloakThemes.ts +0 -40
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
|
-
exports.id =
|
3
|
-
exports.ids = [
|
2
|
+
exports.id = 226;
|
3
|
+
exports.ids = [226];
|
4
4
|
exports.modules = {
|
5
5
|
|
6
6
|
/***/ 50689:
|
@@ -774,23 +774,6 @@ function typeGuard(value, isMatched) {
|
|
774
774
|
}
|
775
775
|
//# sourceMappingURL=typeGuard.js.map
|
776
776
|
|
777
|
-
/***/ }),
|
778
|
-
|
779
|
-
/***/ 23483:
|
780
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
781
|
-
|
782
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
783
|
-
/* harmony export */ "Y": () => (/* binding */ objectKeys)
|
784
|
-
/* harmony export */ });
|
785
|
-
/** https://docs.tsafe.dev/objectKeys */
|
786
|
-
function objectKeys(o) {
|
787
|
-
return Object.keys(o);
|
788
|
-
}
|
789
|
-
|
790
|
-
|
791
|
-
//# sourceMappingURL=objectKeys.mjs.map
|
792
|
-
|
793
|
-
|
794
777
|
/***/ }),
|
795
778
|
|
796
779
|
/***/ 76030:
|
package/bin/355.index.js
CHANGED
@@ -173,7 +173,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
173
173
|
/* harmony import */ var tsafe_id__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(38469);
|
174
174
|
/* harmony import */ var _addSyncExtensionsToPostinstallScript__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80339);
|
175
175
|
/* harmony import */ var _tools_runPrettier__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(48433);
|
176
|
-
/* harmony import */ var _tools_npmInstall__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
176
|
+
/* harmony import */ var _tools_npmInstall__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(63046);
|
177
177
|
/* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(32081);
|
178
178
|
/* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(child_process__WEBPACK_IMPORTED_MODULE_6__);
|
179
179
|
/* harmony import */ var zod__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(52300);
|
package/bin/363.index.js
CHANGED
@@ -506,8 +506,8 @@ var SemVer = __webpack_require__(12171);
|
|
506
506
|
var same = __webpack_require__(33805);
|
507
507
|
// EXTERNAL MODULE: ./dist/bin/tools/runPrettier.js
|
508
508
|
var runPrettier = __webpack_require__(48433);
|
509
|
-
// EXTERNAL MODULE: ./dist/bin/tools/npmInstall.js
|
510
|
-
var npmInstall = __webpack_require__(
|
509
|
+
// EXTERNAL MODULE: ./dist/bin/tools/npmInstall.js + 1 modules
|
510
|
+
var npmInstall = __webpack_require__(63046);
|
511
511
|
// EXTERNAL MODULE: external "path"
|
512
512
|
var external_path_ = __webpack_require__(71017);
|
513
513
|
;// CONCATENATED MODULE: ./dist/bin/sync-extensions/installExtensionModulesPeerDependencies.js
|
@@ -1084,29 +1084,48 @@ function getNodeModulesBinDirPath() {
|
|
1084
1084
|
|
1085
1085
|
/***/ }),
|
1086
1086
|
|
1087
|
-
/***/
|
1087
|
+
/***/ 63046:
|
1088
1088
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
1089
1089
|
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
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
|
1110
1129
|
|
1111
1130
|
|
1112
1131
|
|
@@ -1145,8 +1164,8 @@ async function npmInstall(params) {
|
|
1145
1164
|
}
|
1146
1165
|
];
|
1147
1166
|
for (const packageManager of packageMangers) {
|
1148
|
-
if (
|
1149
|
-
|
1167
|
+
if (external_fs_.existsSync((0,external_path_.join)(packageJsonDirPath, packageManager.lockFileBasename)) ||
|
1168
|
+
external_fs_.existsSync((0,external_path_.join)(process.cwd(), packageManager.lockFileBasename))) {
|
1150
1169
|
return packageManager.binName;
|
1151
1170
|
}
|
1152
1171
|
}
|
@@ -1161,7 +1180,7 @@ async function npmInstall(params) {
|
|
1161
1180
|
if (garronejLinkInfos === undefined) {
|
1162
1181
|
break install_without_breaking_links;
|
1163
1182
|
}
|
1164
|
-
console.log(
|
1183
|
+
console.log(source_default().green("Installing in a way that won't break the links..."));
|
1165
1184
|
await installWithoutBreakingLinks({
|
1166
1185
|
packageJsonDirPath,
|
1167
1186
|
garronejLinkInfos
|
@@ -1175,13 +1194,13 @@ async function npmInstall(params) {
|
|
1175
1194
|
});
|
1176
1195
|
}
|
1177
1196
|
catch (_a) {
|
1178
|
-
console.log(
|
1197
|
+
console.log(source_default().yellow(`\`${packageManagerBinName} install\` failed, continuing anyway...`));
|
1179
1198
|
}
|
1180
1199
|
}
|
1181
1200
|
async function runPackageManagerInstall(params) {
|
1182
1201
|
const { packageManagerBinName, cwd } = params;
|
1183
|
-
const dCompleted = new
|
1184
|
-
const child =
|
1202
|
+
const dCompleted = new Deferred.Deferred();
|
1203
|
+
const child = external_child_process_.spawn(packageManagerBinName, ["install"], {
|
1185
1204
|
cwd,
|
1186
1205
|
env: process.env,
|
1187
1206
|
shell: true
|
@@ -1204,8 +1223,8 @@ async function runPackageManagerInstall(params) {
|
|
1204
1223
|
}
|
1205
1224
|
function getGarronejLinkInfos(params) {
|
1206
1225
|
const { packageJsonDirPath } = params;
|
1207
|
-
const nodeModuleDirPath = (0,
|
1208
|
-
if (!
|
1226
|
+
const nodeModuleDirPath = (0,external_path_.join)(packageJsonDirPath, "node_modules");
|
1227
|
+
if (!external_fs_.existsSync(nodeModuleDirPath)) {
|
1209
1228
|
return undefined;
|
1210
1229
|
}
|
1211
1230
|
const linkedModuleNames = [];
|
@@ -1213,7 +1232,7 @@ function getGarronejLinkInfos(params) {
|
|
1213
1232
|
const getIsLinkedByGarronejScript = (path) => {
|
1214
1233
|
let realPath;
|
1215
1234
|
try {
|
1216
|
-
realPath =
|
1235
|
+
realPath = external_fs_.readlinkSync(path);
|
1217
1236
|
}
|
1218
1237
|
catch (_a) {
|
1219
1238
|
return false;
|
@@ -1226,17 +1245,17 @@ function getGarronejLinkInfos(params) {
|
|
1226
1245
|
if (yarnHomeDirPath !== undefined) {
|
1227
1246
|
break set_yarnHomeDirPath;
|
1228
1247
|
}
|
1229
|
-
const [firstElement] = (0,
|
1248
|
+
const [firstElement] = (0,getAbsoluteAndInOsFormatPath/* getAbsoluteAndInOsFormatPath */.c)({
|
1230
1249
|
pathIsh: realPath,
|
1231
|
-
cwd: (0,
|
1250
|
+
cwd: (0,external_path_.dirname)(path)
|
1232
1251
|
}).split(".yarn_home");
|
1233
|
-
yarnHomeDirPath = (0,
|
1252
|
+
yarnHomeDirPath = (0,external_path_.join)(firstElement, ".yarn_home");
|
1234
1253
|
}
|
1235
1254
|
return true;
|
1236
1255
|
};
|
1237
|
-
for (const basename of
|
1238
|
-
const path = (0,
|
1239
|
-
if (
|
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()) {
|
1240
1259
|
if (basename.startsWith("@")) {
|
1241
1260
|
return undefined;
|
1242
1261
|
}
|
@@ -1246,13 +1265,13 @@ function getGarronejLinkInfos(params) {
|
|
1246
1265
|
linkedModuleNames.push(basename);
|
1247
1266
|
continue;
|
1248
1267
|
}
|
1249
|
-
if (!
|
1268
|
+
if (!external_fs_.lstatSync(path).isDirectory()) {
|
1250
1269
|
continue;
|
1251
1270
|
}
|
1252
1271
|
if (basename.startsWith("@")) {
|
1253
|
-
for (const subBasename of
|
1254
|
-
const subPath = (0,
|
1255
|
-
if (!
|
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()) {
|
1256
1275
|
continue;
|
1257
1276
|
}
|
1258
1277
|
if (!getIsLinkedByGarronejScript(subPath)) {
|
@@ -1270,17 +1289,17 @@ function getGarronejLinkInfos(params) {
|
|
1270
1289
|
async function installWithoutBreakingLinks(params) {
|
1271
1290
|
const { packageJsonDirPath, garronejLinkInfos: { linkedModuleNames, yarnHomeDirPath } } = params;
|
1272
1291
|
const parsedPackageJson = (() => {
|
1273
|
-
const packageJsonFilePath = (0,
|
1292
|
+
const packageJsonFilePath = (0,external_path_.join)(packageJsonDirPath, "package.json");
|
1274
1293
|
const zParsedPackageJson = (() => {
|
1275
|
-
const zTargetType =
|
1276
|
-
scripts:
|
1294
|
+
const zTargetType = lib.z.object({
|
1295
|
+
scripts: lib.z.record(lib.z.string()).optional()
|
1277
1296
|
});
|
1278
|
-
|
1279
|
-
return (0,
|
1297
|
+
assert/* assert */.h;
|
1298
|
+
return (0,id.id)(zTargetType);
|
1280
1299
|
})();
|
1281
|
-
const parsedPackageJson = JSON.parse(
|
1300
|
+
const parsedPackageJson = JSON.parse(external_fs_.readFileSync(packageJsonFilePath).toString("utf8"));
|
1282
1301
|
zParsedPackageJson.parse(parsedPackageJson);
|
1283
|
-
(0,
|
1302
|
+
(0,assert/* assert */.h)((0,assert.is)(parsedPackageJson));
|
1284
1303
|
return parsedPackageJson;
|
1285
1304
|
})();
|
1286
1305
|
const isImplementedScriptByName = {
|
@@ -1291,7 +1310,7 @@ async function installWithoutBreakingLinks(params) {
|
|
1291
1310
|
if (parsedPackageJson.scripts === undefined) {
|
1292
1311
|
break delete_postinstall_script;
|
1293
1312
|
}
|
1294
|
-
for (const scriptName of
|
1313
|
+
for (const scriptName of objectKeys(isImplementedScriptByName)) {
|
1295
1314
|
if (parsedPackageJson.scripts[scriptName] === undefined) {
|
1296
1315
|
continue;
|
1297
1316
|
}
|
@@ -1299,14 +1318,14 @@ async function installWithoutBreakingLinks(params) {
|
|
1299
1318
|
delete parsedPackageJson.scripts[scriptName];
|
1300
1319
|
}
|
1301
1320
|
}
|
1302
|
-
const tmpProjectDirPath = (0,
|
1303
|
-
if (
|
1304
|
-
(0,
|
1321
|
+
const tmpProjectDirPath = (0,external_path_.join)(yarnHomeDirPath, "tmpProject");
|
1322
|
+
if (external_fs_.existsSync(tmpProjectDirPath)) {
|
1323
|
+
(0,fs_rmSync/* rmSync */.a)(tmpProjectDirPath, { recursive: true });
|
1305
1324
|
}
|
1306
|
-
|
1307
|
-
|
1325
|
+
external_fs_.mkdirSync(tmpProjectDirPath, { recursive: true });
|
1326
|
+
external_fs_.writeFileSync((0,external_path_.join)(tmpProjectDirPath, "package.json"), JSON.stringify(parsedPackageJson, undefined, 4));
|
1308
1327
|
const YARN_LOCK = "yarn.lock";
|
1309
|
-
|
1328
|
+
external_fs_.copyFileSync((0,external_path_.join)(packageJsonDirPath, YARN_LOCK), (0,external_path_.join)(tmpProjectDirPath, YARN_LOCK));
|
1310
1329
|
await runPackageManagerInstall({
|
1311
1330
|
packageManagerBinName: "yarn",
|
1312
1331
|
cwd: tmpProjectDirPath
|
@@ -1316,18 +1335,18 @@ async function installWithoutBreakingLinks(params) {
|
|
1316
1335
|
{
|
1317
1336
|
const { getAreSameVersions } = (() => {
|
1318
1337
|
const zParsedPackageJson = (() => {
|
1319
|
-
const zTargetType =
|
1320
|
-
version:
|
1338
|
+
const zTargetType = lib.z.object({
|
1339
|
+
version: lib.z.string()
|
1321
1340
|
});
|
1322
|
-
|
1323
|
-
return (0,
|
1341
|
+
assert/* assert */.h;
|
1342
|
+
return (0,id.id)(zTargetType);
|
1324
1343
|
})();
|
1325
1344
|
function readVersion(params) {
|
1326
1345
|
const { moduleDirPath } = params;
|
1327
|
-
const packageJsonFilePath = (0,
|
1328
|
-
const packageJson = JSON.parse(
|
1346
|
+
const packageJsonFilePath = (0,external_path_.join)(moduleDirPath, "package.json");
|
1347
|
+
const packageJson = JSON.parse(external_fs_.readFileSync(packageJsonFilePath).toString("utf8"));
|
1329
1348
|
zParsedPackageJson.parse(packageJson);
|
1330
|
-
(0,
|
1349
|
+
(0,assert/* assert */.h)((0,assert.is)(packageJson));
|
1331
1350
|
return packageJson.version;
|
1332
1351
|
}
|
1333
1352
|
function getAreSameVersions(params) {
|
@@ -1337,44 +1356,44 @@ async function installWithoutBreakingLinks(params) {
|
|
1337
1356
|
}
|
1338
1357
|
return { getAreSameVersions };
|
1339
1358
|
})();
|
1340
|
-
const nodeModulesDirPath_tmpProject = (0,
|
1341
|
-
const nodeModulesDirPath = (0,
|
1342
|
-
const modulePaths =
|
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)
|
1343
1362
|
.map(basename => {
|
1344
1363
|
if (basename.startsWith(".")) {
|
1345
1364
|
return undefined;
|
1346
1365
|
}
|
1347
|
-
const path = (0,
|
1366
|
+
const path = (0,external_path_.join)(nodeModulesDirPath_tmpProject, basename);
|
1348
1367
|
if (basename.startsWith("@")) {
|
1349
|
-
return
|
1368
|
+
return external_fs_.readdirSync(path)
|
1350
1369
|
.map(subBasename => {
|
1351
1370
|
if (subBasename.startsWith(".")) {
|
1352
1371
|
return undefined;
|
1353
1372
|
}
|
1354
|
-
const subPath = (0,
|
1355
|
-
if (!
|
1373
|
+
const subPath = (0,external_path_.join)(path, subBasename);
|
1374
|
+
if (!external_fs_.lstatSync(subPath).isDirectory()) {
|
1356
1375
|
return undefined;
|
1357
1376
|
}
|
1358
1377
|
return {
|
1359
1378
|
moduleName: `${basename}/${subBasename}`,
|
1360
1379
|
moduleDirPath_tmpProject: subPath,
|
1361
|
-
moduleDirPath: (0,
|
1380
|
+
moduleDirPath: (0,external_path_.join)(nodeModulesDirPath, basename, subBasename)
|
1362
1381
|
};
|
1363
1382
|
})
|
1364
|
-
.filter((0,
|
1383
|
+
.filter((0,exclude/* exclude */.D)(undefined));
|
1365
1384
|
}
|
1366
|
-
if (!
|
1385
|
+
if (!external_fs_.lstatSync(path).isDirectory()) {
|
1367
1386
|
return undefined;
|
1368
1387
|
}
|
1369
1388
|
return [
|
1370
1389
|
{
|
1371
1390
|
moduleName: basename,
|
1372
1391
|
moduleDirPath_tmpProject: path,
|
1373
|
-
moduleDirPath: (0,
|
1392
|
+
moduleDirPath: (0,external_path_.join)(nodeModulesDirPath, basename)
|
1374
1393
|
}
|
1375
1394
|
];
|
1376
1395
|
})
|
1377
|
-
.filter((0,
|
1396
|
+
.filter((0,exclude/* exclude */.D)(undefined))
|
1378
1397
|
.flat();
|
1379
1398
|
for (const { moduleName, moduleDirPath, moduleDirPath_tmpProject } of modulePaths) {
|
1380
1399
|
if (linkedModuleNames.includes(moduleName)) {
|
@@ -1382,7 +1401,7 @@ async function installWithoutBreakingLinks(params) {
|
|
1382
1401
|
}
|
1383
1402
|
let doesTargetModuleExist = false;
|
1384
1403
|
skip_condition: {
|
1385
|
-
if (!
|
1404
|
+
if (!external_fs_.existsSync(moduleDirPath)) {
|
1386
1405
|
break skip_condition;
|
1387
1406
|
}
|
1388
1407
|
doesTargetModuleExist = true;
|
@@ -1396,39 +1415,39 @@ async function installWithoutBreakingLinks(params) {
|
|
1396
1415
|
continue;
|
1397
1416
|
}
|
1398
1417
|
if (doesTargetModuleExist) {
|
1399
|
-
(0,
|
1418
|
+
(0,fs_rmSync/* rmSync */.a)(moduleDirPath, { recursive: true });
|
1400
1419
|
}
|
1401
1420
|
{
|
1402
|
-
const dirPath = (0,
|
1403
|
-
if (!
|
1404
|
-
|
1421
|
+
const dirPath = (0,external_path_.dirname)(moduleDirPath);
|
1422
|
+
if (!external_fs_.existsSync(dirPath)) {
|
1423
|
+
external_fs_.mkdirSync(dirPath, { recursive: true });
|
1405
1424
|
}
|
1406
1425
|
}
|
1407
|
-
|
1426
|
+
external_fs_.renameSync(moduleDirPath_tmpProject, moduleDirPath);
|
1408
1427
|
}
|
1409
1428
|
move_bin: {
|
1410
|
-
const binDirPath_tmpProject = (0,
|
1411
|
-
const binDirPath = (0,
|
1412
|
-
if (!
|
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)) {
|
1413
1432
|
break move_bin;
|
1414
1433
|
}
|
1415
|
-
for (const basename of
|
1416
|
-
const path_tmpProject = (0,
|
1417
|
-
const path = (0,
|
1418
|
-
if (
|
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)) {
|
1419
1438
|
continue;
|
1420
1439
|
}
|
1421
|
-
|
1440
|
+
external_fs_.renameSync(path_tmpProject, path);
|
1422
1441
|
}
|
1423
1442
|
}
|
1424
1443
|
}
|
1425
|
-
|
1426
|
-
(0,
|
1427
|
-
for (const scriptName of
|
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)) {
|
1428
1447
|
if (!isImplementedScriptByName[scriptName]) {
|
1429
1448
|
continue;
|
1430
1449
|
}
|
1431
|
-
|
1450
|
+
external_child_process_.execSync(`yarn run ${scriptName}`, {
|
1432
1451
|
cwd: packageJsonDirPath,
|
1433
1452
|
stdio: "inherit"
|
1434
1453
|
});
|