@modern-js/server-generator 3.1.34 → 3.1.36
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/LICENSE +1 -1
- package/dist/index.js +657 -723
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1,27 +1,9 @@
|
|
|
1
1
|
var __create = Object.create;
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
-
var __defProps = Object.defineProperties;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
8
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
9
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
11
|
-
var __pow = Math.pow;
|
|
12
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
-
var __spreadValues = (a, b) => {
|
|
14
|
-
for (var prop in b || (b = {}))
|
|
15
|
-
if (__hasOwnProp.call(b, prop))
|
|
16
|
-
__defNormalProp(a, prop, b[prop]);
|
|
17
|
-
if (__getOwnPropSymbols)
|
|
18
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
-
if (__propIsEnum.call(b, prop))
|
|
20
|
-
__defNormalProp(a, prop, b[prop]);
|
|
21
|
-
}
|
|
22
|
-
return a;
|
|
23
|
-
};
|
|
24
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
7
|
var __commonJS = (cb, mod) => function __require() {
|
|
26
8
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
27
9
|
};
|
|
@@ -46,26 +28,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
46
28
|
mod
|
|
47
29
|
));
|
|
48
30
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
49
|
-
var __async = (__this, __arguments, generator) => {
|
|
50
|
-
return new Promise((resolve, reject) => {
|
|
51
|
-
var fulfilled = (value) => {
|
|
52
|
-
try {
|
|
53
|
-
step(generator.next(value));
|
|
54
|
-
} catch (e) {
|
|
55
|
-
reject(e);
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
var rejected = (value) => {
|
|
59
|
-
try {
|
|
60
|
-
step(generator.throw(value));
|
|
61
|
-
} catch (e) {
|
|
62
|
-
reject(e);
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
66
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
31
|
|
|
70
32
|
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_export_star.cjs
|
|
71
33
|
var require_export_star = __commonJS({
|
|
@@ -597,22 +559,20 @@ var require_fs_extra = __commonJS({
|
|
|
597
559
|
const o = r2(17);
|
|
598
560
|
const c = r2(971);
|
|
599
561
|
const s = r2(95);
|
|
600
|
-
const a = n(function emptyDir(e3) {
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
return Promise.all(t3.map((t4) => s.remove(o.join(e3, t4))));
|
|
609
|
-
});
|
|
562
|
+
const a = n(async function emptyDir(e3) {
|
|
563
|
+
let t3;
|
|
564
|
+
try {
|
|
565
|
+
t3 = await i.readdir(e3);
|
|
566
|
+
} catch {
|
|
567
|
+
return c.mkdirs(e3);
|
|
568
|
+
}
|
|
569
|
+
return Promise.all(t3.map((t4) => s.remove(o.join(e3, t4))));
|
|
610
570
|
});
|
|
611
571
|
function emptyDirSync(e3) {
|
|
612
572
|
let t3;
|
|
613
573
|
try {
|
|
614
574
|
t3 = i.readdirSync(e3);
|
|
615
|
-
} catch
|
|
575
|
+
} catch {
|
|
616
576
|
return c.mkdirsSync(e3);
|
|
617
577
|
}
|
|
618
578
|
t3.forEach((t4) => {
|
|
@@ -665,7 +625,7 @@ var require_fs_extra = __commonJS({
|
|
|
665
625
|
let t3;
|
|
666
626
|
try {
|
|
667
627
|
t3 = o.statSync(e3);
|
|
668
|
-
} catch
|
|
628
|
+
} catch {
|
|
669
629
|
}
|
|
670
630
|
if (t3 && t3.isFile())
|
|
671
631
|
return;
|
|
@@ -732,7 +692,7 @@ var require_fs_extra = __commonJS({
|
|
|
732
692
|
let r3;
|
|
733
693
|
try {
|
|
734
694
|
r3 = o.lstatSync(t3);
|
|
735
|
-
} catch
|
|
695
|
+
} catch {
|
|
736
696
|
}
|
|
737
697
|
try {
|
|
738
698
|
const t4 = o.lstatSync(e3);
|
|
@@ -827,7 +787,7 @@ var require_fs_extra = __commonJS({
|
|
|
827
787
|
return t3;
|
|
828
788
|
try {
|
|
829
789
|
r3 = n.lstatSync(e3);
|
|
830
|
-
} catch
|
|
790
|
+
} catch {
|
|
831
791
|
return "file";
|
|
832
792
|
}
|
|
833
793
|
return r3 && r3.isDirectory() ? "dir" : "file";
|
|
@@ -890,7 +850,7 @@ var require_fs_extra = __commonJS({
|
|
|
890
850
|
let n2;
|
|
891
851
|
try {
|
|
892
852
|
n2 = o.lstatSync(t3);
|
|
893
|
-
} catch
|
|
853
|
+
} catch {
|
|
894
854
|
}
|
|
895
855
|
if (n2 && n2.isSymbolicLink()) {
|
|
896
856
|
const r4 = o.statSync(e3);
|
|
@@ -965,7 +925,7 @@ var require_fs_extra = __commonJS({
|
|
|
965
925
|
}
|
|
966
926
|
}, 81: (e2, t2, r2) => {
|
|
967
927
|
"use strict";
|
|
968
|
-
e2.exports =
|
|
928
|
+
e2.exports = { ...r2(812), ...r2(2), ...r2(708), ...r2(726), ...r2(779), ...r2(971), ...r2(511), ...r2(701), ...r2(725), ...r2(95) };
|
|
969
929
|
}, 779: (e2, t2, r2) => {
|
|
970
930
|
"use strict";
|
|
971
931
|
const n = r2(5).fromPromise;
|
|
@@ -996,11 +956,9 @@ var require_fs_extra = __commonJS({
|
|
|
996
956
|
"use strict";
|
|
997
957
|
const { stringify: n } = r2(208);
|
|
998
958
|
const { outputFile: i } = r2(701);
|
|
999
|
-
function outputJson(
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
yield i(e3, o, r3);
|
|
1003
|
-
});
|
|
959
|
+
async function outputJson(e3, t3, r3 = {}) {
|
|
960
|
+
const o = n(t3, r3);
|
|
961
|
+
await i(e3, o, r3);
|
|
1004
962
|
}
|
|
1005
963
|
e2.exports = outputJson;
|
|
1006
964
|
}, 971: (e2, t2, r2) => {
|
|
@@ -1017,12 +975,12 @@ var require_fs_extra = __commonJS({
|
|
|
1017
975
|
const t3 = { mode: 511 };
|
|
1018
976
|
if (typeof e3 === "number")
|
|
1019
977
|
return e3;
|
|
1020
|
-
return
|
|
978
|
+
return { ...t3, ...e3 }.mode;
|
|
1021
979
|
};
|
|
1022
|
-
e2.exports.makeDir = (e3, t3) =>
|
|
980
|
+
e2.exports.makeDir = async (e3, t3) => {
|
|
1023
981
|
i(e3);
|
|
1024
982
|
return n.mkdir(e3, { mode: getMode(t3), recursive: true });
|
|
1025
|
-
}
|
|
983
|
+
};
|
|
1026
984
|
e2.exports.makeDirSync = (e3, t3) => {
|
|
1027
985
|
i(e3);
|
|
1028
986
|
return n.mkdirSync(e3, { mode: getMode(t3), recursive: true });
|
|
@@ -1440,7 +1398,7 @@ var require_fs_extra = __commonJS({
|
|
|
1440
1398
|
try {
|
|
1441
1399
|
const r4 = t3.rmdirSync(e3, t3);
|
|
1442
1400
|
return r4;
|
|
1443
|
-
} catch
|
|
1401
|
+
} catch {
|
|
1444
1402
|
}
|
|
1445
1403
|
} while (Date.now() - r3 < 500);
|
|
1446
1404
|
} else {
|
|
@@ -2339,28 +2297,26 @@ var require_fs_extra = __commonJS({
|
|
|
2339
2297
|
}
|
|
2340
2298
|
const i = r2(5);
|
|
2341
2299
|
const { stringify: o, stripBom: c } = r2(208);
|
|
2342
|
-
function _readFile(
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
return null;
|
|
2360
|
-
}
|
|
2300
|
+
async function _readFile(e3, t3 = {}) {
|
|
2301
|
+
if (typeof t3 === "string") {
|
|
2302
|
+
t3 = { encoding: t3 };
|
|
2303
|
+
}
|
|
2304
|
+
const r3 = t3.fs || n;
|
|
2305
|
+
const o2 = "throws" in t3 ? t3.throws : true;
|
|
2306
|
+
let s2 = await i.fromCallback(r3.readFile)(e3, t3);
|
|
2307
|
+
s2 = c(s2);
|
|
2308
|
+
let a2;
|
|
2309
|
+
try {
|
|
2310
|
+
a2 = JSON.parse(s2, t3 ? t3.reviver : null);
|
|
2311
|
+
} catch (t4) {
|
|
2312
|
+
if (o2) {
|
|
2313
|
+
t4.message = `${e3}: ${t4.message}`;
|
|
2314
|
+
throw t4;
|
|
2315
|
+
} else {
|
|
2316
|
+
return null;
|
|
2361
2317
|
}
|
|
2362
|
-
|
|
2363
|
-
|
|
2318
|
+
}
|
|
2319
|
+
return a2;
|
|
2364
2320
|
}
|
|
2365
2321
|
const s = i.fromPromise(_readFile);
|
|
2366
2322
|
function readFileSync(e3, t3 = {}) {
|
|
@@ -2382,12 +2338,10 @@ var require_fs_extra = __commonJS({
|
|
|
2382
2338
|
}
|
|
2383
2339
|
}
|
|
2384
2340
|
}
|
|
2385
|
-
function _writeFile(
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
yield i.fromCallback(c2.writeFile)(e3, s2, r3);
|
|
2390
|
-
});
|
|
2341
|
+
async function _writeFile(e3, t3, r3 = {}) {
|
|
2342
|
+
const c2 = r3.fs || n;
|
|
2343
|
+
const s2 = o(t3, r3);
|
|
2344
|
+
await i.fromCallback(c2.writeFile)(e3, s2, r3);
|
|
2391
2345
|
}
|
|
2392
2346
|
const a = i.fromPromise(_writeFile);
|
|
2393
2347
|
function writeFileSync(e3, t3, r3 = {}) {
|
|
@@ -2615,11 +2569,11 @@ var require_chalk = __commonJS({
|
|
|
2615
2569
|
} };
|
|
2616
2570
|
}
|
|
2617
2571
|
const f = Object.defineProperties(() => {
|
|
2618
|
-
},
|
|
2572
|
+
}, { ...u, level: { enumerable: true, get() {
|
|
2619
2573
|
return this._generator.level;
|
|
2620
2574
|
}, set(e3) {
|
|
2621
2575
|
this._generator.level = e3;
|
|
2622
|
-
} } })
|
|
2576
|
+
} } });
|
|
2623
2577
|
const createStyler = (e3, t3, n3) => {
|
|
2624
2578
|
let r2;
|
|
2625
2579
|
let s2;
|
|
@@ -2930,7 +2884,7 @@ var require_chalk = __commonJS({
|
|
|
2930
2884
|
return [o2 * 100, l * 100, c * 100, s2 * 100];
|
|
2931
2885
|
};
|
|
2932
2886
|
function comparativeDistance(e3, t3) {
|
|
2933
|
-
return
|
|
2887
|
+
return (e3[0] - t3[0]) ** 2 + (e3[1] - t3[1]) ** 2 + (e3[2] - t3[2]) ** 2;
|
|
2934
2888
|
}
|
|
2935
2889
|
o.rgb.keyword = function(e3) {
|
|
2936
2890
|
const t3 = s[e3];
|
|
@@ -2956,9 +2910,9 @@ var require_chalk = __commonJS({
|
|
|
2956
2910
|
let t3 = e3[0] / 255;
|
|
2957
2911
|
let n3 = e3[1] / 255;
|
|
2958
2912
|
let r2 = e3[2] / 255;
|
|
2959
|
-
t3 = t3 > 0.04045 ?
|
|
2960
|
-
n3 = n3 > 0.04045 ?
|
|
2961
|
-
r2 = r2 > 0.04045 ?
|
|
2913
|
+
t3 = t3 > 0.04045 ? ((t3 + 0.055) / 1.055) ** 2.4 : t3 / 12.92;
|
|
2914
|
+
n3 = n3 > 0.04045 ? ((n3 + 0.055) / 1.055) ** 2.4 : n3 / 12.92;
|
|
2915
|
+
r2 = r2 > 0.04045 ? ((r2 + 0.055) / 1.055) ** 2.4 : r2 / 12.92;
|
|
2962
2916
|
const s2 = t3 * 0.4124 + n3 * 0.3576 + r2 * 0.1805;
|
|
2963
2917
|
const o2 = t3 * 0.2126 + n3 * 0.7152 + r2 * 0.0722;
|
|
2964
2918
|
const l = t3 * 0.0193 + n3 * 0.1192 + r2 * 0.9505;
|
|
@@ -2972,9 +2926,9 @@ var require_chalk = __commonJS({
|
|
|
2972
2926
|
n3 /= 95.047;
|
|
2973
2927
|
r2 /= 100;
|
|
2974
2928
|
s2 /= 108.883;
|
|
2975
|
-
n3 = n3 > 8856e-6 ?
|
|
2976
|
-
r2 = r2 > 8856e-6 ?
|
|
2977
|
-
s2 = s2 > 8856e-6 ?
|
|
2929
|
+
n3 = n3 > 8856e-6 ? n3 ** (1 / 3) : 7.787 * n3 + 16 / 116;
|
|
2930
|
+
r2 = r2 > 8856e-6 ? r2 ** (1 / 3) : 7.787 * r2 + 16 / 116;
|
|
2931
|
+
s2 = s2 > 8856e-6 ? s2 ** (1 / 3) : 7.787 * s2 + 16 / 116;
|
|
2978
2932
|
const l = 116 * r2 - 16;
|
|
2979
2933
|
const c = 500 * (n3 - r2);
|
|
2980
2934
|
const i = 200 * (r2 - s2);
|
|
@@ -3148,9 +3102,9 @@ var require_chalk = __commonJS({
|
|
|
3148
3102
|
s2 = t3 * 3.2406 + n3 * -1.5372 + r2 * -0.4986;
|
|
3149
3103
|
o2 = t3 * -0.9689 + n3 * 1.8758 + r2 * 0.0415;
|
|
3150
3104
|
l = t3 * 0.0557 + n3 * -0.204 + r2 * 1.057;
|
|
3151
|
-
s2 = s2 > 31308e-7 ? 1.055 *
|
|
3152
|
-
o2 = o2 > 31308e-7 ? 1.055 *
|
|
3153
|
-
l = l > 31308e-7 ? 1.055 *
|
|
3105
|
+
s2 = s2 > 31308e-7 ? 1.055 * s2 ** (1 / 2.4) - 0.055 : s2 * 12.92;
|
|
3106
|
+
o2 = o2 > 31308e-7 ? 1.055 * o2 ** (1 / 2.4) - 0.055 : o2 * 12.92;
|
|
3107
|
+
l = l > 31308e-7 ? 1.055 * l ** (1 / 2.4) - 0.055 : l * 12.92;
|
|
3154
3108
|
s2 = Math.min(Math.max(0, s2), 1);
|
|
3155
3109
|
o2 = Math.min(Math.max(0, o2), 1);
|
|
3156
3110
|
l = Math.min(Math.max(0, l), 1);
|
|
@@ -3163,9 +3117,9 @@ var require_chalk = __commonJS({
|
|
|
3163
3117
|
t3 /= 95.047;
|
|
3164
3118
|
n3 /= 100;
|
|
3165
3119
|
r2 /= 108.883;
|
|
3166
|
-
t3 = t3 > 8856e-6 ?
|
|
3167
|
-
n3 = n3 > 8856e-6 ?
|
|
3168
|
-
r2 = r2 > 8856e-6 ?
|
|
3120
|
+
t3 = t3 > 8856e-6 ? t3 ** (1 / 3) : 7.787 * t3 + 16 / 116;
|
|
3121
|
+
n3 = n3 > 8856e-6 ? n3 ** (1 / 3) : 7.787 * n3 + 16 / 116;
|
|
3122
|
+
r2 = r2 > 8856e-6 ? r2 ** (1 / 3) : 7.787 * r2 + 16 / 116;
|
|
3169
3123
|
const s2 = 116 * n3 - 16;
|
|
3170
3124
|
const o2 = 500 * (t3 - n3);
|
|
3171
3125
|
const l = 200 * (n3 - r2);
|
|
@@ -3181,9 +3135,9 @@ var require_chalk = __commonJS({
|
|
|
3181
3135
|
o2 = (t3 + 16) / 116;
|
|
3182
3136
|
s2 = n3 / 500 + o2;
|
|
3183
3137
|
l = o2 - r2 / 200;
|
|
3184
|
-
const c =
|
|
3185
|
-
const i =
|
|
3186
|
-
const a =
|
|
3138
|
+
const c = o2 ** 3;
|
|
3139
|
+
const i = s2 ** 3;
|
|
3140
|
+
const a = l ** 3;
|
|
3187
3141
|
o2 = c > 8856e-6 ? c : (o2 - 16 / 116) / 7.787;
|
|
3188
3142
|
s2 = i > 8856e-6 ? i : (s2 - 16 / 116) / 7.787;
|
|
3189
3143
|
l = a > 8856e-6 ? a : (l - 16 / 116) / 7.787;
|
|
@@ -4439,7 +4393,7 @@ var require_ora = __commonJS({
|
|
|
4439
4393
|
if (typeof e3 === "string") {
|
|
4440
4394
|
e3 = { text: e3 };
|
|
4441
4395
|
}
|
|
4442
|
-
this.options =
|
|
4396
|
+
this.options = { text: "", color: "cyan", stream: process.stderr, discardStdin: true, ...e3 };
|
|
4443
4397
|
this.spinner = this.options.spinner;
|
|
4444
4398
|
this.color = this.options.color;
|
|
4445
4399
|
this.hideCursor = this.options.hideCursor !== false;
|
|
@@ -4656,14 +4610,14 @@ var require_ora = __commonJS({
|
|
|
4656
4610
|
}
|
|
4657
4611
|
const r3 = new Ora(t3);
|
|
4658
4612
|
r3.start();
|
|
4659
|
-
(() =>
|
|
4613
|
+
(async () => {
|
|
4660
4614
|
try {
|
|
4661
|
-
|
|
4615
|
+
await e3;
|
|
4662
4616
|
r3.succeed();
|
|
4663
|
-
} catch
|
|
4617
|
+
} catch {
|
|
4664
4618
|
r3.fail();
|
|
4665
4619
|
}
|
|
4666
|
-
})
|
|
4620
|
+
})();
|
|
4667
4621
|
return r3;
|
|
4668
4622
|
};
|
|
4669
4623
|
}, 959: (e2) => {
|
|
@@ -13083,7 +13037,7 @@ var require_execa = __commonJS({
|
|
|
13083
13037
|
const { joinCommand: w, parseCommand: E, getEscapedCommand: I } = n2(192);
|
|
13084
13038
|
const T = 1e3 * 1e3 * 100;
|
|
13085
13039
|
const getEnv = ({ env: e3, extendEnv: t3, preferLocal: n3, localDir: r2, execPath: o2 }) => {
|
|
13086
|
-
const s2 = t3 ?
|
|
13040
|
+
const s2 = t3 ? { ...process.env, ...e3 } : e3;
|
|
13087
13041
|
if (n3) {
|
|
13088
13042
|
return a.env({ env: s2, cwd: r2, execPath: o2 });
|
|
13089
13043
|
}
|
|
@@ -13094,7 +13048,7 @@ var require_execa = __commonJS({
|
|
|
13094
13048
|
e3 = o2.command;
|
|
13095
13049
|
t3 = o2.args;
|
|
13096
13050
|
n3 = o2.options;
|
|
13097
|
-
n3 =
|
|
13051
|
+
n3 = { maxBuffer: T, buffer: true, stripFinalNewline: true, extendEnv: true, preferLocal: false, localDir: n3.cwd || process.cwd(), execPath: process.execPath, encoding: "utf8", reject: true, cleanup: true, all: false, windowsHide: true, ...n3 };
|
|
13098
13052
|
n3.env = getEnv(n3);
|
|
13099
13053
|
n3.stdio = u(n3);
|
|
13100
13054
|
if (process.platform === "win32" && r.basename(e3, ".exe") === "cmd") {
|
|
@@ -13130,8 +13084,8 @@ var require_execa = __commonJS({
|
|
|
13130
13084
|
const T2 = { isCanceled: false };
|
|
13131
13085
|
a2.kill = l.bind(null, a2.kill.bind(a2));
|
|
13132
13086
|
a2.cancel = f.bind(null, a2, T2);
|
|
13133
|
-
const handlePromise = () =>
|
|
13134
|
-
const [{ error: e4, exitCode: t4, signal: n4, timedOut: o2 }, c2, u3, l2] =
|
|
13087
|
+
const handlePromise = async () => {
|
|
13088
|
+
const [{ error: e4, exitCode: t4, signal: n4, timedOut: o2 }, c2, u3, l2] = await h(a2, r2.options, E2);
|
|
13135
13089
|
const f2 = handleOutput(r2.options, c2);
|
|
13136
13090
|
const p2 = handleOutput(r2.options, u3);
|
|
13137
13091
|
const m2 = handleOutput(r2.options, l2);
|
|
@@ -13143,7 +13097,7 @@ var require_execa = __commonJS({
|
|
|
13143
13097
|
throw c3;
|
|
13144
13098
|
}
|
|
13145
13099
|
return { command: s2, escapedCommand: i2, exitCode: 0, stdout: f2, stderr: p2, all: m2, failed: false, timedOut: false, isCanceled: false, killed: false };
|
|
13146
|
-
}
|
|
13100
|
+
};
|
|
13147
13101
|
const C = c(handlePromise);
|
|
13148
13102
|
x(a2, r2.options.input);
|
|
13149
13103
|
a2.all = y(a2, r2.options);
|
|
@@ -13188,7 +13142,7 @@ var require_execa = __commonJS({
|
|
|
13188
13142
|
const r2 = u.node(n3);
|
|
13189
13143
|
const o2 = process.execArgv.filter((e4) => !e4.startsWith("--inspect"));
|
|
13190
13144
|
const { nodePath: s2 = process.execPath, nodeOptions: i2 = o2 } = n3;
|
|
13191
|
-
return execa4(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []],
|
|
13145
|
+
return execa4(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []], { ...n3, stdin: void 0, stdout: void 0, stderr: void 0, stdio: r2, shell: false });
|
|
13192
13146
|
};
|
|
13193
13147
|
}, 192: (e2) => {
|
|
13194
13148
|
"use strict";
|
|
@@ -13344,7 +13298,7 @@ ${o.message}` : x;
|
|
|
13344
13298
|
throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e3}\` (${typeof e3})`);
|
|
13345
13299
|
}
|
|
13346
13300
|
};
|
|
13347
|
-
const setExitHandler =
|
|
13301
|
+
const setExitHandler = async (e3, { cleanup: t3, detached: n3 }, r2) => {
|
|
13348
13302
|
if (!t3 || n3) {
|
|
13349
13303
|
return r2;
|
|
13350
13304
|
}
|
|
@@ -13354,17 +13308,17 @@ ${o.message}` : x;
|
|
|
13354
13308
|
return r2.finally(() => {
|
|
13355
13309
|
s2();
|
|
13356
13310
|
});
|
|
13357
|
-
}
|
|
13311
|
+
};
|
|
13358
13312
|
e2.exports = { spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler };
|
|
13359
13313
|
}, 210: (e2) => {
|
|
13360
13314
|
"use strict";
|
|
13361
|
-
const t2 = (() =>
|
|
13362
|
-
})
|
|
13315
|
+
const t2 = (async () => {
|
|
13316
|
+
})().constructor.prototype;
|
|
13363
13317
|
const n2 = ["then", "catch", "finally"].map((e3) => [e3, Reflect.getOwnPropertyDescriptor(t2, e3)]);
|
|
13364
13318
|
const mergePromise = (e3, t3) => {
|
|
13365
13319
|
for (const [r, o] of n2) {
|
|
13366
13320
|
const n3 = typeof t3 === "function" ? (...e4) => Reflect.apply(o.value, t3(), e4) : o.value.bind(t3);
|
|
13367
|
-
Reflect.defineProperty(e3, r,
|
|
13321
|
+
Reflect.defineProperty(e3, r, { ...o, value: n3 });
|
|
13368
13322
|
}
|
|
13369
13323
|
return e3;
|
|
13370
13324
|
};
|
|
@@ -13448,17 +13402,17 @@ ${o.message}` : x;
|
|
|
13448
13402
|
}
|
|
13449
13403
|
return n3;
|
|
13450
13404
|
};
|
|
13451
|
-
const getBufferedData = (e3, t3) =>
|
|
13405
|
+
const getBufferedData = async (e3, t3) => {
|
|
13452
13406
|
if (!e3) {
|
|
13453
13407
|
return;
|
|
13454
13408
|
}
|
|
13455
13409
|
e3.destroy();
|
|
13456
13410
|
try {
|
|
13457
|
-
return
|
|
13411
|
+
return await t3;
|
|
13458
13412
|
} catch (e4) {
|
|
13459
13413
|
return e4.bufferedData;
|
|
13460
13414
|
}
|
|
13461
|
-
}
|
|
13415
|
+
};
|
|
13462
13416
|
const getStreamPromise = (e3, { encoding: t3, buffer: n3, maxBuffer: r2 }) => {
|
|
13463
13417
|
if (!e3 || !n3) {
|
|
13464
13418
|
return;
|
|
@@ -13468,16 +13422,16 @@ ${o.message}` : x;
|
|
|
13468
13422
|
}
|
|
13469
13423
|
return o.buffer(e3, { maxBuffer: r2 });
|
|
13470
13424
|
};
|
|
13471
|
-
const getSpawnedResult =
|
|
13425
|
+
const getSpawnedResult = async ({ stdout: e3, stderr: t3, all: n3 }, { encoding: r2, buffer: o2, maxBuffer: s2 }, i) => {
|
|
13472
13426
|
const a = getStreamPromise(e3, { encoding: r2, buffer: o2, maxBuffer: s2 });
|
|
13473
13427
|
const c = getStreamPromise(t3, { encoding: r2, buffer: o2, maxBuffer: s2 });
|
|
13474
13428
|
const d = getStreamPromise(n3, { encoding: r2, buffer: o2, maxBuffer: s2 * 2 });
|
|
13475
13429
|
try {
|
|
13476
|
-
return
|
|
13430
|
+
return await Promise.all([i, a, c, d]);
|
|
13477
13431
|
} catch (r3) {
|
|
13478
13432
|
return Promise.all([{ error: r3, signal: r3.signal, timedOut: r3.timedOut }, getBufferedData(e3, a), getBufferedData(t3, c), getBufferedData(n3, d)]);
|
|
13479
13433
|
}
|
|
13480
|
-
}
|
|
13434
|
+
};
|
|
13481
13435
|
const validateInputSync = ({ input: e3 }) => {
|
|
13482
13436
|
if (r(e3)) {
|
|
13483
13437
|
throw new TypeError("The `input` option cannot be a stream in sync mode");
|
|
@@ -13488,7 +13442,7 @@ ${o.message}` : x;
|
|
|
13488
13442
|
"use strict";
|
|
13489
13443
|
const { PassThrough: r } = n2(781);
|
|
13490
13444
|
e2.exports = (e3) => {
|
|
13491
|
-
e3 =
|
|
13445
|
+
e3 = { ...e3 };
|
|
13492
13446
|
const { array: t3 } = e3;
|
|
13493
13447
|
let { encoding: n3 } = e3;
|
|
13494
13448
|
const o = n3 === "buffer";
|
|
@@ -13537,41 +13491,39 @@ ${o.message}` : x;
|
|
|
13537
13491
|
this.name = "MaxBufferError";
|
|
13538
13492
|
}
|
|
13539
13493
|
}
|
|
13540
|
-
function getStream(e3, t3) {
|
|
13541
|
-
|
|
13542
|
-
|
|
13543
|
-
|
|
13544
|
-
|
|
13545
|
-
|
|
13546
|
-
|
|
13547
|
-
|
|
13548
|
-
|
|
13549
|
-
|
|
13550
|
-
|
|
13551
|
-
|
|
13552
|
-
|
|
13553
|
-
|
|
13554
|
-
|
|
13555
|
-
|
|
13556
|
-
|
|
13557
|
-
|
|
13558
|
-
|
|
13559
|
-
|
|
13560
|
-
|
|
13561
|
-
|
|
13562
|
-
|
|
13563
|
-
o2.
|
|
13564
|
-
|
|
13565
|
-
|
|
13566
|
-
}
|
|
13567
|
-
});
|
|
13494
|
+
async function getStream(e3, t3) {
|
|
13495
|
+
if (!e3) {
|
|
13496
|
+
throw new Error("Expected a stream");
|
|
13497
|
+
}
|
|
13498
|
+
t3 = { maxBuffer: Infinity, ...t3 };
|
|
13499
|
+
const { maxBuffer: n3 } = t3;
|
|
13500
|
+
const o2 = i(t3);
|
|
13501
|
+
await new Promise((t4, s2) => {
|
|
13502
|
+
const rejectPromise = (e4) => {
|
|
13503
|
+
if (e4 && o2.getBufferedLength() <= r.MAX_LENGTH) {
|
|
13504
|
+
e4.bufferedData = o2.getBufferedValue();
|
|
13505
|
+
}
|
|
13506
|
+
s2(e4);
|
|
13507
|
+
};
|
|
13508
|
+
(async () => {
|
|
13509
|
+
try {
|
|
13510
|
+
await a(e3, o2);
|
|
13511
|
+
t4();
|
|
13512
|
+
} catch (e4) {
|
|
13513
|
+
rejectPromise(e4);
|
|
13514
|
+
}
|
|
13515
|
+
})();
|
|
13516
|
+
o2.on("data", () => {
|
|
13517
|
+
if (o2.getBufferedLength() > n3) {
|
|
13518
|
+
rejectPromise(new MaxBufferError());
|
|
13519
|
+
}
|
|
13568
13520
|
});
|
|
13569
|
-
return o2.getBufferedValue();
|
|
13570
13521
|
});
|
|
13522
|
+
return o2.getBufferedValue();
|
|
13571
13523
|
}
|
|
13572
13524
|
e2.exports = getStream;
|
|
13573
|
-
e2.exports.buffer = (e3, t3) => getStream(e3,
|
|
13574
|
-
e2.exports.array = (e3, t3) => getStream(e3,
|
|
13525
|
+
e2.exports.buffer = (e3, t3) => getStream(e3, { ...t3, encoding: "buffer" });
|
|
13526
|
+
e2.exports.array = (e3, t3) => getStream(e3, { ...t3, array: true });
|
|
13575
13527
|
e2.exports.MaxBufferError = MaxBufferError;
|
|
13576
13528
|
}, 221: (e2, t2) => {
|
|
13577
13529
|
"use strict";
|
|
@@ -13591,7 +13543,7 @@ ${o.message}` : x;
|
|
|
13591
13543
|
return e3.reduce(getSignalByName, {});
|
|
13592
13544
|
};
|
|
13593
13545
|
const getSignalByName = function(e3, { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 }) {
|
|
13594
|
-
return
|
|
13546
|
+
return { ...e3, [t3]: { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 } };
|
|
13595
13547
|
};
|
|
13596
13548
|
const i = getSignalsByName();
|
|
13597
13549
|
t2.signalsByName = i;
|
|
@@ -13823,7 +13775,7 @@ ${o.message}` : x;
|
|
|
13823
13775
|
const r = n2(17);
|
|
13824
13776
|
const o = n2(460);
|
|
13825
13777
|
const npmRunPath = (e3) => {
|
|
13826
|
-
e3 =
|
|
13778
|
+
e3 = { cwd: process.cwd(), path: process.env[o()], execPath: process.execPath, ...e3 };
|
|
13827
13779
|
let t3;
|
|
13828
13780
|
let n3 = r.resolve(e3.cwd);
|
|
13829
13781
|
const s = [];
|
|
@@ -13839,8 +13791,8 @@ ${o.message}` : x;
|
|
|
13839
13791
|
e2.exports = npmRunPath;
|
|
13840
13792
|
e2.exports["default"] = npmRunPath;
|
|
13841
13793
|
e2.exports.env = (t3) => {
|
|
13842
|
-
t3 =
|
|
13843
|
-
const n3 =
|
|
13794
|
+
t3 = { env: process.env, ...t3 };
|
|
13795
|
+
const n3 = { ...t3.env };
|
|
13844
13796
|
const r2 = o({ env: n3 });
|
|
13845
13797
|
t3.path = n3[r2];
|
|
13846
13798
|
n3[r2] = e2.exports(t3);
|
|
@@ -15249,7 +15201,7 @@ var require_upath = __commonJS({
|
|
|
15249
15201
|
_.VERSION = typeof n !== "undefined" && n !== null ? n : "NO-VERSION";
|
|
15250
15202
|
p = function(e3) {
|
|
15251
15203
|
e3 = e3.replace(/\\/g, "/");
|
|
15252
|
-
e3 = e3.replace(
|
|
15204
|
+
e3 = e3.replace(/(?<!^)\/+/g, "/");
|
|
15253
15205
|
return e3;
|
|
15254
15206
|
};
|
|
15255
15207
|
for (c in o) {
|
|
@@ -15545,9 +15497,7 @@ var require_pkg_up = __commonJS({
|
|
|
15545
15497
|
};
|
|
15546
15498
|
}, 800: (e2, r2, n2) => {
|
|
15547
15499
|
const t = n2(485);
|
|
15548
|
-
e2.exports =
|
|
15549
|
-
return t("package.json", { cwd: e3 });
|
|
15550
|
-
});
|
|
15500
|
+
e2.exports = async ({ cwd: e3 } = {}) => t("package.json", { cwd: e3 });
|
|
15551
15501
|
e2.exports.sync = ({ cwd: e3 } = {}) => t.sync("package.json", { cwd: e3 });
|
|
15552
15502
|
}, 147: (e2) => {
|
|
15553
15503
|
e2.exports = require("fs");
|
|
@@ -24078,7 +24028,7 @@ var require_fast_glob = __commonJS({
|
|
|
24078
24028
|
}
|
|
24079
24029
|
if (t4.nodes && t4.ranges > 0) {
|
|
24080
24030
|
let r4 = s.reduce(t4.nodes);
|
|
24081
|
-
let i2 = n(...r4,
|
|
24031
|
+
let i2 = n(...r4, { ...e3, wrap: false, toRegex: true });
|
|
24082
24032
|
if (i2.length !== 0) {
|
|
24083
24033
|
return r4.length > 1 && i2.length > 1 ? `(${i2})` : i2;
|
|
24084
24034
|
}
|
|
@@ -24504,13 +24454,11 @@ var require_fast_glob = __commonJS({
|
|
|
24504
24454
|
const a = r2(1066);
|
|
24505
24455
|
const u = r2(7190);
|
|
24506
24456
|
const c = r2(3828);
|
|
24507
|
-
function FastGlob(t3, e3) {
|
|
24508
|
-
|
|
24509
|
-
|
|
24510
|
-
|
|
24511
|
-
|
|
24512
|
-
return c.array.flatten(n2);
|
|
24513
|
-
});
|
|
24457
|
+
async function FastGlob(t3, e3) {
|
|
24458
|
+
assertPatternsInput(t3);
|
|
24459
|
+
const r3 = getWorks(t3, i.default, e3);
|
|
24460
|
+
const n2 = await Promise.all(r3);
|
|
24461
|
+
return c.array.flatten(n2);
|
|
24514
24462
|
}
|
|
24515
24463
|
(function(t3) {
|
|
24516
24464
|
function sync(t4, e3) {
|
|
@@ -25681,7 +25629,7 @@ var require_fast_glob = __commonJS({
|
|
|
25681
25629
|
};
|
|
25682
25630
|
const toRange = (t3, e3, r3, n2) => {
|
|
25683
25631
|
if (r3) {
|
|
25684
|
-
return s(t3, e3,
|
|
25632
|
+
return s(t3, e3, { wrap: false, ...n2 });
|
|
25685
25633
|
}
|
|
25686
25634
|
let i = String.fromCharCode(t3);
|
|
25687
25635
|
if (t3 === e3)
|
|
@@ -25747,7 +25695,7 @@ var require_fast_glob = __commonJS({
|
|
|
25747
25695
|
g++;
|
|
25748
25696
|
}
|
|
25749
25697
|
if (n2.toRegex === true) {
|
|
25750
|
-
return r3 > 1 ? toSequence(d, n2) : toRegex(_, null,
|
|
25698
|
+
return r3 > 1 ? toSequence(d, n2) : toRegex(_, null, { wrap: false, ...n2 });
|
|
25751
25699
|
}
|
|
25752
25700
|
return _;
|
|
25753
25701
|
};
|
|
@@ -25789,7 +25737,7 @@ var require_fast_glob = __commonJS({
|
|
|
25789
25737
|
if (isObject4(r3)) {
|
|
25790
25738
|
return fill(t3, e3, 0, r3);
|
|
25791
25739
|
}
|
|
25792
|
-
let s2 =
|
|
25740
|
+
let s2 = { ...n2 };
|
|
25793
25741
|
if (s2.capture === true)
|
|
25794
25742
|
s2.wrap = true;
|
|
25795
25743
|
r3 = r3 || s2.step || 1;
|
|
@@ -26113,7 +26061,7 @@ var require_fast_glob = __commonJS({
|
|
|
26113
26061
|
}
|
|
26114
26062
|
};
|
|
26115
26063
|
for (let o3 = 0; o3 < e3.length; o3++) {
|
|
26116
|
-
let u2 = i(String(e3[o3]),
|
|
26064
|
+
let u2 = i(String(e3[o3]), { ...r3, onResult }, true);
|
|
26117
26065
|
let c2 = u2.state.negated || u2.state.negatedExtglob;
|
|
26118
26066
|
if (c2)
|
|
26119
26067
|
a++;
|
|
@@ -26155,7 +26103,7 @@ var require_fast_glob = __commonJS({
|
|
|
26155
26103
|
r3.onResult(t4);
|
|
26156
26104
|
s2.push(t4.output);
|
|
26157
26105
|
};
|
|
26158
|
-
let i2 = new Set(micromatch(t3, e3,
|
|
26106
|
+
let i2 = new Set(micromatch(t3, e3, { ...r3, onResult }));
|
|
26159
26107
|
for (let t4 of s2) {
|
|
26160
26108
|
if (!i2.has(t4)) {
|
|
26161
26109
|
n2.add(t4);
|
|
@@ -26178,7 +26126,7 @@ var require_fast_glob = __commonJS({
|
|
|
26178
26126
|
return true;
|
|
26179
26127
|
}
|
|
26180
26128
|
}
|
|
26181
|
-
return micromatch.isMatch(t3, e3,
|
|
26129
|
+
return micromatch.isMatch(t3, e3, { ...r3, contains: true });
|
|
26182
26130
|
};
|
|
26183
26131
|
micromatch.matchKeys = (t3, e3, r3) => {
|
|
26184
26132
|
if (!o.isObject(t3)) {
|
|
@@ -26218,7 +26166,7 @@ var require_fast_glob = __commonJS({
|
|
|
26218
26166
|
};
|
|
26219
26167
|
micromatch.capture = (t3, e3, r3) => {
|
|
26220
26168
|
let n2 = o.isWindows(r3);
|
|
26221
|
-
let s2 = i.makeRe(String(t3),
|
|
26169
|
+
let s2 = i.makeRe(String(t3), { ...r3, capture: true });
|
|
26222
26170
|
let a = s2.exec(n2 ? o.toPosixSlashes(e3) : e3);
|
|
26223
26171
|
if (a) {
|
|
26224
26172
|
return a.slice(1).map((t4) => t4 === void 0 ? "" : t4);
|
|
@@ -26246,7 +26194,7 @@ var require_fast_glob = __commonJS({
|
|
|
26246
26194
|
micromatch.braceExpand = (t3, e3) => {
|
|
26247
26195
|
if (typeof t3 !== "string")
|
|
26248
26196
|
throw new TypeError("Expected a string");
|
|
26249
|
-
return micromatch.braces(t3,
|
|
26197
|
+
return micromatch.braces(t3, { ...e3, expand: true });
|
|
26250
26198
|
};
|
|
26251
26199
|
t2.exports = micromatch;
|
|
26252
26200
|
}, 376: (t2, e2, r2) => {
|
|
@@ -26273,7 +26221,7 @@ var require_fast_glob = __commonJS({
|
|
|
26273
26221
|
const m = `[^.${c}]`;
|
|
26274
26222
|
const v = `${f}*?`;
|
|
26275
26223
|
const E = { DOT_LITERAL: o, PLUS_LITERAL: a, QMARK_LITERAL: u, SLASH_LITERAL: c, ONE_CHAR: l, QMARK: f, END_ANCHOR: p, DOTS_SLASH: d, NO_DOT: _, NO_DOTS: g, NO_DOT_SLASH: y, NO_DOTS_SLASH: S, QMARK_NO_DOT: m, STAR: v, START_ANCHOR: h };
|
|
26276
|
-
const A =
|
|
26224
|
+
const A = { ...E, SLASH_LITERAL: `[${s}]`, QMARK: i, STAR: `${i}*?`, DOTS_SLASH: `${o}{1,2}(?:[${s}]|$)`, NO_DOT: `(?!${o})`, NO_DOTS: `(?!(?:^|[${s}])${o}{1,2}(?:[${s}]|$))`, NO_DOT_SLASH: `(?!${o}{0,1}(?:[${s}]|$))`, NO_DOTS_SLASH: `(?!${o}{1,2}(?:[${s}]|$))`, QMARK_NO_DOT: `[^.${s}]`, START_ANCHOR: `(?:^|[${s}])`, END_ANCHOR: `(?:[${s}]|$)` };
|
|
26277
26225
|
const b = { alnum: "a-zA-Z0-9", alpha: "a-zA-Z", ascii: "\\x00-\\x7F", blank: " \\t", cntrl: "\\x00-\\x1F\\x7F", digit: "0-9", graph: "\\x21-\\x7E", lower: "a-z", print: "\\x20-\\x7E ", punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~", space: " \\t\\r\\n\\v\\f", upper: "A-Z", word: "A-Za-z0-9_", xdigit: "A-Fa-f0-9" };
|
|
26278
26226
|
t2.exports = { MAX_LENGTH: 1024 * 64, POSIX_REGEX_SOURCE: b, REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g, REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/, REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/, REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g, REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g, REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g, REPLACEMENTS: { "***": "*", "**/**": "**", "**/**/**": "**" }, CHAR_0: 48, CHAR_9: 57, CHAR_UPPERCASE_A: 65, CHAR_LOWERCASE_A: 97, CHAR_UPPERCASE_Z: 90, CHAR_LOWERCASE_Z: 122, CHAR_LEFT_PARENTHESES: 40, CHAR_RIGHT_PARENTHESES: 41, CHAR_ASTERISK: 42, CHAR_AMPERSAND: 38, CHAR_AT: 64, CHAR_BACKWARD_SLASH: 92, CHAR_CARRIAGE_RETURN: 13, CHAR_CIRCUMFLEX_ACCENT: 94, CHAR_COLON: 58, CHAR_COMMA: 44, CHAR_DOT: 46, CHAR_DOUBLE_QUOTE: 34, CHAR_EQUAL: 61, CHAR_EXCLAMATION_MARK: 33, CHAR_FORM_FEED: 12, CHAR_FORWARD_SLASH: 47, CHAR_GRAVE_ACCENT: 96, CHAR_HASH: 35, CHAR_HYPHEN_MINUS: 45, CHAR_LEFT_ANGLE_BRACKET: 60, CHAR_LEFT_CURLY_BRACE: 123, CHAR_LEFT_SQUARE_BRACKET: 91, CHAR_LINE_FEED: 10, CHAR_NO_BREAK_SPACE: 160, CHAR_PERCENT: 37, CHAR_PLUS: 43, CHAR_QUESTION_MARK: 63, CHAR_RIGHT_ANGLE_BRACKET: 62, CHAR_RIGHT_CURLY_BRACE: 125, CHAR_RIGHT_SQUARE_BRACKET: 93, CHAR_SEMICOLON: 59, CHAR_SINGLE_QUOTE: 39, CHAR_SPACE: 32, CHAR_TAB: 9, CHAR_UNDERSCORE: 95, CHAR_VERTICAL_LINE: 124, CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279, SEP: n.sep, extglobChars(t3) {
|
|
26279
26227
|
return { "!": { type: "negate", open: "(?:(?!(?:", close: `))${t3.STAR})` }, "?": { type: "qmark", open: "(?:", close: ")?" }, "+": { type: "plus", open: "(?:", close: ")+" }, "*": { type: "star", open: "(?:", close: ")*" }, "@": { type: "at", open: "(?:", close: ")" } };
|
|
@@ -26304,7 +26252,7 @@ var require_fast_glob = __commonJS({
|
|
|
26304
26252
|
throw new TypeError("Expected a string");
|
|
26305
26253
|
}
|
|
26306
26254
|
t3 = c[t3] || t3;
|
|
26307
|
-
const r3 =
|
|
26255
|
+
const r3 = { ...e3 };
|
|
26308
26256
|
const l = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
|
|
26309
26257
|
let f = t3.length;
|
|
26310
26258
|
if (f > l) {
|
|
@@ -26396,7 +26344,7 @@ var require_fast_glob = __commonJS({
|
|
|
26396
26344
|
M = t4;
|
|
26397
26345
|
};
|
|
26398
26346
|
const extglobOpen = (t4, e4) => {
|
|
26399
|
-
const n2 =
|
|
26347
|
+
const n2 = { ...y[e4], conditions: 1, inner: "" };
|
|
26400
26348
|
n2.prev = M;
|
|
26401
26349
|
n2.parens = H.parens;
|
|
26402
26350
|
n2.output = H.output;
|
|
@@ -26418,7 +26366,7 @@ var require_fast_glob = __commonJS({
|
|
|
26418
26366
|
n2 = t4.close = `)$))${i2}`;
|
|
26419
26367
|
}
|
|
26420
26368
|
if (t4.inner.includes("*") && (s2 = remaining()) && /^\.[^\\/.]+$/.test(s2)) {
|
|
26421
|
-
const r4 = parse3(s2,
|
|
26369
|
+
const r4 = parse3(s2, { ...e3, fastpaths: false }).output;
|
|
26422
26370
|
n2 = t4.close = `)${r4})${i2})`;
|
|
26423
26371
|
}
|
|
26424
26372
|
if (t4.prev.type === "bos") {
|
|
@@ -26940,7 +26888,7 @@ var require_fast_glob = __commonJS({
|
|
|
26940
26888
|
return H;
|
|
26941
26889
|
};
|
|
26942
26890
|
parse3.fastpaths = (t3, e3) => {
|
|
26943
|
-
const r3 =
|
|
26891
|
+
const r3 = { ...e3 };
|
|
26944
26892
|
const o2 = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
|
|
26945
26893
|
const a2 = t3.length;
|
|
26946
26894
|
if (a2 > o2) {
|
|
@@ -27031,7 +26979,7 @@ var require_fast_glob = __commonJS({
|
|
|
27031
26979
|
delete a2.state;
|
|
27032
26980
|
let isIgnored = () => false;
|
|
27033
26981
|
if (s2.ignore) {
|
|
27034
|
-
const t4 =
|
|
26982
|
+
const t4 = { ...e3, ignore: null, onMatch: null, onResult: null };
|
|
27035
26983
|
isIgnored = picomatch(s2.ignore, t4, r3);
|
|
27036
26984
|
}
|
|
27037
26985
|
const matcher = (r4, n3 = false) => {
|
|
@@ -27093,7 +27041,7 @@ var require_fast_glob = __commonJS({
|
|
|
27093
27041
|
picomatch.parse = (t3, e3) => {
|
|
27094
27042
|
if (Array.isArray(t3))
|
|
27095
27043
|
return t3.map((t4) => picomatch.parse(t4, e3));
|
|
27096
|
-
return i(t3,
|
|
27044
|
+
return i(t3, { ...e3, fastpaths: false });
|
|
27097
27045
|
};
|
|
27098
27046
|
picomatch.scan = (t3, e3) => s(t3, e3);
|
|
27099
27047
|
picomatch.compileRe = (t3, e3, r3 = false, n2 = false) => {
|
|
@@ -27558,7 +27506,7 @@ var require_fast_glob = __commonJS({
|
|
|
27558
27506
|
if (n(e3) === false) {
|
|
27559
27507
|
throw new TypeError("toRegexRange: expected the second argument to be a number.");
|
|
27560
27508
|
}
|
|
27561
|
-
let s =
|
|
27509
|
+
let s = { relaxZeros: true, ...r3 };
|
|
27562
27510
|
if (typeof s.strictZeros === "boolean") {
|
|
27563
27511
|
s.relaxZeros = s.strictZeros === false;
|
|
27564
27512
|
}
|
|
@@ -27836,19 +27784,19 @@ var require_globby = __commonJS({
|
|
|
27836
27784
|
}
|
|
27837
27785
|
return [n.posix.join(t3, "**")];
|
|
27838
27786
|
};
|
|
27839
|
-
t2.exports = (t3, e3) =>
|
|
27840
|
-
e3 =
|
|
27787
|
+
t2.exports = async (t3, e3) => {
|
|
27788
|
+
e3 = { cwd: process.cwd(), ...e3 };
|
|
27841
27789
|
if (typeof e3.cwd !== "string") {
|
|
27842
27790
|
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
|
|
27843
27791
|
}
|
|
27844
|
-
const r3 =
|
|
27845
|
-
const r4 =
|
|
27792
|
+
const r3 = await Promise.all([].concat(t3).map(async (t4) => {
|
|
27793
|
+
const r4 = await s.isDirectory(getPath(t4, e3.cwd));
|
|
27846
27794
|
return r4 ? getGlob(t4, e3) : t4;
|
|
27847
|
-
}))
|
|
27795
|
+
}));
|
|
27848
27796
|
return [].concat.apply([], r3);
|
|
27849
|
-
}
|
|
27797
|
+
};
|
|
27850
27798
|
t2.exports.sync = (t3, e3) => {
|
|
27851
|
-
e3 =
|
|
27799
|
+
e3 = { cwd: process.cwd(), ...e3 };
|
|
27852
27800
|
if (typeof e3.cwd !== "string") {
|
|
27853
27801
|
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
|
|
27854
27802
|
}
|
|
@@ -27893,24 +27841,24 @@ var require_globby = __commonJS({
|
|
|
27893
27841
|
return o.join(t3, e3);
|
|
27894
27842
|
};
|
|
27895
27843
|
const getIsIgnoredPredecate = (t3, e3) => (r3) => t3.ignores(a(o.relative(e3, ensureAbsolutePathForCwd(e3, r3.path || r3))));
|
|
27896
|
-
const getFile = (t3, e3) =>
|
|
27844
|
+
const getFile = async (t3, e3) => {
|
|
27897
27845
|
const r3 = o.join(e3, t3);
|
|
27898
|
-
const n2 =
|
|
27846
|
+
const n2 = await u(r3, "utf8");
|
|
27899
27847
|
return { cwd: e3, filePath: r3, content: n2 };
|
|
27900
|
-
}
|
|
27848
|
+
};
|
|
27901
27849
|
const getFileSync = (t3, e3) => {
|
|
27902
27850
|
const r3 = o.join(e3, t3);
|
|
27903
27851
|
const n2 = s.readFileSync(r3, "utf8");
|
|
27904
27852
|
return { cwd: e3, filePath: r3, content: n2 };
|
|
27905
27853
|
};
|
|
27906
27854
|
const normalizeOptions = ({ ignore: t3 = [], cwd: e3 = a(process.cwd()) } = {}) => ({ ignore: t3, cwd: e3 });
|
|
27907
|
-
t2.exports = (t3) =>
|
|
27855
|
+
t2.exports = async (t3) => {
|
|
27908
27856
|
t3 = normalizeOptions(t3);
|
|
27909
|
-
const e3 =
|
|
27910
|
-
const r3 =
|
|
27857
|
+
const e3 = await i("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
|
|
27858
|
+
const r3 = await Promise.all(e3.map((e4) => getFile(e4, t3.cwd)));
|
|
27911
27859
|
const n2 = reduceIgnore(r3);
|
|
27912
27860
|
return getIsIgnoredPredecate(n2, t3.cwd);
|
|
27913
|
-
}
|
|
27861
|
+
};
|
|
27914
27862
|
t2.exports.sync = (t3) => {
|
|
27915
27863
|
t3 = normalizeOptions(t3);
|
|
27916
27864
|
const e3 = i.sync("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
|
|
@@ -27941,7 +27889,7 @@ var require_globby = __commonJS({
|
|
|
27941
27889
|
let e3;
|
|
27942
27890
|
try {
|
|
27943
27891
|
e3 = n.statSync(t3.cwd);
|
|
27944
|
-
} catch
|
|
27892
|
+
} catch {
|
|
27945
27893
|
return;
|
|
27946
27894
|
}
|
|
27947
27895
|
if (!e3.isDirectory()) {
|
|
@@ -27954,13 +27902,13 @@ var require_globby = __commonJS({
|
|
|
27954
27902
|
assertPatternsInput(t3);
|
|
27955
27903
|
checkCwdOption(e3);
|
|
27956
27904
|
const r3 = [];
|
|
27957
|
-
e3 =
|
|
27905
|
+
e3 = { ignore: [], expandDirectories: true, ...e3 };
|
|
27958
27906
|
for (const [n2, s2] of t3.entries()) {
|
|
27959
27907
|
if (isNegative(s2)) {
|
|
27960
27908
|
continue;
|
|
27961
27909
|
}
|
|
27962
27910
|
const o2 = t3.slice(n2).filter((t4) => isNegative(t4)).map((t4) => t4.slice(1));
|
|
27963
|
-
const i2 =
|
|
27911
|
+
const i2 = { ...e3, ignore: e3.ignore.concat(o2) };
|
|
27964
27912
|
r3.push({ pattern: s2, options: i2 });
|
|
27965
27913
|
}
|
|
27966
27914
|
return r3;
|
|
@@ -27971,9 +27919,9 @@ var require_globby = __commonJS({
|
|
|
27971
27919
|
r3.cwd = t3.options.cwd;
|
|
27972
27920
|
}
|
|
27973
27921
|
if (Array.isArray(t3.options.expandDirectories)) {
|
|
27974
|
-
r3 =
|
|
27922
|
+
r3 = { ...r3, files: t3.options.expandDirectories };
|
|
27975
27923
|
} else if (typeof t3.options.expandDirectories === "object") {
|
|
27976
|
-
r3 =
|
|
27924
|
+
r3 = { ...r3, ...t3.options.expandDirectories };
|
|
27977
27925
|
}
|
|
27978
27926
|
return e3(t3.pattern, r3);
|
|
27979
27927
|
};
|
|
@@ -27986,22 +27934,20 @@ var require_globby = __commonJS({
|
|
|
27986
27934
|
}
|
|
27987
27935
|
return { pattern: e3, options: r3 };
|
|
27988
27936
|
};
|
|
27989
|
-
t2.exports = (t3, e3) =>
|
|
27937
|
+
t2.exports = async (t3, e3) => {
|
|
27990
27938
|
const r3 = generateGlobTasks(t3, e3);
|
|
27991
|
-
const getFilter = () =>
|
|
27992
|
-
|
|
27993
|
-
|
|
27994
|
-
|
|
27995
|
-
const t4 = yield Promise.all(r3.map((t5) => __async(exports, null, function* () {
|
|
27996
|
-
const e4 = yield getPattern(t5, c);
|
|
27939
|
+
const getFilter = async () => e3 && e3.gitignore ? a({ cwd: e3.cwd, ignore: e3.ignore }) : DEFAULT_FILTER;
|
|
27940
|
+
const getTasks = async () => {
|
|
27941
|
+
const t4 = await Promise.all(r3.map(async (t5) => {
|
|
27942
|
+
const e4 = await getPattern(t5, c);
|
|
27997
27943
|
return Promise.all(e4.map(globToTask(t5)));
|
|
27998
|
-
}))
|
|
27944
|
+
}));
|
|
27999
27945
|
return s(...t4);
|
|
28000
|
-
}
|
|
28001
|
-
const [n2, o2] =
|
|
28002
|
-
const p2 =
|
|
27946
|
+
};
|
|
27947
|
+
const [n2, o2] = await Promise.all([getFilter(), getTasks()]);
|
|
27948
|
+
const p2 = await Promise.all(o2.map((t4) => i(t4.pattern, t4.options)));
|
|
28003
27949
|
return s(...p2).filter((t4) => !n2(getPathString(t4)));
|
|
28004
|
-
}
|
|
27950
|
+
};
|
|
28005
27951
|
t2.exports.sync = (t3, e3) => {
|
|
28006
27952
|
const r3 = generateGlobTasks(t3, e3);
|
|
28007
27953
|
const n2 = [];
|
|
@@ -28355,21 +28301,19 @@ var require_globby = __commonJS({
|
|
|
28355
28301
|
"use strict";
|
|
28356
28302
|
const { promisify: n } = r2(837);
|
|
28357
28303
|
const s = r2(147);
|
|
28358
|
-
function isType4(t3, e3, r3) {
|
|
28359
|
-
|
|
28360
|
-
|
|
28361
|
-
|
|
28362
|
-
|
|
28363
|
-
|
|
28364
|
-
|
|
28365
|
-
|
|
28366
|
-
|
|
28367
|
-
|
|
28368
|
-
return false;
|
|
28369
|
-
}
|
|
28370
|
-
throw t4;
|
|
28304
|
+
async function isType4(t3, e3, r3) {
|
|
28305
|
+
if (typeof r3 !== "string") {
|
|
28306
|
+
throw new TypeError(`Expected a string, got ${typeof r3}`);
|
|
28307
|
+
}
|
|
28308
|
+
try {
|
|
28309
|
+
const o = await n(s[t3])(r3);
|
|
28310
|
+
return o[e3]();
|
|
28311
|
+
} catch (t4) {
|
|
28312
|
+
if (t4.code === "ENOENT") {
|
|
28313
|
+
return false;
|
|
28371
28314
|
}
|
|
28372
|
-
|
|
28315
|
+
throw t4;
|
|
28316
|
+
}
|
|
28373
28317
|
}
|
|
28374
28318
|
function isTypeSync(t3, e3, r3) {
|
|
28375
28319
|
if (typeof r3 !== "string") {
|
|
@@ -30744,15 +30688,15 @@ var require_gzip_size = __commonJS({
|
|
|
30744
30688
|
const i = t2(796);
|
|
30745
30689
|
const { promisify: a } = t2(837);
|
|
30746
30690
|
const s = t2(325);
|
|
30747
|
-
const getOptions = (e3) =>
|
|
30691
|
+
const getOptions = (e3) => ({ level: 9, ...e3 });
|
|
30748
30692
|
const p = a(i.gzip);
|
|
30749
|
-
e2.exports = (e3, r3) =>
|
|
30693
|
+
e2.exports = async (e3, r3) => {
|
|
30750
30694
|
if (!e3) {
|
|
30751
30695
|
return 0;
|
|
30752
30696
|
}
|
|
30753
|
-
const t3 =
|
|
30697
|
+
const t3 = await p(e3, getOptions(r3));
|
|
30754
30698
|
return t3.length;
|
|
30755
|
-
}
|
|
30699
|
+
};
|
|
30756
30700
|
e2.exports.sync = (e3, r3) => i.gzipSync(e3, getOptions(r3)).length;
|
|
30757
30701
|
e2.exports.stream = (e3) => {
|
|
30758
30702
|
const r3 = new o.PassThrough();
|
|
@@ -33714,12 +33658,10 @@ Expecting one of '${i3.join("', '")}'`);
|
|
|
33714
33658
|
this._parseCommand([], i3);
|
|
33715
33659
|
return this;
|
|
33716
33660
|
}
|
|
33717
|
-
parseAsync(t3, e3) {
|
|
33718
|
-
|
|
33719
|
-
|
|
33720
|
-
|
|
33721
|
-
return this;
|
|
33722
|
-
});
|
|
33661
|
+
async parseAsync(t3, e3) {
|
|
33662
|
+
const i3 = this._prepareUserArgs(t3, e3);
|
|
33663
|
+
await this._parseCommand([], i3);
|
|
33664
|
+
return this;
|
|
33723
33665
|
}
|
|
33724
33666
|
_executeSubCommand(t3, e3) {
|
|
33725
33667
|
e3 = e3.slice();
|
|
@@ -35526,11 +35468,11 @@ var require_fs = __commonJS({
|
|
|
35526
35468
|
}
|
|
35527
35469
|
return false;
|
|
35528
35470
|
};
|
|
35529
|
-
var emptyDir = (dir) =>
|
|
35530
|
-
if (
|
|
35531
|
-
|
|
35471
|
+
var emptyDir = async (dir) => {
|
|
35472
|
+
if (await _compiled.fs.pathExists(dir)) {
|
|
35473
|
+
await _compiled.fs.emptyDir(dir);
|
|
35532
35474
|
}
|
|
35533
|
-
}
|
|
35475
|
+
};
|
|
35534
35476
|
}
|
|
35535
35477
|
});
|
|
35536
35478
|
|
|
@@ -35942,19 +35884,19 @@ var require_project = __commonJS({
|
|
|
35942
35884
|
return false;
|
|
35943
35885
|
}
|
|
35944
35886
|
};
|
|
35945
|
-
var isApiOnly = (appDirectory, entryDir, apiDir) =>
|
|
35946
|
-
const existApi =
|
|
35947
|
-
const existSrc =
|
|
35887
|
+
var isApiOnly = async (appDirectory, entryDir, apiDir) => {
|
|
35888
|
+
const existApi = await _compiled.fs.pathExists(apiDir !== null && apiDir !== void 0 ? apiDir : _path.default.join(appDirectory, "api"));
|
|
35889
|
+
const existSrc = await _compiled.fs.pathExists(_path.default.join(appDirectory, entryDir !== null && entryDir !== void 0 ? entryDir : "src"));
|
|
35948
35890
|
const options = (0, _compiled.minimist)((0, _commands.getArgv)());
|
|
35949
35891
|
if (options["api-only"]) {
|
|
35950
35892
|
return true;
|
|
35951
35893
|
}
|
|
35952
35894
|
return existApi && !existSrc;
|
|
35953
|
-
}
|
|
35954
|
-
var isWebOnly = () =>
|
|
35895
|
+
};
|
|
35896
|
+
var isWebOnly = async () => {
|
|
35955
35897
|
const options = (0, _compiled.minimist)((0, _commands.getArgv)());
|
|
35956
35898
|
return Boolean(options["web-only"]);
|
|
35957
|
-
}
|
|
35899
|
+
};
|
|
35958
35900
|
var isBeyondReact17 = (cwd) => {
|
|
35959
35901
|
const pkgPath = _pkgup.default.sync({
|
|
35960
35902
|
cwd
|
|
@@ -35963,7 +35905,10 @@ var require_project = __commonJS({
|
|
|
35963
35905
|
return false;
|
|
35964
35906
|
}
|
|
35965
35907
|
const pkgInfo = JSON.parse(_compiled.fs.readFileSync(pkgPath, "utf8"));
|
|
35966
|
-
const deps =
|
|
35908
|
+
const deps = {
|
|
35909
|
+
...pkgInfo.devDependencies,
|
|
35910
|
+
...pkgInfo.dependencies
|
|
35911
|
+
};
|
|
35967
35912
|
if (typeof deps.react !== "string") {
|
|
35968
35913
|
return false;
|
|
35969
35914
|
}
|
|
@@ -35975,7 +35920,10 @@ var require_project = __commonJS({
|
|
|
35975
35920
|
return false;
|
|
35976
35921
|
}
|
|
35977
35922
|
const pkgInfo = JSON.parse(_compiled.fs.readFileSync(pkgPath, "utf8"));
|
|
35978
|
-
const deps =
|
|
35923
|
+
const deps = {
|
|
35924
|
+
...pkgInfo.devDependencies,
|
|
35925
|
+
...pkgInfo.dependencies
|
|
35926
|
+
};
|
|
35979
35927
|
if (typeof deps.react !== "string") {
|
|
35980
35928
|
return false;
|
|
35981
35929
|
}
|
|
@@ -36030,55 +35978,47 @@ var require_package2 = __commonJS({
|
|
|
36030
35978
|
}
|
|
36031
35979
|
});
|
|
36032
35980
|
var _compiled = require_compiled();
|
|
36033
|
-
function getPnpmVersion() {
|
|
36034
|
-
|
|
36035
|
-
|
|
36036
|
-
|
|
36037
|
-
|
|
36038
|
-
return stdout;
|
|
36039
|
-
});
|
|
35981
|
+
async function getPnpmVersion() {
|
|
35982
|
+
const { stdout } = await (0, _compiled.execa)("pnpm", [
|
|
35983
|
+
"--version"
|
|
35984
|
+
]);
|
|
35985
|
+
return stdout;
|
|
36040
35986
|
}
|
|
36041
|
-
function canUseNpm5() {
|
|
36042
|
-
|
|
36043
|
-
|
|
36044
|
-
|
|
36045
|
-
|
|
36046
|
-
|
|
36047
|
-
|
|
36048
|
-
|
|
36049
|
-
|
|
36050
|
-
|
|
36051
|
-
|
|
36052
|
-
}
|
|
36053
|
-
});
|
|
35987
|
+
async function canUseNpm5() {
|
|
35988
|
+
try {
|
|
35989
|
+
await (0, _compiled.execa)("npm", [
|
|
35990
|
+
"--version"
|
|
35991
|
+
], {
|
|
35992
|
+
env: process.env
|
|
35993
|
+
});
|
|
35994
|
+
return true;
|
|
35995
|
+
} catch (e) {
|
|
35996
|
+
return false;
|
|
35997
|
+
}
|
|
36054
35998
|
}
|
|
36055
|
-
function canUseYarn3() {
|
|
36056
|
-
|
|
36057
|
-
|
|
36058
|
-
|
|
36059
|
-
|
|
36060
|
-
|
|
36061
|
-
|
|
36062
|
-
|
|
36063
|
-
|
|
36064
|
-
|
|
36065
|
-
|
|
36066
|
-
}
|
|
36067
|
-
});
|
|
35999
|
+
async function canUseYarn3() {
|
|
36000
|
+
try {
|
|
36001
|
+
await (0, _compiled.execa)("yarn", [
|
|
36002
|
+
"--version"
|
|
36003
|
+
], {
|
|
36004
|
+
env: process.env
|
|
36005
|
+
});
|
|
36006
|
+
return true;
|
|
36007
|
+
} catch (e) {
|
|
36008
|
+
return false;
|
|
36009
|
+
}
|
|
36068
36010
|
}
|
|
36069
|
-
function canUsePnpm4() {
|
|
36070
|
-
|
|
36071
|
-
|
|
36072
|
-
|
|
36073
|
-
|
|
36074
|
-
|
|
36075
|
-
|
|
36076
|
-
|
|
36077
|
-
|
|
36078
|
-
|
|
36079
|
-
|
|
36080
|
-
}
|
|
36081
|
-
});
|
|
36011
|
+
async function canUsePnpm4() {
|
|
36012
|
+
try {
|
|
36013
|
+
await (0, _compiled.execa)("pnpm", [
|
|
36014
|
+
"--version"
|
|
36015
|
+
], {
|
|
36016
|
+
env: process.env
|
|
36017
|
+
});
|
|
36018
|
+
return true;
|
|
36019
|
+
} catch (e) {
|
|
36020
|
+
return false;
|
|
36021
|
+
}
|
|
36082
36022
|
}
|
|
36083
36023
|
}
|
|
36084
36024
|
});
|
|
@@ -36131,31 +36071,29 @@ var require_data = __commonJS({
|
|
|
36131
36071
|
var _is = require_is();
|
|
36132
36072
|
var _package = require_package2();
|
|
36133
36073
|
var MAX_TIMES = 5;
|
|
36134
|
-
function getPackageManager2() {
|
|
36135
|
-
|
|
36136
|
-
|
|
36137
|
-
|
|
36138
|
-
|
|
36139
|
-
|
|
36140
|
-
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "pnpm-lock.yaml"))) {
|
|
36141
|
-
return "pnpm";
|
|
36142
|
-
}
|
|
36143
|
-
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "yarn.lock"))) {
|
|
36144
|
-
return "yarn";
|
|
36145
|
-
}
|
|
36146
|
-
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "package-lock.json"))) {
|
|
36147
|
-
return "npm";
|
|
36148
|
-
}
|
|
36149
|
-
appDirectory = _path.default.join(appDirectory, "..");
|
|
36150
|
-
}
|
|
36151
|
-
if (yield (0, _package.canUsePnpm)()) {
|
|
36074
|
+
async function getPackageManager2(cwd = process.cwd()) {
|
|
36075
|
+
let appDirectory = cwd;
|
|
36076
|
+
let times = 0;
|
|
36077
|
+
while (_os.default.homedir() !== appDirectory && times < MAX_TIMES) {
|
|
36078
|
+
times++;
|
|
36079
|
+
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "pnpm-lock.yaml"))) {
|
|
36152
36080
|
return "pnpm";
|
|
36153
36081
|
}
|
|
36154
|
-
if (
|
|
36082
|
+
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "yarn.lock"))) {
|
|
36155
36083
|
return "yarn";
|
|
36156
36084
|
}
|
|
36157
|
-
|
|
36158
|
-
|
|
36085
|
+
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "package-lock.json"))) {
|
|
36086
|
+
return "npm";
|
|
36087
|
+
}
|
|
36088
|
+
appDirectory = _path.default.join(appDirectory, "..");
|
|
36089
|
+
}
|
|
36090
|
+
if (await (0, _package.canUsePnpm)()) {
|
|
36091
|
+
return "pnpm";
|
|
36092
|
+
}
|
|
36093
|
+
if (await (0, _package.canUseYarn)()) {
|
|
36094
|
+
return "yarn";
|
|
36095
|
+
}
|
|
36096
|
+
return "npm";
|
|
36159
36097
|
}
|
|
36160
36098
|
var getCoreJsVersion = (corejsPkgPath) => {
|
|
36161
36099
|
try {
|
|
@@ -36235,7 +36173,10 @@ var require_config2 = __commonJS({
|
|
|
36235
36173
|
if (optionsByEntry === void 0 && isMainEntry && packageName) {
|
|
36236
36174
|
optionsByEntry = getOptionsByEntryName(packageName, optionsByEntries);
|
|
36237
36175
|
}
|
|
36238
|
-
return optionsByEntry !== void 0 ? (0, _is.isPlainObject)(optionsByEntry) && (0, _is.isPlainObject)(baseOptions) ?
|
|
36176
|
+
return optionsByEntry !== void 0 ? (0, _is.isPlainObject)(optionsByEntry) && (0, _is.isPlainObject)(baseOptions) ? {
|
|
36177
|
+
...baseOptions,
|
|
36178
|
+
...optionsByEntry
|
|
36179
|
+
} : optionsByEntry : baseOptions;
|
|
36239
36180
|
} else {
|
|
36240
36181
|
return baseOptions;
|
|
36241
36182
|
}
|
|
@@ -36273,10 +36214,10 @@ var require_get = __commonJS({
|
|
|
36273
36214
|
var _fs = require_fs();
|
|
36274
36215
|
_export_star._(require_data(), exports);
|
|
36275
36216
|
_export_star._(require_config2(), exports);
|
|
36276
|
-
var getServerConfig = (appDirectory, configFile) =>
|
|
36217
|
+
var getServerConfig = async (appDirectory, configFile) => {
|
|
36277
36218
|
const configFilePath = (0, _fs.findExists)(_constants.CONFIG_FILE_EXTENSIONS.map((extension) => _path.default.resolve(appDirectory, `${configFile}${extension}`)));
|
|
36278
36219
|
return configFilePath;
|
|
36279
|
-
}
|
|
36220
|
+
};
|
|
36280
36221
|
var getTargetDir = (from, baseDir, targetBaseDir) => {
|
|
36281
36222
|
const relativePath = _path.default.relative(baseDir, from);
|
|
36282
36223
|
return _path.default.resolve(targetBaseDir, relativePath);
|
|
@@ -36401,8 +36342,14 @@ ${_chalk.default.grey(rest.join("\n"))}`;
|
|
|
36401
36342
|
}
|
|
36402
36343
|
constructor(options = {}) {
|
|
36403
36344
|
this.level = options.level || LOG_TYPES.log.level;
|
|
36404
|
-
this.config =
|
|
36405
|
-
|
|
36345
|
+
this.config = {
|
|
36346
|
+
...DEFAULT_CONFIG,
|
|
36347
|
+
...options.config || {}
|
|
36348
|
+
};
|
|
36349
|
+
this.types = {
|
|
36350
|
+
...LOG_TYPES,
|
|
36351
|
+
...options.types || {}
|
|
36352
|
+
};
|
|
36406
36353
|
this.longestLabel = this.getLongestLabel();
|
|
36407
36354
|
Object.keys(this.types).forEach((type) => {
|
|
36408
36355
|
this[type] = this._log.bind(this, type);
|
|
@@ -36520,7 +36467,10 @@ var require_alias = __commonJS({
|
|
|
36520
36467
|
const baseUrl = (_tsconfig = tsconfig) === null || _tsconfig === void 0 ? void 0 : (_tsconfig_compilerOptions = _tsconfig.compilerOptions) === null || _tsconfig_compilerOptions === void 0 ? void 0 : _tsconfig_compilerOptions.baseUrl;
|
|
36521
36468
|
return {
|
|
36522
36469
|
absoluteBaseUrl: baseUrl ? _path.default.join(option.appDirectory, baseUrl) : option.appDirectory,
|
|
36523
|
-
paths:
|
|
36470
|
+
paths: {
|
|
36471
|
+
...alias,
|
|
36472
|
+
...(_tsconfig1 = tsconfig) === null || _tsconfig1 === void 0 ? void 0 : (_tsconfig_compilerOptions1 = _tsconfig1.compilerOptions) === null || _tsconfig_compilerOptions1 === void 0 ? void 0 : _tsconfig_compilerOptions1.paths
|
|
36473
|
+
},
|
|
36524
36474
|
isTsPath: true,
|
|
36525
36475
|
isTsProject: isTsProject2
|
|
36526
36476
|
};
|
|
@@ -36606,7 +36556,7 @@ var require_path = __commonJS({
|
|
|
36606
36556
|
try {
|
|
36607
36557
|
ret = _os.default.tmpdir();
|
|
36608
36558
|
ret = _fs.default.realpathSync(ret);
|
|
36609
|
-
} catch
|
|
36559
|
+
} catch {
|
|
36610
36560
|
}
|
|
36611
36561
|
return ret;
|
|
36612
36562
|
}
|
|
@@ -36707,7 +36657,10 @@ var require_babel = __commonJS({
|
|
|
36707
36657
|
presets.forEach((preset, index) => {
|
|
36708
36658
|
if (Array.isArray(preset)) {
|
|
36709
36659
|
if (typeof preset[0] === "string" && (0, _path1.normalizeToPosixPath)(preset[0]).includes(presetName)) {
|
|
36710
|
-
preset[1] =
|
|
36660
|
+
preset[1] = {
|
|
36661
|
+
...preset[1] || {},
|
|
36662
|
+
...options
|
|
36663
|
+
};
|
|
36711
36664
|
}
|
|
36712
36665
|
} else if (typeof preset === "string" && (0, _path1.normalizeToPosixPath)(preset).includes(presetName)) {
|
|
36713
36666
|
presets[index] = [
|
|
@@ -36736,7 +36689,10 @@ var require_babel = __commonJS({
|
|
|
36736
36689
|
};
|
|
36737
36690
|
var applyUserBabelConfig = (defaultOptions, userBabelConfig, extraBabelUtils) => {
|
|
36738
36691
|
if (userBabelConfig) {
|
|
36739
|
-
const babelUtils =
|
|
36692
|
+
const babelUtils = {
|
|
36693
|
+
...getBabelUtils(defaultOptions),
|
|
36694
|
+
...extraBabelUtils
|
|
36695
|
+
};
|
|
36740
36696
|
return (0, _applyOptionsChain.applyOptionsChain)(defaultOptions, userBabelConfig || {}, babelUtils);
|
|
36741
36697
|
}
|
|
36742
36698
|
return defaultOptions;
|
|
@@ -36809,7 +36765,10 @@ var require_monorepo = __commonJS({
|
|
|
36809
36765
|
return false;
|
|
36810
36766
|
}
|
|
36811
36767
|
const json = JSON.parse(_fs.default.readFileSync(pkgJsonPath, "utf8"));
|
|
36812
|
-
const deps =
|
|
36768
|
+
const deps = {
|
|
36769
|
+
...json.dependencies || {},
|
|
36770
|
+
...json.devDependencies || {}
|
|
36771
|
+
};
|
|
36813
36772
|
return Boolean(deps["@modern-js/monorepo-tools"]);
|
|
36814
36773
|
};
|
|
36815
36774
|
var findMonorepoRoot = (appDirectory, maxDepth = PACKAGE_MAX_DEPTH) => {
|
|
@@ -36869,7 +36828,7 @@ var require_port = __commonJS({
|
|
|
36869
36828
|
var _net = /* @__PURE__ */ _interop_require_default._(require("net"));
|
|
36870
36829
|
var _compiled = require_compiled();
|
|
36871
36830
|
var _logger = require_logger();
|
|
36872
|
-
var getPort =
|
|
36831
|
+
var getPort = async (port, { tryLimits = 20, strictPort = false } = {}) => {
|
|
36873
36832
|
if (typeof port === "string") {
|
|
36874
36833
|
port = parseInt(port, 10);
|
|
36875
36834
|
}
|
|
@@ -36881,7 +36840,7 @@ var require_port = __commonJS({
|
|
|
36881
36840
|
let attempts = 0;
|
|
36882
36841
|
while (!found && attempts <= tryLimits) {
|
|
36883
36842
|
try {
|
|
36884
|
-
|
|
36843
|
+
await new Promise((resolve, reject) => {
|
|
36885
36844
|
const server = _net.default.createServer();
|
|
36886
36845
|
server.unref();
|
|
36887
36846
|
server.on("error", reject);
|
|
@@ -36909,7 +36868,7 @@ var require_port = __commonJS({
|
|
|
36909
36868
|
}
|
|
36910
36869
|
}
|
|
36911
36870
|
return port;
|
|
36912
|
-
}
|
|
36871
|
+
};
|
|
36913
36872
|
}
|
|
36914
36873
|
});
|
|
36915
36874
|
|
|
@@ -37060,13 +37019,14 @@ var require_require = __commonJS({
|
|
|
37060
37019
|
};
|
|
37061
37020
|
var dynamicImport = new Function("modulePath", "return import(modulePath)");
|
|
37062
37021
|
var requireExistModule = (filename, opt) => {
|
|
37063
|
-
const final =
|
|
37022
|
+
const final = {
|
|
37064
37023
|
extensions: [
|
|
37065
37024
|
".ts",
|
|
37066
37025
|
".js"
|
|
37067
37026
|
],
|
|
37068
|
-
interop: true
|
|
37069
|
-
|
|
37027
|
+
interop: true,
|
|
37028
|
+
...opt
|
|
37029
|
+
};
|
|
37070
37030
|
const exist = (0, _fs.findExists)(final.extensions.map((ext) => `${filename}${ext}`));
|
|
37071
37031
|
if (!exist) {
|
|
37072
37032
|
return null;
|
|
@@ -37146,7 +37106,7 @@ var require_runtimeExports = __commonJS({
|
|
|
37146
37106
|
_compiled.fs.appendFileSync(entryExportFile, `${statement}
|
|
37147
37107
|
`);
|
|
37148
37108
|
}
|
|
37149
|
-
} catch
|
|
37109
|
+
} catch {
|
|
37150
37110
|
}
|
|
37151
37111
|
};
|
|
37152
37112
|
const getPath = () => entryExportFile;
|
|
@@ -37194,29 +37154,29 @@ var require_watch = __commonJS({
|
|
|
37194
37154
|
ignored
|
|
37195
37155
|
});
|
|
37196
37156
|
watcher.on("ready", () => ready = true);
|
|
37197
|
-
watcher.on("change", (filePath) =>
|
|
37157
|
+
watcher.on("change", async (filePath) => {
|
|
37198
37158
|
const changedFilePath = _path.default.resolve(filePath);
|
|
37199
|
-
|
|
37159
|
+
await runTask({
|
|
37200
37160
|
changedFilePath,
|
|
37201
37161
|
changeType: WatchChangeType.CHANGE
|
|
37202
37162
|
});
|
|
37203
|
-
})
|
|
37204
|
-
watcher.on("add", (filePath) =>
|
|
37163
|
+
});
|
|
37164
|
+
watcher.on("add", async (filePath) => {
|
|
37205
37165
|
const changedFilePath = _path.default.resolve(filePath);
|
|
37206
37166
|
if (ready) {
|
|
37207
|
-
|
|
37167
|
+
await runTask({
|
|
37208
37168
|
changedFilePath,
|
|
37209
37169
|
changeType: WatchChangeType.ADD
|
|
37210
37170
|
});
|
|
37211
37171
|
}
|
|
37212
|
-
})
|
|
37213
|
-
watcher.on("unlink", (filePath) =>
|
|
37172
|
+
});
|
|
37173
|
+
watcher.on("unlink", async (filePath) => {
|
|
37214
37174
|
const changedFilePath = _path.default.resolve(filePath);
|
|
37215
|
-
|
|
37175
|
+
await runTask({
|
|
37216
37176
|
changedFilePath,
|
|
37217
37177
|
changeType: WatchChangeType.UNLINK
|
|
37218
37178
|
});
|
|
37219
|
-
})
|
|
37179
|
+
});
|
|
37220
37180
|
watcher.on("error", (err) => {
|
|
37221
37181
|
throw err;
|
|
37222
37182
|
});
|
|
@@ -37701,22 +37661,20 @@ var require_fs_extra2 = __commonJS({
|
|
|
37701
37661
|
const o = r2(17);
|
|
37702
37662
|
const c = r2(971);
|
|
37703
37663
|
const s = r2(95);
|
|
37704
|
-
const a = n(function emptyDir(e3) {
|
|
37705
|
-
|
|
37706
|
-
|
|
37707
|
-
|
|
37708
|
-
|
|
37709
|
-
|
|
37710
|
-
|
|
37711
|
-
|
|
37712
|
-
return Promise.all(t3.map((t4) => s.remove(o.join(e3, t4))));
|
|
37713
|
-
});
|
|
37664
|
+
const a = n(async function emptyDir(e3) {
|
|
37665
|
+
let t3;
|
|
37666
|
+
try {
|
|
37667
|
+
t3 = await i.readdir(e3);
|
|
37668
|
+
} catch {
|
|
37669
|
+
return c.mkdirs(e3);
|
|
37670
|
+
}
|
|
37671
|
+
return Promise.all(t3.map((t4) => s.remove(o.join(e3, t4))));
|
|
37714
37672
|
});
|
|
37715
37673
|
function emptyDirSync(e3) {
|
|
37716
37674
|
let t3;
|
|
37717
37675
|
try {
|
|
37718
37676
|
t3 = i.readdirSync(e3);
|
|
37719
|
-
} catch
|
|
37677
|
+
} catch {
|
|
37720
37678
|
return c.mkdirsSync(e3);
|
|
37721
37679
|
}
|
|
37722
37680
|
t3.forEach((t4) => {
|
|
@@ -37769,7 +37727,7 @@ var require_fs_extra2 = __commonJS({
|
|
|
37769
37727
|
let t3;
|
|
37770
37728
|
try {
|
|
37771
37729
|
t3 = o.statSync(e3);
|
|
37772
|
-
} catch
|
|
37730
|
+
} catch {
|
|
37773
37731
|
}
|
|
37774
37732
|
if (t3 && t3.isFile())
|
|
37775
37733
|
return;
|
|
@@ -37836,7 +37794,7 @@ var require_fs_extra2 = __commonJS({
|
|
|
37836
37794
|
let r3;
|
|
37837
37795
|
try {
|
|
37838
37796
|
r3 = o.lstatSync(t3);
|
|
37839
|
-
} catch
|
|
37797
|
+
} catch {
|
|
37840
37798
|
}
|
|
37841
37799
|
try {
|
|
37842
37800
|
const t4 = o.lstatSync(e3);
|
|
@@ -37931,7 +37889,7 @@ var require_fs_extra2 = __commonJS({
|
|
|
37931
37889
|
return t3;
|
|
37932
37890
|
try {
|
|
37933
37891
|
r3 = n.lstatSync(e3);
|
|
37934
|
-
} catch
|
|
37892
|
+
} catch {
|
|
37935
37893
|
return "file";
|
|
37936
37894
|
}
|
|
37937
37895
|
return r3 && r3.isDirectory() ? "dir" : "file";
|
|
@@ -37994,7 +37952,7 @@ var require_fs_extra2 = __commonJS({
|
|
|
37994
37952
|
let n2;
|
|
37995
37953
|
try {
|
|
37996
37954
|
n2 = o.lstatSync(t3);
|
|
37997
|
-
} catch
|
|
37955
|
+
} catch {
|
|
37998
37956
|
}
|
|
37999
37957
|
if (n2 && n2.isSymbolicLink()) {
|
|
38000
37958
|
const r4 = o.statSync(e3);
|
|
@@ -38069,7 +38027,7 @@ var require_fs_extra2 = __commonJS({
|
|
|
38069
38027
|
}
|
|
38070
38028
|
}, 81: (e2, t2, r2) => {
|
|
38071
38029
|
"use strict";
|
|
38072
|
-
e2.exports =
|
|
38030
|
+
e2.exports = { ...r2(812), ...r2(2), ...r2(708), ...r2(726), ...r2(779), ...r2(971), ...r2(511), ...r2(701), ...r2(725), ...r2(95) };
|
|
38073
38031
|
}, 779: (e2, t2, r2) => {
|
|
38074
38032
|
"use strict";
|
|
38075
38033
|
const n = r2(5).fromPromise;
|
|
@@ -38100,11 +38058,9 @@ var require_fs_extra2 = __commonJS({
|
|
|
38100
38058
|
"use strict";
|
|
38101
38059
|
const { stringify: n } = r2(208);
|
|
38102
38060
|
const { outputFile: i } = r2(701);
|
|
38103
|
-
function outputJson(
|
|
38104
|
-
|
|
38105
|
-
|
|
38106
|
-
yield i(e3, o, r3);
|
|
38107
|
-
});
|
|
38061
|
+
async function outputJson(e3, t3, r3 = {}) {
|
|
38062
|
+
const o = n(t3, r3);
|
|
38063
|
+
await i(e3, o, r3);
|
|
38108
38064
|
}
|
|
38109
38065
|
e2.exports = outputJson;
|
|
38110
38066
|
}, 971: (e2, t2, r2) => {
|
|
@@ -38121,12 +38077,12 @@ var require_fs_extra2 = __commonJS({
|
|
|
38121
38077
|
const t3 = { mode: 511 };
|
|
38122
38078
|
if (typeof e3 === "number")
|
|
38123
38079
|
return e3;
|
|
38124
|
-
return
|
|
38080
|
+
return { ...t3, ...e3 }.mode;
|
|
38125
38081
|
};
|
|
38126
|
-
e2.exports.makeDir = (e3, t3) =>
|
|
38082
|
+
e2.exports.makeDir = async (e3, t3) => {
|
|
38127
38083
|
i(e3);
|
|
38128
38084
|
return n.mkdir(e3, { mode: getMode(t3), recursive: true });
|
|
38129
|
-
}
|
|
38085
|
+
};
|
|
38130
38086
|
e2.exports.makeDirSync = (e3, t3) => {
|
|
38131
38087
|
i(e3);
|
|
38132
38088
|
return n.mkdirSync(e3, { mode: getMode(t3), recursive: true });
|
|
@@ -38544,7 +38500,7 @@ var require_fs_extra2 = __commonJS({
|
|
|
38544
38500
|
try {
|
|
38545
38501
|
const r4 = t3.rmdirSync(e3, t3);
|
|
38546
38502
|
return r4;
|
|
38547
|
-
} catch
|
|
38503
|
+
} catch {
|
|
38548
38504
|
}
|
|
38549
38505
|
} while (Date.now() - r3 < 500);
|
|
38550
38506
|
} else {
|
|
@@ -39443,28 +39399,26 @@ var require_fs_extra2 = __commonJS({
|
|
|
39443
39399
|
}
|
|
39444
39400
|
const i = r2(5);
|
|
39445
39401
|
const { stringify: o, stripBom: c } = r2(208);
|
|
39446
|
-
function _readFile(
|
|
39447
|
-
|
|
39448
|
-
|
|
39449
|
-
|
|
39450
|
-
|
|
39451
|
-
|
|
39452
|
-
|
|
39453
|
-
|
|
39454
|
-
|
|
39455
|
-
|
|
39456
|
-
|
|
39457
|
-
|
|
39458
|
-
|
|
39459
|
-
|
|
39460
|
-
|
|
39461
|
-
|
|
39462
|
-
|
|
39463
|
-
return null;
|
|
39464
|
-
}
|
|
39402
|
+
async function _readFile(e3, t3 = {}) {
|
|
39403
|
+
if (typeof t3 === "string") {
|
|
39404
|
+
t3 = { encoding: t3 };
|
|
39405
|
+
}
|
|
39406
|
+
const r3 = t3.fs || n;
|
|
39407
|
+
const o2 = "throws" in t3 ? t3.throws : true;
|
|
39408
|
+
let s2 = await i.fromCallback(r3.readFile)(e3, t3);
|
|
39409
|
+
s2 = c(s2);
|
|
39410
|
+
let a2;
|
|
39411
|
+
try {
|
|
39412
|
+
a2 = JSON.parse(s2, t3 ? t3.reviver : null);
|
|
39413
|
+
} catch (t4) {
|
|
39414
|
+
if (o2) {
|
|
39415
|
+
t4.message = `${e3}: ${t4.message}`;
|
|
39416
|
+
throw t4;
|
|
39417
|
+
} else {
|
|
39418
|
+
return null;
|
|
39465
39419
|
}
|
|
39466
|
-
|
|
39467
|
-
|
|
39420
|
+
}
|
|
39421
|
+
return a2;
|
|
39468
39422
|
}
|
|
39469
39423
|
const s = i.fromPromise(_readFile);
|
|
39470
39424
|
function readFileSync(e3, t3 = {}) {
|
|
@@ -39486,12 +39440,10 @@ var require_fs_extra2 = __commonJS({
|
|
|
39486
39440
|
}
|
|
39487
39441
|
}
|
|
39488
39442
|
}
|
|
39489
|
-
function _writeFile(
|
|
39490
|
-
|
|
39491
|
-
|
|
39492
|
-
|
|
39493
|
-
yield i.fromCallback(c2.writeFile)(e3, s2, r3);
|
|
39494
|
-
});
|
|
39443
|
+
async function _writeFile(e3, t3, r3 = {}) {
|
|
39444
|
+
const c2 = r3.fs || n;
|
|
39445
|
+
const s2 = o(t3, r3);
|
|
39446
|
+
await i.fromCallback(c2.writeFile)(e3, s2, r3);
|
|
39495
39447
|
}
|
|
39496
39448
|
const a = i.fromPromise(_writeFile);
|
|
39497
39449
|
function writeFileSync(e3, t3, r3 = {}) {
|
|
@@ -39719,11 +39671,11 @@ var require_chalk2 = __commonJS({
|
|
|
39719
39671
|
} };
|
|
39720
39672
|
}
|
|
39721
39673
|
const f = Object.defineProperties(() => {
|
|
39722
|
-
},
|
|
39674
|
+
}, { ...u, level: { enumerable: true, get() {
|
|
39723
39675
|
return this._generator.level;
|
|
39724
39676
|
}, set(e3) {
|
|
39725
39677
|
this._generator.level = e3;
|
|
39726
|
-
} } })
|
|
39678
|
+
} } });
|
|
39727
39679
|
const createStyler = (e3, t3, n3) => {
|
|
39728
39680
|
let r2;
|
|
39729
39681
|
let s2;
|
|
@@ -40034,7 +39986,7 @@ var require_chalk2 = __commonJS({
|
|
|
40034
39986
|
return [o2 * 100, l * 100, c * 100, s2 * 100];
|
|
40035
39987
|
};
|
|
40036
39988
|
function comparativeDistance(e3, t3) {
|
|
40037
|
-
return
|
|
39989
|
+
return (e3[0] - t3[0]) ** 2 + (e3[1] - t3[1]) ** 2 + (e3[2] - t3[2]) ** 2;
|
|
40038
39990
|
}
|
|
40039
39991
|
o.rgb.keyword = function(e3) {
|
|
40040
39992
|
const t3 = s[e3];
|
|
@@ -40060,9 +40012,9 @@ var require_chalk2 = __commonJS({
|
|
|
40060
40012
|
let t3 = e3[0] / 255;
|
|
40061
40013
|
let n3 = e3[1] / 255;
|
|
40062
40014
|
let r2 = e3[2] / 255;
|
|
40063
|
-
t3 = t3 > 0.04045 ?
|
|
40064
|
-
n3 = n3 > 0.04045 ?
|
|
40065
|
-
r2 = r2 > 0.04045 ?
|
|
40015
|
+
t3 = t3 > 0.04045 ? ((t3 + 0.055) / 1.055) ** 2.4 : t3 / 12.92;
|
|
40016
|
+
n3 = n3 > 0.04045 ? ((n3 + 0.055) / 1.055) ** 2.4 : n3 / 12.92;
|
|
40017
|
+
r2 = r2 > 0.04045 ? ((r2 + 0.055) / 1.055) ** 2.4 : r2 / 12.92;
|
|
40066
40018
|
const s2 = t3 * 0.4124 + n3 * 0.3576 + r2 * 0.1805;
|
|
40067
40019
|
const o2 = t3 * 0.2126 + n3 * 0.7152 + r2 * 0.0722;
|
|
40068
40020
|
const l = t3 * 0.0193 + n3 * 0.1192 + r2 * 0.9505;
|
|
@@ -40076,9 +40028,9 @@ var require_chalk2 = __commonJS({
|
|
|
40076
40028
|
n3 /= 95.047;
|
|
40077
40029
|
r2 /= 100;
|
|
40078
40030
|
s2 /= 108.883;
|
|
40079
|
-
n3 = n3 > 8856e-6 ?
|
|
40080
|
-
r2 = r2 > 8856e-6 ?
|
|
40081
|
-
s2 = s2 > 8856e-6 ?
|
|
40031
|
+
n3 = n3 > 8856e-6 ? n3 ** (1 / 3) : 7.787 * n3 + 16 / 116;
|
|
40032
|
+
r2 = r2 > 8856e-6 ? r2 ** (1 / 3) : 7.787 * r2 + 16 / 116;
|
|
40033
|
+
s2 = s2 > 8856e-6 ? s2 ** (1 / 3) : 7.787 * s2 + 16 / 116;
|
|
40082
40034
|
const l = 116 * r2 - 16;
|
|
40083
40035
|
const c = 500 * (n3 - r2);
|
|
40084
40036
|
const i = 200 * (r2 - s2);
|
|
@@ -40252,9 +40204,9 @@ var require_chalk2 = __commonJS({
|
|
|
40252
40204
|
s2 = t3 * 3.2406 + n3 * -1.5372 + r2 * -0.4986;
|
|
40253
40205
|
o2 = t3 * -0.9689 + n3 * 1.8758 + r2 * 0.0415;
|
|
40254
40206
|
l = t3 * 0.0557 + n3 * -0.204 + r2 * 1.057;
|
|
40255
|
-
s2 = s2 > 31308e-7 ? 1.055 *
|
|
40256
|
-
o2 = o2 > 31308e-7 ? 1.055 *
|
|
40257
|
-
l = l > 31308e-7 ? 1.055 *
|
|
40207
|
+
s2 = s2 > 31308e-7 ? 1.055 * s2 ** (1 / 2.4) - 0.055 : s2 * 12.92;
|
|
40208
|
+
o2 = o2 > 31308e-7 ? 1.055 * o2 ** (1 / 2.4) - 0.055 : o2 * 12.92;
|
|
40209
|
+
l = l > 31308e-7 ? 1.055 * l ** (1 / 2.4) - 0.055 : l * 12.92;
|
|
40258
40210
|
s2 = Math.min(Math.max(0, s2), 1);
|
|
40259
40211
|
o2 = Math.min(Math.max(0, o2), 1);
|
|
40260
40212
|
l = Math.min(Math.max(0, l), 1);
|
|
@@ -40267,9 +40219,9 @@ var require_chalk2 = __commonJS({
|
|
|
40267
40219
|
t3 /= 95.047;
|
|
40268
40220
|
n3 /= 100;
|
|
40269
40221
|
r2 /= 108.883;
|
|
40270
|
-
t3 = t3 > 8856e-6 ?
|
|
40271
|
-
n3 = n3 > 8856e-6 ?
|
|
40272
|
-
r2 = r2 > 8856e-6 ?
|
|
40222
|
+
t3 = t3 > 8856e-6 ? t3 ** (1 / 3) : 7.787 * t3 + 16 / 116;
|
|
40223
|
+
n3 = n3 > 8856e-6 ? n3 ** (1 / 3) : 7.787 * n3 + 16 / 116;
|
|
40224
|
+
r2 = r2 > 8856e-6 ? r2 ** (1 / 3) : 7.787 * r2 + 16 / 116;
|
|
40273
40225
|
const s2 = 116 * n3 - 16;
|
|
40274
40226
|
const o2 = 500 * (t3 - n3);
|
|
40275
40227
|
const l = 200 * (n3 - r2);
|
|
@@ -40285,9 +40237,9 @@ var require_chalk2 = __commonJS({
|
|
|
40285
40237
|
o2 = (t3 + 16) / 116;
|
|
40286
40238
|
s2 = n3 / 500 + o2;
|
|
40287
40239
|
l = o2 - r2 / 200;
|
|
40288
|
-
const c =
|
|
40289
|
-
const i =
|
|
40290
|
-
const a =
|
|
40240
|
+
const c = o2 ** 3;
|
|
40241
|
+
const i = s2 ** 3;
|
|
40242
|
+
const a = l ** 3;
|
|
40291
40243
|
o2 = c > 8856e-6 ? c : (o2 - 16 / 116) / 7.787;
|
|
40292
40244
|
s2 = i > 8856e-6 ? i : (s2 - 16 / 116) / 7.787;
|
|
40293
40245
|
l = a > 8856e-6 ? a : (l - 16 / 116) / 7.787;
|
|
@@ -41543,7 +41495,7 @@ var require_ora2 = __commonJS({
|
|
|
41543
41495
|
if (typeof e3 === "string") {
|
|
41544
41496
|
e3 = { text: e3 };
|
|
41545
41497
|
}
|
|
41546
|
-
this.options =
|
|
41498
|
+
this.options = { text: "", color: "cyan", stream: process.stderr, discardStdin: true, ...e3 };
|
|
41547
41499
|
this.spinner = this.options.spinner;
|
|
41548
41500
|
this.color = this.options.color;
|
|
41549
41501
|
this.hideCursor = this.options.hideCursor !== false;
|
|
@@ -41760,14 +41712,14 @@ var require_ora2 = __commonJS({
|
|
|
41760
41712
|
}
|
|
41761
41713
|
const r3 = new Ora(t3);
|
|
41762
41714
|
r3.start();
|
|
41763
|
-
(() =>
|
|
41715
|
+
(async () => {
|
|
41764
41716
|
try {
|
|
41765
|
-
|
|
41717
|
+
await e3;
|
|
41766
41718
|
r3.succeed();
|
|
41767
|
-
} catch
|
|
41719
|
+
} catch {
|
|
41768
41720
|
r3.fail();
|
|
41769
41721
|
}
|
|
41770
|
-
})
|
|
41722
|
+
})();
|
|
41771
41723
|
return r3;
|
|
41772
41724
|
};
|
|
41773
41725
|
}, 959: (e2) => {
|
|
@@ -50187,7 +50139,7 @@ var require_execa2 = __commonJS({
|
|
|
50187
50139
|
const { joinCommand: w, parseCommand: E, getEscapedCommand: I } = n2(192);
|
|
50188
50140
|
const T = 1e3 * 1e3 * 100;
|
|
50189
50141
|
const getEnv = ({ env: e3, extendEnv: t3, preferLocal: n3, localDir: r2, execPath: o2 }) => {
|
|
50190
|
-
const s2 = t3 ?
|
|
50142
|
+
const s2 = t3 ? { ...process.env, ...e3 } : e3;
|
|
50191
50143
|
if (n3) {
|
|
50192
50144
|
return a.env({ env: s2, cwd: r2, execPath: o2 });
|
|
50193
50145
|
}
|
|
@@ -50198,7 +50150,7 @@ var require_execa2 = __commonJS({
|
|
|
50198
50150
|
e3 = o2.command;
|
|
50199
50151
|
t3 = o2.args;
|
|
50200
50152
|
n3 = o2.options;
|
|
50201
|
-
n3 =
|
|
50153
|
+
n3 = { maxBuffer: T, buffer: true, stripFinalNewline: true, extendEnv: true, preferLocal: false, localDir: n3.cwd || process.cwd(), execPath: process.execPath, encoding: "utf8", reject: true, cleanup: true, all: false, windowsHide: true, ...n3 };
|
|
50202
50154
|
n3.env = getEnv(n3);
|
|
50203
50155
|
n3.stdio = u(n3);
|
|
50204
50156
|
if (process.platform === "win32" && r.basename(e3, ".exe") === "cmd") {
|
|
@@ -50234,8 +50186,8 @@ var require_execa2 = __commonJS({
|
|
|
50234
50186
|
const T2 = { isCanceled: false };
|
|
50235
50187
|
a2.kill = l.bind(null, a2.kill.bind(a2));
|
|
50236
50188
|
a2.cancel = f.bind(null, a2, T2);
|
|
50237
|
-
const handlePromise = () =>
|
|
50238
|
-
const [{ error: e4, exitCode: t4, signal: n4, timedOut: o2 }, c2, u3, l2] =
|
|
50189
|
+
const handlePromise = async () => {
|
|
50190
|
+
const [{ error: e4, exitCode: t4, signal: n4, timedOut: o2 }, c2, u3, l2] = await h(a2, r2.options, E2);
|
|
50239
50191
|
const f2 = handleOutput(r2.options, c2);
|
|
50240
50192
|
const p2 = handleOutput(r2.options, u3);
|
|
50241
50193
|
const m2 = handleOutput(r2.options, l2);
|
|
@@ -50247,7 +50199,7 @@ var require_execa2 = __commonJS({
|
|
|
50247
50199
|
throw c3;
|
|
50248
50200
|
}
|
|
50249
50201
|
return { command: s2, escapedCommand: i2, exitCode: 0, stdout: f2, stderr: p2, all: m2, failed: false, timedOut: false, isCanceled: false, killed: false };
|
|
50250
|
-
}
|
|
50202
|
+
};
|
|
50251
50203
|
const C = c(handlePromise);
|
|
50252
50204
|
x(a2, r2.options.input);
|
|
50253
50205
|
a2.all = y(a2, r2.options);
|
|
@@ -50292,7 +50244,7 @@ var require_execa2 = __commonJS({
|
|
|
50292
50244
|
const r2 = u.node(n3);
|
|
50293
50245
|
const o2 = process.execArgv.filter((e4) => !e4.startsWith("--inspect"));
|
|
50294
50246
|
const { nodePath: s2 = process.execPath, nodeOptions: i2 = o2 } = n3;
|
|
50295
|
-
return execa4(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []],
|
|
50247
|
+
return execa4(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []], { ...n3, stdin: void 0, stdout: void 0, stderr: void 0, stdio: r2, shell: false });
|
|
50296
50248
|
};
|
|
50297
50249
|
}, 192: (e2) => {
|
|
50298
50250
|
"use strict";
|
|
@@ -50448,7 +50400,7 @@ ${o.message}` : x;
|
|
|
50448
50400
|
throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e3}\` (${typeof e3})`);
|
|
50449
50401
|
}
|
|
50450
50402
|
};
|
|
50451
|
-
const setExitHandler =
|
|
50403
|
+
const setExitHandler = async (e3, { cleanup: t3, detached: n3 }, r2) => {
|
|
50452
50404
|
if (!t3 || n3) {
|
|
50453
50405
|
return r2;
|
|
50454
50406
|
}
|
|
@@ -50458,17 +50410,17 @@ ${o.message}` : x;
|
|
|
50458
50410
|
return r2.finally(() => {
|
|
50459
50411
|
s2();
|
|
50460
50412
|
});
|
|
50461
|
-
}
|
|
50413
|
+
};
|
|
50462
50414
|
e2.exports = { spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler };
|
|
50463
50415
|
}, 210: (e2) => {
|
|
50464
50416
|
"use strict";
|
|
50465
|
-
const t2 = (() =>
|
|
50466
|
-
})
|
|
50417
|
+
const t2 = (async () => {
|
|
50418
|
+
})().constructor.prototype;
|
|
50467
50419
|
const n2 = ["then", "catch", "finally"].map((e3) => [e3, Reflect.getOwnPropertyDescriptor(t2, e3)]);
|
|
50468
50420
|
const mergePromise = (e3, t3) => {
|
|
50469
50421
|
for (const [r, o] of n2) {
|
|
50470
50422
|
const n3 = typeof t3 === "function" ? (...e4) => Reflect.apply(o.value, t3(), e4) : o.value.bind(t3);
|
|
50471
|
-
Reflect.defineProperty(e3, r,
|
|
50423
|
+
Reflect.defineProperty(e3, r, { ...o, value: n3 });
|
|
50472
50424
|
}
|
|
50473
50425
|
return e3;
|
|
50474
50426
|
};
|
|
@@ -50552,17 +50504,17 @@ ${o.message}` : x;
|
|
|
50552
50504
|
}
|
|
50553
50505
|
return n3;
|
|
50554
50506
|
};
|
|
50555
|
-
const getBufferedData = (e3, t3) =>
|
|
50507
|
+
const getBufferedData = async (e3, t3) => {
|
|
50556
50508
|
if (!e3) {
|
|
50557
50509
|
return;
|
|
50558
50510
|
}
|
|
50559
50511
|
e3.destroy();
|
|
50560
50512
|
try {
|
|
50561
|
-
return
|
|
50513
|
+
return await t3;
|
|
50562
50514
|
} catch (e4) {
|
|
50563
50515
|
return e4.bufferedData;
|
|
50564
50516
|
}
|
|
50565
|
-
}
|
|
50517
|
+
};
|
|
50566
50518
|
const getStreamPromise = (e3, { encoding: t3, buffer: n3, maxBuffer: r2 }) => {
|
|
50567
50519
|
if (!e3 || !n3) {
|
|
50568
50520
|
return;
|
|
@@ -50572,16 +50524,16 @@ ${o.message}` : x;
|
|
|
50572
50524
|
}
|
|
50573
50525
|
return o.buffer(e3, { maxBuffer: r2 });
|
|
50574
50526
|
};
|
|
50575
|
-
const getSpawnedResult =
|
|
50527
|
+
const getSpawnedResult = async ({ stdout: e3, stderr: t3, all: n3 }, { encoding: r2, buffer: o2, maxBuffer: s2 }, i) => {
|
|
50576
50528
|
const a = getStreamPromise(e3, { encoding: r2, buffer: o2, maxBuffer: s2 });
|
|
50577
50529
|
const c = getStreamPromise(t3, { encoding: r2, buffer: o2, maxBuffer: s2 });
|
|
50578
50530
|
const d = getStreamPromise(n3, { encoding: r2, buffer: o2, maxBuffer: s2 * 2 });
|
|
50579
50531
|
try {
|
|
50580
|
-
return
|
|
50532
|
+
return await Promise.all([i, a, c, d]);
|
|
50581
50533
|
} catch (r3) {
|
|
50582
50534
|
return Promise.all([{ error: r3, signal: r3.signal, timedOut: r3.timedOut }, getBufferedData(e3, a), getBufferedData(t3, c), getBufferedData(n3, d)]);
|
|
50583
50535
|
}
|
|
50584
|
-
}
|
|
50536
|
+
};
|
|
50585
50537
|
const validateInputSync = ({ input: e3 }) => {
|
|
50586
50538
|
if (r(e3)) {
|
|
50587
50539
|
throw new TypeError("The `input` option cannot be a stream in sync mode");
|
|
@@ -50592,7 +50544,7 @@ ${o.message}` : x;
|
|
|
50592
50544
|
"use strict";
|
|
50593
50545
|
const { PassThrough: r } = n2(781);
|
|
50594
50546
|
e2.exports = (e3) => {
|
|
50595
|
-
e3 =
|
|
50547
|
+
e3 = { ...e3 };
|
|
50596
50548
|
const { array: t3 } = e3;
|
|
50597
50549
|
let { encoding: n3 } = e3;
|
|
50598
50550
|
const o = n3 === "buffer";
|
|
@@ -50641,41 +50593,39 @@ ${o.message}` : x;
|
|
|
50641
50593
|
this.name = "MaxBufferError";
|
|
50642
50594
|
}
|
|
50643
50595
|
}
|
|
50644
|
-
function getStream(e3, t3) {
|
|
50645
|
-
|
|
50646
|
-
|
|
50647
|
-
|
|
50648
|
-
|
|
50649
|
-
|
|
50650
|
-
|
|
50651
|
-
|
|
50652
|
-
|
|
50653
|
-
|
|
50654
|
-
|
|
50655
|
-
|
|
50656
|
-
|
|
50657
|
-
|
|
50658
|
-
|
|
50659
|
-
|
|
50660
|
-
|
|
50661
|
-
|
|
50662
|
-
|
|
50663
|
-
|
|
50664
|
-
|
|
50665
|
-
|
|
50666
|
-
|
|
50667
|
-
o2.
|
|
50668
|
-
|
|
50669
|
-
|
|
50670
|
-
}
|
|
50671
|
-
});
|
|
50596
|
+
async function getStream(e3, t3) {
|
|
50597
|
+
if (!e3) {
|
|
50598
|
+
throw new Error("Expected a stream");
|
|
50599
|
+
}
|
|
50600
|
+
t3 = { maxBuffer: Infinity, ...t3 };
|
|
50601
|
+
const { maxBuffer: n3 } = t3;
|
|
50602
|
+
const o2 = i(t3);
|
|
50603
|
+
await new Promise((t4, s2) => {
|
|
50604
|
+
const rejectPromise = (e4) => {
|
|
50605
|
+
if (e4 && o2.getBufferedLength() <= r.MAX_LENGTH) {
|
|
50606
|
+
e4.bufferedData = o2.getBufferedValue();
|
|
50607
|
+
}
|
|
50608
|
+
s2(e4);
|
|
50609
|
+
};
|
|
50610
|
+
(async () => {
|
|
50611
|
+
try {
|
|
50612
|
+
await a(e3, o2);
|
|
50613
|
+
t4();
|
|
50614
|
+
} catch (e4) {
|
|
50615
|
+
rejectPromise(e4);
|
|
50616
|
+
}
|
|
50617
|
+
})();
|
|
50618
|
+
o2.on("data", () => {
|
|
50619
|
+
if (o2.getBufferedLength() > n3) {
|
|
50620
|
+
rejectPromise(new MaxBufferError());
|
|
50621
|
+
}
|
|
50672
50622
|
});
|
|
50673
|
-
return o2.getBufferedValue();
|
|
50674
50623
|
});
|
|
50624
|
+
return o2.getBufferedValue();
|
|
50675
50625
|
}
|
|
50676
50626
|
e2.exports = getStream;
|
|
50677
|
-
e2.exports.buffer = (e3, t3) => getStream(e3,
|
|
50678
|
-
e2.exports.array = (e3, t3) => getStream(e3,
|
|
50627
|
+
e2.exports.buffer = (e3, t3) => getStream(e3, { ...t3, encoding: "buffer" });
|
|
50628
|
+
e2.exports.array = (e3, t3) => getStream(e3, { ...t3, array: true });
|
|
50679
50629
|
e2.exports.MaxBufferError = MaxBufferError;
|
|
50680
50630
|
}, 221: (e2, t2) => {
|
|
50681
50631
|
"use strict";
|
|
@@ -50695,7 +50645,7 @@ ${o.message}` : x;
|
|
|
50695
50645
|
return e3.reduce(getSignalByName, {});
|
|
50696
50646
|
};
|
|
50697
50647
|
const getSignalByName = function(e3, { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 }) {
|
|
50698
|
-
return
|
|
50648
|
+
return { ...e3, [t3]: { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 } };
|
|
50699
50649
|
};
|
|
50700
50650
|
const i = getSignalsByName();
|
|
50701
50651
|
t2.signalsByName = i;
|
|
@@ -50927,7 +50877,7 @@ ${o.message}` : x;
|
|
|
50927
50877
|
const r = n2(17);
|
|
50928
50878
|
const o = n2(460);
|
|
50929
50879
|
const npmRunPath = (e3) => {
|
|
50930
|
-
e3 =
|
|
50880
|
+
e3 = { cwd: process.cwd(), path: process.env[o()], execPath: process.execPath, ...e3 };
|
|
50931
50881
|
let t3;
|
|
50932
50882
|
let n3 = r.resolve(e3.cwd);
|
|
50933
50883
|
const s = [];
|
|
@@ -50943,8 +50893,8 @@ ${o.message}` : x;
|
|
|
50943
50893
|
e2.exports = npmRunPath;
|
|
50944
50894
|
e2.exports["default"] = npmRunPath;
|
|
50945
50895
|
e2.exports.env = (t3) => {
|
|
50946
|
-
t3 =
|
|
50947
|
-
const n3 =
|
|
50896
|
+
t3 = { env: process.env, ...t3 };
|
|
50897
|
+
const n3 = { ...t3.env };
|
|
50948
50898
|
const r2 = o({ env: n3 });
|
|
50949
50899
|
t3.path = n3[r2];
|
|
50950
50900
|
n3[r2] = e2.exports(t3);
|
|
@@ -52353,7 +52303,7 @@ var require_upath2 = __commonJS({
|
|
|
52353
52303
|
_.VERSION = typeof n !== "undefined" && n !== null ? n : "NO-VERSION";
|
|
52354
52304
|
p = function(e3) {
|
|
52355
52305
|
e3 = e3.replace(/\\/g, "/");
|
|
52356
|
-
e3 = e3.replace(
|
|
52306
|
+
e3 = e3.replace(/(?<!^)\/+/g, "/");
|
|
52357
52307
|
return e3;
|
|
52358
52308
|
};
|
|
52359
52309
|
for (c in o) {
|
|
@@ -52649,9 +52599,7 @@ var require_pkg_up2 = __commonJS({
|
|
|
52649
52599
|
};
|
|
52650
52600
|
}, 800: (e2, r2, n2) => {
|
|
52651
52601
|
const t = n2(485);
|
|
52652
|
-
e2.exports =
|
|
52653
|
-
return t("package.json", { cwd: e3 });
|
|
52654
|
-
});
|
|
52602
|
+
e2.exports = async ({ cwd: e3 } = {}) => t("package.json", { cwd: e3 });
|
|
52655
52603
|
e2.exports.sync = ({ cwd: e3 } = {}) => t.sync("package.json", { cwd: e3 });
|
|
52656
52604
|
}, 147: (e2) => {
|
|
52657
52605
|
e2.exports = require("fs");
|
|
@@ -55702,7 +55650,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
55702
55650
|
}
|
|
55703
55651
|
if (t4.nodes && t4.ranges > 0) {
|
|
55704
55652
|
let r4 = s.reduce(t4.nodes);
|
|
55705
|
-
let i2 = n(...r4,
|
|
55653
|
+
let i2 = n(...r4, { ...e3, wrap: false, toRegex: true });
|
|
55706
55654
|
if (i2.length !== 0) {
|
|
55707
55655
|
return r4.length > 1 && i2.length > 1 ? `(${i2})` : i2;
|
|
55708
55656
|
}
|
|
@@ -56128,13 +56076,11 @@ var require_fast_glob2 = __commonJS({
|
|
|
56128
56076
|
const a = r2(1066);
|
|
56129
56077
|
const u = r2(7190);
|
|
56130
56078
|
const c = r2(3828);
|
|
56131
|
-
function FastGlob(t3, e3) {
|
|
56132
|
-
|
|
56133
|
-
|
|
56134
|
-
|
|
56135
|
-
|
|
56136
|
-
return c.array.flatten(n2);
|
|
56137
|
-
});
|
|
56079
|
+
async function FastGlob(t3, e3) {
|
|
56080
|
+
assertPatternsInput(t3);
|
|
56081
|
+
const r3 = getWorks(t3, i.default, e3);
|
|
56082
|
+
const n2 = await Promise.all(r3);
|
|
56083
|
+
return c.array.flatten(n2);
|
|
56138
56084
|
}
|
|
56139
56085
|
(function(t3) {
|
|
56140
56086
|
function sync(t4, e3) {
|
|
@@ -57305,7 +57251,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
57305
57251
|
};
|
|
57306
57252
|
const toRange = (t3, e3, r3, n2) => {
|
|
57307
57253
|
if (r3) {
|
|
57308
|
-
return s(t3, e3,
|
|
57254
|
+
return s(t3, e3, { wrap: false, ...n2 });
|
|
57309
57255
|
}
|
|
57310
57256
|
let i = String.fromCharCode(t3);
|
|
57311
57257
|
if (t3 === e3)
|
|
@@ -57371,7 +57317,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
57371
57317
|
g++;
|
|
57372
57318
|
}
|
|
57373
57319
|
if (n2.toRegex === true) {
|
|
57374
|
-
return r3 > 1 ? toSequence(d, n2) : toRegex(_, null,
|
|
57320
|
+
return r3 > 1 ? toSequence(d, n2) : toRegex(_, null, { wrap: false, ...n2 });
|
|
57375
57321
|
}
|
|
57376
57322
|
return _;
|
|
57377
57323
|
};
|
|
@@ -57413,7 +57359,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
57413
57359
|
if (isObject4(r3)) {
|
|
57414
57360
|
return fill(t3, e3, 0, r3);
|
|
57415
57361
|
}
|
|
57416
|
-
let s2 =
|
|
57362
|
+
let s2 = { ...n2 };
|
|
57417
57363
|
if (s2.capture === true)
|
|
57418
57364
|
s2.wrap = true;
|
|
57419
57365
|
r3 = r3 || s2.step || 1;
|
|
@@ -57737,7 +57683,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
57737
57683
|
}
|
|
57738
57684
|
};
|
|
57739
57685
|
for (let o3 = 0; o3 < e3.length; o3++) {
|
|
57740
|
-
let u2 = i(String(e3[o3]),
|
|
57686
|
+
let u2 = i(String(e3[o3]), { ...r3, onResult }, true);
|
|
57741
57687
|
let c2 = u2.state.negated || u2.state.negatedExtglob;
|
|
57742
57688
|
if (c2)
|
|
57743
57689
|
a++;
|
|
@@ -57779,7 +57725,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
57779
57725
|
r3.onResult(t4);
|
|
57780
57726
|
s2.push(t4.output);
|
|
57781
57727
|
};
|
|
57782
|
-
let i2 = new Set(micromatch(t3, e3,
|
|
57728
|
+
let i2 = new Set(micromatch(t3, e3, { ...r3, onResult }));
|
|
57783
57729
|
for (let t4 of s2) {
|
|
57784
57730
|
if (!i2.has(t4)) {
|
|
57785
57731
|
n2.add(t4);
|
|
@@ -57802,7 +57748,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
57802
57748
|
return true;
|
|
57803
57749
|
}
|
|
57804
57750
|
}
|
|
57805
|
-
return micromatch.isMatch(t3, e3,
|
|
57751
|
+
return micromatch.isMatch(t3, e3, { ...r3, contains: true });
|
|
57806
57752
|
};
|
|
57807
57753
|
micromatch.matchKeys = (t3, e3, r3) => {
|
|
57808
57754
|
if (!o.isObject(t3)) {
|
|
@@ -57842,7 +57788,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
57842
57788
|
};
|
|
57843
57789
|
micromatch.capture = (t3, e3, r3) => {
|
|
57844
57790
|
let n2 = o.isWindows(r3);
|
|
57845
|
-
let s2 = i.makeRe(String(t3),
|
|
57791
|
+
let s2 = i.makeRe(String(t3), { ...r3, capture: true });
|
|
57846
57792
|
let a = s2.exec(n2 ? o.toPosixSlashes(e3) : e3);
|
|
57847
57793
|
if (a) {
|
|
57848
57794
|
return a.slice(1).map((t4) => t4 === void 0 ? "" : t4);
|
|
@@ -57870,7 +57816,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
57870
57816
|
micromatch.braceExpand = (t3, e3) => {
|
|
57871
57817
|
if (typeof t3 !== "string")
|
|
57872
57818
|
throw new TypeError("Expected a string");
|
|
57873
|
-
return micromatch.braces(t3,
|
|
57819
|
+
return micromatch.braces(t3, { ...e3, expand: true });
|
|
57874
57820
|
};
|
|
57875
57821
|
t2.exports = micromatch;
|
|
57876
57822
|
}, 376: (t2, e2, r2) => {
|
|
@@ -57897,7 +57843,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
57897
57843
|
const m = `[^.${c}]`;
|
|
57898
57844
|
const v = `${f}*?`;
|
|
57899
57845
|
const E = { DOT_LITERAL: o, PLUS_LITERAL: a, QMARK_LITERAL: u, SLASH_LITERAL: c, ONE_CHAR: l, QMARK: f, END_ANCHOR: p, DOTS_SLASH: d, NO_DOT: _, NO_DOTS: g, NO_DOT_SLASH: y, NO_DOTS_SLASH: S, QMARK_NO_DOT: m, STAR: v, START_ANCHOR: h };
|
|
57900
|
-
const A =
|
|
57846
|
+
const A = { ...E, SLASH_LITERAL: `[${s}]`, QMARK: i, STAR: `${i}*?`, DOTS_SLASH: `${o}{1,2}(?:[${s}]|$)`, NO_DOT: `(?!${o})`, NO_DOTS: `(?!(?:^|[${s}])${o}{1,2}(?:[${s}]|$))`, NO_DOT_SLASH: `(?!${o}{0,1}(?:[${s}]|$))`, NO_DOTS_SLASH: `(?!${o}{1,2}(?:[${s}]|$))`, QMARK_NO_DOT: `[^.${s}]`, START_ANCHOR: `(?:^|[${s}])`, END_ANCHOR: `(?:[${s}]|$)` };
|
|
57901
57847
|
const b = { alnum: "a-zA-Z0-9", alpha: "a-zA-Z", ascii: "\\x00-\\x7F", blank: " \\t", cntrl: "\\x00-\\x1F\\x7F", digit: "0-9", graph: "\\x21-\\x7E", lower: "a-z", print: "\\x20-\\x7E ", punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~", space: " \\t\\r\\n\\v\\f", upper: "A-Z", word: "A-Za-z0-9_", xdigit: "A-Fa-f0-9" };
|
|
57902
57848
|
t2.exports = { MAX_LENGTH: 1024 * 64, POSIX_REGEX_SOURCE: b, REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g, REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/, REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/, REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g, REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g, REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g, REPLACEMENTS: { "***": "*", "**/**": "**", "**/**/**": "**" }, CHAR_0: 48, CHAR_9: 57, CHAR_UPPERCASE_A: 65, CHAR_LOWERCASE_A: 97, CHAR_UPPERCASE_Z: 90, CHAR_LOWERCASE_Z: 122, CHAR_LEFT_PARENTHESES: 40, CHAR_RIGHT_PARENTHESES: 41, CHAR_ASTERISK: 42, CHAR_AMPERSAND: 38, CHAR_AT: 64, CHAR_BACKWARD_SLASH: 92, CHAR_CARRIAGE_RETURN: 13, CHAR_CIRCUMFLEX_ACCENT: 94, CHAR_COLON: 58, CHAR_COMMA: 44, CHAR_DOT: 46, CHAR_DOUBLE_QUOTE: 34, CHAR_EQUAL: 61, CHAR_EXCLAMATION_MARK: 33, CHAR_FORM_FEED: 12, CHAR_FORWARD_SLASH: 47, CHAR_GRAVE_ACCENT: 96, CHAR_HASH: 35, CHAR_HYPHEN_MINUS: 45, CHAR_LEFT_ANGLE_BRACKET: 60, CHAR_LEFT_CURLY_BRACE: 123, CHAR_LEFT_SQUARE_BRACKET: 91, CHAR_LINE_FEED: 10, CHAR_NO_BREAK_SPACE: 160, CHAR_PERCENT: 37, CHAR_PLUS: 43, CHAR_QUESTION_MARK: 63, CHAR_RIGHT_ANGLE_BRACKET: 62, CHAR_RIGHT_CURLY_BRACE: 125, CHAR_RIGHT_SQUARE_BRACKET: 93, CHAR_SEMICOLON: 59, CHAR_SINGLE_QUOTE: 39, CHAR_SPACE: 32, CHAR_TAB: 9, CHAR_UNDERSCORE: 95, CHAR_VERTICAL_LINE: 124, CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279, SEP: n.sep, extglobChars(t3) {
|
|
57903
57849
|
return { "!": { type: "negate", open: "(?:(?!(?:", close: `))${t3.STAR})` }, "?": { type: "qmark", open: "(?:", close: ")?" }, "+": { type: "plus", open: "(?:", close: ")+" }, "*": { type: "star", open: "(?:", close: ")*" }, "@": { type: "at", open: "(?:", close: ")" } };
|
|
@@ -57928,7 +57874,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
57928
57874
|
throw new TypeError("Expected a string");
|
|
57929
57875
|
}
|
|
57930
57876
|
t3 = c[t3] || t3;
|
|
57931
|
-
const r3 =
|
|
57877
|
+
const r3 = { ...e3 };
|
|
57932
57878
|
const l = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
|
|
57933
57879
|
let f = t3.length;
|
|
57934
57880
|
if (f > l) {
|
|
@@ -58020,7 +57966,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
58020
57966
|
M = t4;
|
|
58021
57967
|
};
|
|
58022
57968
|
const extglobOpen = (t4, e4) => {
|
|
58023
|
-
const n2 =
|
|
57969
|
+
const n2 = { ...y[e4], conditions: 1, inner: "" };
|
|
58024
57970
|
n2.prev = M;
|
|
58025
57971
|
n2.parens = H.parens;
|
|
58026
57972
|
n2.output = H.output;
|
|
@@ -58042,7 +57988,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
58042
57988
|
n2 = t4.close = `)$))${i2}`;
|
|
58043
57989
|
}
|
|
58044
57990
|
if (t4.inner.includes("*") && (s2 = remaining()) && /^\.[^\\/.]+$/.test(s2)) {
|
|
58045
|
-
const r4 = parse3(s2,
|
|
57991
|
+
const r4 = parse3(s2, { ...e3, fastpaths: false }).output;
|
|
58046
57992
|
n2 = t4.close = `)${r4})${i2})`;
|
|
58047
57993
|
}
|
|
58048
57994
|
if (t4.prev.type === "bos") {
|
|
@@ -58564,7 +58510,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
58564
58510
|
return H;
|
|
58565
58511
|
};
|
|
58566
58512
|
parse3.fastpaths = (t3, e3) => {
|
|
58567
|
-
const r3 =
|
|
58513
|
+
const r3 = { ...e3 };
|
|
58568
58514
|
const o2 = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
|
|
58569
58515
|
const a2 = t3.length;
|
|
58570
58516
|
if (a2 > o2) {
|
|
@@ -58655,7 +58601,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
58655
58601
|
delete a2.state;
|
|
58656
58602
|
let isIgnored = () => false;
|
|
58657
58603
|
if (s2.ignore) {
|
|
58658
|
-
const t4 =
|
|
58604
|
+
const t4 = { ...e3, ignore: null, onMatch: null, onResult: null };
|
|
58659
58605
|
isIgnored = picomatch(s2.ignore, t4, r3);
|
|
58660
58606
|
}
|
|
58661
58607
|
const matcher = (r4, n3 = false) => {
|
|
@@ -58717,7 +58663,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
58717
58663
|
picomatch.parse = (t3, e3) => {
|
|
58718
58664
|
if (Array.isArray(t3))
|
|
58719
58665
|
return t3.map((t4) => picomatch.parse(t4, e3));
|
|
58720
|
-
return i(t3,
|
|
58666
|
+
return i(t3, { ...e3, fastpaths: false });
|
|
58721
58667
|
};
|
|
58722
58668
|
picomatch.scan = (t3, e3) => s(t3, e3);
|
|
58723
58669
|
picomatch.compileRe = (t3, e3, r3 = false, n2 = false) => {
|
|
@@ -59182,7 +59128,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
59182
59128
|
if (n(e3) === false) {
|
|
59183
59129
|
throw new TypeError("toRegexRange: expected the second argument to be a number.");
|
|
59184
59130
|
}
|
|
59185
|
-
let s =
|
|
59131
|
+
let s = { relaxZeros: true, ...r3 };
|
|
59186
59132
|
if (typeof s.strictZeros === "boolean") {
|
|
59187
59133
|
s.relaxZeros = s.strictZeros === false;
|
|
59188
59134
|
}
|
|
@@ -59460,19 +59406,19 @@ var require_globby2 = __commonJS({
|
|
|
59460
59406
|
}
|
|
59461
59407
|
return [n.posix.join(t3, "**")];
|
|
59462
59408
|
};
|
|
59463
|
-
t2.exports = (t3, e3) =>
|
|
59464
|
-
e3 =
|
|
59409
|
+
t2.exports = async (t3, e3) => {
|
|
59410
|
+
e3 = { cwd: process.cwd(), ...e3 };
|
|
59465
59411
|
if (typeof e3.cwd !== "string") {
|
|
59466
59412
|
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
|
|
59467
59413
|
}
|
|
59468
|
-
const r3 =
|
|
59469
|
-
const r4 =
|
|
59414
|
+
const r3 = await Promise.all([].concat(t3).map(async (t4) => {
|
|
59415
|
+
const r4 = await s.isDirectory(getPath(t4, e3.cwd));
|
|
59470
59416
|
return r4 ? getGlob(t4, e3) : t4;
|
|
59471
|
-
}))
|
|
59417
|
+
}));
|
|
59472
59418
|
return [].concat.apply([], r3);
|
|
59473
|
-
}
|
|
59419
|
+
};
|
|
59474
59420
|
t2.exports.sync = (t3, e3) => {
|
|
59475
|
-
e3 =
|
|
59421
|
+
e3 = { cwd: process.cwd(), ...e3 };
|
|
59476
59422
|
if (typeof e3.cwd !== "string") {
|
|
59477
59423
|
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
|
|
59478
59424
|
}
|
|
@@ -59517,24 +59463,24 @@ var require_globby2 = __commonJS({
|
|
|
59517
59463
|
return o.join(t3, e3);
|
|
59518
59464
|
};
|
|
59519
59465
|
const getIsIgnoredPredecate = (t3, e3) => (r3) => t3.ignores(a(o.relative(e3, ensureAbsolutePathForCwd(e3, r3.path || r3))));
|
|
59520
|
-
const getFile = (t3, e3) =>
|
|
59466
|
+
const getFile = async (t3, e3) => {
|
|
59521
59467
|
const r3 = o.join(e3, t3);
|
|
59522
|
-
const n2 =
|
|
59468
|
+
const n2 = await u(r3, "utf8");
|
|
59523
59469
|
return { cwd: e3, filePath: r3, content: n2 };
|
|
59524
|
-
}
|
|
59470
|
+
};
|
|
59525
59471
|
const getFileSync = (t3, e3) => {
|
|
59526
59472
|
const r3 = o.join(e3, t3);
|
|
59527
59473
|
const n2 = s.readFileSync(r3, "utf8");
|
|
59528
59474
|
return { cwd: e3, filePath: r3, content: n2 };
|
|
59529
59475
|
};
|
|
59530
59476
|
const normalizeOptions = ({ ignore: t3 = [], cwd: e3 = a(process.cwd()) } = {}) => ({ ignore: t3, cwd: e3 });
|
|
59531
|
-
t2.exports = (t3) =>
|
|
59477
|
+
t2.exports = async (t3) => {
|
|
59532
59478
|
t3 = normalizeOptions(t3);
|
|
59533
|
-
const e3 =
|
|
59534
|
-
const r3 =
|
|
59479
|
+
const e3 = await i("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
|
|
59480
|
+
const r3 = await Promise.all(e3.map((e4) => getFile(e4, t3.cwd)));
|
|
59535
59481
|
const n2 = reduceIgnore(r3);
|
|
59536
59482
|
return getIsIgnoredPredecate(n2, t3.cwd);
|
|
59537
|
-
}
|
|
59483
|
+
};
|
|
59538
59484
|
t2.exports.sync = (t3) => {
|
|
59539
59485
|
t3 = normalizeOptions(t3);
|
|
59540
59486
|
const e3 = i.sync("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
|
|
@@ -59565,7 +59511,7 @@ var require_globby2 = __commonJS({
|
|
|
59565
59511
|
let e3;
|
|
59566
59512
|
try {
|
|
59567
59513
|
e3 = n.statSync(t3.cwd);
|
|
59568
|
-
} catch
|
|
59514
|
+
} catch {
|
|
59569
59515
|
return;
|
|
59570
59516
|
}
|
|
59571
59517
|
if (!e3.isDirectory()) {
|
|
@@ -59578,13 +59524,13 @@ var require_globby2 = __commonJS({
|
|
|
59578
59524
|
assertPatternsInput(t3);
|
|
59579
59525
|
checkCwdOption(e3);
|
|
59580
59526
|
const r3 = [];
|
|
59581
|
-
e3 =
|
|
59527
|
+
e3 = { ignore: [], expandDirectories: true, ...e3 };
|
|
59582
59528
|
for (const [n2, s2] of t3.entries()) {
|
|
59583
59529
|
if (isNegative(s2)) {
|
|
59584
59530
|
continue;
|
|
59585
59531
|
}
|
|
59586
59532
|
const o2 = t3.slice(n2).filter((t4) => isNegative(t4)).map((t4) => t4.slice(1));
|
|
59587
|
-
const i2 =
|
|
59533
|
+
const i2 = { ...e3, ignore: e3.ignore.concat(o2) };
|
|
59588
59534
|
r3.push({ pattern: s2, options: i2 });
|
|
59589
59535
|
}
|
|
59590
59536
|
return r3;
|
|
@@ -59595,9 +59541,9 @@ var require_globby2 = __commonJS({
|
|
|
59595
59541
|
r3.cwd = t3.options.cwd;
|
|
59596
59542
|
}
|
|
59597
59543
|
if (Array.isArray(t3.options.expandDirectories)) {
|
|
59598
|
-
r3 =
|
|
59544
|
+
r3 = { ...r3, files: t3.options.expandDirectories };
|
|
59599
59545
|
} else if (typeof t3.options.expandDirectories === "object") {
|
|
59600
|
-
r3 =
|
|
59546
|
+
r3 = { ...r3, ...t3.options.expandDirectories };
|
|
59601
59547
|
}
|
|
59602
59548
|
return e3(t3.pattern, r3);
|
|
59603
59549
|
};
|
|
@@ -59610,22 +59556,20 @@ var require_globby2 = __commonJS({
|
|
|
59610
59556
|
}
|
|
59611
59557
|
return { pattern: e3, options: r3 };
|
|
59612
59558
|
};
|
|
59613
|
-
t2.exports = (t3, e3) =>
|
|
59559
|
+
t2.exports = async (t3, e3) => {
|
|
59614
59560
|
const r3 = generateGlobTasks(t3, e3);
|
|
59615
|
-
const getFilter = () =>
|
|
59616
|
-
|
|
59617
|
-
|
|
59618
|
-
|
|
59619
|
-
const t4 = yield Promise.all(r3.map((t5) => __async(exports, null, function* () {
|
|
59620
|
-
const e4 = yield getPattern(t5, c);
|
|
59561
|
+
const getFilter = async () => e3 && e3.gitignore ? a({ cwd: e3.cwd, ignore: e3.ignore }) : DEFAULT_FILTER;
|
|
59562
|
+
const getTasks = async () => {
|
|
59563
|
+
const t4 = await Promise.all(r3.map(async (t5) => {
|
|
59564
|
+
const e4 = await getPattern(t5, c);
|
|
59621
59565
|
return Promise.all(e4.map(globToTask(t5)));
|
|
59622
|
-
}))
|
|
59566
|
+
}));
|
|
59623
59567
|
return s(...t4);
|
|
59624
|
-
}
|
|
59625
|
-
const [n2, o2] =
|
|
59626
|
-
const p2 =
|
|
59568
|
+
};
|
|
59569
|
+
const [n2, o2] = await Promise.all([getFilter(), getTasks()]);
|
|
59570
|
+
const p2 = await Promise.all(o2.map((t4) => i(t4.pattern, t4.options)));
|
|
59627
59571
|
return s(...p2).filter((t4) => !n2(getPathString(t4)));
|
|
59628
|
-
}
|
|
59572
|
+
};
|
|
59629
59573
|
t2.exports.sync = (t3, e3) => {
|
|
59630
59574
|
const r3 = generateGlobTasks(t3, e3);
|
|
59631
59575
|
const n2 = [];
|
|
@@ -59979,21 +59923,19 @@ var require_globby2 = __commonJS({
|
|
|
59979
59923
|
"use strict";
|
|
59980
59924
|
const { promisify: n } = r2(837);
|
|
59981
59925
|
const s = r2(147);
|
|
59982
|
-
function isType4(t3, e3, r3) {
|
|
59983
|
-
|
|
59984
|
-
|
|
59985
|
-
|
|
59986
|
-
|
|
59987
|
-
|
|
59988
|
-
|
|
59989
|
-
|
|
59990
|
-
|
|
59991
|
-
|
|
59992
|
-
return false;
|
|
59993
|
-
}
|
|
59994
|
-
throw t4;
|
|
59926
|
+
async function isType4(t3, e3, r3) {
|
|
59927
|
+
if (typeof r3 !== "string") {
|
|
59928
|
+
throw new TypeError(`Expected a string, got ${typeof r3}`);
|
|
59929
|
+
}
|
|
59930
|
+
try {
|
|
59931
|
+
const o = await n(s[t3])(r3);
|
|
59932
|
+
return o[e3]();
|
|
59933
|
+
} catch (t4) {
|
|
59934
|
+
if (t4.code === "ENOENT") {
|
|
59935
|
+
return false;
|
|
59995
59936
|
}
|
|
59996
|
-
|
|
59937
|
+
throw t4;
|
|
59938
|
+
}
|
|
59997
59939
|
}
|
|
59998
59940
|
function isTypeSync(t3, e3, r3) {
|
|
59999
59941
|
if (typeof r3 !== "string") {
|
|
@@ -62368,15 +62310,15 @@ var require_gzip_size2 = __commonJS({
|
|
|
62368
62310
|
const i = t2(796);
|
|
62369
62311
|
const { promisify: a } = t2(837);
|
|
62370
62312
|
const s = t2(325);
|
|
62371
|
-
const getOptions = (e3) =>
|
|
62313
|
+
const getOptions = (e3) => ({ level: 9, ...e3 });
|
|
62372
62314
|
const p = a(i.gzip);
|
|
62373
|
-
e2.exports = (e3, r3) =>
|
|
62315
|
+
e2.exports = async (e3, r3) => {
|
|
62374
62316
|
if (!e3) {
|
|
62375
62317
|
return 0;
|
|
62376
62318
|
}
|
|
62377
|
-
const t3 =
|
|
62319
|
+
const t3 = await p(e3, getOptions(r3));
|
|
62378
62320
|
return t3.length;
|
|
62379
|
-
}
|
|
62321
|
+
};
|
|
62380
62322
|
e2.exports.sync = (e3, r3) => i.gzipSync(e3, getOptions(r3)).length;
|
|
62381
62323
|
e2.exports.stream = (e3) => {
|
|
62382
62324
|
const r3 = new o.PassThrough();
|
|
@@ -65146,12 +65088,10 @@ Expecting one of '${i3.join("', '")}'`);
|
|
|
65146
65088
|
this._parseCommand([], i3);
|
|
65147
65089
|
return this;
|
|
65148
65090
|
}
|
|
65149
|
-
parseAsync(t3, e3) {
|
|
65150
|
-
|
|
65151
|
-
|
|
65152
|
-
|
|
65153
|
-
return this;
|
|
65154
|
-
});
|
|
65091
|
+
async parseAsync(t3, e3) {
|
|
65092
|
+
const i3 = this._prepareUserArgs(t3, e3);
|
|
65093
|
+
await this._parseCommand([], i3);
|
|
65094
|
+
return this;
|
|
65155
65095
|
}
|
|
65156
65096
|
_executeSubCommand(t3, e3) {
|
|
65157
65097
|
e3 = e3.slice();
|
|
@@ -73822,9 +73762,10 @@ var require_parse = __commonJS({
|
|
|
73822
73762
|
var parse_comments = (prefix) => {
|
|
73823
73763
|
const comments = [];
|
|
73824
73764
|
while (current && (is("LineComment") || is("BlockComment"))) {
|
|
73825
|
-
const comment =
|
|
73765
|
+
const comment = {
|
|
73766
|
+
...current,
|
|
73826
73767
|
inline
|
|
73827
|
-
}
|
|
73768
|
+
};
|
|
73828
73769
|
comments.push(comment);
|
|
73829
73770
|
next();
|
|
73830
73771
|
}
|
|
@@ -81291,12 +81232,12 @@ var require_baseUI = __commonJS({
|
|
|
81291
81232
|
const ms = new MuteStream();
|
|
81292
81233
|
ms.pipe(opt.output || process.stdout);
|
|
81293
81234
|
const output2 = ms;
|
|
81294
|
-
return
|
|
81295
|
-
terminal: true
|
|
81296
|
-
|
|
81235
|
+
return {
|
|
81236
|
+
terminal: true,
|
|
81237
|
+
...opt,
|
|
81297
81238
|
input,
|
|
81298
81239
|
output: output2
|
|
81299
|
-
}
|
|
81240
|
+
};
|
|
81300
81241
|
}
|
|
81301
81242
|
module2.exports = UI;
|
|
81302
81243
|
}
|
|
@@ -92754,14 +92695,14 @@ var require_prompt = __commonJS({
|
|
|
92754
92695
|
}
|
|
92755
92696
|
run(questions, answers) {
|
|
92756
92697
|
if (_.isPlainObject(answers)) {
|
|
92757
|
-
this.answers =
|
|
92698
|
+
this.answers = { ...answers };
|
|
92758
92699
|
} else {
|
|
92759
92700
|
this.answers = {};
|
|
92760
92701
|
}
|
|
92761
92702
|
if (_.isPlainObject(questions)) {
|
|
92762
92703
|
questions = Object.values(questions).every(
|
|
92763
92704
|
(v) => _.isPlainObject(v) && v.name === void 0
|
|
92764
|
-
) ? Object.entries(questions).map(([name, question]) =>
|
|
92705
|
+
) ? Object.entries(questions).map(([name, question]) => ({ name, ...question })) : [questions];
|
|
92765
92706
|
}
|
|
92766
92707
|
const obs = Array.isArray(questions) ? from(questions) : questions;
|
|
92767
92708
|
this.process = obs.pipe(
|
|
@@ -92789,7 +92730,7 @@ var require_prompt = __commonJS({
|
|
|
92789
92730
|
return Promise.reject(error);
|
|
92790
92731
|
}
|
|
92791
92732
|
processQuestion(question) {
|
|
92792
|
-
question =
|
|
92733
|
+
question = { ...question };
|
|
92793
92734
|
return defer(() => {
|
|
92794
92735
|
const obs = of(question);
|
|
92795
92736
|
return obs.pipe(
|
|
@@ -95747,7 +95688,7 @@ var require_conversions = __commonJS({
|
|
|
95747
95688
|
return [c * 100, m * 100, y * 100, k * 100];
|
|
95748
95689
|
};
|
|
95749
95690
|
function comparativeDistance(x, y) {
|
|
95750
|
-
return
|
|
95691
|
+
return (x[0] - y[0]) ** 2 + (x[1] - y[1]) ** 2 + (x[2] - y[2]) ** 2;
|
|
95751
95692
|
}
|
|
95752
95693
|
convert.rgb.keyword = function(rgb) {
|
|
95753
95694
|
const reversed = reverseKeywords[rgb];
|
|
@@ -95773,9 +95714,9 @@ var require_conversions = __commonJS({
|
|
|
95773
95714
|
let r = rgb[0] / 255;
|
|
95774
95715
|
let g = rgb[1] / 255;
|
|
95775
95716
|
let b = rgb[2] / 255;
|
|
95776
|
-
r = r > 0.04045 ?
|
|
95777
|
-
g = g > 0.04045 ?
|
|
95778
|
-
b = b > 0.04045 ?
|
|
95717
|
+
r = r > 0.04045 ? ((r + 0.055) / 1.055) ** 2.4 : r / 12.92;
|
|
95718
|
+
g = g > 0.04045 ? ((g + 0.055) / 1.055) ** 2.4 : g / 12.92;
|
|
95719
|
+
b = b > 0.04045 ? ((b + 0.055) / 1.055) ** 2.4 : b / 12.92;
|
|
95779
95720
|
const x = r * 0.4124 + g * 0.3576 + b * 0.1805;
|
|
95780
95721
|
const y = r * 0.2126 + g * 0.7152 + b * 0.0722;
|
|
95781
95722
|
const z = r * 0.0193 + g * 0.1192 + b * 0.9505;
|
|
@@ -95789,9 +95730,9 @@ var require_conversions = __commonJS({
|
|
|
95789
95730
|
x /= 95.047;
|
|
95790
95731
|
y /= 100;
|
|
95791
95732
|
z /= 108.883;
|
|
95792
|
-
x = x > 8856e-6 ?
|
|
95793
|
-
y = y > 8856e-6 ?
|
|
95794
|
-
z = z > 8856e-6 ?
|
|
95733
|
+
x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
|
|
95734
|
+
y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
|
|
95735
|
+
z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
|
|
95795
95736
|
const l = 116 * y - 16;
|
|
95796
95737
|
const a = 500 * (x - y);
|
|
95797
95738
|
const b = 200 * (y - z);
|
|
@@ -95965,9 +95906,9 @@ var require_conversions = __commonJS({
|
|
|
95965
95906
|
r = x * 3.2406 + y * -1.5372 + z * -0.4986;
|
|
95966
95907
|
g = x * -0.9689 + y * 1.8758 + z * 0.0415;
|
|
95967
95908
|
b = x * 0.0557 + y * -0.204 + z * 1.057;
|
|
95968
|
-
r = r > 31308e-7 ? 1.055 *
|
|
95969
|
-
g = g > 31308e-7 ? 1.055 *
|
|
95970
|
-
b = b > 31308e-7 ? 1.055 *
|
|
95909
|
+
r = r > 31308e-7 ? 1.055 * r ** (1 / 2.4) - 0.055 : r * 12.92;
|
|
95910
|
+
g = g > 31308e-7 ? 1.055 * g ** (1 / 2.4) - 0.055 : g * 12.92;
|
|
95911
|
+
b = b > 31308e-7 ? 1.055 * b ** (1 / 2.4) - 0.055 : b * 12.92;
|
|
95971
95912
|
r = Math.min(Math.max(0, r), 1);
|
|
95972
95913
|
g = Math.min(Math.max(0, g), 1);
|
|
95973
95914
|
b = Math.min(Math.max(0, b), 1);
|
|
@@ -95980,9 +95921,9 @@ var require_conversions = __commonJS({
|
|
|
95980
95921
|
x /= 95.047;
|
|
95981
95922
|
y /= 100;
|
|
95982
95923
|
z /= 108.883;
|
|
95983
|
-
x = x > 8856e-6 ?
|
|
95984
|
-
y = y > 8856e-6 ?
|
|
95985
|
-
z = z > 8856e-6 ?
|
|
95924
|
+
x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
|
|
95925
|
+
y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
|
|
95926
|
+
z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
|
|
95986
95927
|
const l = 116 * y - 16;
|
|
95987
95928
|
const a = 500 * (x - y);
|
|
95988
95929
|
const b = 200 * (y - z);
|
|
@@ -95998,9 +95939,9 @@ var require_conversions = __commonJS({
|
|
|
95998
95939
|
y = (l + 16) / 116;
|
|
95999
95940
|
x = a / 500 + y;
|
|
96000
95941
|
z = y - b / 200;
|
|
96001
|
-
const y2 =
|
|
96002
|
-
const x2 =
|
|
96003
|
-
const z2 =
|
|
95942
|
+
const y2 = y ** 3;
|
|
95943
|
+
const x2 = x ** 3;
|
|
95944
|
+
const z2 = z ** 3;
|
|
96004
95945
|
y = y2 > 8856e-6 ? y2 : (y - 16 / 116) / 7.787;
|
|
96005
95946
|
x = x2 > 8856e-6 ? x2 : (x - 16 / 116) / 7.787;
|
|
96006
95947
|
z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787;
|
|
@@ -101904,12 +101845,13 @@ var require_ora3 = __commonJS({
|
|
|
101904
101845
|
text: options
|
|
101905
101846
|
};
|
|
101906
101847
|
}
|
|
101907
|
-
this.options =
|
|
101848
|
+
this.options = {
|
|
101908
101849
|
text: "",
|
|
101909
101850
|
color: "cyan",
|
|
101910
101851
|
stream: process.stderr,
|
|
101911
|
-
discardStdin: true
|
|
101912
|
-
|
|
101852
|
+
discardStdin: true,
|
|
101853
|
+
...options
|
|
101854
|
+
};
|
|
101913
101855
|
this.spinner = this.options.spinner;
|
|
101914
101856
|
this.color = this.options.color;
|
|
101915
101857
|
this.hideCursor = this.options.hideCursor !== false;
|
|
@@ -102126,14 +102068,14 @@ var require_ora3 = __commonJS({
|
|
|
102126
102068
|
}
|
|
102127
102069
|
const spinner = new Ora(options);
|
|
102128
102070
|
spinner.start();
|
|
102129
|
-
(() =>
|
|
102071
|
+
(async () => {
|
|
102130
102072
|
try {
|
|
102131
|
-
|
|
102073
|
+
await action2;
|
|
102132
102074
|
spinner.succeed();
|
|
102133
|
-
} catch
|
|
102075
|
+
} catch {
|
|
102134
102076
|
spinner.fail();
|
|
102135
102077
|
}
|
|
102136
|
-
})
|
|
102078
|
+
})();
|
|
102137
102079
|
return spinner;
|
|
102138
102080
|
};
|
|
102139
102081
|
}
|
|
@@ -113713,7 +113655,7 @@ var require_prompt2 = __commonJS({
|
|
|
113713
113655
|
if (_.isPlainObject(questions)) {
|
|
113714
113656
|
questions = Object.values(questions).every(
|
|
113715
113657
|
(v) => _.isPlainObject(v) && v.name === void 0
|
|
113716
|
-
) ? Object.entries(questions).map(([name, question]) =>
|
|
113658
|
+
) ? Object.entries(questions).map(([name, question]) => ({ name, ...question })) : [questions];
|
|
113717
113659
|
}
|
|
113718
113660
|
const obs = _.isArray(questions) ? from(questions) : questions;
|
|
113719
113661
|
this.process = obs.pipe(
|
|
@@ -117849,43 +117791,39 @@ function stripAnsi(string) {
|
|
|
117849
117791
|
|
|
117850
117792
|
// ../../generator-utils/dist/esm/utils/package.js
|
|
117851
117793
|
var import_utils2 = __toESM(require_cjs());
|
|
117852
|
-
function isPackageExist(packageName, registry2) {
|
|
117853
|
-
|
|
117854
|
-
|
|
117855
|
-
try {
|
|
117856
|
-
const args = [
|
|
117857
|
-
"view",
|
|
117858
|
-
packageName,
|
|
117859
|
-
"version"
|
|
117860
|
-
];
|
|
117861
|
-
if (registry2) {
|
|
117862
|
-
args.push(`--registry=${registry2}`);
|
|
117863
|
-
}
|
|
117864
|
-
const result = yield (0, import_utils2.execa)("npm", args);
|
|
117865
|
-
return (0, import_utils2.stripAnsi)(result.stdout);
|
|
117866
|
-
} catch (e) {
|
|
117867
|
-
return false;
|
|
117868
|
-
}
|
|
117869
|
-
}
|
|
117870
|
-
throw new Error("not found npm, please install npm before");
|
|
117871
|
-
});
|
|
117872
|
-
}
|
|
117873
|
-
function isPackageDeprecated(packageName, registry2) {
|
|
117874
|
-
return __async(this, null, function* () {
|
|
117875
|
-
if (yield (0, import_utils2.canUseNpm)()) {
|
|
117794
|
+
async function isPackageExist(packageName, registry2) {
|
|
117795
|
+
if (await (0, import_utils2.canUseNpm)()) {
|
|
117796
|
+
try {
|
|
117876
117797
|
const args = [
|
|
117877
117798
|
"view",
|
|
117878
117799
|
packageName,
|
|
117879
|
-
"
|
|
117800
|
+
"version"
|
|
117880
117801
|
];
|
|
117881
117802
|
if (registry2) {
|
|
117882
117803
|
args.push(`--registry=${registry2}`);
|
|
117883
117804
|
}
|
|
117884
|
-
const result =
|
|
117805
|
+
const result = await (0, import_utils2.execa)("npm", args);
|
|
117885
117806
|
return (0, import_utils2.stripAnsi)(result.stdout);
|
|
117807
|
+
} catch (e) {
|
|
117808
|
+
return false;
|
|
117886
117809
|
}
|
|
117887
|
-
|
|
117888
|
-
|
|
117810
|
+
}
|
|
117811
|
+
throw new Error("not found npm, please install npm before");
|
|
117812
|
+
}
|
|
117813
|
+
async function isPackageDeprecated(packageName, registry2) {
|
|
117814
|
+
if (await (0, import_utils2.canUseNpm)()) {
|
|
117815
|
+
const args = [
|
|
117816
|
+
"view",
|
|
117817
|
+
packageName,
|
|
117818
|
+
"deprecated"
|
|
117819
|
+
];
|
|
117820
|
+
if (registry2) {
|
|
117821
|
+
args.push(`--registry=${registry2}`);
|
|
117822
|
+
}
|
|
117823
|
+
const result = await (0, import_utils2.execa)("npm", args);
|
|
117824
|
+
return (0, import_utils2.stripAnsi)(result.stdout);
|
|
117825
|
+
}
|
|
117826
|
+
throw new Error("not found npm, please install npm before");
|
|
117889
117827
|
}
|
|
117890
117828
|
function semverDecrease(version) {
|
|
117891
117829
|
const versionObj = import_utils2.semver.parse(version, {
|
|
@@ -117904,103 +117842,97 @@ function semverDecrease(version) {
|
|
|
117904
117842
|
}
|
|
117905
117843
|
return result;
|
|
117906
117844
|
}
|
|
117907
|
-
function getAvailableVersion(packageName, currentVersion, registry2) {
|
|
117908
|
-
|
|
117909
|
-
|
|
117910
|
-
|
|
117911
|
-
|
|
117912
|
-
|
|
117913
|
-
|
|
117914
|
-
|
|
117915
|
-
continue;
|
|
117916
|
-
}
|
|
117917
|
-
return version;
|
|
117845
|
+
async function getAvailableVersion(packageName, currentVersion, registry2) {
|
|
117846
|
+
let times = 5;
|
|
117847
|
+
let version = currentVersion;
|
|
117848
|
+
while (times) {
|
|
117849
|
+
if (!await isPackageExist(`${packageName}@${version}`, registry2) || await isPackageDeprecated(`${packageName}@${version}`, registry2)) {
|
|
117850
|
+
version = import_utils2.semver.inc(version, "patch");
|
|
117851
|
+
times--;
|
|
117852
|
+
continue;
|
|
117918
117853
|
}
|
|
117919
|
-
|
|
117920
|
-
|
|
117921
|
-
|
|
117922
|
-
|
|
117923
|
-
|
|
117924
|
-
|
|
117925
|
-
|
|
117926
|
-
|
|
117854
|
+
return version;
|
|
117855
|
+
}
|
|
117856
|
+
times = 5;
|
|
117857
|
+
while (times) {
|
|
117858
|
+
version = semverDecrease(version);
|
|
117859
|
+
if (!await isPackageExist(`${packageName}@${version}`, registry2) || await isPackageDeprecated(`${packageName}@${version}`, registry2)) {
|
|
117860
|
+
times--;
|
|
117861
|
+
continue;
|
|
117927
117862
|
}
|
|
117928
|
-
return
|
|
117929
|
-
}
|
|
117863
|
+
return version;
|
|
117864
|
+
}
|
|
117865
|
+
return currentVersion;
|
|
117930
117866
|
}
|
|
117931
117867
|
|
|
117932
117868
|
// ../../generator-utils/dist/esm/index.js
|
|
117933
117869
|
var import_utils4 = __toESM(require_cjs());
|
|
117934
|
-
function getPackageVersion(packageName, registry2) {
|
|
117935
|
-
|
|
117936
|
-
|
|
117937
|
-
|
|
117938
|
-
|
|
117939
|
-
|
|
117940
|
-
|
|
117941
|
-
|
|
117942
|
-
|
|
117943
|
-
|
|
117944
|
-
|
|
117945
|
-
|
|
117946
|
-
|
|
117947
|
-
args.push(`--registry=${registry2}`);
|
|
117948
|
-
}
|
|
117949
|
-
const result = yield (0, import_utils3.execa)("pnpm", args);
|
|
117950
|
-
spinner.stop();
|
|
117951
|
-
return stripAnsi(result.stdout);
|
|
117870
|
+
async function getPackageVersion(packageName, registry2) {
|
|
117871
|
+
const spinner = (0, import_utils3.ora)({
|
|
117872
|
+
text: "Load Generator...",
|
|
117873
|
+
spinner: "runner"
|
|
117874
|
+
}).start();
|
|
117875
|
+
if (await (0, import_utils3.canUsePnpm)()) {
|
|
117876
|
+
const args = [
|
|
117877
|
+
"info",
|
|
117878
|
+
packageName,
|
|
117879
|
+
"version"
|
|
117880
|
+
];
|
|
117881
|
+
if (registry2) {
|
|
117882
|
+
args.push(`--registry=${registry2}`);
|
|
117952
117883
|
}
|
|
117953
|
-
|
|
117954
|
-
|
|
117955
|
-
|
|
117956
|
-
|
|
117957
|
-
|
|
117958
|
-
|
|
117959
|
-
|
|
117960
|
-
|
|
117961
|
-
|
|
117962
|
-
|
|
117963
|
-
|
|
117964
|
-
|
|
117884
|
+
const result = await (0, import_utils3.execa)("pnpm", args);
|
|
117885
|
+
spinner.stop();
|
|
117886
|
+
return stripAnsi(result.stdout);
|
|
117887
|
+
}
|
|
117888
|
+
if (await (0, import_utils3.canUseNpm)()) {
|
|
117889
|
+
const args = [
|
|
117890
|
+
"view",
|
|
117891
|
+
packageName,
|
|
117892
|
+
"version"
|
|
117893
|
+
];
|
|
117894
|
+
if (registry2) {
|
|
117895
|
+
args.push(`--registry=${registry2}`);
|
|
117965
117896
|
}
|
|
117897
|
+
const result = await (0, import_utils3.execa)("npm", args);
|
|
117966
117898
|
spinner.stop();
|
|
117967
|
-
|
|
117968
|
-
}
|
|
117899
|
+
return stripAnsi(result.stdout);
|
|
117900
|
+
}
|
|
117901
|
+
spinner.stop();
|
|
117902
|
+
throw new Error("not found npm, please install npm before");
|
|
117969
117903
|
}
|
|
117970
|
-
function getModernPluginVersion(
|
|
117971
|
-
|
|
117972
|
-
|
|
117973
|
-
|
|
117974
|
-
|
|
117975
|
-
const
|
|
117976
|
-
|
|
117977
|
-
|
|
117978
|
-
|
|
117979
|
-
|
|
117980
|
-
|
|
117981
|
-
|
|
117982
|
-
|
|
117904
|
+
async function getModernPluginVersion(solution, packageName, options = {
|
|
117905
|
+
distTag: "latest"
|
|
117906
|
+
}) {
|
|
117907
|
+
const { cwd = process.cwd(), registry: registry2, distTag } = options;
|
|
117908
|
+
const getLatetPluginVersion = async (tag) => {
|
|
117909
|
+
const version = await getPackageVersion(`${packageName}@${tag || distTag || "latest"}`, registry2);
|
|
117910
|
+
return version;
|
|
117911
|
+
};
|
|
117912
|
+
if (!packageName.startsWith("@modern-js") || packageName.includes("electron") || packageName.includes("codesmith") || packageName.includes("easy-form") || packageName.startsWith("@modern-js-reduck")) {
|
|
117913
|
+
return getLatetPluginVersion("latest");
|
|
117914
|
+
}
|
|
117915
|
+
let pkgPath = import_path.default.join(require.resolve(SolutionToolsMap[solution], {
|
|
117916
|
+
paths: [
|
|
117917
|
+
cwd
|
|
117918
|
+
]
|
|
117919
|
+
}), "../../..", "package.json");
|
|
117920
|
+
if (solution === Solution.Module) {
|
|
117921
|
+
pkgPath = import_path.default.join(require.resolve(SolutionToolsMap[solution], {
|
|
117983
117922
|
paths: [
|
|
117984
117923
|
cwd
|
|
117985
117924
|
]
|
|
117986
|
-
}), "
|
|
117987
|
-
|
|
117988
|
-
|
|
117989
|
-
|
|
117990
|
-
|
|
117991
|
-
|
|
117992
|
-
|
|
117993
|
-
}
|
|
117994
|
-
if (import_utils3.fs.existsSync(pkgPath)) {
|
|
117995
|
-
const pkgInfo = import_utils3.fs.readJSONSync(pkgPath);
|
|
117996
|
-
const modernVersion = pkgInfo.version;
|
|
117997
|
-
if (typeof modernVersion !== "string") {
|
|
117998
|
-
return getLatetPluginVersion();
|
|
117999
|
-
}
|
|
118000
|
-
return getAvailableVersion(packageName, modernVersion, registry2);
|
|
117925
|
+
}), "../..", "package.json");
|
|
117926
|
+
}
|
|
117927
|
+
if (import_utils3.fs.existsSync(pkgPath)) {
|
|
117928
|
+
const pkgInfo = import_utils3.fs.readJSONSync(pkgPath);
|
|
117929
|
+
const modernVersion = pkgInfo.version;
|
|
117930
|
+
if (typeof modernVersion !== "string") {
|
|
117931
|
+
return getLatetPluginVersion();
|
|
118001
117932
|
}
|
|
118002
|
-
return
|
|
118003
|
-
}
|
|
117933
|
+
return getAvailableVersion(packageName, modernVersion, registry2);
|
|
117934
|
+
}
|
|
117935
|
+
return getLatetPluginVersion();
|
|
118004
117936
|
}
|
|
118005
117937
|
function isTsProject(appDir) {
|
|
118006
117938
|
return import_utils3.fs.existsSync(import_path.default.join(appDir, "tsconfig.json"));
|
|
@@ -133301,7 +133233,7 @@ function isEmptyServerDir(serverDir) {
|
|
|
133301
133233
|
return false;
|
|
133302
133234
|
});
|
|
133303
133235
|
}
|
|
133304
|
-
var handleTemplateFile = (context, generator, appApi) =>
|
|
133236
|
+
var handleTemplateFile = async (context, generator, appApi) => {
|
|
133305
133237
|
const jsonAPI = new JsonAPI(generator);
|
|
133306
133238
|
const appDir = context.materials.default.basePath;
|
|
133307
133239
|
const serverDir = import_path6.default.join(appDir, "server");
|
|
@@ -133314,12 +133246,14 @@ var handleTemplateFile = (context, generator, appApi) => __async(void 0, null, f
|
|
|
133314
133246
|
}
|
|
133315
133247
|
const language = isTsProject(appDir) ? Language.TS : Language.JS;
|
|
133316
133248
|
const serverPlugin = "@modern-js/plugin-server";
|
|
133317
|
-
|
|
133249
|
+
await appApi.runSubGenerator(
|
|
133318
133250
|
getGeneratorPath(DependenceGenerator, context.config.distTag),
|
|
133319
133251
|
void 0,
|
|
133320
|
-
|
|
133321
|
-
|
|
133322
|
-
|
|
133252
|
+
{
|
|
133253
|
+
...context.config,
|
|
133254
|
+
devDependencies: {
|
|
133255
|
+
...context.config.devDependencies || {},
|
|
133256
|
+
[serverPlugin]: await getModernPluginVersion(
|
|
133323
133257
|
Solution.MWA,
|
|
133324
133258
|
serverPlugin,
|
|
133325
133259
|
{
|
|
@@ -133330,10 +133264,10 @@ var handleTemplateFile = (context, generator, appApi) => __async(void 0, null, f
|
|
|
133330
133264
|
),
|
|
133331
133265
|
"ts-node": "~10.8.1",
|
|
133332
133266
|
"tsconfig-paths": "~3.14.1"
|
|
133333
|
-
}
|
|
133334
|
-
}
|
|
133267
|
+
}
|
|
133268
|
+
}
|
|
133335
133269
|
);
|
|
133336
|
-
|
|
133270
|
+
await appApi.forgeTemplate(
|
|
133337
133271
|
`templates/base-template/${language}/**/*`,
|
|
133338
133272
|
void 0,
|
|
133339
133273
|
(resourceKey) => resourceKey.replace(`templates/base-template/${language}/`, "").replace(".handlebars", "")
|
|
@@ -133341,7 +133275,7 @@ var handleTemplateFile = (context, generator, appApi) => __async(void 0, null, f
|
|
|
133341
133275
|
if (language === Language.TS) {
|
|
133342
133276
|
const tsconfigJSON = (0, import_utils4.readTsConfigByFile)(import_path6.default.join(appDir, "tsconfig.json"));
|
|
133343
133277
|
if (!(tsconfigJSON.include || []).includes("server")) {
|
|
133344
|
-
|
|
133278
|
+
await jsonAPI.update(
|
|
133345
133279
|
context.materials.default.get(import_path6.default.join(appDir, "tsconfig.json")),
|
|
133346
133280
|
{
|
|
133347
133281
|
query: {},
|
|
@@ -133354,21 +133288,21 @@ var handleTemplateFile = (context, generator, appApi) => __async(void 0, null, f
|
|
|
133354
133288
|
);
|
|
133355
133289
|
}
|
|
133356
133290
|
}
|
|
133357
|
-
}
|
|
133358
|
-
var src_default = (context, generator) =>
|
|
133291
|
+
};
|
|
133292
|
+
var src_default = async (context, generator) => {
|
|
133359
133293
|
const appApi = new AppAPI(context, generator);
|
|
133360
133294
|
const { locale } = context.config;
|
|
133361
133295
|
i18n.changeLanguage({ locale });
|
|
133362
133296
|
appApi.i18n.changeLanguage({ locale });
|
|
133363
|
-
if (!
|
|
133297
|
+
if (!await appApi.checkEnvironment()) {
|
|
133364
133298
|
process.exit(1);
|
|
133365
133299
|
}
|
|
133366
133300
|
generator.logger.debug(`start run @modern-js/server-generator`);
|
|
133367
133301
|
generator.logger.debug(`context=${JSON.stringify(context)}`);
|
|
133368
133302
|
generator.logger.debug(`context.data=${JSON.stringify(context.data)}`);
|
|
133369
|
-
|
|
133303
|
+
await handleTemplateFile(context, generator, appApi);
|
|
133370
133304
|
generator.logger.debug(`forge @modern-js/server-generator succeed `);
|
|
133371
|
-
}
|
|
133305
|
+
};
|
|
133372
133306
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
133373
133307
|
/*!
|
|
133374
133308
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|