keycloakify 11.8.29 → 11.8.30
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/355.index.js +9 -1
- package/bin/363.index.js +9 -1
- package/bin/40.index.js +8 -0
- package/bin/780.index.js +9 -1
- package/bin/786.index.js +9 -1
- package/bin/932.index.js +9 -1
- package/bin/949.index.js +9 -1
- package/bin/97.index.js +9 -1
- package/bin/main.js +8 -7
- package/bin/tools/getThisCodebaseRootDirPath.d.ts +1 -0
- package/package.json +1 -1
- package/src/bin/tools/getThisCodebaseRootDirPath.ts +8 -8
- package/src/bin/tools/nodeModulesBinDirPath.ts +20 -1
- package/src/bin/tools/runPrettier.ts +5 -1
- package/vite-plugin/index.js +17 -8
package/bin/355.index.js
CHANGED
@@ -414,6 +414,14 @@ function getNodeModulesBinDirPath_bestEffort() {
|
|
414
414
|
return cache_bestEffort;
|
415
415
|
}
|
416
416
|
const binPath = process.argv[1];
|
417
|
+
special_case_running_not_from_distribution: {
|
418
|
+
if (!binPath.endsWith(".ts")) {
|
419
|
+
break special_case_running_not_from_distribution;
|
420
|
+
}
|
421
|
+
const packageJsonDirPath = (0,_getThisCodebaseRootDirPath__WEBPACK_IMPORTED_MODULE_1__/* .getNearestPackageJsonDirPath */ .B)((0,path__WEBPACK_IMPORTED_MODULE_0__.dirname)(binPath));
|
422
|
+
const nodeModulesBinDirPath = (0,path__WEBPACK_IMPORTED_MODULE_0__.join)(packageJsonDirPath, "node_modules", ".bin");
|
423
|
+
return nodeModulesBinDirPath;
|
424
|
+
}
|
417
425
|
const segments = [".bin"];
|
418
426
|
let foundNodeModules = false;
|
419
427
|
for (const segment of binPath.split(path__WEBPACK_IMPORTED_MODULE_0__.sep).reverse()) {
|
@@ -573,7 +581,7 @@ async function getPrettier() {
|
|
573
581
|
prettier = await Promise.resolve(/* import() */).then(__webpack_require__.t.bind(__webpack_require__, 79421, 23));
|
574
582
|
}
|
575
583
|
const configHash = await (async () => {
|
576
|
-
const configFilePath = await prettier.resolveConfigFile((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), ".."));
|
584
|
+
const configFilePath = await prettier.resolveConfigFile((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), "..", ".."));
|
577
585
|
if (configFilePath === null) {
|
578
586
|
return "";
|
579
587
|
}
|
package/bin/363.index.js
CHANGED
@@ -1094,6 +1094,14 @@ function getNodeModulesBinDirPath_bestEffort() {
|
|
1094
1094
|
return cache_bestEffort;
|
1095
1095
|
}
|
1096
1096
|
const binPath = process.argv[1];
|
1097
|
+
special_case_running_not_from_distribution: {
|
1098
|
+
if (!binPath.endsWith(".ts")) {
|
1099
|
+
break special_case_running_not_from_distribution;
|
1100
|
+
}
|
1101
|
+
const packageJsonDirPath = (0,_getThisCodebaseRootDirPath__WEBPACK_IMPORTED_MODULE_1__/* .getNearestPackageJsonDirPath */ .B)((0,path__WEBPACK_IMPORTED_MODULE_0__.dirname)(binPath));
|
1102
|
+
const nodeModulesBinDirPath = (0,path__WEBPACK_IMPORTED_MODULE_0__.join)(packageJsonDirPath, "node_modules", ".bin");
|
1103
|
+
return nodeModulesBinDirPath;
|
1104
|
+
}
|
1097
1105
|
const segments = [".bin"];
|
1098
1106
|
let foundNodeModules = false;
|
1099
1107
|
for (const segment of binPath.split(path__WEBPACK_IMPORTED_MODULE_0__.sep).reverse()) {
|
@@ -1626,7 +1634,7 @@ async function getPrettier() {
|
|
1626
1634
|
prettier = await Promise.resolve(/* import() */).then(__webpack_require__.t.bind(__webpack_require__, 79421, 23));
|
1627
1635
|
}
|
1628
1636
|
const configHash = await (async () => {
|
1629
|
-
const configFilePath = await prettier.resolveConfigFile((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), ".."));
|
1637
|
+
const configFilePath = await prettier.resolveConfigFile((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), "..", ".."));
|
1630
1638
|
if (configFilePath === null) {
|
1631
1639
|
return "";
|
1632
1640
|
}
|
package/bin/40.index.js
CHANGED
@@ -427,6 +427,14 @@ function getNodeModulesBinDirPath_bestEffort() {
|
|
427
427
|
return cache_bestEffort;
|
428
428
|
}
|
429
429
|
const binPath = process.argv[1];
|
430
|
+
special_case_running_not_from_distribution: {
|
431
|
+
if (!binPath.endsWith(".ts")) {
|
432
|
+
break special_case_running_not_from_distribution;
|
433
|
+
}
|
434
|
+
const packageJsonDirPath = (0,_getThisCodebaseRootDirPath__WEBPACK_IMPORTED_MODULE_1__/* .getNearestPackageJsonDirPath */ .B)((0,path__WEBPACK_IMPORTED_MODULE_0__.dirname)(binPath));
|
435
|
+
const nodeModulesBinDirPath = (0,path__WEBPACK_IMPORTED_MODULE_0__.join)(packageJsonDirPath, "node_modules", ".bin");
|
436
|
+
return nodeModulesBinDirPath;
|
437
|
+
}
|
430
438
|
const segments = [".bin"];
|
431
439
|
let foundNodeModules = false;
|
432
440
|
for (const segment of binPath.split(path__WEBPACK_IMPORTED_MODULE_0__.sep).reverse()) {
|
package/bin/780.index.js
CHANGED
@@ -411,6 +411,14 @@ function getNodeModulesBinDirPath_bestEffort() {
|
|
411
411
|
return cache_bestEffort;
|
412
412
|
}
|
413
413
|
const binPath = process.argv[1];
|
414
|
+
special_case_running_not_from_distribution: {
|
415
|
+
if (!binPath.endsWith(".ts")) {
|
416
|
+
break special_case_running_not_from_distribution;
|
417
|
+
}
|
418
|
+
const packageJsonDirPath = (0,_getThisCodebaseRootDirPath__WEBPACK_IMPORTED_MODULE_1__/* .getNearestPackageJsonDirPath */ .B)((0,path__WEBPACK_IMPORTED_MODULE_0__.dirname)(binPath));
|
419
|
+
const nodeModulesBinDirPath = (0,path__WEBPACK_IMPORTED_MODULE_0__.join)(packageJsonDirPath, "node_modules", ".bin");
|
420
|
+
return nodeModulesBinDirPath;
|
421
|
+
}
|
414
422
|
const segments = [".bin"];
|
415
423
|
let foundNodeModules = false;
|
416
424
|
for (const segment of binPath.split(path__WEBPACK_IMPORTED_MODULE_0__.sep).reverse()) {
|
@@ -570,7 +578,7 @@ async function getPrettier() {
|
|
570
578
|
prettier = await Promise.resolve(/* import() */).then(__webpack_require__.t.bind(__webpack_require__, 79421, 23));
|
571
579
|
}
|
572
580
|
const configHash = await (async () => {
|
573
|
-
const configFilePath = await prettier.resolveConfigFile((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), ".."));
|
581
|
+
const configFilePath = await prettier.resolveConfigFile((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), "..", ".."));
|
574
582
|
if (configFilePath === null) {
|
575
583
|
return "";
|
576
584
|
}
|
package/bin/786.index.js
CHANGED
@@ -220,6 +220,14 @@ function getNodeModulesBinDirPath_bestEffort() {
|
|
220
220
|
return cache_bestEffort;
|
221
221
|
}
|
222
222
|
const binPath = process.argv[1];
|
223
|
+
special_case_running_not_from_distribution: {
|
224
|
+
if (!binPath.endsWith(".ts")) {
|
225
|
+
break special_case_running_not_from_distribution;
|
226
|
+
}
|
227
|
+
const packageJsonDirPath = (0,_getThisCodebaseRootDirPath__WEBPACK_IMPORTED_MODULE_1__/* .getNearestPackageJsonDirPath */ .B)((0,path__WEBPACK_IMPORTED_MODULE_0__.dirname)(binPath));
|
228
|
+
const nodeModulesBinDirPath = (0,path__WEBPACK_IMPORTED_MODULE_0__.join)(packageJsonDirPath, "node_modules", ".bin");
|
229
|
+
return nodeModulesBinDirPath;
|
230
|
+
}
|
223
231
|
const segments = [".bin"];
|
224
232
|
let foundNodeModules = false;
|
225
233
|
for (const segment of binPath.split(path__WEBPACK_IMPORTED_MODULE_0__.sep).reverse()) {
|
@@ -379,7 +387,7 @@ async function getPrettier() {
|
|
379
387
|
prettier = await Promise.resolve(/* import() */).then(__webpack_require__.t.bind(__webpack_require__, 79421, 23));
|
380
388
|
}
|
381
389
|
const configHash = await (async () => {
|
382
|
-
const configFilePath = await prettier.resolveConfigFile((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), ".."));
|
390
|
+
const configFilePath = await prettier.resolveConfigFile((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), "..", ".."));
|
383
391
|
if (configFilePath === null) {
|
384
392
|
return "";
|
385
393
|
}
|
package/bin/932.index.js
CHANGED
@@ -390,6 +390,14 @@ function getNodeModulesBinDirPath_bestEffort() {
|
|
390
390
|
return cache_bestEffort;
|
391
391
|
}
|
392
392
|
const binPath = process.argv[1];
|
393
|
+
special_case_running_not_from_distribution: {
|
394
|
+
if (!binPath.endsWith(".ts")) {
|
395
|
+
break special_case_running_not_from_distribution;
|
396
|
+
}
|
397
|
+
const packageJsonDirPath = (0,_getThisCodebaseRootDirPath__WEBPACK_IMPORTED_MODULE_1__/* .getNearestPackageJsonDirPath */ .B)((0,path__WEBPACK_IMPORTED_MODULE_0__.dirname)(binPath));
|
398
|
+
const nodeModulesBinDirPath = (0,path__WEBPACK_IMPORTED_MODULE_0__.join)(packageJsonDirPath, "node_modules", ".bin");
|
399
|
+
return nodeModulesBinDirPath;
|
400
|
+
}
|
393
401
|
const segments = [".bin"];
|
394
402
|
let foundNodeModules = false;
|
395
403
|
for (const segment of binPath.split(path__WEBPACK_IMPORTED_MODULE_0__.sep).reverse()) {
|
@@ -549,7 +557,7 @@ async function getPrettier() {
|
|
549
557
|
prettier = await Promise.resolve(/* import() */).then(__webpack_require__.t.bind(__webpack_require__, 79421, 23));
|
550
558
|
}
|
551
559
|
const configHash = await (async () => {
|
552
|
-
const configFilePath = await prettier.resolveConfigFile((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), ".."));
|
560
|
+
const configFilePath = await prettier.resolveConfigFile((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), "..", ".."));
|
553
561
|
if (configFilePath === null) {
|
554
562
|
return "";
|
555
563
|
}
|
package/bin/949.index.js
CHANGED
@@ -236,6 +236,14 @@ function getNodeModulesBinDirPath_bestEffort() {
|
|
236
236
|
return cache_bestEffort;
|
237
237
|
}
|
238
238
|
const binPath = process.argv[1];
|
239
|
+
special_case_running_not_from_distribution: {
|
240
|
+
if (!binPath.endsWith(".ts")) {
|
241
|
+
break special_case_running_not_from_distribution;
|
242
|
+
}
|
243
|
+
const packageJsonDirPath = (0,_getThisCodebaseRootDirPath__WEBPACK_IMPORTED_MODULE_1__/* .getNearestPackageJsonDirPath */ .B)((0,path__WEBPACK_IMPORTED_MODULE_0__.dirname)(binPath));
|
244
|
+
const nodeModulesBinDirPath = (0,path__WEBPACK_IMPORTED_MODULE_0__.join)(packageJsonDirPath, "node_modules", ".bin");
|
245
|
+
return nodeModulesBinDirPath;
|
246
|
+
}
|
239
247
|
const segments = [".bin"];
|
240
248
|
let foundNodeModules = false;
|
241
249
|
for (const segment of binPath.split(path__WEBPACK_IMPORTED_MODULE_0__.sep).reverse()) {
|
@@ -395,7 +403,7 @@ async function getPrettier() {
|
|
395
403
|
prettier = await Promise.resolve(/* import() */).then(__webpack_require__.t.bind(__webpack_require__, 79421, 23));
|
396
404
|
}
|
397
405
|
const configHash = await (async () => {
|
398
|
-
const configFilePath = await prettier.resolveConfigFile((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), ".."));
|
406
|
+
const configFilePath = await prettier.resolveConfigFile((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), "..", ".."));
|
399
407
|
if (configFilePath === null) {
|
400
408
|
return "";
|
401
409
|
}
|
package/bin/97.index.js
CHANGED
@@ -2296,6 +2296,14 @@ function getNodeModulesBinDirPath_bestEffort() {
|
|
2296
2296
|
return cache_bestEffort;
|
2297
2297
|
}
|
2298
2298
|
const binPath = process.argv[1];
|
2299
|
+
special_case_running_not_from_distribution: {
|
2300
|
+
if (!binPath.endsWith(".ts")) {
|
2301
|
+
break special_case_running_not_from_distribution;
|
2302
|
+
}
|
2303
|
+
const packageJsonDirPath = (0,_getThisCodebaseRootDirPath__WEBPACK_IMPORTED_MODULE_1__/* .getNearestPackageJsonDirPath */ .B)((0,path__WEBPACK_IMPORTED_MODULE_0__.dirname)(binPath));
|
2304
|
+
const nodeModulesBinDirPath = (0,path__WEBPACK_IMPORTED_MODULE_0__.join)(packageJsonDirPath, "node_modules", ".bin");
|
2305
|
+
return nodeModulesBinDirPath;
|
2306
|
+
}
|
2299
2307
|
const segments = [".bin"];
|
2300
2308
|
let foundNodeModules = false;
|
2301
2309
|
for (const segment of binPath.split(path__WEBPACK_IMPORTED_MODULE_0__.sep).reverse()) {
|
@@ -2455,7 +2463,7 @@ async function getPrettier() {
|
|
2455
2463
|
prettier = await Promise.resolve(/* import() */).then(__webpack_require__.t.bind(__webpack_require__, 79421, 23));
|
2456
2464
|
}
|
2457
2465
|
const configHash = await (async () => {
|
2458
|
-
const configFilePath = await prettier.resolveConfigFile((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), ".."));
|
2466
|
+
const configFilePath = await prettier.resolveConfigFile((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), "..", ".."));
|
2459
2467
|
if (configFilePath === null) {
|
2460
2468
|
return "";
|
2461
2469
|
}
|
package/bin/main.js
CHANGED
@@ -172,6 +172,7 @@ function getAbsoluteAndInOsFormatPath(params) {
|
|
172
172
|
|
173
173
|
"use strict";
|
174
174
|
/* harmony export */ __nccwpck_require__.d(__webpack_exports__, {
|
175
|
+
/* harmony export */ "B": () => (/* binding */ getNearestPackageJsonDirPath),
|
175
176
|
/* harmony export */ "e": () => (/* binding */ getThisCodebaseRootDirPath)
|
176
177
|
/* harmony export */ });
|
177
178
|
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(57147);
|
@@ -180,18 +181,18 @@ function getAbsoluteAndInOsFormatPath(params) {
|
|
180
181
|
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__nccwpck_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);
|
181
182
|
|
182
183
|
|
183
|
-
function getThisCodebaseRootDirPath_rec(dirPath) {
|
184
|
-
if (fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(path__WEBPACK_IMPORTED_MODULE_1__.join(dirPath, "package.json"))) {
|
185
|
-
return dirPath;
|
186
|
-
}
|
187
|
-
return getThisCodebaseRootDirPath_rec(path__WEBPACK_IMPORTED_MODULE_1__.join(dirPath, ".."));
|
188
|
-
}
|
189
184
|
let result = undefined;
|
190
185
|
function getThisCodebaseRootDirPath() {
|
191
186
|
if (result !== undefined) {
|
192
187
|
return result;
|
193
188
|
}
|
194
|
-
return (result =
|
189
|
+
return (result = getNearestPackageJsonDirPath(__dirname));
|
190
|
+
}
|
191
|
+
function getNearestPackageJsonDirPath(dirPath) {
|
192
|
+
if (fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(path__WEBPACK_IMPORTED_MODULE_1__.join(dirPath, "package.json"))) {
|
193
|
+
return dirPath;
|
194
|
+
}
|
195
|
+
return getNearestPackageJsonDirPath(path__WEBPACK_IMPORTED_MODULE_1__.join(dirPath, ".."));
|
195
196
|
}
|
196
197
|
//# sourceMappingURL=getThisCodebaseRootDirPath.js.map
|
197
198
|
|
package/package.json
CHANGED
@@ -1,13 +1,6 @@
|
|
1
1
|
import * as fs from "fs";
|
2
2
|
import * as path from "path";
|
3
3
|
|
4
|
-
function getThisCodebaseRootDirPath_rec(dirPath: string): string {
|
5
|
-
if (fs.existsSync(path.join(dirPath, "package.json"))) {
|
6
|
-
return dirPath;
|
7
|
-
}
|
8
|
-
return getThisCodebaseRootDirPath_rec(path.join(dirPath, ".."));
|
9
|
-
}
|
10
|
-
|
11
4
|
let result: string | undefined = undefined;
|
12
5
|
|
13
6
|
export function getThisCodebaseRootDirPath(): string {
|
@@ -15,5 +8,12 @@ export function getThisCodebaseRootDirPath(): string {
|
|
15
8
|
return result;
|
16
9
|
}
|
17
10
|
|
18
|
-
return (result =
|
11
|
+
return (result = getNearestPackageJsonDirPath(__dirname));
|
12
|
+
}
|
13
|
+
|
14
|
+
export function getNearestPackageJsonDirPath(dirPath: string): string {
|
15
|
+
if (fs.existsSync(path.join(dirPath, "package.json"))) {
|
16
|
+
return dirPath;
|
17
|
+
}
|
18
|
+
return getNearestPackageJsonDirPath(path.join(dirPath, ".."));
|
19
19
|
}
|
@@ -1,5 +1,8 @@
|
|
1
1
|
import { sep as pathSep, dirname as pathDirname, join as pathJoin } from "path";
|
2
|
-
import {
|
2
|
+
import {
|
3
|
+
getThisCodebaseRootDirPath,
|
4
|
+
getNearestPackageJsonDirPath
|
5
|
+
} from "./getThisCodebaseRootDirPath";
|
3
6
|
import { getInstalledModuleDirPath } from "./getInstalledModuleDirPath";
|
4
7
|
import { existsAsync } from "./fs.existsAsync";
|
5
8
|
import { z } from "zod";
|
@@ -28,6 +31,22 @@ function getNodeModulesBinDirPath_bestEffort() {
|
|
28
31
|
|
29
32
|
const binPath = process.argv[1];
|
30
33
|
|
34
|
+
special_case_running_not_from_distribution: {
|
35
|
+
if (!binPath.endsWith(".ts")) {
|
36
|
+
break special_case_running_not_from_distribution;
|
37
|
+
}
|
38
|
+
|
39
|
+
const packageJsonDirPath = getNearestPackageJsonDirPath(pathDirname(binPath));
|
40
|
+
|
41
|
+
const nodeModulesBinDirPath = pathJoin(
|
42
|
+
packageJsonDirPath,
|
43
|
+
"node_modules",
|
44
|
+
".bin"
|
45
|
+
);
|
46
|
+
|
47
|
+
return nodeModulesBinDirPath;
|
48
|
+
}
|
49
|
+
|
31
50
|
const segments: string[] = [".bin"];
|
32
51
|
|
33
52
|
let foundNodeModules = false;
|
@@ -82,7 +82,11 @@ export async function getPrettier(): Promise<PrettierAndConfigHash> {
|
|
82
82
|
|
83
83
|
const configHash = await (async () => {
|
84
84
|
const configFilePath = await prettier.resolveConfigFile(
|
85
|
-
pathJoin(
|
85
|
+
pathJoin(
|
86
|
+
getNodeModulesBinDirPath({ packageJsonFilePath: undefined }),
|
87
|
+
"..",
|
88
|
+
".."
|
89
|
+
)
|
86
90
|
);
|
87
91
|
|
88
92
|
if (configFilePath === null) {
|
package/vite-plugin/index.js
CHANGED
@@ -1423,6 +1423,7 @@ async function checkDirExists(dirPath) {
|
|
1423
1423
|
|
1424
1424
|
"use strict";
|
1425
1425
|
/* harmony export */ __nccwpck_require__.d(__webpack_exports__, {
|
1426
|
+
/* harmony export */ "B": () => (/* binding */ getNearestPackageJsonDirPath),
|
1426
1427
|
/* harmony export */ "e": () => (/* binding */ getThisCodebaseRootDirPath)
|
1427
1428
|
/* harmony export */ });
|
1428
1429
|
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(147);
|
@@ -1431,18 +1432,18 @@ async function checkDirExists(dirPath) {
|
|
1431
1432
|
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__nccwpck_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);
|
1432
1433
|
|
1433
1434
|
|
1434
|
-
function getThisCodebaseRootDirPath_rec(dirPath) {
|
1435
|
-
if (fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(path__WEBPACK_IMPORTED_MODULE_1__.join(dirPath, "package.json"))) {
|
1436
|
-
return dirPath;
|
1437
|
-
}
|
1438
|
-
return getThisCodebaseRootDirPath_rec(path__WEBPACK_IMPORTED_MODULE_1__.join(dirPath, ".."));
|
1439
|
-
}
|
1440
1435
|
let result = undefined;
|
1441
1436
|
function getThisCodebaseRootDirPath() {
|
1442
1437
|
if (result !== undefined) {
|
1443
1438
|
return result;
|
1444
1439
|
}
|
1445
|
-
return (result =
|
1440
|
+
return (result = getNearestPackageJsonDirPath(__dirname));
|
1441
|
+
}
|
1442
|
+
function getNearestPackageJsonDirPath(dirPath) {
|
1443
|
+
if (fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(path__WEBPACK_IMPORTED_MODULE_1__.join(dirPath, "package.json"))) {
|
1444
|
+
return dirPath;
|
1445
|
+
}
|
1446
|
+
return getNearestPackageJsonDirPath(path__WEBPACK_IMPORTED_MODULE_1__.join(dirPath, ".."));
|
1446
1447
|
}
|
1447
1448
|
//# sourceMappingURL=getThisCodebaseRootDirPath.js.map
|
1448
1449
|
|
@@ -1557,6 +1558,14 @@ function getNodeModulesBinDirPath_bestEffort() {
|
|
1557
1558
|
return cache_bestEffort;
|
1558
1559
|
}
|
1559
1560
|
const binPath = process.argv[1];
|
1561
|
+
special_case_running_not_from_distribution: {
|
1562
|
+
if (!binPath.endsWith(".ts")) {
|
1563
|
+
break special_case_running_not_from_distribution;
|
1564
|
+
}
|
1565
|
+
const packageJsonDirPath = (0,getThisCodebaseRootDirPath/* getNearestPackageJsonDirPath */.B)((0,external_path_.dirname)(binPath));
|
1566
|
+
const nodeModulesBinDirPath = (0,external_path_.join)(packageJsonDirPath, "node_modules", ".bin");
|
1567
|
+
return nodeModulesBinDirPath;
|
1568
|
+
}
|
1560
1569
|
const segments = [".bin"];
|
1561
1570
|
let foundNodeModules = false;
|
1562
1571
|
for (const segment of binPath.split(external_path_.sep).reverse()) {
|
@@ -1749,7 +1758,7 @@ async function getPrettier() {
|
|
1749
1758
|
prettier = await Promise.resolve(/* import() */).then(__nccwpck_require__.t.bind(__nccwpck_require__, 421, 23));
|
1750
1759
|
}
|
1751
1760
|
const configHash = await (async () => {
|
1752
|
-
const configFilePath = await prettier.resolveConfigFile((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), ".."));
|
1761
|
+
const configFilePath = await prettier.resolveConfigFile((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), "..", ".."));
|
1753
1762
|
if (configFilePath === null) {
|
1754
1763
|
return "";
|
1755
1764
|
}
|