@modern-js/upgrade-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 +647 -718
- 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/@modern-js+utils@2.18.0_react-dom@18.2.0_react@18.2.0/node_modules/@modern-js/utils/dist/compiled/import-lazy/index.js
|
|
71
33
|
var require_import_lazy = __commonJS({
|
|
@@ -492,22 +454,20 @@ var require_fs_extra = __commonJS({
|
|
|
492
454
|
const o = r2(17);
|
|
493
455
|
const c = r2(971);
|
|
494
456
|
const s = r2(95);
|
|
495
|
-
const a = n(function emptyDir(e3) {
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
return Promise.all(t3.map((t4) => s.remove(o.join(e3, t4))));
|
|
504
|
-
});
|
|
457
|
+
const a = n(async function emptyDir(e3) {
|
|
458
|
+
let t3;
|
|
459
|
+
try {
|
|
460
|
+
t3 = await i.readdir(e3);
|
|
461
|
+
} catch {
|
|
462
|
+
return c.mkdirs(e3);
|
|
463
|
+
}
|
|
464
|
+
return Promise.all(t3.map((t4) => s.remove(o.join(e3, t4))));
|
|
505
465
|
});
|
|
506
466
|
function emptyDirSync(e3) {
|
|
507
467
|
let t3;
|
|
508
468
|
try {
|
|
509
469
|
t3 = i.readdirSync(e3);
|
|
510
|
-
} catch
|
|
470
|
+
} catch {
|
|
511
471
|
return c.mkdirsSync(e3);
|
|
512
472
|
}
|
|
513
473
|
t3.forEach((t4) => {
|
|
@@ -560,7 +520,7 @@ var require_fs_extra = __commonJS({
|
|
|
560
520
|
let t3;
|
|
561
521
|
try {
|
|
562
522
|
t3 = o.statSync(e3);
|
|
563
|
-
} catch
|
|
523
|
+
} catch {
|
|
564
524
|
}
|
|
565
525
|
if (t3 && t3.isFile())
|
|
566
526
|
return;
|
|
@@ -627,7 +587,7 @@ var require_fs_extra = __commonJS({
|
|
|
627
587
|
let r3;
|
|
628
588
|
try {
|
|
629
589
|
r3 = o.lstatSync(t3);
|
|
630
|
-
} catch
|
|
590
|
+
} catch {
|
|
631
591
|
}
|
|
632
592
|
try {
|
|
633
593
|
const t4 = o.lstatSync(e3);
|
|
@@ -722,7 +682,7 @@ var require_fs_extra = __commonJS({
|
|
|
722
682
|
return t3;
|
|
723
683
|
try {
|
|
724
684
|
r3 = n.lstatSync(e3);
|
|
725
|
-
} catch
|
|
685
|
+
} catch {
|
|
726
686
|
return "file";
|
|
727
687
|
}
|
|
728
688
|
return r3 && r3.isDirectory() ? "dir" : "file";
|
|
@@ -785,7 +745,7 @@ var require_fs_extra = __commonJS({
|
|
|
785
745
|
let n2;
|
|
786
746
|
try {
|
|
787
747
|
n2 = o.lstatSync(t3);
|
|
788
|
-
} catch
|
|
748
|
+
} catch {
|
|
789
749
|
}
|
|
790
750
|
if (n2 && n2.isSymbolicLink()) {
|
|
791
751
|
const r4 = o.statSync(e3);
|
|
@@ -860,7 +820,7 @@ var require_fs_extra = __commonJS({
|
|
|
860
820
|
}
|
|
861
821
|
}, 81: (e2, t2, r2) => {
|
|
862
822
|
"use strict";
|
|
863
|
-
e2.exports =
|
|
823
|
+
e2.exports = { ...r2(812), ...r2(2), ...r2(708), ...r2(726), ...r2(779), ...r2(971), ...r2(511), ...r2(701), ...r2(725), ...r2(95) };
|
|
864
824
|
}, 779: (e2, t2, r2) => {
|
|
865
825
|
"use strict";
|
|
866
826
|
const n = r2(5).fromPromise;
|
|
@@ -891,11 +851,9 @@ var require_fs_extra = __commonJS({
|
|
|
891
851
|
"use strict";
|
|
892
852
|
const { stringify: n } = r2(208);
|
|
893
853
|
const { outputFile: i } = r2(701);
|
|
894
|
-
function outputJson(
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
yield i(e3, o, r3);
|
|
898
|
-
});
|
|
854
|
+
async function outputJson(e3, t3, r3 = {}) {
|
|
855
|
+
const o = n(t3, r3);
|
|
856
|
+
await i(e3, o, r3);
|
|
899
857
|
}
|
|
900
858
|
e2.exports = outputJson;
|
|
901
859
|
}, 971: (e2, t2, r2) => {
|
|
@@ -912,12 +870,12 @@ var require_fs_extra = __commonJS({
|
|
|
912
870
|
const t3 = { mode: 511 };
|
|
913
871
|
if (typeof e3 === "number")
|
|
914
872
|
return e3;
|
|
915
|
-
return
|
|
873
|
+
return { ...t3, ...e3 }.mode;
|
|
916
874
|
};
|
|
917
|
-
e2.exports.makeDir = (e3, t3) =>
|
|
875
|
+
e2.exports.makeDir = async (e3, t3) => {
|
|
918
876
|
i(e3);
|
|
919
877
|
return n.mkdir(e3, { mode: getMode(t3), recursive: true });
|
|
920
|
-
}
|
|
878
|
+
};
|
|
921
879
|
e2.exports.makeDirSync = (e3, t3) => {
|
|
922
880
|
i(e3);
|
|
923
881
|
return n.mkdirSync(e3, { mode: getMode(t3), recursive: true });
|
|
@@ -1335,7 +1293,7 @@ var require_fs_extra = __commonJS({
|
|
|
1335
1293
|
try {
|
|
1336
1294
|
const r4 = t3.rmdirSync(e3, t3);
|
|
1337
1295
|
return r4;
|
|
1338
|
-
} catch
|
|
1296
|
+
} catch {
|
|
1339
1297
|
}
|
|
1340
1298
|
} while (Date.now() - r3 < 500);
|
|
1341
1299
|
} else {
|
|
@@ -2234,28 +2192,26 @@ var require_fs_extra = __commonJS({
|
|
|
2234
2192
|
}
|
|
2235
2193
|
const i = r2(5);
|
|
2236
2194
|
const { stringify: o, stripBom: c } = r2(208);
|
|
2237
|
-
function _readFile(
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
return null;
|
|
2255
|
-
}
|
|
2195
|
+
async function _readFile(e3, t3 = {}) {
|
|
2196
|
+
if (typeof t3 === "string") {
|
|
2197
|
+
t3 = { encoding: t3 };
|
|
2198
|
+
}
|
|
2199
|
+
const r3 = t3.fs || n;
|
|
2200
|
+
const o2 = "throws" in t3 ? t3.throws : true;
|
|
2201
|
+
let s2 = await i.fromCallback(r3.readFile)(e3, t3);
|
|
2202
|
+
s2 = c(s2);
|
|
2203
|
+
let a2;
|
|
2204
|
+
try {
|
|
2205
|
+
a2 = JSON.parse(s2, t3 ? t3.reviver : null);
|
|
2206
|
+
} catch (t4) {
|
|
2207
|
+
if (o2) {
|
|
2208
|
+
t4.message = `${e3}: ${t4.message}`;
|
|
2209
|
+
throw t4;
|
|
2210
|
+
} else {
|
|
2211
|
+
return null;
|
|
2256
2212
|
}
|
|
2257
|
-
|
|
2258
|
-
|
|
2213
|
+
}
|
|
2214
|
+
return a2;
|
|
2259
2215
|
}
|
|
2260
2216
|
const s = i.fromPromise(_readFile);
|
|
2261
2217
|
function readFileSync(e3, t3 = {}) {
|
|
@@ -2277,12 +2233,10 @@ var require_fs_extra = __commonJS({
|
|
|
2277
2233
|
}
|
|
2278
2234
|
}
|
|
2279
2235
|
}
|
|
2280
|
-
function _writeFile(
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
yield i.fromCallback(c2.writeFile)(e3, s2, r3);
|
|
2285
|
-
});
|
|
2236
|
+
async function _writeFile(e3, t3, r3 = {}) {
|
|
2237
|
+
const c2 = r3.fs || n;
|
|
2238
|
+
const s2 = o(t3, r3);
|
|
2239
|
+
await i.fromCallback(c2.writeFile)(e3, s2, r3);
|
|
2286
2240
|
}
|
|
2287
2241
|
const a = i.fromPromise(_writeFile);
|
|
2288
2242
|
function writeFileSync(e3, t3, r3 = {}) {
|
|
@@ -2510,11 +2464,11 @@ var require_chalk = __commonJS({
|
|
|
2510
2464
|
} };
|
|
2511
2465
|
}
|
|
2512
2466
|
const f = Object.defineProperties(() => {
|
|
2513
|
-
},
|
|
2467
|
+
}, { ...u, level: { enumerable: true, get() {
|
|
2514
2468
|
return this._generator.level;
|
|
2515
2469
|
}, set(e3) {
|
|
2516
2470
|
this._generator.level = e3;
|
|
2517
|
-
} } })
|
|
2471
|
+
} } });
|
|
2518
2472
|
const createStyler = (e3, t3, n3) => {
|
|
2519
2473
|
let r2;
|
|
2520
2474
|
let s2;
|
|
@@ -2825,7 +2779,7 @@ var require_chalk = __commonJS({
|
|
|
2825
2779
|
return [o2 * 100, l * 100, c * 100, s2 * 100];
|
|
2826
2780
|
};
|
|
2827
2781
|
function comparativeDistance(e3, t3) {
|
|
2828
|
-
return
|
|
2782
|
+
return (e3[0] - t3[0]) ** 2 + (e3[1] - t3[1]) ** 2 + (e3[2] - t3[2]) ** 2;
|
|
2829
2783
|
}
|
|
2830
2784
|
o.rgb.keyword = function(e3) {
|
|
2831
2785
|
const t3 = s[e3];
|
|
@@ -2851,9 +2805,9 @@ var require_chalk = __commonJS({
|
|
|
2851
2805
|
let t3 = e3[0] / 255;
|
|
2852
2806
|
let n3 = e3[1] / 255;
|
|
2853
2807
|
let r2 = e3[2] / 255;
|
|
2854
|
-
t3 = t3 > 0.04045 ?
|
|
2855
|
-
n3 = n3 > 0.04045 ?
|
|
2856
|
-
r2 = r2 > 0.04045 ?
|
|
2808
|
+
t3 = t3 > 0.04045 ? ((t3 + 0.055) / 1.055) ** 2.4 : t3 / 12.92;
|
|
2809
|
+
n3 = n3 > 0.04045 ? ((n3 + 0.055) / 1.055) ** 2.4 : n3 / 12.92;
|
|
2810
|
+
r2 = r2 > 0.04045 ? ((r2 + 0.055) / 1.055) ** 2.4 : r2 / 12.92;
|
|
2857
2811
|
const s2 = t3 * 0.4124 + n3 * 0.3576 + r2 * 0.1805;
|
|
2858
2812
|
const o2 = t3 * 0.2126 + n3 * 0.7152 + r2 * 0.0722;
|
|
2859
2813
|
const l = t3 * 0.0193 + n3 * 0.1192 + r2 * 0.9505;
|
|
@@ -2867,9 +2821,9 @@ var require_chalk = __commonJS({
|
|
|
2867
2821
|
n3 /= 95.047;
|
|
2868
2822
|
r2 /= 100;
|
|
2869
2823
|
s2 /= 108.883;
|
|
2870
|
-
n3 = n3 > 8856e-6 ?
|
|
2871
|
-
r2 = r2 > 8856e-6 ?
|
|
2872
|
-
s2 = s2 > 8856e-6 ?
|
|
2824
|
+
n3 = n3 > 8856e-6 ? n3 ** (1 / 3) : 7.787 * n3 + 16 / 116;
|
|
2825
|
+
r2 = r2 > 8856e-6 ? r2 ** (1 / 3) : 7.787 * r2 + 16 / 116;
|
|
2826
|
+
s2 = s2 > 8856e-6 ? s2 ** (1 / 3) : 7.787 * s2 + 16 / 116;
|
|
2873
2827
|
const l = 116 * r2 - 16;
|
|
2874
2828
|
const c = 500 * (n3 - r2);
|
|
2875
2829
|
const i = 200 * (r2 - s2);
|
|
@@ -3043,9 +2997,9 @@ var require_chalk = __commonJS({
|
|
|
3043
2997
|
s2 = t3 * 3.2406 + n3 * -1.5372 + r2 * -0.4986;
|
|
3044
2998
|
o2 = t3 * -0.9689 + n3 * 1.8758 + r2 * 0.0415;
|
|
3045
2999
|
l = t3 * 0.0557 + n3 * -0.204 + r2 * 1.057;
|
|
3046
|
-
s2 = s2 > 31308e-7 ? 1.055 *
|
|
3047
|
-
o2 = o2 > 31308e-7 ? 1.055 *
|
|
3048
|
-
l = l > 31308e-7 ? 1.055 *
|
|
3000
|
+
s2 = s2 > 31308e-7 ? 1.055 * s2 ** (1 / 2.4) - 0.055 : s2 * 12.92;
|
|
3001
|
+
o2 = o2 > 31308e-7 ? 1.055 * o2 ** (1 / 2.4) - 0.055 : o2 * 12.92;
|
|
3002
|
+
l = l > 31308e-7 ? 1.055 * l ** (1 / 2.4) - 0.055 : l * 12.92;
|
|
3049
3003
|
s2 = Math.min(Math.max(0, s2), 1);
|
|
3050
3004
|
o2 = Math.min(Math.max(0, o2), 1);
|
|
3051
3005
|
l = Math.min(Math.max(0, l), 1);
|
|
@@ -3058,9 +3012,9 @@ var require_chalk = __commonJS({
|
|
|
3058
3012
|
t3 /= 95.047;
|
|
3059
3013
|
n3 /= 100;
|
|
3060
3014
|
r2 /= 108.883;
|
|
3061
|
-
t3 = t3 > 8856e-6 ?
|
|
3062
|
-
n3 = n3 > 8856e-6 ?
|
|
3063
|
-
r2 = r2 > 8856e-6 ?
|
|
3015
|
+
t3 = t3 > 8856e-6 ? t3 ** (1 / 3) : 7.787 * t3 + 16 / 116;
|
|
3016
|
+
n3 = n3 > 8856e-6 ? n3 ** (1 / 3) : 7.787 * n3 + 16 / 116;
|
|
3017
|
+
r2 = r2 > 8856e-6 ? r2 ** (1 / 3) : 7.787 * r2 + 16 / 116;
|
|
3064
3018
|
const s2 = 116 * n3 - 16;
|
|
3065
3019
|
const o2 = 500 * (t3 - n3);
|
|
3066
3020
|
const l = 200 * (n3 - r2);
|
|
@@ -3076,9 +3030,9 @@ var require_chalk = __commonJS({
|
|
|
3076
3030
|
o2 = (t3 + 16) / 116;
|
|
3077
3031
|
s2 = n3 / 500 + o2;
|
|
3078
3032
|
l = o2 - r2 / 200;
|
|
3079
|
-
const c =
|
|
3080
|
-
const i =
|
|
3081
|
-
const a =
|
|
3033
|
+
const c = o2 ** 3;
|
|
3034
|
+
const i = s2 ** 3;
|
|
3035
|
+
const a = l ** 3;
|
|
3082
3036
|
o2 = c > 8856e-6 ? c : (o2 - 16 / 116) / 7.787;
|
|
3083
3037
|
s2 = i > 8856e-6 ? i : (s2 - 16 / 116) / 7.787;
|
|
3084
3038
|
l = a > 8856e-6 ? a : (l - 16 / 116) / 7.787;
|
|
@@ -4334,7 +4288,7 @@ var require_ora = __commonJS({
|
|
|
4334
4288
|
if (typeof e3 === "string") {
|
|
4335
4289
|
e3 = { text: e3 };
|
|
4336
4290
|
}
|
|
4337
|
-
this.options =
|
|
4291
|
+
this.options = { text: "", color: "cyan", stream: process.stderr, discardStdin: true, ...e3 };
|
|
4338
4292
|
this.spinner = this.options.spinner;
|
|
4339
4293
|
this.color = this.options.color;
|
|
4340
4294
|
this.hideCursor = this.options.hideCursor !== false;
|
|
@@ -4551,14 +4505,14 @@ var require_ora = __commonJS({
|
|
|
4551
4505
|
}
|
|
4552
4506
|
const r3 = new Ora(t3);
|
|
4553
4507
|
r3.start();
|
|
4554
|
-
(() =>
|
|
4508
|
+
(async () => {
|
|
4555
4509
|
try {
|
|
4556
|
-
|
|
4510
|
+
await e3;
|
|
4557
4511
|
r3.succeed();
|
|
4558
|
-
} catch
|
|
4512
|
+
} catch {
|
|
4559
4513
|
r3.fail();
|
|
4560
4514
|
}
|
|
4561
|
-
})
|
|
4515
|
+
})();
|
|
4562
4516
|
return r3;
|
|
4563
4517
|
};
|
|
4564
4518
|
}, 959: (e2) => {
|
|
@@ -12978,7 +12932,7 @@ var require_execa = __commonJS({
|
|
|
12978
12932
|
const { joinCommand: w, parseCommand: E, getEscapedCommand: I } = n2(192);
|
|
12979
12933
|
const T = 1e3 * 1e3 * 100;
|
|
12980
12934
|
const getEnv = ({ env: e3, extendEnv: t3, preferLocal: n3, localDir: r2, execPath: o2 }) => {
|
|
12981
|
-
const s2 = t3 ?
|
|
12935
|
+
const s2 = t3 ? { ...process.env, ...e3 } : e3;
|
|
12982
12936
|
if (n3) {
|
|
12983
12937
|
return a.env({ env: s2, cwd: r2, execPath: o2 });
|
|
12984
12938
|
}
|
|
@@ -12989,7 +12943,7 @@ var require_execa = __commonJS({
|
|
|
12989
12943
|
e3 = o2.command;
|
|
12990
12944
|
t3 = o2.args;
|
|
12991
12945
|
n3 = o2.options;
|
|
12992
|
-
n3 =
|
|
12946
|
+
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 };
|
|
12993
12947
|
n3.env = getEnv(n3);
|
|
12994
12948
|
n3.stdio = u(n3);
|
|
12995
12949
|
if (process.platform === "win32" && r.basename(e3, ".exe") === "cmd") {
|
|
@@ -13025,8 +12979,8 @@ var require_execa = __commonJS({
|
|
|
13025
12979
|
const T2 = { isCanceled: false };
|
|
13026
12980
|
a2.kill = l.bind(null, a2.kill.bind(a2));
|
|
13027
12981
|
a2.cancel = f.bind(null, a2, T2);
|
|
13028
|
-
const handlePromise = () =>
|
|
13029
|
-
const [{ error: e4, exitCode: t4, signal: n4, timedOut: o2 }, c2, u3, l2] =
|
|
12982
|
+
const handlePromise = async () => {
|
|
12983
|
+
const [{ error: e4, exitCode: t4, signal: n4, timedOut: o2 }, c2, u3, l2] = await h(a2, r2.options, E2);
|
|
13030
12984
|
const f2 = handleOutput(r2.options, c2);
|
|
13031
12985
|
const p2 = handleOutput(r2.options, u3);
|
|
13032
12986
|
const m2 = handleOutput(r2.options, l2);
|
|
@@ -13038,7 +12992,7 @@ var require_execa = __commonJS({
|
|
|
13038
12992
|
throw c3;
|
|
13039
12993
|
}
|
|
13040
12994
|
return { command: s2, escapedCommand: i2, exitCode: 0, stdout: f2, stderr: p2, all: m2, failed: false, timedOut: false, isCanceled: false, killed: false };
|
|
13041
|
-
}
|
|
12995
|
+
};
|
|
13042
12996
|
const C = c(handlePromise);
|
|
13043
12997
|
x(a2, r2.options.input);
|
|
13044
12998
|
a2.all = y(a2, r2.options);
|
|
@@ -13083,7 +13037,7 @@ var require_execa = __commonJS({
|
|
|
13083
13037
|
const r2 = u.node(n3);
|
|
13084
13038
|
const o2 = process.execArgv.filter((e4) => !e4.startsWith("--inspect"));
|
|
13085
13039
|
const { nodePath: s2 = process.execPath, nodeOptions: i2 = o2 } = n3;
|
|
13086
|
-
return execa4(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []],
|
|
13040
|
+
return execa4(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []], { ...n3, stdin: void 0, stdout: void 0, stderr: void 0, stdio: r2, shell: false });
|
|
13087
13041
|
};
|
|
13088
13042
|
}, 192: (e2) => {
|
|
13089
13043
|
"use strict";
|
|
@@ -13239,7 +13193,7 @@ ${o.message}` : x;
|
|
|
13239
13193
|
throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e3}\` (${typeof e3})`);
|
|
13240
13194
|
}
|
|
13241
13195
|
};
|
|
13242
|
-
const setExitHandler =
|
|
13196
|
+
const setExitHandler = async (e3, { cleanup: t3, detached: n3 }, r2) => {
|
|
13243
13197
|
if (!t3 || n3) {
|
|
13244
13198
|
return r2;
|
|
13245
13199
|
}
|
|
@@ -13249,17 +13203,17 @@ ${o.message}` : x;
|
|
|
13249
13203
|
return r2.finally(() => {
|
|
13250
13204
|
s2();
|
|
13251
13205
|
});
|
|
13252
|
-
}
|
|
13206
|
+
};
|
|
13253
13207
|
e2.exports = { spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler };
|
|
13254
13208
|
}, 210: (e2) => {
|
|
13255
13209
|
"use strict";
|
|
13256
|
-
const t2 = (() =>
|
|
13257
|
-
})
|
|
13210
|
+
const t2 = (async () => {
|
|
13211
|
+
})().constructor.prototype;
|
|
13258
13212
|
const n2 = ["then", "catch", "finally"].map((e3) => [e3, Reflect.getOwnPropertyDescriptor(t2, e3)]);
|
|
13259
13213
|
const mergePromise = (e3, t3) => {
|
|
13260
13214
|
for (const [r, o] of n2) {
|
|
13261
13215
|
const n3 = typeof t3 === "function" ? (...e4) => Reflect.apply(o.value, t3(), e4) : o.value.bind(t3);
|
|
13262
|
-
Reflect.defineProperty(e3, r,
|
|
13216
|
+
Reflect.defineProperty(e3, r, { ...o, value: n3 });
|
|
13263
13217
|
}
|
|
13264
13218
|
return e3;
|
|
13265
13219
|
};
|
|
@@ -13343,17 +13297,17 @@ ${o.message}` : x;
|
|
|
13343
13297
|
}
|
|
13344
13298
|
return n3;
|
|
13345
13299
|
};
|
|
13346
|
-
const getBufferedData = (e3, t3) =>
|
|
13300
|
+
const getBufferedData = async (e3, t3) => {
|
|
13347
13301
|
if (!e3) {
|
|
13348
13302
|
return;
|
|
13349
13303
|
}
|
|
13350
13304
|
e3.destroy();
|
|
13351
13305
|
try {
|
|
13352
|
-
return
|
|
13306
|
+
return await t3;
|
|
13353
13307
|
} catch (e4) {
|
|
13354
13308
|
return e4.bufferedData;
|
|
13355
13309
|
}
|
|
13356
|
-
}
|
|
13310
|
+
};
|
|
13357
13311
|
const getStreamPromise = (e3, { encoding: t3, buffer: n3, maxBuffer: r2 }) => {
|
|
13358
13312
|
if (!e3 || !n3) {
|
|
13359
13313
|
return;
|
|
@@ -13363,16 +13317,16 @@ ${o.message}` : x;
|
|
|
13363
13317
|
}
|
|
13364
13318
|
return o.buffer(e3, { maxBuffer: r2 });
|
|
13365
13319
|
};
|
|
13366
|
-
const getSpawnedResult =
|
|
13320
|
+
const getSpawnedResult = async ({ stdout: e3, stderr: t3, all: n3 }, { encoding: r2, buffer: o2, maxBuffer: s2 }, i) => {
|
|
13367
13321
|
const a = getStreamPromise(e3, { encoding: r2, buffer: o2, maxBuffer: s2 });
|
|
13368
13322
|
const c = getStreamPromise(t3, { encoding: r2, buffer: o2, maxBuffer: s2 });
|
|
13369
13323
|
const d = getStreamPromise(n3, { encoding: r2, buffer: o2, maxBuffer: s2 * 2 });
|
|
13370
13324
|
try {
|
|
13371
|
-
return
|
|
13325
|
+
return await Promise.all([i, a, c, d]);
|
|
13372
13326
|
} catch (r3) {
|
|
13373
13327
|
return Promise.all([{ error: r3, signal: r3.signal, timedOut: r3.timedOut }, getBufferedData(e3, a), getBufferedData(t3, c), getBufferedData(n3, d)]);
|
|
13374
13328
|
}
|
|
13375
|
-
}
|
|
13329
|
+
};
|
|
13376
13330
|
const validateInputSync = ({ input: e3 }) => {
|
|
13377
13331
|
if (r(e3)) {
|
|
13378
13332
|
throw new TypeError("The `input` option cannot be a stream in sync mode");
|
|
@@ -13383,7 +13337,7 @@ ${o.message}` : x;
|
|
|
13383
13337
|
"use strict";
|
|
13384
13338
|
const { PassThrough: r } = n2(781);
|
|
13385
13339
|
e2.exports = (e3) => {
|
|
13386
|
-
e3 =
|
|
13340
|
+
e3 = { ...e3 };
|
|
13387
13341
|
const { array: t3 } = e3;
|
|
13388
13342
|
let { encoding: n3 } = e3;
|
|
13389
13343
|
const o = n3 === "buffer";
|
|
@@ -13432,41 +13386,39 @@ ${o.message}` : x;
|
|
|
13432
13386
|
this.name = "MaxBufferError";
|
|
13433
13387
|
}
|
|
13434
13388
|
}
|
|
13435
|
-
function getStream(e3, t3) {
|
|
13436
|
-
|
|
13437
|
-
|
|
13438
|
-
|
|
13439
|
-
|
|
13440
|
-
|
|
13441
|
-
|
|
13442
|
-
|
|
13443
|
-
|
|
13444
|
-
|
|
13445
|
-
|
|
13446
|
-
|
|
13447
|
-
|
|
13448
|
-
|
|
13449
|
-
|
|
13450
|
-
|
|
13451
|
-
|
|
13452
|
-
|
|
13453
|
-
|
|
13454
|
-
|
|
13455
|
-
|
|
13456
|
-
|
|
13457
|
-
|
|
13458
|
-
o2.
|
|
13459
|
-
|
|
13460
|
-
|
|
13461
|
-
}
|
|
13462
|
-
});
|
|
13389
|
+
async function getStream(e3, t3) {
|
|
13390
|
+
if (!e3) {
|
|
13391
|
+
throw new Error("Expected a stream");
|
|
13392
|
+
}
|
|
13393
|
+
t3 = { maxBuffer: Infinity, ...t3 };
|
|
13394
|
+
const { maxBuffer: n3 } = t3;
|
|
13395
|
+
const o2 = i(t3);
|
|
13396
|
+
await new Promise((t4, s2) => {
|
|
13397
|
+
const rejectPromise = (e4) => {
|
|
13398
|
+
if (e4 && o2.getBufferedLength() <= r.MAX_LENGTH) {
|
|
13399
|
+
e4.bufferedData = o2.getBufferedValue();
|
|
13400
|
+
}
|
|
13401
|
+
s2(e4);
|
|
13402
|
+
};
|
|
13403
|
+
(async () => {
|
|
13404
|
+
try {
|
|
13405
|
+
await a(e3, o2);
|
|
13406
|
+
t4();
|
|
13407
|
+
} catch (e4) {
|
|
13408
|
+
rejectPromise(e4);
|
|
13409
|
+
}
|
|
13410
|
+
})();
|
|
13411
|
+
o2.on("data", () => {
|
|
13412
|
+
if (o2.getBufferedLength() > n3) {
|
|
13413
|
+
rejectPromise(new MaxBufferError());
|
|
13414
|
+
}
|
|
13463
13415
|
});
|
|
13464
|
-
return o2.getBufferedValue();
|
|
13465
13416
|
});
|
|
13417
|
+
return o2.getBufferedValue();
|
|
13466
13418
|
}
|
|
13467
13419
|
e2.exports = getStream;
|
|
13468
|
-
e2.exports.buffer = (e3, t3) => getStream(e3,
|
|
13469
|
-
e2.exports.array = (e3, t3) => getStream(e3,
|
|
13420
|
+
e2.exports.buffer = (e3, t3) => getStream(e3, { ...t3, encoding: "buffer" });
|
|
13421
|
+
e2.exports.array = (e3, t3) => getStream(e3, { ...t3, array: true });
|
|
13470
13422
|
e2.exports.MaxBufferError = MaxBufferError;
|
|
13471
13423
|
}, 221: (e2, t2) => {
|
|
13472
13424
|
"use strict";
|
|
@@ -13486,7 +13438,7 @@ ${o.message}` : x;
|
|
|
13486
13438
|
return e3.reduce(getSignalByName, {});
|
|
13487
13439
|
};
|
|
13488
13440
|
const getSignalByName = function(e3, { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 }) {
|
|
13489
|
-
return
|
|
13441
|
+
return { ...e3, [t3]: { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 } };
|
|
13490
13442
|
};
|
|
13491
13443
|
const i = getSignalsByName();
|
|
13492
13444
|
t2.signalsByName = i;
|
|
@@ -13718,7 +13670,7 @@ ${o.message}` : x;
|
|
|
13718
13670
|
const r = n2(17);
|
|
13719
13671
|
const o = n2(460);
|
|
13720
13672
|
const npmRunPath = (e3) => {
|
|
13721
|
-
e3 =
|
|
13673
|
+
e3 = { cwd: process.cwd(), path: process.env[o()], execPath: process.execPath, ...e3 };
|
|
13722
13674
|
let t3;
|
|
13723
13675
|
let n3 = r.resolve(e3.cwd);
|
|
13724
13676
|
const s = [];
|
|
@@ -13734,8 +13686,8 @@ ${o.message}` : x;
|
|
|
13734
13686
|
e2.exports = npmRunPath;
|
|
13735
13687
|
e2.exports["default"] = npmRunPath;
|
|
13736
13688
|
e2.exports.env = (t3) => {
|
|
13737
|
-
t3 =
|
|
13738
|
-
const n3 =
|
|
13689
|
+
t3 = { env: process.env, ...t3 };
|
|
13690
|
+
const n3 = { ...t3.env };
|
|
13739
13691
|
const r2 = o({ env: n3 });
|
|
13740
13692
|
t3.path = n3[r2];
|
|
13741
13693
|
n3[r2] = e2.exports(t3);
|
|
@@ -15144,7 +15096,7 @@ var require_upath = __commonJS({
|
|
|
15144
15096
|
_.VERSION = typeof n !== "undefined" && n !== null ? n : "NO-VERSION";
|
|
15145
15097
|
p = function(e3) {
|
|
15146
15098
|
e3 = e3.replace(/\\/g, "/");
|
|
15147
|
-
e3 = e3.replace(
|
|
15099
|
+
e3 = e3.replace(/(?<!^)\/+/g, "/");
|
|
15148
15100
|
return e3;
|
|
15149
15101
|
};
|
|
15150
15102
|
for (c in o) {
|
|
@@ -15440,9 +15392,7 @@ var require_pkg_up = __commonJS({
|
|
|
15440
15392
|
};
|
|
15441
15393
|
}, 800: (e2, r2, n2) => {
|
|
15442
15394
|
const t = n2(485);
|
|
15443
|
-
e2.exports =
|
|
15444
|
-
return t("package.json", { cwd: e3 });
|
|
15445
|
-
});
|
|
15395
|
+
e2.exports = async ({ cwd: e3 } = {}) => t("package.json", { cwd: e3 });
|
|
15446
15396
|
e2.exports.sync = ({ cwd: e3 } = {}) => t.sync("package.json", { cwd: e3 });
|
|
15447
15397
|
}, 147: (e2) => {
|
|
15448
15398
|
e2.exports = require("fs");
|
|
@@ -23973,7 +23923,7 @@ var require_fast_glob = __commonJS({
|
|
|
23973
23923
|
}
|
|
23974
23924
|
if (t4.nodes && t4.ranges > 0) {
|
|
23975
23925
|
let r4 = s.reduce(t4.nodes);
|
|
23976
|
-
let i2 = n(...r4,
|
|
23926
|
+
let i2 = n(...r4, { ...e3, wrap: false, toRegex: true });
|
|
23977
23927
|
if (i2.length !== 0) {
|
|
23978
23928
|
return r4.length > 1 && i2.length > 1 ? `(${i2})` : i2;
|
|
23979
23929
|
}
|
|
@@ -24399,13 +24349,11 @@ var require_fast_glob = __commonJS({
|
|
|
24399
24349
|
const a = r2(1066);
|
|
24400
24350
|
const u = r2(7190);
|
|
24401
24351
|
const c = r2(3828);
|
|
24402
|
-
function FastGlob(t3, e3) {
|
|
24403
|
-
|
|
24404
|
-
|
|
24405
|
-
|
|
24406
|
-
|
|
24407
|
-
return c.array.flatten(n2);
|
|
24408
|
-
});
|
|
24352
|
+
async function FastGlob(t3, e3) {
|
|
24353
|
+
assertPatternsInput(t3);
|
|
24354
|
+
const r3 = getWorks(t3, i.default, e3);
|
|
24355
|
+
const n2 = await Promise.all(r3);
|
|
24356
|
+
return c.array.flatten(n2);
|
|
24409
24357
|
}
|
|
24410
24358
|
(function(t3) {
|
|
24411
24359
|
function sync(t4, e3) {
|
|
@@ -25576,7 +25524,7 @@ var require_fast_glob = __commonJS({
|
|
|
25576
25524
|
};
|
|
25577
25525
|
const toRange = (t3, e3, r3, n2) => {
|
|
25578
25526
|
if (r3) {
|
|
25579
|
-
return s(t3, e3,
|
|
25527
|
+
return s(t3, e3, { wrap: false, ...n2 });
|
|
25580
25528
|
}
|
|
25581
25529
|
let i = String.fromCharCode(t3);
|
|
25582
25530
|
if (t3 === e3)
|
|
@@ -25642,7 +25590,7 @@ var require_fast_glob = __commonJS({
|
|
|
25642
25590
|
g++;
|
|
25643
25591
|
}
|
|
25644
25592
|
if (n2.toRegex === true) {
|
|
25645
|
-
return r3 > 1 ? toSequence(d, n2) : toRegex(_, null,
|
|
25593
|
+
return r3 > 1 ? toSequence(d, n2) : toRegex(_, null, { wrap: false, ...n2 });
|
|
25646
25594
|
}
|
|
25647
25595
|
return _;
|
|
25648
25596
|
};
|
|
@@ -25684,7 +25632,7 @@ var require_fast_glob = __commonJS({
|
|
|
25684
25632
|
if (isObject4(r3)) {
|
|
25685
25633
|
return fill(t3, e3, 0, r3);
|
|
25686
25634
|
}
|
|
25687
|
-
let s2 =
|
|
25635
|
+
let s2 = { ...n2 };
|
|
25688
25636
|
if (s2.capture === true)
|
|
25689
25637
|
s2.wrap = true;
|
|
25690
25638
|
r3 = r3 || s2.step || 1;
|
|
@@ -26008,7 +25956,7 @@ var require_fast_glob = __commonJS({
|
|
|
26008
25956
|
}
|
|
26009
25957
|
};
|
|
26010
25958
|
for (let o3 = 0; o3 < e3.length; o3++) {
|
|
26011
|
-
let u2 = i(String(e3[o3]),
|
|
25959
|
+
let u2 = i(String(e3[o3]), { ...r3, onResult }, true);
|
|
26012
25960
|
let c2 = u2.state.negated || u2.state.negatedExtglob;
|
|
26013
25961
|
if (c2)
|
|
26014
25962
|
a++;
|
|
@@ -26050,7 +25998,7 @@ var require_fast_glob = __commonJS({
|
|
|
26050
25998
|
r3.onResult(t4);
|
|
26051
25999
|
s2.push(t4.output);
|
|
26052
26000
|
};
|
|
26053
|
-
let i2 = new Set(micromatch(t3, e3,
|
|
26001
|
+
let i2 = new Set(micromatch(t3, e3, { ...r3, onResult }));
|
|
26054
26002
|
for (let t4 of s2) {
|
|
26055
26003
|
if (!i2.has(t4)) {
|
|
26056
26004
|
n2.add(t4);
|
|
@@ -26073,7 +26021,7 @@ var require_fast_glob = __commonJS({
|
|
|
26073
26021
|
return true;
|
|
26074
26022
|
}
|
|
26075
26023
|
}
|
|
26076
|
-
return micromatch.isMatch(t3, e3,
|
|
26024
|
+
return micromatch.isMatch(t3, e3, { ...r3, contains: true });
|
|
26077
26025
|
};
|
|
26078
26026
|
micromatch.matchKeys = (t3, e3, r3) => {
|
|
26079
26027
|
if (!o.isObject(t3)) {
|
|
@@ -26113,7 +26061,7 @@ var require_fast_glob = __commonJS({
|
|
|
26113
26061
|
};
|
|
26114
26062
|
micromatch.capture = (t3, e3, r3) => {
|
|
26115
26063
|
let n2 = o.isWindows(r3);
|
|
26116
|
-
let s2 = i.makeRe(String(t3),
|
|
26064
|
+
let s2 = i.makeRe(String(t3), { ...r3, capture: true });
|
|
26117
26065
|
let a = s2.exec(n2 ? o.toPosixSlashes(e3) : e3);
|
|
26118
26066
|
if (a) {
|
|
26119
26067
|
return a.slice(1).map((t4) => t4 === void 0 ? "" : t4);
|
|
@@ -26141,7 +26089,7 @@ var require_fast_glob = __commonJS({
|
|
|
26141
26089
|
micromatch.braceExpand = (t3, e3) => {
|
|
26142
26090
|
if (typeof t3 !== "string")
|
|
26143
26091
|
throw new TypeError("Expected a string");
|
|
26144
|
-
return micromatch.braces(t3,
|
|
26092
|
+
return micromatch.braces(t3, { ...e3, expand: true });
|
|
26145
26093
|
};
|
|
26146
26094
|
t2.exports = micromatch;
|
|
26147
26095
|
}, 376: (t2, e2, r2) => {
|
|
@@ -26168,7 +26116,7 @@ var require_fast_glob = __commonJS({
|
|
|
26168
26116
|
const m = `[^.${c}]`;
|
|
26169
26117
|
const v = `${f}*?`;
|
|
26170
26118
|
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 };
|
|
26171
|
-
const A =
|
|
26119
|
+
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}]|$)` };
|
|
26172
26120
|
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" };
|
|
26173
26121
|
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) {
|
|
26174
26122
|
return { "!": { type: "negate", open: "(?:(?!(?:", close: `))${t3.STAR})` }, "?": { type: "qmark", open: "(?:", close: ")?" }, "+": { type: "plus", open: "(?:", close: ")+" }, "*": { type: "star", open: "(?:", close: ")*" }, "@": { type: "at", open: "(?:", close: ")" } };
|
|
@@ -26199,7 +26147,7 @@ var require_fast_glob = __commonJS({
|
|
|
26199
26147
|
throw new TypeError("Expected a string");
|
|
26200
26148
|
}
|
|
26201
26149
|
t3 = c[t3] || t3;
|
|
26202
|
-
const r3 =
|
|
26150
|
+
const r3 = { ...e3 };
|
|
26203
26151
|
const l = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
|
|
26204
26152
|
let f = t3.length;
|
|
26205
26153
|
if (f > l) {
|
|
@@ -26291,7 +26239,7 @@ var require_fast_glob = __commonJS({
|
|
|
26291
26239
|
M = t4;
|
|
26292
26240
|
};
|
|
26293
26241
|
const extglobOpen = (t4, e4) => {
|
|
26294
|
-
const n2 =
|
|
26242
|
+
const n2 = { ...y[e4], conditions: 1, inner: "" };
|
|
26295
26243
|
n2.prev = M;
|
|
26296
26244
|
n2.parens = H.parens;
|
|
26297
26245
|
n2.output = H.output;
|
|
@@ -26313,7 +26261,7 @@ var require_fast_glob = __commonJS({
|
|
|
26313
26261
|
n2 = t4.close = `)$))${i2}`;
|
|
26314
26262
|
}
|
|
26315
26263
|
if (t4.inner.includes("*") && (s2 = remaining()) && /^\.[^\\/.]+$/.test(s2)) {
|
|
26316
|
-
const r4 = parse3(s2,
|
|
26264
|
+
const r4 = parse3(s2, { ...e3, fastpaths: false }).output;
|
|
26317
26265
|
n2 = t4.close = `)${r4})${i2})`;
|
|
26318
26266
|
}
|
|
26319
26267
|
if (t4.prev.type === "bos") {
|
|
@@ -26835,7 +26783,7 @@ var require_fast_glob = __commonJS({
|
|
|
26835
26783
|
return H;
|
|
26836
26784
|
};
|
|
26837
26785
|
parse3.fastpaths = (t3, e3) => {
|
|
26838
|
-
const r3 =
|
|
26786
|
+
const r3 = { ...e3 };
|
|
26839
26787
|
const o2 = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
|
|
26840
26788
|
const a2 = t3.length;
|
|
26841
26789
|
if (a2 > o2) {
|
|
@@ -26926,7 +26874,7 @@ var require_fast_glob = __commonJS({
|
|
|
26926
26874
|
delete a2.state;
|
|
26927
26875
|
let isIgnored = () => false;
|
|
26928
26876
|
if (s2.ignore) {
|
|
26929
|
-
const t4 =
|
|
26877
|
+
const t4 = { ...e3, ignore: null, onMatch: null, onResult: null };
|
|
26930
26878
|
isIgnored = picomatch(s2.ignore, t4, r3);
|
|
26931
26879
|
}
|
|
26932
26880
|
const matcher = (r4, n3 = false) => {
|
|
@@ -26988,7 +26936,7 @@ var require_fast_glob = __commonJS({
|
|
|
26988
26936
|
picomatch.parse = (t3, e3) => {
|
|
26989
26937
|
if (Array.isArray(t3))
|
|
26990
26938
|
return t3.map((t4) => picomatch.parse(t4, e3));
|
|
26991
|
-
return i(t3,
|
|
26939
|
+
return i(t3, { ...e3, fastpaths: false });
|
|
26992
26940
|
};
|
|
26993
26941
|
picomatch.scan = (t3, e3) => s(t3, e3);
|
|
26994
26942
|
picomatch.compileRe = (t3, e3, r3 = false, n2 = false) => {
|
|
@@ -27453,7 +27401,7 @@ var require_fast_glob = __commonJS({
|
|
|
27453
27401
|
if (n(e3) === false) {
|
|
27454
27402
|
throw new TypeError("toRegexRange: expected the second argument to be a number.");
|
|
27455
27403
|
}
|
|
27456
|
-
let s =
|
|
27404
|
+
let s = { relaxZeros: true, ...r3 };
|
|
27457
27405
|
if (typeof s.strictZeros === "boolean") {
|
|
27458
27406
|
s.relaxZeros = s.strictZeros === false;
|
|
27459
27407
|
}
|
|
@@ -27731,19 +27679,19 @@ var require_globby = __commonJS({
|
|
|
27731
27679
|
}
|
|
27732
27680
|
return [n.posix.join(t3, "**")];
|
|
27733
27681
|
};
|
|
27734
|
-
t2.exports = (t3, e3) =>
|
|
27735
|
-
e3 =
|
|
27682
|
+
t2.exports = async (t3, e3) => {
|
|
27683
|
+
e3 = { cwd: process.cwd(), ...e3 };
|
|
27736
27684
|
if (typeof e3.cwd !== "string") {
|
|
27737
27685
|
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
|
|
27738
27686
|
}
|
|
27739
|
-
const r3 =
|
|
27740
|
-
const r4 =
|
|
27687
|
+
const r3 = await Promise.all([].concat(t3).map(async (t4) => {
|
|
27688
|
+
const r4 = await s.isDirectory(getPath(t4, e3.cwd));
|
|
27741
27689
|
return r4 ? getGlob(t4, e3) : t4;
|
|
27742
|
-
}))
|
|
27690
|
+
}));
|
|
27743
27691
|
return [].concat.apply([], r3);
|
|
27744
|
-
}
|
|
27692
|
+
};
|
|
27745
27693
|
t2.exports.sync = (t3, e3) => {
|
|
27746
|
-
e3 =
|
|
27694
|
+
e3 = { cwd: process.cwd(), ...e3 };
|
|
27747
27695
|
if (typeof e3.cwd !== "string") {
|
|
27748
27696
|
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
|
|
27749
27697
|
}
|
|
@@ -27788,24 +27736,24 @@ var require_globby = __commonJS({
|
|
|
27788
27736
|
return o.join(t3, e3);
|
|
27789
27737
|
};
|
|
27790
27738
|
const getIsIgnoredPredecate = (t3, e3) => (r3) => t3.ignores(a(o.relative(e3, ensureAbsolutePathForCwd(e3, r3.path || r3))));
|
|
27791
|
-
const getFile = (t3, e3) =>
|
|
27739
|
+
const getFile = async (t3, e3) => {
|
|
27792
27740
|
const r3 = o.join(e3, t3);
|
|
27793
|
-
const n2 =
|
|
27741
|
+
const n2 = await u(r3, "utf8");
|
|
27794
27742
|
return { cwd: e3, filePath: r3, content: n2 };
|
|
27795
|
-
}
|
|
27743
|
+
};
|
|
27796
27744
|
const getFileSync = (t3, e3) => {
|
|
27797
27745
|
const r3 = o.join(e3, t3);
|
|
27798
27746
|
const n2 = s.readFileSync(r3, "utf8");
|
|
27799
27747
|
return { cwd: e3, filePath: r3, content: n2 };
|
|
27800
27748
|
};
|
|
27801
27749
|
const normalizeOptions = ({ ignore: t3 = [], cwd: e3 = a(process.cwd()) } = {}) => ({ ignore: t3, cwd: e3 });
|
|
27802
|
-
t2.exports = (t3) =>
|
|
27750
|
+
t2.exports = async (t3) => {
|
|
27803
27751
|
t3 = normalizeOptions(t3);
|
|
27804
|
-
const e3 =
|
|
27805
|
-
const r3 =
|
|
27752
|
+
const e3 = await i("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
|
|
27753
|
+
const r3 = await Promise.all(e3.map((e4) => getFile(e4, t3.cwd)));
|
|
27806
27754
|
const n2 = reduceIgnore(r3);
|
|
27807
27755
|
return getIsIgnoredPredecate(n2, t3.cwd);
|
|
27808
|
-
}
|
|
27756
|
+
};
|
|
27809
27757
|
t2.exports.sync = (t3) => {
|
|
27810
27758
|
t3 = normalizeOptions(t3);
|
|
27811
27759
|
const e3 = i.sync("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
|
|
@@ -27836,7 +27784,7 @@ var require_globby = __commonJS({
|
|
|
27836
27784
|
let e3;
|
|
27837
27785
|
try {
|
|
27838
27786
|
e3 = n.statSync(t3.cwd);
|
|
27839
|
-
} catch
|
|
27787
|
+
} catch {
|
|
27840
27788
|
return;
|
|
27841
27789
|
}
|
|
27842
27790
|
if (!e3.isDirectory()) {
|
|
@@ -27849,13 +27797,13 @@ var require_globby = __commonJS({
|
|
|
27849
27797
|
assertPatternsInput(t3);
|
|
27850
27798
|
checkCwdOption(e3);
|
|
27851
27799
|
const r3 = [];
|
|
27852
|
-
e3 =
|
|
27800
|
+
e3 = { ignore: [], expandDirectories: true, ...e3 };
|
|
27853
27801
|
for (const [n2, s2] of t3.entries()) {
|
|
27854
27802
|
if (isNegative(s2)) {
|
|
27855
27803
|
continue;
|
|
27856
27804
|
}
|
|
27857
27805
|
const o2 = t3.slice(n2).filter((t4) => isNegative(t4)).map((t4) => t4.slice(1));
|
|
27858
|
-
const i2 =
|
|
27806
|
+
const i2 = { ...e3, ignore: e3.ignore.concat(o2) };
|
|
27859
27807
|
r3.push({ pattern: s2, options: i2 });
|
|
27860
27808
|
}
|
|
27861
27809
|
return r3;
|
|
@@ -27866,9 +27814,9 @@ var require_globby = __commonJS({
|
|
|
27866
27814
|
r3.cwd = t3.options.cwd;
|
|
27867
27815
|
}
|
|
27868
27816
|
if (Array.isArray(t3.options.expandDirectories)) {
|
|
27869
|
-
r3 =
|
|
27817
|
+
r3 = { ...r3, files: t3.options.expandDirectories };
|
|
27870
27818
|
} else if (typeof t3.options.expandDirectories === "object") {
|
|
27871
|
-
r3 =
|
|
27819
|
+
r3 = { ...r3, ...t3.options.expandDirectories };
|
|
27872
27820
|
}
|
|
27873
27821
|
return e3(t3.pattern, r3);
|
|
27874
27822
|
};
|
|
@@ -27881,22 +27829,20 @@ var require_globby = __commonJS({
|
|
|
27881
27829
|
}
|
|
27882
27830
|
return { pattern: e3, options: r3 };
|
|
27883
27831
|
};
|
|
27884
|
-
t2.exports = (t3, e3) =>
|
|
27832
|
+
t2.exports = async (t3, e3) => {
|
|
27885
27833
|
const r3 = generateGlobTasks(t3, e3);
|
|
27886
|
-
const getFilter = () =>
|
|
27887
|
-
|
|
27888
|
-
|
|
27889
|
-
|
|
27890
|
-
const t4 = yield Promise.all(r3.map((t5) => __async(exports, null, function* () {
|
|
27891
|
-
const e4 = yield getPattern(t5, c);
|
|
27834
|
+
const getFilter = async () => e3 && e3.gitignore ? a({ cwd: e3.cwd, ignore: e3.ignore }) : DEFAULT_FILTER;
|
|
27835
|
+
const getTasks = async () => {
|
|
27836
|
+
const t4 = await Promise.all(r3.map(async (t5) => {
|
|
27837
|
+
const e4 = await getPattern(t5, c);
|
|
27892
27838
|
return Promise.all(e4.map(globToTask(t5)));
|
|
27893
|
-
}))
|
|
27839
|
+
}));
|
|
27894
27840
|
return s(...t4);
|
|
27895
|
-
}
|
|
27896
|
-
const [n2, o2] =
|
|
27897
|
-
const p2 =
|
|
27841
|
+
};
|
|
27842
|
+
const [n2, o2] = await Promise.all([getFilter(), getTasks()]);
|
|
27843
|
+
const p2 = await Promise.all(o2.map((t4) => i(t4.pattern, t4.options)));
|
|
27898
27844
|
return s(...p2).filter((t4) => !n2(getPathString(t4)));
|
|
27899
|
-
}
|
|
27845
|
+
};
|
|
27900
27846
|
t2.exports.sync = (t3, e3) => {
|
|
27901
27847
|
const r3 = generateGlobTasks(t3, e3);
|
|
27902
27848
|
const n2 = [];
|
|
@@ -28250,21 +28196,19 @@ var require_globby = __commonJS({
|
|
|
28250
28196
|
"use strict";
|
|
28251
28197
|
const { promisify: n } = r2(837);
|
|
28252
28198
|
const s = r2(147);
|
|
28253
|
-
function isType4(t3, e3, r3) {
|
|
28254
|
-
|
|
28255
|
-
|
|
28256
|
-
|
|
28257
|
-
|
|
28258
|
-
|
|
28259
|
-
|
|
28260
|
-
|
|
28261
|
-
|
|
28262
|
-
|
|
28263
|
-
return false;
|
|
28264
|
-
}
|
|
28265
|
-
throw t4;
|
|
28199
|
+
async function isType4(t3, e3, r3) {
|
|
28200
|
+
if (typeof r3 !== "string") {
|
|
28201
|
+
throw new TypeError(`Expected a string, got ${typeof r3}`);
|
|
28202
|
+
}
|
|
28203
|
+
try {
|
|
28204
|
+
const o = await n(s[t3])(r3);
|
|
28205
|
+
return o[e3]();
|
|
28206
|
+
} catch (t4) {
|
|
28207
|
+
if (t4.code === "ENOENT") {
|
|
28208
|
+
return false;
|
|
28266
28209
|
}
|
|
28267
|
-
|
|
28210
|
+
throw t4;
|
|
28211
|
+
}
|
|
28268
28212
|
}
|
|
28269
28213
|
function isTypeSync(t3, e3, r3) {
|
|
28270
28214
|
if (typeof r3 !== "string") {
|
|
@@ -30639,15 +30583,15 @@ var require_gzip_size = __commonJS({
|
|
|
30639
30583
|
const i = t2(796);
|
|
30640
30584
|
const { promisify: a } = t2(837);
|
|
30641
30585
|
const s = t2(325);
|
|
30642
|
-
const getOptions = (e3) =>
|
|
30586
|
+
const getOptions = (e3) => ({ level: 9, ...e3 });
|
|
30643
30587
|
const p = a(i.gzip);
|
|
30644
|
-
e2.exports = (e3, r3) =>
|
|
30588
|
+
e2.exports = async (e3, r3) => {
|
|
30645
30589
|
if (!e3) {
|
|
30646
30590
|
return 0;
|
|
30647
30591
|
}
|
|
30648
|
-
const t3 =
|
|
30592
|
+
const t3 = await p(e3, getOptions(r3));
|
|
30649
30593
|
return t3.length;
|
|
30650
|
-
}
|
|
30594
|
+
};
|
|
30651
30595
|
e2.exports.sync = (e3, r3) => i.gzipSync(e3, getOptions(r3)).length;
|
|
30652
30596
|
e2.exports.stream = (e3) => {
|
|
30653
30597
|
const r3 = new o.PassThrough();
|
|
@@ -33609,12 +33553,10 @@ Expecting one of '${i3.join("', '")}'`);
|
|
|
33609
33553
|
this._parseCommand([], i3);
|
|
33610
33554
|
return this;
|
|
33611
33555
|
}
|
|
33612
|
-
parseAsync(t3, e3) {
|
|
33613
|
-
|
|
33614
|
-
|
|
33615
|
-
|
|
33616
|
-
return this;
|
|
33617
|
-
});
|
|
33556
|
+
async parseAsync(t3, e3) {
|
|
33557
|
+
const i3 = this._prepareUserArgs(t3, e3);
|
|
33558
|
+
await this._parseCommand([], i3);
|
|
33559
|
+
return this;
|
|
33618
33560
|
}
|
|
33619
33561
|
_executeSubCommand(t3, e3) {
|
|
33620
33562
|
e3 = e3.slice();
|
|
@@ -42285,9 +42227,10 @@ var require_parse = __commonJS({
|
|
|
42285
42227
|
var parse_comments = (prefix) => {
|
|
42286
42228
|
const comments = [];
|
|
42287
42229
|
while (current && (is("LineComment") || is("BlockComment"))) {
|
|
42288
|
-
const comment =
|
|
42230
|
+
const comment = {
|
|
42231
|
+
...current,
|
|
42289
42232
|
inline
|
|
42290
|
-
}
|
|
42233
|
+
};
|
|
42291
42234
|
comments.push(comment);
|
|
42292
42235
|
next();
|
|
42293
42236
|
}
|
|
@@ -49754,12 +49697,12 @@ var require_baseUI = __commonJS({
|
|
|
49754
49697
|
const ms = new MuteStream();
|
|
49755
49698
|
ms.pipe(opt.output || process.stdout);
|
|
49756
49699
|
const output2 = ms;
|
|
49757
|
-
return
|
|
49758
|
-
terminal: true
|
|
49759
|
-
|
|
49700
|
+
return {
|
|
49701
|
+
terminal: true,
|
|
49702
|
+
...opt,
|
|
49760
49703
|
input,
|
|
49761
49704
|
output: output2
|
|
49762
|
-
}
|
|
49705
|
+
};
|
|
49763
49706
|
}
|
|
49764
49707
|
module2.exports = UI;
|
|
49765
49708
|
}
|
|
@@ -61217,14 +61160,14 @@ var require_prompt = __commonJS({
|
|
|
61217
61160
|
}
|
|
61218
61161
|
run(questions, answers) {
|
|
61219
61162
|
if (_.isPlainObject(answers)) {
|
|
61220
|
-
this.answers =
|
|
61163
|
+
this.answers = { ...answers };
|
|
61221
61164
|
} else {
|
|
61222
61165
|
this.answers = {};
|
|
61223
61166
|
}
|
|
61224
61167
|
if (_.isPlainObject(questions)) {
|
|
61225
61168
|
questions = Object.values(questions).every(
|
|
61226
61169
|
(v) => _.isPlainObject(v) && v.name === void 0
|
|
61227
|
-
) ? Object.entries(questions).map(([name, question]) =>
|
|
61170
|
+
) ? Object.entries(questions).map(([name, question]) => ({ name, ...question })) : [questions];
|
|
61228
61171
|
}
|
|
61229
61172
|
const obs = Array.isArray(questions) ? from(questions) : questions;
|
|
61230
61173
|
this.process = obs.pipe(
|
|
@@ -61252,7 +61195,7 @@ var require_prompt = __commonJS({
|
|
|
61252
61195
|
return Promise.reject(error);
|
|
61253
61196
|
}
|
|
61254
61197
|
processQuestion(question) {
|
|
61255
|
-
question =
|
|
61198
|
+
question = { ...question };
|
|
61256
61199
|
return defer(() => {
|
|
61257
61200
|
const obs = of(question);
|
|
61258
61201
|
return obs.pipe(
|
|
@@ -64210,7 +64153,7 @@ var require_conversions = __commonJS({
|
|
|
64210
64153
|
return [c * 100, m * 100, y * 100, k * 100];
|
|
64211
64154
|
};
|
|
64212
64155
|
function comparativeDistance(x, y) {
|
|
64213
|
-
return
|
|
64156
|
+
return (x[0] - y[0]) ** 2 + (x[1] - y[1]) ** 2 + (x[2] - y[2]) ** 2;
|
|
64214
64157
|
}
|
|
64215
64158
|
convert.rgb.keyword = function(rgb) {
|
|
64216
64159
|
const reversed = reverseKeywords[rgb];
|
|
@@ -64236,9 +64179,9 @@ var require_conversions = __commonJS({
|
|
|
64236
64179
|
let r = rgb[0] / 255;
|
|
64237
64180
|
let g = rgb[1] / 255;
|
|
64238
64181
|
let b = rgb[2] / 255;
|
|
64239
|
-
r = r > 0.04045 ?
|
|
64240
|
-
g = g > 0.04045 ?
|
|
64241
|
-
b = b > 0.04045 ?
|
|
64182
|
+
r = r > 0.04045 ? ((r + 0.055) / 1.055) ** 2.4 : r / 12.92;
|
|
64183
|
+
g = g > 0.04045 ? ((g + 0.055) / 1.055) ** 2.4 : g / 12.92;
|
|
64184
|
+
b = b > 0.04045 ? ((b + 0.055) / 1.055) ** 2.4 : b / 12.92;
|
|
64242
64185
|
const x = r * 0.4124 + g * 0.3576 + b * 0.1805;
|
|
64243
64186
|
const y = r * 0.2126 + g * 0.7152 + b * 0.0722;
|
|
64244
64187
|
const z = r * 0.0193 + g * 0.1192 + b * 0.9505;
|
|
@@ -64252,9 +64195,9 @@ var require_conversions = __commonJS({
|
|
|
64252
64195
|
x /= 95.047;
|
|
64253
64196
|
y /= 100;
|
|
64254
64197
|
z /= 108.883;
|
|
64255
|
-
x = x > 8856e-6 ?
|
|
64256
|
-
y = y > 8856e-6 ?
|
|
64257
|
-
z = z > 8856e-6 ?
|
|
64198
|
+
x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
|
|
64199
|
+
y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
|
|
64200
|
+
z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
|
|
64258
64201
|
const l = 116 * y - 16;
|
|
64259
64202
|
const a = 500 * (x - y);
|
|
64260
64203
|
const b = 200 * (y - z);
|
|
@@ -64428,9 +64371,9 @@ var require_conversions = __commonJS({
|
|
|
64428
64371
|
r = x * 3.2406 + y * -1.5372 + z * -0.4986;
|
|
64429
64372
|
g = x * -0.9689 + y * 1.8758 + z * 0.0415;
|
|
64430
64373
|
b = x * 0.0557 + y * -0.204 + z * 1.057;
|
|
64431
|
-
r = r > 31308e-7 ? 1.055 *
|
|
64432
|
-
g = g > 31308e-7 ? 1.055 *
|
|
64433
|
-
b = b > 31308e-7 ? 1.055 *
|
|
64374
|
+
r = r > 31308e-7 ? 1.055 * r ** (1 / 2.4) - 0.055 : r * 12.92;
|
|
64375
|
+
g = g > 31308e-7 ? 1.055 * g ** (1 / 2.4) - 0.055 : g * 12.92;
|
|
64376
|
+
b = b > 31308e-7 ? 1.055 * b ** (1 / 2.4) - 0.055 : b * 12.92;
|
|
64434
64377
|
r = Math.min(Math.max(0, r), 1);
|
|
64435
64378
|
g = Math.min(Math.max(0, g), 1);
|
|
64436
64379
|
b = Math.min(Math.max(0, b), 1);
|
|
@@ -64443,9 +64386,9 @@ var require_conversions = __commonJS({
|
|
|
64443
64386
|
x /= 95.047;
|
|
64444
64387
|
y /= 100;
|
|
64445
64388
|
z /= 108.883;
|
|
64446
|
-
x = x > 8856e-6 ?
|
|
64447
|
-
y = y > 8856e-6 ?
|
|
64448
|
-
z = z > 8856e-6 ?
|
|
64389
|
+
x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
|
|
64390
|
+
y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
|
|
64391
|
+
z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
|
|
64449
64392
|
const l = 116 * y - 16;
|
|
64450
64393
|
const a = 500 * (x - y);
|
|
64451
64394
|
const b = 200 * (y - z);
|
|
@@ -64461,9 +64404,9 @@ var require_conversions = __commonJS({
|
|
|
64461
64404
|
y = (l + 16) / 116;
|
|
64462
64405
|
x = a / 500 + y;
|
|
64463
64406
|
z = y - b / 200;
|
|
64464
|
-
const y2 =
|
|
64465
|
-
const x2 =
|
|
64466
|
-
const z2 =
|
|
64407
|
+
const y2 = y ** 3;
|
|
64408
|
+
const x2 = x ** 3;
|
|
64409
|
+
const z2 = z ** 3;
|
|
64467
64410
|
y = y2 > 8856e-6 ? y2 : (y - 16 / 116) / 7.787;
|
|
64468
64411
|
x = x2 > 8856e-6 ? x2 : (x - 16 / 116) / 7.787;
|
|
64469
64412
|
z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787;
|
|
@@ -70367,12 +70310,13 @@ var require_ora2 = __commonJS({
|
|
|
70367
70310
|
text: options
|
|
70368
70311
|
};
|
|
70369
70312
|
}
|
|
70370
|
-
this.options =
|
|
70313
|
+
this.options = {
|
|
70371
70314
|
text: "",
|
|
70372
70315
|
color: "cyan",
|
|
70373
70316
|
stream: process.stderr,
|
|
70374
|
-
discardStdin: true
|
|
70375
|
-
|
|
70317
|
+
discardStdin: true,
|
|
70318
|
+
...options
|
|
70319
|
+
};
|
|
70376
70320
|
this.spinner = this.options.spinner;
|
|
70377
70321
|
this.color = this.options.color;
|
|
70378
70322
|
this.hideCursor = this.options.hideCursor !== false;
|
|
@@ -70589,14 +70533,14 @@ var require_ora2 = __commonJS({
|
|
|
70589
70533
|
}
|
|
70590
70534
|
const spinner = new Ora(options);
|
|
70591
70535
|
spinner.start();
|
|
70592
|
-
(() =>
|
|
70536
|
+
(async () => {
|
|
70593
70537
|
try {
|
|
70594
|
-
|
|
70538
|
+
await action2;
|
|
70595
70539
|
spinner.succeed();
|
|
70596
|
-
} catch
|
|
70540
|
+
} catch {
|
|
70597
70541
|
spinner.fail();
|
|
70598
70542
|
}
|
|
70599
|
-
})
|
|
70543
|
+
})();
|
|
70600
70544
|
return spinner;
|
|
70601
70545
|
};
|
|
70602
70546
|
}
|
|
@@ -82176,7 +82120,7 @@ var require_prompt2 = __commonJS({
|
|
|
82176
82120
|
if (_.isPlainObject(questions)) {
|
|
82177
82121
|
questions = Object.values(questions).every(
|
|
82178
82122
|
(v) => _.isPlainObject(v) && v.name === void 0
|
|
82179
|
-
) ? Object.entries(questions).map(([name, question]) =>
|
|
82123
|
+
) ? Object.entries(questions).map(([name, question]) => ({ name, ...question })) : [questions];
|
|
82180
82124
|
}
|
|
82181
82125
|
const obs = _.isArray(questions) ? from(questions) : questions;
|
|
82182
82126
|
this.process = obs.pipe(
|
|
@@ -86475,22 +86419,20 @@ var require_fs_extra2 = __commonJS({
|
|
|
86475
86419
|
const o = r2(17);
|
|
86476
86420
|
const c = r2(971);
|
|
86477
86421
|
const s = r2(95);
|
|
86478
|
-
const a = n(function emptyDir(e3) {
|
|
86479
|
-
|
|
86480
|
-
|
|
86481
|
-
|
|
86482
|
-
|
|
86483
|
-
|
|
86484
|
-
|
|
86485
|
-
|
|
86486
|
-
return Promise.all(t3.map((t4) => s.remove(o.join(e3, t4))));
|
|
86487
|
-
});
|
|
86422
|
+
const a = n(async function emptyDir(e3) {
|
|
86423
|
+
let t3;
|
|
86424
|
+
try {
|
|
86425
|
+
t3 = await i.readdir(e3);
|
|
86426
|
+
} catch {
|
|
86427
|
+
return c.mkdirs(e3);
|
|
86428
|
+
}
|
|
86429
|
+
return Promise.all(t3.map((t4) => s.remove(o.join(e3, t4))));
|
|
86488
86430
|
});
|
|
86489
86431
|
function emptyDirSync(e3) {
|
|
86490
86432
|
let t3;
|
|
86491
86433
|
try {
|
|
86492
86434
|
t3 = i.readdirSync(e3);
|
|
86493
|
-
} catch
|
|
86435
|
+
} catch {
|
|
86494
86436
|
return c.mkdirsSync(e3);
|
|
86495
86437
|
}
|
|
86496
86438
|
t3.forEach((t4) => {
|
|
@@ -86543,7 +86485,7 @@ var require_fs_extra2 = __commonJS({
|
|
|
86543
86485
|
let t3;
|
|
86544
86486
|
try {
|
|
86545
86487
|
t3 = o.statSync(e3);
|
|
86546
|
-
} catch
|
|
86488
|
+
} catch {
|
|
86547
86489
|
}
|
|
86548
86490
|
if (t3 && t3.isFile())
|
|
86549
86491
|
return;
|
|
@@ -86610,7 +86552,7 @@ var require_fs_extra2 = __commonJS({
|
|
|
86610
86552
|
let r3;
|
|
86611
86553
|
try {
|
|
86612
86554
|
r3 = o.lstatSync(t3);
|
|
86613
|
-
} catch
|
|
86555
|
+
} catch {
|
|
86614
86556
|
}
|
|
86615
86557
|
try {
|
|
86616
86558
|
const t4 = o.lstatSync(e3);
|
|
@@ -86705,7 +86647,7 @@ var require_fs_extra2 = __commonJS({
|
|
|
86705
86647
|
return t3;
|
|
86706
86648
|
try {
|
|
86707
86649
|
r3 = n.lstatSync(e3);
|
|
86708
|
-
} catch
|
|
86650
|
+
} catch {
|
|
86709
86651
|
return "file";
|
|
86710
86652
|
}
|
|
86711
86653
|
return r3 && r3.isDirectory() ? "dir" : "file";
|
|
@@ -86768,7 +86710,7 @@ var require_fs_extra2 = __commonJS({
|
|
|
86768
86710
|
let n2;
|
|
86769
86711
|
try {
|
|
86770
86712
|
n2 = o.lstatSync(t3);
|
|
86771
|
-
} catch
|
|
86713
|
+
} catch {
|
|
86772
86714
|
}
|
|
86773
86715
|
if (n2 && n2.isSymbolicLink()) {
|
|
86774
86716
|
const r4 = o.statSync(e3);
|
|
@@ -86843,7 +86785,7 @@ var require_fs_extra2 = __commonJS({
|
|
|
86843
86785
|
}
|
|
86844
86786
|
}, 81: (e2, t2, r2) => {
|
|
86845
86787
|
"use strict";
|
|
86846
|
-
e2.exports =
|
|
86788
|
+
e2.exports = { ...r2(812), ...r2(2), ...r2(708), ...r2(726), ...r2(779), ...r2(971), ...r2(511), ...r2(701), ...r2(725), ...r2(95) };
|
|
86847
86789
|
}, 779: (e2, t2, r2) => {
|
|
86848
86790
|
"use strict";
|
|
86849
86791
|
const n = r2(5).fromPromise;
|
|
@@ -86874,11 +86816,9 @@ var require_fs_extra2 = __commonJS({
|
|
|
86874
86816
|
"use strict";
|
|
86875
86817
|
const { stringify: n } = r2(208);
|
|
86876
86818
|
const { outputFile: i } = r2(701);
|
|
86877
|
-
function outputJson(
|
|
86878
|
-
|
|
86879
|
-
|
|
86880
|
-
yield i(e3, o, r3);
|
|
86881
|
-
});
|
|
86819
|
+
async function outputJson(e3, t3, r3 = {}) {
|
|
86820
|
+
const o = n(t3, r3);
|
|
86821
|
+
await i(e3, o, r3);
|
|
86882
86822
|
}
|
|
86883
86823
|
e2.exports = outputJson;
|
|
86884
86824
|
}, 971: (e2, t2, r2) => {
|
|
@@ -86895,12 +86835,12 @@ var require_fs_extra2 = __commonJS({
|
|
|
86895
86835
|
const t3 = { mode: 511 };
|
|
86896
86836
|
if (typeof e3 === "number")
|
|
86897
86837
|
return e3;
|
|
86898
|
-
return
|
|
86838
|
+
return { ...t3, ...e3 }.mode;
|
|
86899
86839
|
};
|
|
86900
|
-
e2.exports.makeDir = (e3, t3) =>
|
|
86840
|
+
e2.exports.makeDir = async (e3, t3) => {
|
|
86901
86841
|
i(e3);
|
|
86902
86842
|
return n.mkdir(e3, { mode: getMode(t3), recursive: true });
|
|
86903
|
-
}
|
|
86843
|
+
};
|
|
86904
86844
|
e2.exports.makeDirSync = (e3, t3) => {
|
|
86905
86845
|
i(e3);
|
|
86906
86846
|
return n.mkdirSync(e3, { mode: getMode(t3), recursive: true });
|
|
@@ -87318,7 +87258,7 @@ var require_fs_extra2 = __commonJS({
|
|
|
87318
87258
|
try {
|
|
87319
87259
|
const r4 = t3.rmdirSync(e3, t3);
|
|
87320
87260
|
return r4;
|
|
87321
|
-
} catch
|
|
87261
|
+
} catch {
|
|
87322
87262
|
}
|
|
87323
87263
|
} while (Date.now() - r3 < 500);
|
|
87324
87264
|
} else {
|
|
@@ -88217,28 +88157,26 @@ var require_fs_extra2 = __commonJS({
|
|
|
88217
88157
|
}
|
|
88218
88158
|
const i = r2(5);
|
|
88219
88159
|
const { stringify: o, stripBom: c } = r2(208);
|
|
88220
|
-
function _readFile(
|
|
88221
|
-
|
|
88222
|
-
|
|
88223
|
-
|
|
88224
|
-
|
|
88225
|
-
|
|
88226
|
-
|
|
88227
|
-
|
|
88228
|
-
|
|
88229
|
-
|
|
88230
|
-
|
|
88231
|
-
|
|
88232
|
-
|
|
88233
|
-
|
|
88234
|
-
|
|
88235
|
-
|
|
88236
|
-
|
|
88237
|
-
return null;
|
|
88238
|
-
}
|
|
88160
|
+
async function _readFile(e3, t3 = {}) {
|
|
88161
|
+
if (typeof t3 === "string") {
|
|
88162
|
+
t3 = { encoding: t3 };
|
|
88163
|
+
}
|
|
88164
|
+
const r3 = t3.fs || n;
|
|
88165
|
+
const o2 = "throws" in t3 ? t3.throws : true;
|
|
88166
|
+
let s2 = await i.fromCallback(r3.readFile)(e3, t3);
|
|
88167
|
+
s2 = c(s2);
|
|
88168
|
+
let a2;
|
|
88169
|
+
try {
|
|
88170
|
+
a2 = JSON.parse(s2, t3 ? t3.reviver : null);
|
|
88171
|
+
} catch (t4) {
|
|
88172
|
+
if (o2) {
|
|
88173
|
+
t4.message = `${e3}: ${t4.message}`;
|
|
88174
|
+
throw t4;
|
|
88175
|
+
} else {
|
|
88176
|
+
return null;
|
|
88239
88177
|
}
|
|
88240
|
-
|
|
88241
|
-
|
|
88178
|
+
}
|
|
88179
|
+
return a2;
|
|
88242
88180
|
}
|
|
88243
88181
|
const s = i.fromPromise(_readFile);
|
|
88244
88182
|
function readFileSync(e3, t3 = {}) {
|
|
@@ -88260,12 +88198,10 @@ var require_fs_extra2 = __commonJS({
|
|
|
88260
88198
|
}
|
|
88261
88199
|
}
|
|
88262
88200
|
}
|
|
88263
|
-
function _writeFile(
|
|
88264
|
-
|
|
88265
|
-
|
|
88266
|
-
|
|
88267
|
-
yield i.fromCallback(c2.writeFile)(e3, s2, r3);
|
|
88268
|
-
});
|
|
88201
|
+
async function _writeFile(e3, t3, r3 = {}) {
|
|
88202
|
+
const c2 = r3.fs || n;
|
|
88203
|
+
const s2 = o(t3, r3);
|
|
88204
|
+
await i.fromCallback(c2.writeFile)(e3, s2, r3);
|
|
88269
88205
|
}
|
|
88270
88206
|
const a = i.fromPromise(_writeFile);
|
|
88271
88207
|
function writeFileSync(e3, t3, r3 = {}) {
|
|
@@ -88493,11 +88429,11 @@ var require_chalk2 = __commonJS({
|
|
|
88493
88429
|
} };
|
|
88494
88430
|
}
|
|
88495
88431
|
const f = Object.defineProperties(() => {
|
|
88496
|
-
},
|
|
88432
|
+
}, { ...u, level: { enumerable: true, get() {
|
|
88497
88433
|
return this._generator.level;
|
|
88498
88434
|
}, set(e3) {
|
|
88499
88435
|
this._generator.level = e3;
|
|
88500
|
-
} } })
|
|
88436
|
+
} } });
|
|
88501
88437
|
const createStyler = (e3, t3, n3) => {
|
|
88502
88438
|
let r2;
|
|
88503
88439
|
let s2;
|
|
@@ -88808,7 +88744,7 @@ var require_chalk2 = __commonJS({
|
|
|
88808
88744
|
return [o2 * 100, l * 100, c * 100, s2 * 100];
|
|
88809
88745
|
};
|
|
88810
88746
|
function comparativeDistance(e3, t3) {
|
|
88811
|
-
return
|
|
88747
|
+
return (e3[0] - t3[0]) ** 2 + (e3[1] - t3[1]) ** 2 + (e3[2] - t3[2]) ** 2;
|
|
88812
88748
|
}
|
|
88813
88749
|
o.rgb.keyword = function(e3) {
|
|
88814
88750
|
const t3 = s[e3];
|
|
@@ -88834,9 +88770,9 @@ var require_chalk2 = __commonJS({
|
|
|
88834
88770
|
let t3 = e3[0] / 255;
|
|
88835
88771
|
let n3 = e3[1] / 255;
|
|
88836
88772
|
let r2 = e3[2] / 255;
|
|
88837
|
-
t3 = t3 > 0.04045 ?
|
|
88838
|
-
n3 = n3 > 0.04045 ?
|
|
88839
|
-
r2 = r2 > 0.04045 ?
|
|
88773
|
+
t3 = t3 > 0.04045 ? ((t3 + 0.055) / 1.055) ** 2.4 : t3 / 12.92;
|
|
88774
|
+
n3 = n3 > 0.04045 ? ((n3 + 0.055) / 1.055) ** 2.4 : n3 / 12.92;
|
|
88775
|
+
r2 = r2 > 0.04045 ? ((r2 + 0.055) / 1.055) ** 2.4 : r2 / 12.92;
|
|
88840
88776
|
const s2 = t3 * 0.4124 + n3 * 0.3576 + r2 * 0.1805;
|
|
88841
88777
|
const o2 = t3 * 0.2126 + n3 * 0.7152 + r2 * 0.0722;
|
|
88842
88778
|
const l = t3 * 0.0193 + n3 * 0.1192 + r2 * 0.9505;
|
|
@@ -88850,9 +88786,9 @@ var require_chalk2 = __commonJS({
|
|
|
88850
88786
|
n3 /= 95.047;
|
|
88851
88787
|
r2 /= 100;
|
|
88852
88788
|
s2 /= 108.883;
|
|
88853
|
-
n3 = n3 > 8856e-6 ?
|
|
88854
|
-
r2 = r2 > 8856e-6 ?
|
|
88855
|
-
s2 = s2 > 8856e-6 ?
|
|
88789
|
+
n3 = n3 > 8856e-6 ? n3 ** (1 / 3) : 7.787 * n3 + 16 / 116;
|
|
88790
|
+
r2 = r2 > 8856e-6 ? r2 ** (1 / 3) : 7.787 * r2 + 16 / 116;
|
|
88791
|
+
s2 = s2 > 8856e-6 ? s2 ** (1 / 3) : 7.787 * s2 + 16 / 116;
|
|
88856
88792
|
const l = 116 * r2 - 16;
|
|
88857
88793
|
const c = 500 * (n3 - r2);
|
|
88858
88794
|
const i = 200 * (r2 - s2);
|
|
@@ -89026,9 +88962,9 @@ var require_chalk2 = __commonJS({
|
|
|
89026
88962
|
s2 = t3 * 3.2406 + n3 * -1.5372 + r2 * -0.4986;
|
|
89027
88963
|
o2 = t3 * -0.9689 + n3 * 1.8758 + r2 * 0.0415;
|
|
89028
88964
|
l = t3 * 0.0557 + n3 * -0.204 + r2 * 1.057;
|
|
89029
|
-
s2 = s2 > 31308e-7 ? 1.055 *
|
|
89030
|
-
o2 = o2 > 31308e-7 ? 1.055 *
|
|
89031
|
-
l = l > 31308e-7 ? 1.055 *
|
|
88965
|
+
s2 = s2 > 31308e-7 ? 1.055 * s2 ** (1 / 2.4) - 0.055 : s2 * 12.92;
|
|
88966
|
+
o2 = o2 > 31308e-7 ? 1.055 * o2 ** (1 / 2.4) - 0.055 : o2 * 12.92;
|
|
88967
|
+
l = l > 31308e-7 ? 1.055 * l ** (1 / 2.4) - 0.055 : l * 12.92;
|
|
89032
88968
|
s2 = Math.min(Math.max(0, s2), 1);
|
|
89033
88969
|
o2 = Math.min(Math.max(0, o2), 1);
|
|
89034
88970
|
l = Math.min(Math.max(0, l), 1);
|
|
@@ -89041,9 +88977,9 @@ var require_chalk2 = __commonJS({
|
|
|
89041
88977
|
t3 /= 95.047;
|
|
89042
88978
|
n3 /= 100;
|
|
89043
88979
|
r2 /= 108.883;
|
|
89044
|
-
t3 = t3 > 8856e-6 ?
|
|
89045
|
-
n3 = n3 > 8856e-6 ?
|
|
89046
|
-
r2 = r2 > 8856e-6 ?
|
|
88980
|
+
t3 = t3 > 8856e-6 ? t3 ** (1 / 3) : 7.787 * t3 + 16 / 116;
|
|
88981
|
+
n3 = n3 > 8856e-6 ? n3 ** (1 / 3) : 7.787 * n3 + 16 / 116;
|
|
88982
|
+
r2 = r2 > 8856e-6 ? r2 ** (1 / 3) : 7.787 * r2 + 16 / 116;
|
|
89047
88983
|
const s2 = 116 * n3 - 16;
|
|
89048
88984
|
const o2 = 500 * (t3 - n3);
|
|
89049
88985
|
const l = 200 * (n3 - r2);
|
|
@@ -89059,9 +88995,9 @@ var require_chalk2 = __commonJS({
|
|
|
89059
88995
|
o2 = (t3 + 16) / 116;
|
|
89060
88996
|
s2 = n3 / 500 + o2;
|
|
89061
88997
|
l = o2 - r2 / 200;
|
|
89062
|
-
const c =
|
|
89063
|
-
const i =
|
|
89064
|
-
const a =
|
|
88998
|
+
const c = o2 ** 3;
|
|
88999
|
+
const i = s2 ** 3;
|
|
89000
|
+
const a = l ** 3;
|
|
89065
89001
|
o2 = c > 8856e-6 ? c : (o2 - 16 / 116) / 7.787;
|
|
89066
89002
|
s2 = i > 8856e-6 ? i : (s2 - 16 / 116) / 7.787;
|
|
89067
89003
|
l = a > 8856e-6 ? a : (l - 16 / 116) / 7.787;
|
|
@@ -90317,7 +90253,7 @@ var require_ora3 = __commonJS({
|
|
|
90317
90253
|
if (typeof e3 === "string") {
|
|
90318
90254
|
e3 = { text: e3 };
|
|
90319
90255
|
}
|
|
90320
|
-
this.options =
|
|
90256
|
+
this.options = { text: "", color: "cyan", stream: process.stderr, discardStdin: true, ...e3 };
|
|
90321
90257
|
this.spinner = this.options.spinner;
|
|
90322
90258
|
this.color = this.options.color;
|
|
90323
90259
|
this.hideCursor = this.options.hideCursor !== false;
|
|
@@ -90534,14 +90470,14 @@ var require_ora3 = __commonJS({
|
|
|
90534
90470
|
}
|
|
90535
90471
|
const r3 = new Ora(t3);
|
|
90536
90472
|
r3.start();
|
|
90537
|
-
(() =>
|
|
90473
|
+
(async () => {
|
|
90538
90474
|
try {
|
|
90539
|
-
|
|
90475
|
+
await e3;
|
|
90540
90476
|
r3.succeed();
|
|
90541
|
-
} catch
|
|
90477
|
+
} catch {
|
|
90542
90478
|
r3.fail();
|
|
90543
90479
|
}
|
|
90544
|
-
})
|
|
90480
|
+
})();
|
|
90545
90481
|
return r3;
|
|
90546
90482
|
};
|
|
90547
90483
|
}, 959: (e2) => {
|
|
@@ -98961,7 +98897,7 @@ var require_execa2 = __commonJS({
|
|
|
98961
98897
|
const { joinCommand: w, parseCommand: E, getEscapedCommand: I } = n2(192);
|
|
98962
98898
|
const T = 1e3 * 1e3 * 100;
|
|
98963
98899
|
const getEnv = ({ env: e3, extendEnv: t3, preferLocal: n3, localDir: r2, execPath: o2 }) => {
|
|
98964
|
-
const s2 = t3 ?
|
|
98900
|
+
const s2 = t3 ? { ...process.env, ...e3 } : e3;
|
|
98965
98901
|
if (n3) {
|
|
98966
98902
|
return a.env({ env: s2, cwd: r2, execPath: o2 });
|
|
98967
98903
|
}
|
|
@@ -98972,7 +98908,7 @@ var require_execa2 = __commonJS({
|
|
|
98972
98908
|
e3 = o2.command;
|
|
98973
98909
|
t3 = o2.args;
|
|
98974
98910
|
n3 = o2.options;
|
|
98975
|
-
n3 =
|
|
98911
|
+
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 };
|
|
98976
98912
|
n3.env = getEnv(n3);
|
|
98977
98913
|
n3.stdio = u(n3);
|
|
98978
98914
|
if (process.platform === "win32" && r.basename(e3, ".exe") === "cmd") {
|
|
@@ -99008,8 +98944,8 @@ var require_execa2 = __commonJS({
|
|
|
99008
98944
|
const T2 = { isCanceled: false };
|
|
99009
98945
|
a2.kill = l.bind(null, a2.kill.bind(a2));
|
|
99010
98946
|
a2.cancel = f.bind(null, a2, T2);
|
|
99011
|
-
const handlePromise = () =>
|
|
99012
|
-
const [{ error: e4, exitCode: t4, signal: n4, timedOut: o2 }, c2, u3, l2] =
|
|
98947
|
+
const handlePromise = async () => {
|
|
98948
|
+
const [{ error: e4, exitCode: t4, signal: n4, timedOut: o2 }, c2, u3, l2] = await h(a2, r2.options, E2);
|
|
99013
98949
|
const f2 = handleOutput(r2.options, c2);
|
|
99014
98950
|
const p2 = handleOutput(r2.options, u3);
|
|
99015
98951
|
const m2 = handleOutput(r2.options, l2);
|
|
@@ -99021,7 +98957,7 @@ var require_execa2 = __commonJS({
|
|
|
99021
98957
|
throw c3;
|
|
99022
98958
|
}
|
|
99023
98959
|
return { command: s2, escapedCommand: i2, exitCode: 0, stdout: f2, stderr: p2, all: m2, failed: false, timedOut: false, isCanceled: false, killed: false };
|
|
99024
|
-
}
|
|
98960
|
+
};
|
|
99025
98961
|
const C = c(handlePromise);
|
|
99026
98962
|
x(a2, r2.options.input);
|
|
99027
98963
|
a2.all = y(a2, r2.options);
|
|
@@ -99066,7 +99002,7 @@ var require_execa2 = __commonJS({
|
|
|
99066
99002
|
const r2 = u.node(n3);
|
|
99067
99003
|
const o2 = process.execArgv.filter((e4) => !e4.startsWith("--inspect"));
|
|
99068
99004
|
const { nodePath: s2 = process.execPath, nodeOptions: i2 = o2 } = n3;
|
|
99069
|
-
return execa4(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []],
|
|
99005
|
+
return execa4(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []], { ...n3, stdin: void 0, stdout: void 0, stderr: void 0, stdio: r2, shell: false });
|
|
99070
99006
|
};
|
|
99071
99007
|
}, 192: (e2) => {
|
|
99072
99008
|
"use strict";
|
|
@@ -99222,7 +99158,7 @@ ${o.message}` : x;
|
|
|
99222
99158
|
throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e3}\` (${typeof e3})`);
|
|
99223
99159
|
}
|
|
99224
99160
|
};
|
|
99225
|
-
const setExitHandler =
|
|
99161
|
+
const setExitHandler = async (e3, { cleanup: t3, detached: n3 }, r2) => {
|
|
99226
99162
|
if (!t3 || n3) {
|
|
99227
99163
|
return r2;
|
|
99228
99164
|
}
|
|
@@ -99232,17 +99168,17 @@ ${o.message}` : x;
|
|
|
99232
99168
|
return r2.finally(() => {
|
|
99233
99169
|
s2();
|
|
99234
99170
|
});
|
|
99235
|
-
}
|
|
99171
|
+
};
|
|
99236
99172
|
e2.exports = { spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler };
|
|
99237
99173
|
}, 210: (e2) => {
|
|
99238
99174
|
"use strict";
|
|
99239
|
-
const t2 = (() =>
|
|
99240
|
-
})
|
|
99175
|
+
const t2 = (async () => {
|
|
99176
|
+
})().constructor.prototype;
|
|
99241
99177
|
const n2 = ["then", "catch", "finally"].map((e3) => [e3, Reflect.getOwnPropertyDescriptor(t2, e3)]);
|
|
99242
99178
|
const mergePromise = (e3, t3) => {
|
|
99243
99179
|
for (const [r, o] of n2) {
|
|
99244
99180
|
const n3 = typeof t3 === "function" ? (...e4) => Reflect.apply(o.value, t3(), e4) : o.value.bind(t3);
|
|
99245
|
-
Reflect.defineProperty(e3, r,
|
|
99181
|
+
Reflect.defineProperty(e3, r, { ...o, value: n3 });
|
|
99246
99182
|
}
|
|
99247
99183
|
return e3;
|
|
99248
99184
|
};
|
|
@@ -99326,17 +99262,17 @@ ${o.message}` : x;
|
|
|
99326
99262
|
}
|
|
99327
99263
|
return n3;
|
|
99328
99264
|
};
|
|
99329
|
-
const getBufferedData = (e3, t3) =>
|
|
99265
|
+
const getBufferedData = async (e3, t3) => {
|
|
99330
99266
|
if (!e3) {
|
|
99331
99267
|
return;
|
|
99332
99268
|
}
|
|
99333
99269
|
e3.destroy();
|
|
99334
99270
|
try {
|
|
99335
|
-
return
|
|
99271
|
+
return await t3;
|
|
99336
99272
|
} catch (e4) {
|
|
99337
99273
|
return e4.bufferedData;
|
|
99338
99274
|
}
|
|
99339
|
-
}
|
|
99275
|
+
};
|
|
99340
99276
|
const getStreamPromise = (e3, { encoding: t3, buffer: n3, maxBuffer: r2 }) => {
|
|
99341
99277
|
if (!e3 || !n3) {
|
|
99342
99278
|
return;
|
|
@@ -99346,16 +99282,16 @@ ${o.message}` : x;
|
|
|
99346
99282
|
}
|
|
99347
99283
|
return o.buffer(e3, { maxBuffer: r2 });
|
|
99348
99284
|
};
|
|
99349
|
-
const getSpawnedResult =
|
|
99285
|
+
const getSpawnedResult = async ({ stdout: e3, stderr: t3, all: n3 }, { encoding: r2, buffer: o2, maxBuffer: s2 }, i) => {
|
|
99350
99286
|
const a = getStreamPromise(e3, { encoding: r2, buffer: o2, maxBuffer: s2 });
|
|
99351
99287
|
const c = getStreamPromise(t3, { encoding: r2, buffer: o2, maxBuffer: s2 });
|
|
99352
99288
|
const d = getStreamPromise(n3, { encoding: r2, buffer: o2, maxBuffer: s2 * 2 });
|
|
99353
99289
|
try {
|
|
99354
|
-
return
|
|
99290
|
+
return await Promise.all([i, a, c, d]);
|
|
99355
99291
|
} catch (r3) {
|
|
99356
99292
|
return Promise.all([{ error: r3, signal: r3.signal, timedOut: r3.timedOut }, getBufferedData(e3, a), getBufferedData(t3, c), getBufferedData(n3, d)]);
|
|
99357
99293
|
}
|
|
99358
|
-
}
|
|
99294
|
+
};
|
|
99359
99295
|
const validateInputSync = ({ input: e3 }) => {
|
|
99360
99296
|
if (r(e3)) {
|
|
99361
99297
|
throw new TypeError("The `input` option cannot be a stream in sync mode");
|
|
@@ -99366,7 +99302,7 @@ ${o.message}` : x;
|
|
|
99366
99302
|
"use strict";
|
|
99367
99303
|
const { PassThrough: r } = n2(781);
|
|
99368
99304
|
e2.exports = (e3) => {
|
|
99369
|
-
e3 =
|
|
99305
|
+
e3 = { ...e3 };
|
|
99370
99306
|
const { array: t3 } = e3;
|
|
99371
99307
|
let { encoding: n3 } = e3;
|
|
99372
99308
|
const o = n3 === "buffer";
|
|
@@ -99415,41 +99351,39 @@ ${o.message}` : x;
|
|
|
99415
99351
|
this.name = "MaxBufferError";
|
|
99416
99352
|
}
|
|
99417
99353
|
}
|
|
99418
|
-
function getStream(e3, t3) {
|
|
99419
|
-
|
|
99420
|
-
|
|
99421
|
-
|
|
99422
|
-
|
|
99423
|
-
|
|
99424
|
-
|
|
99425
|
-
|
|
99426
|
-
|
|
99427
|
-
|
|
99428
|
-
|
|
99429
|
-
|
|
99430
|
-
|
|
99431
|
-
|
|
99432
|
-
|
|
99433
|
-
|
|
99434
|
-
|
|
99435
|
-
|
|
99436
|
-
|
|
99437
|
-
|
|
99438
|
-
|
|
99439
|
-
|
|
99440
|
-
|
|
99441
|
-
o2.
|
|
99442
|
-
|
|
99443
|
-
|
|
99444
|
-
}
|
|
99445
|
-
});
|
|
99354
|
+
async function getStream(e3, t3) {
|
|
99355
|
+
if (!e3) {
|
|
99356
|
+
throw new Error("Expected a stream");
|
|
99357
|
+
}
|
|
99358
|
+
t3 = { maxBuffer: Infinity, ...t3 };
|
|
99359
|
+
const { maxBuffer: n3 } = t3;
|
|
99360
|
+
const o2 = i(t3);
|
|
99361
|
+
await new Promise((t4, s2) => {
|
|
99362
|
+
const rejectPromise = (e4) => {
|
|
99363
|
+
if (e4 && o2.getBufferedLength() <= r.MAX_LENGTH) {
|
|
99364
|
+
e4.bufferedData = o2.getBufferedValue();
|
|
99365
|
+
}
|
|
99366
|
+
s2(e4);
|
|
99367
|
+
};
|
|
99368
|
+
(async () => {
|
|
99369
|
+
try {
|
|
99370
|
+
await a(e3, o2);
|
|
99371
|
+
t4();
|
|
99372
|
+
} catch (e4) {
|
|
99373
|
+
rejectPromise(e4);
|
|
99374
|
+
}
|
|
99375
|
+
})();
|
|
99376
|
+
o2.on("data", () => {
|
|
99377
|
+
if (o2.getBufferedLength() > n3) {
|
|
99378
|
+
rejectPromise(new MaxBufferError());
|
|
99379
|
+
}
|
|
99446
99380
|
});
|
|
99447
|
-
return o2.getBufferedValue();
|
|
99448
99381
|
});
|
|
99382
|
+
return o2.getBufferedValue();
|
|
99449
99383
|
}
|
|
99450
99384
|
e2.exports = getStream;
|
|
99451
|
-
e2.exports.buffer = (e3, t3) => getStream(e3,
|
|
99452
|
-
e2.exports.array = (e3, t3) => getStream(e3,
|
|
99385
|
+
e2.exports.buffer = (e3, t3) => getStream(e3, { ...t3, encoding: "buffer" });
|
|
99386
|
+
e2.exports.array = (e3, t3) => getStream(e3, { ...t3, array: true });
|
|
99453
99387
|
e2.exports.MaxBufferError = MaxBufferError;
|
|
99454
99388
|
}, 221: (e2, t2) => {
|
|
99455
99389
|
"use strict";
|
|
@@ -99469,7 +99403,7 @@ ${o.message}` : x;
|
|
|
99469
99403
|
return e3.reduce(getSignalByName, {});
|
|
99470
99404
|
};
|
|
99471
99405
|
const getSignalByName = function(e3, { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 }) {
|
|
99472
|
-
return
|
|
99406
|
+
return { ...e3, [t3]: { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 } };
|
|
99473
99407
|
};
|
|
99474
99408
|
const i = getSignalsByName();
|
|
99475
99409
|
t2.signalsByName = i;
|
|
@@ -99701,7 +99635,7 @@ ${o.message}` : x;
|
|
|
99701
99635
|
const r = n2(17);
|
|
99702
99636
|
const o = n2(460);
|
|
99703
99637
|
const npmRunPath = (e3) => {
|
|
99704
|
-
e3 =
|
|
99638
|
+
e3 = { cwd: process.cwd(), path: process.env[o()], execPath: process.execPath, ...e3 };
|
|
99705
99639
|
let t3;
|
|
99706
99640
|
let n3 = r.resolve(e3.cwd);
|
|
99707
99641
|
const s = [];
|
|
@@ -99717,8 +99651,8 @@ ${o.message}` : x;
|
|
|
99717
99651
|
e2.exports = npmRunPath;
|
|
99718
99652
|
e2.exports["default"] = npmRunPath;
|
|
99719
99653
|
e2.exports.env = (t3) => {
|
|
99720
|
-
t3 =
|
|
99721
|
-
const n3 =
|
|
99654
|
+
t3 = { env: process.env, ...t3 };
|
|
99655
|
+
const n3 = { ...t3.env };
|
|
99722
99656
|
const r2 = o({ env: n3 });
|
|
99723
99657
|
t3.path = n3[r2];
|
|
99724
99658
|
n3[r2] = e2.exports(t3);
|
|
@@ -101127,7 +101061,7 @@ var require_upath2 = __commonJS({
|
|
|
101127
101061
|
_.VERSION = typeof n !== "undefined" && n !== null ? n : "NO-VERSION";
|
|
101128
101062
|
p = function(e3) {
|
|
101129
101063
|
e3 = e3.replace(/\\/g, "/");
|
|
101130
|
-
e3 = e3.replace(
|
|
101064
|
+
e3 = e3.replace(/(?<!^)\/+/g, "/");
|
|
101131
101065
|
return e3;
|
|
101132
101066
|
};
|
|
101133
101067
|
for (c in o) {
|
|
@@ -101423,9 +101357,7 @@ var require_pkg_up2 = __commonJS({
|
|
|
101423
101357
|
};
|
|
101424
101358
|
}, 800: (e2, r2, n2) => {
|
|
101425
101359
|
const t = n2(485);
|
|
101426
|
-
e2.exports =
|
|
101427
|
-
return t("package.json", { cwd: e3 });
|
|
101428
|
-
});
|
|
101360
|
+
e2.exports = async ({ cwd: e3 } = {}) => t("package.json", { cwd: e3 });
|
|
101429
101361
|
e2.exports.sync = ({ cwd: e3 } = {}) => t.sync("package.json", { cwd: e3 });
|
|
101430
101362
|
}, 147: (e2) => {
|
|
101431
101363
|
e2.exports = require("fs");
|
|
@@ -104476,7 +104408,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
104476
104408
|
}
|
|
104477
104409
|
if (t4.nodes && t4.ranges > 0) {
|
|
104478
104410
|
let r4 = s.reduce(t4.nodes);
|
|
104479
|
-
let i2 = n(...r4,
|
|
104411
|
+
let i2 = n(...r4, { ...e3, wrap: false, toRegex: true });
|
|
104480
104412
|
if (i2.length !== 0) {
|
|
104481
104413
|
return r4.length > 1 && i2.length > 1 ? `(${i2})` : i2;
|
|
104482
104414
|
}
|
|
@@ -104902,13 +104834,11 @@ var require_fast_glob2 = __commonJS({
|
|
|
104902
104834
|
const a = r2(1066);
|
|
104903
104835
|
const u = r2(7190);
|
|
104904
104836
|
const c = r2(3828);
|
|
104905
|
-
function FastGlob(t3, e3) {
|
|
104906
|
-
|
|
104907
|
-
|
|
104908
|
-
|
|
104909
|
-
|
|
104910
|
-
return c.array.flatten(n2);
|
|
104911
|
-
});
|
|
104837
|
+
async function FastGlob(t3, e3) {
|
|
104838
|
+
assertPatternsInput(t3);
|
|
104839
|
+
const r3 = getWorks(t3, i.default, e3);
|
|
104840
|
+
const n2 = await Promise.all(r3);
|
|
104841
|
+
return c.array.flatten(n2);
|
|
104912
104842
|
}
|
|
104913
104843
|
(function(t3) {
|
|
104914
104844
|
function sync(t4, e3) {
|
|
@@ -106079,7 +106009,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
106079
106009
|
};
|
|
106080
106010
|
const toRange = (t3, e3, r3, n2) => {
|
|
106081
106011
|
if (r3) {
|
|
106082
|
-
return s(t3, e3,
|
|
106012
|
+
return s(t3, e3, { wrap: false, ...n2 });
|
|
106083
106013
|
}
|
|
106084
106014
|
let i = String.fromCharCode(t3);
|
|
106085
106015
|
if (t3 === e3)
|
|
@@ -106145,7 +106075,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
106145
106075
|
g++;
|
|
106146
106076
|
}
|
|
106147
106077
|
if (n2.toRegex === true) {
|
|
106148
|
-
return r3 > 1 ? toSequence(d, n2) : toRegex(_, null,
|
|
106078
|
+
return r3 > 1 ? toSequence(d, n2) : toRegex(_, null, { wrap: false, ...n2 });
|
|
106149
106079
|
}
|
|
106150
106080
|
return _;
|
|
106151
106081
|
};
|
|
@@ -106187,7 +106117,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
106187
106117
|
if (isObject4(r3)) {
|
|
106188
106118
|
return fill(t3, e3, 0, r3);
|
|
106189
106119
|
}
|
|
106190
|
-
let s2 =
|
|
106120
|
+
let s2 = { ...n2 };
|
|
106191
106121
|
if (s2.capture === true)
|
|
106192
106122
|
s2.wrap = true;
|
|
106193
106123
|
r3 = r3 || s2.step || 1;
|
|
@@ -106511,7 +106441,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
106511
106441
|
}
|
|
106512
106442
|
};
|
|
106513
106443
|
for (let o3 = 0; o3 < e3.length; o3++) {
|
|
106514
|
-
let u2 = i(String(e3[o3]),
|
|
106444
|
+
let u2 = i(String(e3[o3]), { ...r3, onResult }, true);
|
|
106515
106445
|
let c2 = u2.state.negated || u2.state.negatedExtglob;
|
|
106516
106446
|
if (c2)
|
|
106517
106447
|
a++;
|
|
@@ -106553,7 +106483,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
106553
106483
|
r3.onResult(t4);
|
|
106554
106484
|
s2.push(t4.output);
|
|
106555
106485
|
};
|
|
106556
|
-
let i2 = new Set(micromatch(t3, e3,
|
|
106486
|
+
let i2 = new Set(micromatch(t3, e3, { ...r3, onResult }));
|
|
106557
106487
|
for (let t4 of s2) {
|
|
106558
106488
|
if (!i2.has(t4)) {
|
|
106559
106489
|
n2.add(t4);
|
|
@@ -106576,7 +106506,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
106576
106506
|
return true;
|
|
106577
106507
|
}
|
|
106578
106508
|
}
|
|
106579
|
-
return micromatch.isMatch(t3, e3,
|
|
106509
|
+
return micromatch.isMatch(t3, e3, { ...r3, contains: true });
|
|
106580
106510
|
};
|
|
106581
106511
|
micromatch.matchKeys = (t3, e3, r3) => {
|
|
106582
106512
|
if (!o.isObject(t3)) {
|
|
@@ -106616,7 +106546,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
106616
106546
|
};
|
|
106617
106547
|
micromatch.capture = (t3, e3, r3) => {
|
|
106618
106548
|
let n2 = o.isWindows(r3);
|
|
106619
|
-
let s2 = i.makeRe(String(t3),
|
|
106549
|
+
let s2 = i.makeRe(String(t3), { ...r3, capture: true });
|
|
106620
106550
|
let a = s2.exec(n2 ? o.toPosixSlashes(e3) : e3);
|
|
106621
106551
|
if (a) {
|
|
106622
106552
|
return a.slice(1).map((t4) => t4 === void 0 ? "" : t4);
|
|
@@ -106644,7 +106574,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
106644
106574
|
micromatch.braceExpand = (t3, e3) => {
|
|
106645
106575
|
if (typeof t3 !== "string")
|
|
106646
106576
|
throw new TypeError("Expected a string");
|
|
106647
|
-
return micromatch.braces(t3,
|
|
106577
|
+
return micromatch.braces(t3, { ...e3, expand: true });
|
|
106648
106578
|
};
|
|
106649
106579
|
t2.exports = micromatch;
|
|
106650
106580
|
}, 376: (t2, e2, r2) => {
|
|
@@ -106671,7 +106601,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
106671
106601
|
const m = `[^.${c}]`;
|
|
106672
106602
|
const v = `${f}*?`;
|
|
106673
106603
|
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 };
|
|
106674
|
-
const A =
|
|
106604
|
+
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}]|$)` };
|
|
106675
106605
|
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" };
|
|
106676
106606
|
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) {
|
|
106677
106607
|
return { "!": { type: "negate", open: "(?:(?!(?:", close: `))${t3.STAR})` }, "?": { type: "qmark", open: "(?:", close: ")?" }, "+": { type: "plus", open: "(?:", close: ")+" }, "*": { type: "star", open: "(?:", close: ")*" }, "@": { type: "at", open: "(?:", close: ")" } };
|
|
@@ -106702,7 +106632,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
106702
106632
|
throw new TypeError("Expected a string");
|
|
106703
106633
|
}
|
|
106704
106634
|
t3 = c[t3] || t3;
|
|
106705
|
-
const r3 =
|
|
106635
|
+
const r3 = { ...e3 };
|
|
106706
106636
|
const l = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
|
|
106707
106637
|
let f = t3.length;
|
|
106708
106638
|
if (f > l) {
|
|
@@ -106794,7 +106724,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
106794
106724
|
M = t4;
|
|
106795
106725
|
};
|
|
106796
106726
|
const extglobOpen = (t4, e4) => {
|
|
106797
|
-
const n2 =
|
|
106727
|
+
const n2 = { ...y[e4], conditions: 1, inner: "" };
|
|
106798
106728
|
n2.prev = M;
|
|
106799
106729
|
n2.parens = H.parens;
|
|
106800
106730
|
n2.output = H.output;
|
|
@@ -106816,7 +106746,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
106816
106746
|
n2 = t4.close = `)$))${i2}`;
|
|
106817
106747
|
}
|
|
106818
106748
|
if (t4.inner.includes("*") && (s2 = remaining()) && /^\.[^\\/.]+$/.test(s2)) {
|
|
106819
|
-
const r4 = parse3(s2,
|
|
106749
|
+
const r4 = parse3(s2, { ...e3, fastpaths: false }).output;
|
|
106820
106750
|
n2 = t4.close = `)${r4})${i2})`;
|
|
106821
106751
|
}
|
|
106822
106752
|
if (t4.prev.type === "bos") {
|
|
@@ -107338,7 +107268,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
107338
107268
|
return H;
|
|
107339
107269
|
};
|
|
107340
107270
|
parse3.fastpaths = (t3, e3) => {
|
|
107341
|
-
const r3 =
|
|
107271
|
+
const r3 = { ...e3 };
|
|
107342
107272
|
const o2 = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
|
|
107343
107273
|
const a2 = t3.length;
|
|
107344
107274
|
if (a2 > o2) {
|
|
@@ -107429,7 +107359,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
107429
107359
|
delete a2.state;
|
|
107430
107360
|
let isIgnored = () => false;
|
|
107431
107361
|
if (s2.ignore) {
|
|
107432
|
-
const t4 =
|
|
107362
|
+
const t4 = { ...e3, ignore: null, onMatch: null, onResult: null };
|
|
107433
107363
|
isIgnored = picomatch(s2.ignore, t4, r3);
|
|
107434
107364
|
}
|
|
107435
107365
|
const matcher = (r4, n3 = false) => {
|
|
@@ -107491,7 +107421,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
107491
107421
|
picomatch.parse = (t3, e3) => {
|
|
107492
107422
|
if (Array.isArray(t3))
|
|
107493
107423
|
return t3.map((t4) => picomatch.parse(t4, e3));
|
|
107494
|
-
return i(t3,
|
|
107424
|
+
return i(t3, { ...e3, fastpaths: false });
|
|
107495
107425
|
};
|
|
107496
107426
|
picomatch.scan = (t3, e3) => s(t3, e3);
|
|
107497
107427
|
picomatch.compileRe = (t3, e3, r3 = false, n2 = false) => {
|
|
@@ -107956,7 +107886,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
107956
107886
|
if (n(e3) === false) {
|
|
107957
107887
|
throw new TypeError("toRegexRange: expected the second argument to be a number.");
|
|
107958
107888
|
}
|
|
107959
|
-
let s =
|
|
107889
|
+
let s = { relaxZeros: true, ...r3 };
|
|
107960
107890
|
if (typeof s.strictZeros === "boolean") {
|
|
107961
107891
|
s.relaxZeros = s.strictZeros === false;
|
|
107962
107892
|
}
|
|
@@ -108234,19 +108164,19 @@ var require_globby2 = __commonJS({
|
|
|
108234
108164
|
}
|
|
108235
108165
|
return [n.posix.join(t3, "**")];
|
|
108236
108166
|
};
|
|
108237
|
-
t2.exports = (t3, e3) =>
|
|
108238
|
-
e3 =
|
|
108167
|
+
t2.exports = async (t3, e3) => {
|
|
108168
|
+
e3 = { cwd: process.cwd(), ...e3 };
|
|
108239
108169
|
if (typeof e3.cwd !== "string") {
|
|
108240
108170
|
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
|
|
108241
108171
|
}
|
|
108242
|
-
const r3 =
|
|
108243
|
-
const r4 =
|
|
108172
|
+
const r3 = await Promise.all([].concat(t3).map(async (t4) => {
|
|
108173
|
+
const r4 = await s.isDirectory(getPath(t4, e3.cwd));
|
|
108244
108174
|
return r4 ? getGlob(t4, e3) : t4;
|
|
108245
|
-
}))
|
|
108175
|
+
}));
|
|
108246
108176
|
return [].concat.apply([], r3);
|
|
108247
|
-
}
|
|
108177
|
+
};
|
|
108248
108178
|
t2.exports.sync = (t3, e3) => {
|
|
108249
|
-
e3 =
|
|
108179
|
+
e3 = { cwd: process.cwd(), ...e3 };
|
|
108250
108180
|
if (typeof e3.cwd !== "string") {
|
|
108251
108181
|
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
|
|
108252
108182
|
}
|
|
@@ -108291,24 +108221,24 @@ var require_globby2 = __commonJS({
|
|
|
108291
108221
|
return o.join(t3, e3);
|
|
108292
108222
|
};
|
|
108293
108223
|
const getIsIgnoredPredecate = (t3, e3) => (r3) => t3.ignores(a(o.relative(e3, ensureAbsolutePathForCwd(e3, r3.path || r3))));
|
|
108294
|
-
const getFile = (t3, e3) =>
|
|
108224
|
+
const getFile = async (t3, e3) => {
|
|
108295
108225
|
const r3 = o.join(e3, t3);
|
|
108296
|
-
const n2 =
|
|
108226
|
+
const n2 = await u(r3, "utf8");
|
|
108297
108227
|
return { cwd: e3, filePath: r3, content: n2 };
|
|
108298
|
-
}
|
|
108228
|
+
};
|
|
108299
108229
|
const getFileSync = (t3, e3) => {
|
|
108300
108230
|
const r3 = o.join(e3, t3);
|
|
108301
108231
|
const n2 = s.readFileSync(r3, "utf8");
|
|
108302
108232
|
return { cwd: e3, filePath: r3, content: n2 };
|
|
108303
108233
|
};
|
|
108304
108234
|
const normalizeOptions = ({ ignore: t3 = [], cwd: e3 = a(process.cwd()) } = {}) => ({ ignore: t3, cwd: e3 });
|
|
108305
|
-
t2.exports = (t3) =>
|
|
108235
|
+
t2.exports = async (t3) => {
|
|
108306
108236
|
t3 = normalizeOptions(t3);
|
|
108307
|
-
const e3 =
|
|
108308
|
-
const r3 =
|
|
108237
|
+
const e3 = await i("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
|
|
108238
|
+
const r3 = await Promise.all(e3.map((e4) => getFile(e4, t3.cwd)));
|
|
108309
108239
|
const n2 = reduceIgnore(r3);
|
|
108310
108240
|
return getIsIgnoredPredecate(n2, t3.cwd);
|
|
108311
|
-
}
|
|
108241
|
+
};
|
|
108312
108242
|
t2.exports.sync = (t3) => {
|
|
108313
108243
|
t3 = normalizeOptions(t3);
|
|
108314
108244
|
const e3 = i.sync("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
|
|
@@ -108339,7 +108269,7 @@ var require_globby2 = __commonJS({
|
|
|
108339
108269
|
let e3;
|
|
108340
108270
|
try {
|
|
108341
108271
|
e3 = n.statSync(t3.cwd);
|
|
108342
|
-
} catch
|
|
108272
|
+
} catch {
|
|
108343
108273
|
return;
|
|
108344
108274
|
}
|
|
108345
108275
|
if (!e3.isDirectory()) {
|
|
@@ -108352,13 +108282,13 @@ var require_globby2 = __commonJS({
|
|
|
108352
108282
|
assertPatternsInput(t3);
|
|
108353
108283
|
checkCwdOption(e3);
|
|
108354
108284
|
const r3 = [];
|
|
108355
|
-
e3 =
|
|
108285
|
+
e3 = { ignore: [], expandDirectories: true, ...e3 };
|
|
108356
108286
|
for (const [n2, s2] of t3.entries()) {
|
|
108357
108287
|
if (isNegative(s2)) {
|
|
108358
108288
|
continue;
|
|
108359
108289
|
}
|
|
108360
108290
|
const o2 = t3.slice(n2).filter((t4) => isNegative(t4)).map((t4) => t4.slice(1));
|
|
108361
|
-
const i2 =
|
|
108291
|
+
const i2 = { ...e3, ignore: e3.ignore.concat(o2) };
|
|
108362
108292
|
r3.push({ pattern: s2, options: i2 });
|
|
108363
108293
|
}
|
|
108364
108294
|
return r3;
|
|
@@ -108369,9 +108299,9 @@ var require_globby2 = __commonJS({
|
|
|
108369
108299
|
r3.cwd = t3.options.cwd;
|
|
108370
108300
|
}
|
|
108371
108301
|
if (Array.isArray(t3.options.expandDirectories)) {
|
|
108372
|
-
r3 =
|
|
108302
|
+
r3 = { ...r3, files: t3.options.expandDirectories };
|
|
108373
108303
|
} else if (typeof t3.options.expandDirectories === "object") {
|
|
108374
|
-
r3 =
|
|
108304
|
+
r3 = { ...r3, ...t3.options.expandDirectories };
|
|
108375
108305
|
}
|
|
108376
108306
|
return e3(t3.pattern, r3);
|
|
108377
108307
|
};
|
|
@@ -108384,22 +108314,20 @@ var require_globby2 = __commonJS({
|
|
|
108384
108314
|
}
|
|
108385
108315
|
return { pattern: e3, options: r3 };
|
|
108386
108316
|
};
|
|
108387
|
-
t2.exports = (t3, e3) =>
|
|
108317
|
+
t2.exports = async (t3, e3) => {
|
|
108388
108318
|
const r3 = generateGlobTasks(t3, e3);
|
|
108389
|
-
const getFilter = () =>
|
|
108390
|
-
|
|
108391
|
-
|
|
108392
|
-
|
|
108393
|
-
const t4 = yield Promise.all(r3.map((t5) => __async(exports, null, function* () {
|
|
108394
|
-
const e4 = yield getPattern(t5, c);
|
|
108319
|
+
const getFilter = async () => e3 && e3.gitignore ? a({ cwd: e3.cwd, ignore: e3.ignore }) : DEFAULT_FILTER;
|
|
108320
|
+
const getTasks = async () => {
|
|
108321
|
+
const t4 = await Promise.all(r3.map(async (t5) => {
|
|
108322
|
+
const e4 = await getPattern(t5, c);
|
|
108395
108323
|
return Promise.all(e4.map(globToTask(t5)));
|
|
108396
|
-
}))
|
|
108324
|
+
}));
|
|
108397
108325
|
return s(...t4);
|
|
108398
|
-
}
|
|
108399
|
-
const [n2, o2] =
|
|
108400
|
-
const p2 =
|
|
108326
|
+
};
|
|
108327
|
+
const [n2, o2] = await Promise.all([getFilter(), getTasks()]);
|
|
108328
|
+
const p2 = await Promise.all(o2.map((t4) => i(t4.pattern, t4.options)));
|
|
108401
108329
|
return s(...p2).filter((t4) => !n2(getPathString(t4)));
|
|
108402
|
-
}
|
|
108330
|
+
};
|
|
108403
108331
|
t2.exports.sync = (t3, e3) => {
|
|
108404
108332
|
const r3 = generateGlobTasks(t3, e3);
|
|
108405
108333
|
const n2 = [];
|
|
@@ -108753,21 +108681,19 @@ var require_globby2 = __commonJS({
|
|
|
108753
108681
|
"use strict";
|
|
108754
108682
|
const { promisify: n } = r2(837);
|
|
108755
108683
|
const s = r2(147);
|
|
108756
|
-
function isType4(t3, e3, r3) {
|
|
108757
|
-
|
|
108758
|
-
|
|
108759
|
-
|
|
108760
|
-
|
|
108761
|
-
|
|
108762
|
-
|
|
108763
|
-
|
|
108764
|
-
|
|
108765
|
-
|
|
108766
|
-
return false;
|
|
108767
|
-
}
|
|
108768
|
-
throw t4;
|
|
108684
|
+
async function isType4(t3, e3, r3) {
|
|
108685
|
+
if (typeof r3 !== "string") {
|
|
108686
|
+
throw new TypeError(`Expected a string, got ${typeof r3}`);
|
|
108687
|
+
}
|
|
108688
|
+
try {
|
|
108689
|
+
const o = await n(s[t3])(r3);
|
|
108690
|
+
return o[e3]();
|
|
108691
|
+
} catch (t4) {
|
|
108692
|
+
if (t4.code === "ENOENT") {
|
|
108693
|
+
return false;
|
|
108769
108694
|
}
|
|
108770
|
-
|
|
108695
|
+
throw t4;
|
|
108696
|
+
}
|
|
108771
108697
|
}
|
|
108772
108698
|
function isTypeSync(t3, e3, r3) {
|
|
108773
108699
|
if (typeof r3 !== "string") {
|
|
@@ -111142,15 +111068,15 @@ var require_gzip_size2 = __commonJS({
|
|
|
111142
111068
|
const i = t2(796);
|
|
111143
111069
|
const { promisify: a } = t2(837);
|
|
111144
111070
|
const s = t2(325);
|
|
111145
|
-
const getOptions = (e3) =>
|
|
111071
|
+
const getOptions = (e3) => ({ level: 9, ...e3 });
|
|
111146
111072
|
const p = a(i.gzip);
|
|
111147
|
-
e2.exports = (e3, r3) =>
|
|
111073
|
+
e2.exports = async (e3, r3) => {
|
|
111148
111074
|
if (!e3) {
|
|
111149
111075
|
return 0;
|
|
111150
111076
|
}
|
|
111151
|
-
const t3 =
|
|
111077
|
+
const t3 = await p(e3, getOptions(r3));
|
|
111152
111078
|
return t3.length;
|
|
111153
|
-
}
|
|
111079
|
+
};
|
|
111154
111080
|
e2.exports.sync = (e3, r3) => i.gzipSync(e3, getOptions(r3)).length;
|
|
111155
111081
|
e2.exports.stream = (e3) => {
|
|
111156
111082
|
const r3 = new o.PassThrough();
|
|
@@ -113920,12 +113846,10 @@ Expecting one of '${i3.join("', '")}'`);
|
|
|
113920
113846
|
this._parseCommand([], i3);
|
|
113921
113847
|
return this;
|
|
113922
113848
|
}
|
|
113923
|
-
parseAsync(t3, e3) {
|
|
113924
|
-
|
|
113925
|
-
|
|
113926
|
-
|
|
113927
|
-
return this;
|
|
113928
|
-
});
|
|
113849
|
+
async parseAsync(t3, e3) {
|
|
113850
|
+
const i3 = this._prepareUserArgs(t3, e3);
|
|
113851
|
+
await this._parseCommand([], i3);
|
|
113852
|
+
return this;
|
|
113929
113853
|
}
|
|
113930
113854
|
_executeSubCommand(t3, e3) {
|
|
113931
113855
|
e3 = e3.slice();
|
|
@@ -115732,11 +115656,11 @@ var require_fs = __commonJS({
|
|
|
115732
115656
|
}
|
|
115733
115657
|
return false;
|
|
115734
115658
|
};
|
|
115735
|
-
var emptyDir = (dir) =>
|
|
115736
|
-
if (
|
|
115737
|
-
|
|
115659
|
+
var emptyDir = async (dir) => {
|
|
115660
|
+
if (await _compiled.fs.pathExists(dir)) {
|
|
115661
|
+
await _compiled.fs.emptyDir(dir);
|
|
115738
115662
|
}
|
|
115739
|
-
}
|
|
115663
|
+
};
|
|
115740
115664
|
}
|
|
115741
115665
|
});
|
|
115742
115666
|
|
|
@@ -116148,19 +116072,19 @@ var require_project = __commonJS({
|
|
|
116148
116072
|
return false;
|
|
116149
116073
|
}
|
|
116150
116074
|
};
|
|
116151
|
-
var isApiOnly = (appDirectory, entryDir, apiDir) =>
|
|
116152
|
-
const existApi =
|
|
116153
|
-
const existSrc =
|
|
116075
|
+
var isApiOnly = async (appDirectory, entryDir, apiDir) => {
|
|
116076
|
+
const existApi = await _compiled.fs.pathExists(apiDir !== null && apiDir !== void 0 ? apiDir : _path.default.join(appDirectory, "api"));
|
|
116077
|
+
const existSrc = await _compiled.fs.pathExists(_path.default.join(appDirectory, entryDir !== null && entryDir !== void 0 ? entryDir : "src"));
|
|
116154
116078
|
const options = (0, _compiled.minimist)((0, _commands.getArgv)());
|
|
116155
116079
|
if (options["api-only"]) {
|
|
116156
116080
|
return true;
|
|
116157
116081
|
}
|
|
116158
116082
|
return existApi && !existSrc;
|
|
116159
|
-
}
|
|
116160
|
-
var isWebOnly = () =>
|
|
116083
|
+
};
|
|
116084
|
+
var isWebOnly = async () => {
|
|
116161
116085
|
const options = (0, _compiled.minimist)((0, _commands.getArgv)());
|
|
116162
116086
|
return Boolean(options["web-only"]);
|
|
116163
|
-
}
|
|
116087
|
+
};
|
|
116164
116088
|
var isBeyondReact17 = (cwd) => {
|
|
116165
116089
|
const pkgPath = _pkgup.default.sync({
|
|
116166
116090
|
cwd
|
|
@@ -116169,7 +116093,10 @@ var require_project = __commonJS({
|
|
|
116169
116093
|
return false;
|
|
116170
116094
|
}
|
|
116171
116095
|
const pkgInfo = JSON.parse(_compiled.fs.readFileSync(pkgPath, "utf8"));
|
|
116172
|
-
const deps =
|
|
116096
|
+
const deps = {
|
|
116097
|
+
...pkgInfo.devDependencies,
|
|
116098
|
+
...pkgInfo.dependencies
|
|
116099
|
+
};
|
|
116173
116100
|
if (typeof deps.react !== "string") {
|
|
116174
116101
|
return false;
|
|
116175
116102
|
}
|
|
@@ -116181,7 +116108,10 @@ var require_project = __commonJS({
|
|
|
116181
116108
|
return false;
|
|
116182
116109
|
}
|
|
116183
116110
|
const pkgInfo = JSON.parse(_compiled.fs.readFileSync(pkgPath, "utf8"));
|
|
116184
|
-
const deps =
|
|
116111
|
+
const deps = {
|
|
116112
|
+
...pkgInfo.devDependencies,
|
|
116113
|
+
...pkgInfo.dependencies
|
|
116114
|
+
};
|
|
116185
116115
|
if (typeof deps.react !== "string") {
|
|
116186
116116
|
return false;
|
|
116187
116117
|
}
|
|
@@ -116236,55 +116166,47 @@ var require_package4 = __commonJS({
|
|
|
116236
116166
|
}
|
|
116237
116167
|
});
|
|
116238
116168
|
var _compiled = require_compiled();
|
|
116239
|
-
function getPnpmVersion() {
|
|
116240
|
-
|
|
116241
|
-
|
|
116242
|
-
|
|
116243
|
-
|
|
116244
|
-
return stdout;
|
|
116245
|
-
});
|
|
116169
|
+
async function getPnpmVersion() {
|
|
116170
|
+
const { stdout } = await (0, _compiled.execa)("pnpm", [
|
|
116171
|
+
"--version"
|
|
116172
|
+
]);
|
|
116173
|
+
return stdout;
|
|
116246
116174
|
}
|
|
116247
|
-
function canUseNpm5() {
|
|
116248
|
-
|
|
116249
|
-
|
|
116250
|
-
|
|
116251
|
-
|
|
116252
|
-
|
|
116253
|
-
|
|
116254
|
-
|
|
116255
|
-
|
|
116256
|
-
|
|
116257
|
-
|
|
116258
|
-
}
|
|
116259
|
-
});
|
|
116175
|
+
async function canUseNpm5() {
|
|
116176
|
+
try {
|
|
116177
|
+
await (0, _compiled.execa)("npm", [
|
|
116178
|
+
"--version"
|
|
116179
|
+
], {
|
|
116180
|
+
env: process.env
|
|
116181
|
+
});
|
|
116182
|
+
return true;
|
|
116183
|
+
} catch (e) {
|
|
116184
|
+
return false;
|
|
116185
|
+
}
|
|
116260
116186
|
}
|
|
116261
|
-
function canUseYarn3() {
|
|
116262
|
-
|
|
116263
|
-
|
|
116264
|
-
|
|
116265
|
-
|
|
116266
|
-
|
|
116267
|
-
|
|
116268
|
-
|
|
116269
|
-
|
|
116270
|
-
|
|
116271
|
-
|
|
116272
|
-
}
|
|
116273
|
-
});
|
|
116187
|
+
async function canUseYarn3() {
|
|
116188
|
+
try {
|
|
116189
|
+
await (0, _compiled.execa)("yarn", [
|
|
116190
|
+
"--version"
|
|
116191
|
+
], {
|
|
116192
|
+
env: process.env
|
|
116193
|
+
});
|
|
116194
|
+
return true;
|
|
116195
|
+
} catch (e) {
|
|
116196
|
+
return false;
|
|
116197
|
+
}
|
|
116274
116198
|
}
|
|
116275
|
-
function canUsePnpm4() {
|
|
116276
|
-
|
|
116277
|
-
|
|
116278
|
-
|
|
116279
|
-
|
|
116280
|
-
|
|
116281
|
-
|
|
116282
|
-
|
|
116283
|
-
|
|
116284
|
-
|
|
116285
|
-
|
|
116286
|
-
}
|
|
116287
|
-
});
|
|
116199
|
+
async function canUsePnpm4() {
|
|
116200
|
+
try {
|
|
116201
|
+
await (0, _compiled.execa)("pnpm", [
|
|
116202
|
+
"--version"
|
|
116203
|
+
], {
|
|
116204
|
+
env: process.env
|
|
116205
|
+
});
|
|
116206
|
+
return true;
|
|
116207
|
+
} catch (e) {
|
|
116208
|
+
return false;
|
|
116209
|
+
}
|
|
116288
116210
|
}
|
|
116289
116211
|
}
|
|
116290
116212
|
});
|
|
@@ -116337,31 +116259,29 @@ var require_data = __commonJS({
|
|
|
116337
116259
|
var _is = require_is();
|
|
116338
116260
|
var _package = require_package4();
|
|
116339
116261
|
var MAX_TIMES = 5;
|
|
116340
|
-
function getPackageManager2() {
|
|
116341
|
-
|
|
116342
|
-
|
|
116343
|
-
|
|
116344
|
-
|
|
116345
|
-
|
|
116346
|
-
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "pnpm-lock.yaml"))) {
|
|
116347
|
-
return "pnpm";
|
|
116348
|
-
}
|
|
116349
|
-
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "yarn.lock"))) {
|
|
116350
|
-
return "yarn";
|
|
116351
|
-
}
|
|
116352
|
-
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "package-lock.json"))) {
|
|
116353
|
-
return "npm";
|
|
116354
|
-
}
|
|
116355
|
-
appDirectory = _path.default.join(appDirectory, "..");
|
|
116356
|
-
}
|
|
116357
|
-
if (yield (0, _package.canUsePnpm)()) {
|
|
116262
|
+
async function getPackageManager2(cwd = process.cwd()) {
|
|
116263
|
+
let appDirectory = cwd;
|
|
116264
|
+
let times = 0;
|
|
116265
|
+
while (_os.default.homedir() !== appDirectory && times < MAX_TIMES) {
|
|
116266
|
+
times++;
|
|
116267
|
+
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "pnpm-lock.yaml"))) {
|
|
116358
116268
|
return "pnpm";
|
|
116359
116269
|
}
|
|
116360
|
-
if (
|
|
116270
|
+
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "yarn.lock"))) {
|
|
116361
116271
|
return "yarn";
|
|
116362
116272
|
}
|
|
116363
|
-
|
|
116364
|
-
|
|
116273
|
+
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "package-lock.json"))) {
|
|
116274
|
+
return "npm";
|
|
116275
|
+
}
|
|
116276
|
+
appDirectory = _path.default.join(appDirectory, "..");
|
|
116277
|
+
}
|
|
116278
|
+
if (await (0, _package.canUsePnpm)()) {
|
|
116279
|
+
return "pnpm";
|
|
116280
|
+
}
|
|
116281
|
+
if (await (0, _package.canUseYarn)()) {
|
|
116282
|
+
return "yarn";
|
|
116283
|
+
}
|
|
116284
|
+
return "npm";
|
|
116365
116285
|
}
|
|
116366
116286
|
var getCoreJsVersion = (corejsPkgPath) => {
|
|
116367
116287
|
try {
|
|
@@ -116441,7 +116361,10 @@ var require_config3 = __commonJS({
|
|
|
116441
116361
|
if (optionsByEntry === void 0 && isMainEntry && packageName) {
|
|
116442
116362
|
optionsByEntry = getOptionsByEntryName(packageName, optionsByEntries);
|
|
116443
116363
|
}
|
|
116444
|
-
return optionsByEntry !== void 0 ? (0, _is.isPlainObject)(optionsByEntry) && (0, _is.isPlainObject)(baseOptions) ?
|
|
116364
|
+
return optionsByEntry !== void 0 ? (0, _is.isPlainObject)(optionsByEntry) && (0, _is.isPlainObject)(baseOptions) ? {
|
|
116365
|
+
...baseOptions,
|
|
116366
|
+
...optionsByEntry
|
|
116367
|
+
} : optionsByEntry : baseOptions;
|
|
116445
116368
|
} else {
|
|
116446
116369
|
return baseOptions;
|
|
116447
116370
|
}
|
|
@@ -116479,10 +116402,10 @@ var require_get2 = __commonJS({
|
|
|
116479
116402
|
var _fs = require_fs();
|
|
116480
116403
|
_export_star._(require_data(), exports);
|
|
116481
116404
|
_export_star._(require_config3(), exports);
|
|
116482
|
-
var getServerConfig = (appDirectory, configFile) =>
|
|
116405
|
+
var getServerConfig = async (appDirectory, configFile) => {
|
|
116483
116406
|
const configFilePath = (0, _fs.findExists)(_constants.CONFIG_FILE_EXTENSIONS.map((extension) => _path.default.resolve(appDirectory, `${configFile}${extension}`)));
|
|
116484
116407
|
return configFilePath;
|
|
116485
|
-
}
|
|
116408
|
+
};
|
|
116486
116409
|
var getTargetDir = (from, baseDir, targetBaseDir) => {
|
|
116487
116410
|
const relativePath = _path.default.relative(baseDir, from);
|
|
116488
116411
|
return _path.default.resolve(targetBaseDir, relativePath);
|
|
@@ -116607,8 +116530,14 @@ ${_chalk.default.grey(rest.join("\n"))}`;
|
|
|
116607
116530
|
}
|
|
116608
116531
|
constructor(options = {}) {
|
|
116609
116532
|
this.level = options.level || LOG_TYPES.log.level;
|
|
116610
|
-
this.config =
|
|
116611
|
-
|
|
116533
|
+
this.config = {
|
|
116534
|
+
...DEFAULT_CONFIG,
|
|
116535
|
+
...options.config || {}
|
|
116536
|
+
};
|
|
116537
|
+
this.types = {
|
|
116538
|
+
...LOG_TYPES,
|
|
116539
|
+
...options.types || {}
|
|
116540
|
+
};
|
|
116612
116541
|
this.longestLabel = this.getLongestLabel();
|
|
116613
116542
|
Object.keys(this.types).forEach((type) => {
|
|
116614
116543
|
this[type] = this._log.bind(this, type);
|
|
@@ -116726,7 +116655,10 @@ var require_alias = __commonJS({
|
|
|
116726
116655
|
const baseUrl = (_tsconfig = tsconfig) === null || _tsconfig === void 0 ? void 0 : (_tsconfig_compilerOptions = _tsconfig.compilerOptions) === null || _tsconfig_compilerOptions === void 0 ? void 0 : _tsconfig_compilerOptions.baseUrl;
|
|
116727
116656
|
return {
|
|
116728
116657
|
absoluteBaseUrl: baseUrl ? _path.default.join(option.appDirectory, baseUrl) : option.appDirectory,
|
|
116729
|
-
paths:
|
|
116658
|
+
paths: {
|
|
116659
|
+
...alias,
|
|
116660
|
+
...(_tsconfig1 = tsconfig) === null || _tsconfig1 === void 0 ? void 0 : (_tsconfig_compilerOptions1 = _tsconfig1.compilerOptions) === null || _tsconfig_compilerOptions1 === void 0 ? void 0 : _tsconfig_compilerOptions1.paths
|
|
116661
|
+
},
|
|
116730
116662
|
isTsPath: true,
|
|
116731
116663
|
isTsProject
|
|
116732
116664
|
};
|
|
@@ -116812,7 +116744,7 @@ var require_path = __commonJS({
|
|
|
116812
116744
|
try {
|
|
116813
116745
|
ret = _os.default.tmpdir();
|
|
116814
116746
|
ret = _fs.default.realpathSync(ret);
|
|
116815
|
-
} catch
|
|
116747
|
+
} catch {
|
|
116816
116748
|
}
|
|
116817
116749
|
return ret;
|
|
116818
116750
|
}
|
|
@@ -116913,7 +116845,10 @@ var require_babel = __commonJS({
|
|
|
116913
116845
|
presets.forEach((preset, index) => {
|
|
116914
116846
|
if (Array.isArray(preset)) {
|
|
116915
116847
|
if (typeof preset[0] === "string" && (0, _path1.normalizeToPosixPath)(preset[0]).includes(presetName)) {
|
|
116916
|
-
preset[1] =
|
|
116848
|
+
preset[1] = {
|
|
116849
|
+
...preset[1] || {},
|
|
116850
|
+
...options
|
|
116851
|
+
};
|
|
116917
116852
|
}
|
|
116918
116853
|
} else if (typeof preset === "string" && (0, _path1.normalizeToPosixPath)(preset).includes(presetName)) {
|
|
116919
116854
|
presets[index] = [
|
|
@@ -116942,7 +116877,10 @@ var require_babel = __commonJS({
|
|
|
116942
116877
|
};
|
|
116943
116878
|
var applyUserBabelConfig = (defaultOptions, userBabelConfig, extraBabelUtils) => {
|
|
116944
116879
|
if (userBabelConfig) {
|
|
116945
|
-
const babelUtils =
|
|
116880
|
+
const babelUtils = {
|
|
116881
|
+
...getBabelUtils(defaultOptions),
|
|
116882
|
+
...extraBabelUtils
|
|
116883
|
+
};
|
|
116946
116884
|
return (0, _applyOptionsChain.applyOptionsChain)(defaultOptions, userBabelConfig || {}, babelUtils);
|
|
116947
116885
|
}
|
|
116948
116886
|
return defaultOptions;
|
|
@@ -117015,7 +116953,10 @@ var require_monorepo = __commonJS({
|
|
|
117015
116953
|
return false;
|
|
117016
116954
|
}
|
|
117017
116955
|
const json = JSON.parse(_fs.default.readFileSync(pkgJsonPath, "utf8"));
|
|
117018
|
-
const deps =
|
|
116956
|
+
const deps = {
|
|
116957
|
+
...json.dependencies || {},
|
|
116958
|
+
...json.devDependencies || {}
|
|
116959
|
+
};
|
|
117019
116960
|
return Boolean(deps["@modern-js/monorepo-tools"]);
|
|
117020
116961
|
};
|
|
117021
116962
|
var findMonorepoRoot = (appDirectory, maxDepth = PACKAGE_MAX_DEPTH) => {
|
|
@@ -117075,7 +117016,7 @@ var require_port = __commonJS({
|
|
|
117075
117016
|
var _net = /* @__PURE__ */ _interop_require_default._(require("net"));
|
|
117076
117017
|
var _compiled = require_compiled();
|
|
117077
117018
|
var _logger = require_logger2();
|
|
117078
|
-
var getPort =
|
|
117019
|
+
var getPort = async (port, { tryLimits = 20, strictPort = false } = {}) => {
|
|
117079
117020
|
if (typeof port === "string") {
|
|
117080
117021
|
port = parseInt(port, 10);
|
|
117081
117022
|
}
|
|
@@ -117087,7 +117028,7 @@ var require_port = __commonJS({
|
|
|
117087
117028
|
let attempts = 0;
|
|
117088
117029
|
while (!found && attempts <= tryLimits) {
|
|
117089
117030
|
try {
|
|
117090
|
-
|
|
117031
|
+
await new Promise((resolve, reject) => {
|
|
117091
117032
|
const server = _net.default.createServer();
|
|
117092
117033
|
server.unref();
|
|
117093
117034
|
server.on("error", reject);
|
|
@@ -117115,7 +117056,7 @@ var require_port = __commonJS({
|
|
|
117115
117056
|
}
|
|
117116
117057
|
}
|
|
117117
117058
|
return port;
|
|
117118
|
-
}
|
|
117059
|
+
};
|
|
117119
117060
|
}
|
|
117120
117061
|
});
|
|
117121
117062
|
|
|
@@ -117266,13 +117207,14 @@ var require_require = __commonJS({
|
|
|
117266
117207
|
};
|
|
117267
117208
|
var dynamicImport = new Function("modulePath", "return import(modulePath)");
|
|
117268
117209
|
var requireExistModule = (filename, opt) => {
|
|
117269
|
-
const final =
|
|
117210
|
+
const final = {
|
|
117270
117211
|
extensions: [
|
|
117271
117212
|
".ts",
|
|
117272
117213
|
".js"
|
|
117273
117214
|
],
|
|
117274
|
-
interop: true
|
|
117275
|
-
|
|
117215
|
+
interop: true,
|
|
117216
|
+
...opt
|
|
117217
|
+
};
|
|
117276
117218
|
const exist = (0, _fs.findExists)(final.extensions.map((ext) => `${filename}${ext}`));
|
|
117277
117219
|
if (!exist) {
|
|
117278
117220
|
return null;
|
|
@@ -117352,7 +117294,7 @@ var require_runtimeExports = __commonJS({
|
|
|
117352
117294
|
_compiled.fs.appendFileSync(entryExportFile, `${statement}
|
|
117353
117295
|
`);
|
|
117354
117296
|
}
|
|
117355
|
-
} catch
|
|
117297
|
+
} catch {
|
|
117356
117298
|
}
|
|
117357
117299
|
};
|
|
117358
117300
|
const getPath = () => entryExportFile;
|
|
@@ -117400,29 +117342,29 @@ var require_watch = __commonJS({
|
|
|
117400
117342
|
ignored
|
|
117401
117343
|
});
|
|
117402
117344
|
watcher.on("ready", () => ready = true);
|
|
117403
|
-
watcher.on("change", (filePath) =>
|
|
117345
|
+
watcher.on("change", async (filePath) => {
|
|
117404
117346
|
const changedFilePath = _path.default.resolve(filePath);
|
|
117405
|
-
|
|
117347
|
+
await runTask({
|
|
117406
117348
|
changedFilePath,
|
|
117407
117349
|
changeType: WatchChangeType.CHANGE
|
|
117408
117350
|
});
|
|
117409
|
-
})
|
|
117410
|
-
watcher.on("add", (filePath) =>
|
|
117351
|
+
});
|
|
117352
|
+
watcher.on("add", async (filePath) => {
|
|
117411
117353
|
const changedFilePath = _path.default.resolve(filePath);
|
|
117412
117354
|
if (ready) {
|
|
117413
|
-
|
|
117355
|
+
await runTask({
|
|
117414
117356
|
changedFilePath,
|
|
117415
117357
|
changeType: WatchChangeType.ADD
|
|
117416
117358
|
});
|
|
117417
117359
|
}
|
|
117418
|
-
})
|
|
117419
|
-
watcher.on("unlink", (filePath) =>
|
|
117360
|
+
});
|
|
117361
|
+
watcher.on("unlink", async (filePath) => {
|
|
117420
117362
|
const changedFilePath = _path.default.resolve(filePath);
|
|
117421
|
-
|
|
117363
|
+
await runTask({
|
|
117422
117364
|
changedFilePath,
|
|
117423
117365
|
changeType: WatchChangeType.UNLINK
|
|
117424
117366
|
});
|
|
117425
|
-
})
|
|
117367
|
+
});
|
|
117426
117368
|
watcher.on("error", (err) => {
|
|
117427
117369
|
throw err;
|
|
117428
117370
|
});
|
|
@@ -133124,43 +133066,39 @@ function stripAnsi2(string) {
|
|
|
133124
133066
|
|
|
133125
133067
|
// ../../generator-utils/dist/esm/utils/package.js
|
|
133126
133068
|
var import_utils15 = __toESM(require_cjs2());
|
|
133127
|
-
function isPackageExist(packageName, registry2) {
|
|
133128
|
-
|
|
133129
|
-
|
|
133130
|
-
try {
|
|
133131
|
-
const args = [
|
|
133132
|
-
"view",
|
|
133133
|
-
packageName,
|
|
133134
|
-
"version"
|
|
133135
|
-
];
|
|
133136
|
-
if (registry2) {
|
|
133137
|
-
args.push(`--registry=${registry2}`);
|
|
133138
|
-
}
|
|
133139
|
-
const result = yield (0, import_utils15.execa)("npm", args);
|
|
133140
|
-
return (0, import_utils15.stripAnsi)(result.stdout);
|
|
133141
|
-
} catch (e) {
|
|
133142
|
-
return false;
|
|
133143
|
-
}
|
|
133144
|
-
}
|
|
133145
|
-
throw new Error("not found npm, please install npm before");
|
|
133146
|
-
});
|
|
133147
|
-
}
|
|
133148
|
-
function isPackageDeprecated(packageName, registry2) {
|
|
133149
|
-
return __async(this, null, function* () {
|
|
133150
|
-
if (yield (0, import_utils15.canUseNpm)()) {
|
|
133069
|
+
async function isPackageExist(packageName, registry2) {
|
|
133070
|
+
if (await (0, import_utils15.canUseNpm)()) {
|
|
133071
|
+
try {
|
|
133151
133072
|
const args = [
|
|
133152
133073
|
"view",
|
|
133153
133074
|
packageName,
|
|
133154
|
-
"
|
|
133075
|
+
"version"
|
|
133155
133076
|
];
|
|
133156
133077
|
if (registry2) {
|
|
133157
133078
|
args.push(`--registry=${registry2}`);
|
|
133158
133079
|
}
|
|
133159
|
-
const result =
|
|
133080
|
+
const result = await (0, import_utils15.execa)("npm", args);
|
|
133160
133081
|
return (0, import_utils15.stripAnsi)(result.stdout);
|
|
133082
|
+
} catch (e) {
|
|
133083
|
+
return false;
|
|
133161
133084
|
}
|
|
133162
|
-
|
|
133163
|
-
|
|
133085
|
+
}
|
|
133086
|
+
throw new Error("not found npm, please install npm before");
|
|
133087
|
+
}
|
|
133088
|
+
async function isPackageDeprecated(packageName, registry2) {
|
|
133089
|
+
if (await (0, import_utils15.canUseNpm)()) {
|
|
133090
|
+
const args = [
|
|
133091
|
+
"view",
|
|
133092
|
+
packageName,
|
|
133093
|
+
"deprecated"
|
|
133094
|
+
];
|
|
133095
|
+
if (registry2) {
|
|
133096
|
+
args.push(`--registry=${registry2}`);
|
|
133097
|
+
}
|
|
133098
|
+
const result = await (0, import_utils15.execa)("npm", args);
|
|
133099
|
+
return (0, import_utils15.stripAnsi)(result.stdout);
|
|
133100
|
+
}
|
|
133101
|
+
throw new Error("not found npm, please install npm before");
|
|
133164
133102
|
}
|
|
133165
133103
|
function semverDecrease(version) {
|
|
133166
133104
|
const versionObj = import_utils15.semver.parse(version, {
|
|
@@ -133179,81 +133117,73 @@ function semverDecrease(version) {
|
|
|
133179
133117
|
}
|
|
133180
133118
|
return result;
|
|
133181
133119
|
}
|
|
133182
|
-
function getAvailableVersion(packageName, currentVersion, registry2) {
|
|
133183
|
-
|
|
133184
|
-
|
|
133185
|
-
|
|
133186
|
-
|
|
133187
|
-
|
|
133188
|
-
|
|
133189
|
-
|
|
133190
|
-
continue;
|
|
133191
|
-
}
|
|
133192
|
-
return version;
|
|
133120
|
+
async function getAvailableVersion(packageName, currentVersion, registry2) {
|
|
133121
|
+
let times = 5;
|
|
133122
|
+
let version = currentVersion;
|
|
133123
|
+
while (times) {
|
|
133124
|
+
if (!await isPackageExist(`${packageName}@${version}`, registry2) || await isPackageDeprecated(`${packageName}@${version}`, registry2)) {
|
|
133125
|
+
version = import_utils15.semver.inc(version, "patch");
|
|
133126
|
+
times--;
|
|
133127
|
+
continue;
|
|
133193
133128
|
}
|
|
133194
|
-
|
|
133195
|
-
|
|
133196
|
-
|
|
133197
|
-
|
|
133198
|
-
|
|
133199
|
-
|
|
133200
|
-
|
|
133201
|
-
|
|
133129
|
+
return version;
|
|
133130
|
+
}
|
|
133131
|
+
times = 5;
|
|
133132
|
+
while (times) {
|
|
133133
|
+
version = semverDecrease(version);
|
|
133134
|
+
if (!await isPackageExist(`${packageName}@${version}`, registry2) || await isPackageDeprecated(`${packageName}@${version}`, registry2)) {
|
|
133135
|
+
times--;
|
|
133136
|
+
continue;
|
|
133202
133137
|
}
|
|
133203
|
-
return
|
|
133204
|
-
}
|
|
133138
|
+
return version;
|
|
133139
|
+
}
|
|
133140
|
+
return currentVersion;
|
|
133205
133141
|
}
|
|
133206
133142
|
|
|
133207
133143
|
// ../../generator-utils/dist/esm/index.js
|
|
133208
133144
|
var import_utils17 = __toESM(require_cjs2());
|
|
133209
|
-
function getPackageVersion(packageName, registry2) {
|
|
133210
|
-
|
|
133211
|
-
|
|
133212
|
-
|
|
133213
|
-
|
|
133214
|
-
|
|
133215
|
-
|
|
133216
|
-
|
|
133217
|
-
|
|
133218
|
-
|
|
133219
|
-
|
|
133220
|
-
|
|
133221
|
-
|
|
133222
|
-
args.push(`--registry=${registry2}`);
|
|
133223
|
-
}
|
|
133224
|
-
const result = yield (0, import_utils16.execa)("pnpm", args);
|
|
133225
|
-
spinner.stop();
|
|
133226
|
-
return stripAnsi2(result.stdout);
|
|
133145
|
+
async function getPackageVersion(packageName, registry2) {
|
|
133146
|
+
const spinner = (0, import_utils16.ora)({
|
|
133147
|
+
text: "Load Generator...",
|
|
133148
|
+
spinner: "runner"
|
|
133149
|
+
}).start();
|
|
133150
|
+
if (await (0, import_utils16.canUsePnpm)()) {
|
|
133151
|
+
const args = [
|
|
133152
|
+
"info",
|
|
133153
|
+
packageName,
|
|
133154
|
+
"version"
|
|
133155
|
+
];
|
|
133156
|
+
if (registry2) {
|
|
133157
|
+
args.push(`--registry=${registry2}`);
|
|
133227
133158
|
}
|
|
133228
|
-
|
|
133229
|
-
|
|
133230
|
-
|
|
133231
|
-
|
|
133232
|
-
|
|
133233
|
-
|
|
133234
|
-
|
|
133235
|
-
|
|
133236
|
-
|
|
133237
|
-
|
|
133238
|
-
|
|
133239
|
-
|
|
133159
|
+
const result = await (0, import_utils16.execa)("pnpm", args);
|
|
133160
|
+
spinner.stop();
|
|
133161
|
+
return stripAnsi2(result.stdout);
|
|
133162
|
+
}
|
|
133163
|
+
if (await (0, import_utils16.canUseNpm)()) {
|
|
133164
|
+
const args = [
|
|
133165
|
+
"view",
|
|
133166
|
+
packageName,
|
|
133167
|
+
"version"
|
|
133168
|
+
];
|
|
133169
|
+
if (registry2) {
|
|
133170
|
+
args.push(`--registry=${registry2}`);
|
|
133240
133171
|
}
|
|
133172
|
+
const result = await (0, import_utils16.execa)("npm", args);
|
|
133241
133173
|
spinner.stop();
|
|
133242
|
-
|
|
133243
|
-
}
|
|
133174
|
+
return stripAnsi2(result.stdout);
|
|
133175
|
+
}
|
|
133176
|
+
spinner.stop();
|
|
133177
|
+
throw new Error("not found npm, please install npm before");
|
|
133244
133178
|
}
|
|
133245
|
-
function getModernVersion(solution, registry2, distTag = "latest") {
|
|
133246
|
-
|
|
133247
|
-
|
|
133248
|
-
|
|
133249
|
-
return modernVersion;
|
|
133250
|
-
});
|
|
133179
|
+
async function getModernVersion(solution, registry2, distTag = "latest") {
|
|
133180
|
+
const dep = SolutionToolsMap[solution];
|
|
133181
|
+
const modernVersion = await getPackageVersion(`${dep}@${distTag}`, registry2);
|
|
133182
|
+
return modernVersion;
|
|
133251
133183
|
}
|
|
133252
|
-
function getPackageObj(context) {
|
|
133253
|
-
|
|
133254
|
-
|
|
133255
|
-
return JSON.parse(pkgStr);
|
|
133256
|
-
});
|
|
133184
|
+
async function getPackageObj(context) {
|
|
133185
|
+
const pkgStr = (await context.materials.default.get(`package.json`).value()).content;
|
|
133186
|
+
return JSON.parse(pkgStr);
|
|
133257
133187
|
}
|
|
133258
133188
|
|
|
133259
133189
|
// src/locale/zh.ts
|
|
@@ -133290,10 +133220,13 @@ var i18n3 = new I18n2();
|
|
|
133290
133220
|
var localeKeys3 = i18n3.init("en", { zh: ZH_LOCALE3, en: EN_LOCALE3 });
|
|
133291
133221
|
|
|
133292
133222
|
// src/index.ts
|
|
133293
|
-
var handleTemplateFile = (context, generator, appApi) =>
|
|
133223
|
+
var handleTemplateFile = async (context, generator, appApi) => {
|
|
133294
133224
|
const jsonAPI = new JsonAPI(generator);
|
|
133295
|
-
const pkgInfo =
|
|
133296
|
-
const deps =
|
|
133225
|
+
const pkgInfo = await getPackageObj(context);
|
|
133226
|
+
const deps = {
|
|
133227
|
+
...pkgInfo.devDependencies,
|
|
133228
|
+
...pkgInfo.dependencies
|
|
133229
|
+
};
|
|
133297
133230
|
const solutions = Object.keys(SolutionToolsMap).filter(
|
|
133298
133231
|
(solution) => deps[SolutionToolsMap[solution]]
|
|
133299
133232
|
);
|
|
@@ -133306,7 +133239,7 @@ var handleTemplateFile = (context, generator, appApi) => __async(void 0, null, f
|
|
|
133306
133239
|
generator.logger.info(
|
|
133307
133240
|
`[${i18n3.t(localeKeys3.projectType)}]: ${SolutionText[solutions[0]]()}`
|
|
133308
133241
|
);
|
|
133309
|
-
const modernVersion =
|
|
133242
|
+
const modernVersion = await getModernVersion(
|
|
133310
133243
|
solutions[0],
|
|
133311
133244
|
context.config.registry,
|
|
133312
133245
|
context.config.distTag
|
|
@@ -133323,7 +133256,7 @@ var handleTemplateFile = (context, generator, appApi) => __async(void 0, null, f
|
|
|
133323
133256
|
return;
|
|
133324
133257
|
}
|
|
133325
133258
|
const appDir = context.materials.default.basePath;
|
|
133326
|
-
const packageManager =
|
|
133259
|
+
const packageManager = await (0, import_utils17.getPackageManager)(appDir);
|
|
133327
133260
|
context.config.packageManager = packageManager;
|
|
133328
133261
|
if (packageManager === PackageManager.Pnpm) {
|
|
133329
133262
|
const npmrcPath = import_path6.default.join(generator.outputPath, ".npmrc");
|
|
@@ -133338,7 +133271,7 @@ var handleTemplateFile = (context, generator, appApi) => __async(void 0, null, f
|
|
|
133338
133271
|
}
|
|
133339
133272
|
}
|
|
133340
133273
|
if (solutions[0] === Solution.Monorepo && packageManager === PackageManager.Pnpm) {
|
|
133341
|
-
|
|
133274
|
+
await (0, import_utils17.execa)(
|
|
133342
133275
|
"pnpm",
|
|
133343
133276
|
["update", "@modern-js/*", "@modern-js-app/*", "--recursive", "--latest"],
|
|
133344
133277
|
{
|
|
@@ -133360,27 +133293,23 @@ var handleTemplateFile = (context, generator, appApi) => __async(void 0, null, f
|
|
|
133360
133293
|
text: "Load Generator...",
|
|
133361
133294
|
spinner: "runner"
|
|
133362
133295
|
}).start();
|
|
133363
|
-
|
|
133296
|
+
await Promise.all(
|
|
133364
133297
|
modernDeps.map(
|
|
133365
|
-
(dep) =>
|
|
133366
|
-
|
|
133367
|
-
|
|
133368
|
-
|
|
133369
|
-
);
|
|
133370
|
-
})
|
|
133298
|
+
async (dep) => updateInfo[`dependencies.${dep}`] = await getAvailableVersion(
|
|
133299
|
+
dep,
|
|
133300
|
+
modernVersion
|
|
133301
|
+
)
|
|
133371
133302
|
)
|
|
133372
133303
|
);
|
|
133373
|
-
|
|
133304
|
+
await Promise.all(
|
|
133374
133305
|
modernDevDeps.map(
|
|
133375
|
-
(dep) =>
|
|
133376
|
-
|
|
133377
|
-
|
|
133378
|
-
|
|
133379
|
-
);
|
|
133380
|
-
})
|
|
133306
|
+
async (dep) => updateInfo[`devDependencies.${dep}`] = await getAvailableVersion(
|
|
133307
|
+
dep,
|
|
133308
|
+
modernVersion
|
|
133309
|
+
)
|
|
133381
133310
|
)
|
|
133382
133311
|
);
|
|
133383
|
-
|
|
133312
|
+
await jsonAPI.update(
|
|
133384
133313
|
context.materials.default.get(import_path6.default.join(appDir, "package.json")),
|
|
133385
133314
|
{
|
|
133386
133315
|
query: {},
|
|
@@ -133394,7 +133323,7 @@ var handleTemplateFile = (context, generator, appApi) => __async(void 0, null, f
|
|
|
133394
133323
|
try {
|
|
133395
133324
|
if (huskyVersion && import_utils17.semver.lt(huskyVersion, "8.0.0")) {
|
|
133396
133325
|
generator.logger.info(`${i18n3.t(localeKeys3.updateHusky)}`);
|
|
133397
|
-
|
|
133326
|
+
await jsonAPI.update(
|
|
133398
133327
|
context.materials.default.get(import_path6.default.join(appDir, "package.json")),
|
|
133399
133328
|
{
|
|
133400
133329
|
query: {},
|
|
@@ -133417,7 +133346,7 @@ var handleTemplateFile = (context, generator, appApi) => __async(void 0, null, f
|
|
|
133417
133346
|
}
|
|
133418
133347
|
pkgInfo2.husky = void 0;
|
|
133419
133348
|
import_utils17.fs.writeJSONSync(pkgPath, pkgInfo2, { spaces: 2 });
|
|
133420
|
-
|
|
133349
|
+
await appApi.forgeTemplate("templates/**/*");
|
|
133421
133350
|
import_utils17.fs.chmodSync(
|
|
133422
133351
|
import_path6.default.join(generator.outputPath, ".husky", "pre-commit"),
|
|
133423
133352
|
"755"
|
|
@@ -133425,19 +133354,19 @@ var handleTemplateFile = (context, generator, appApi) => __async(void 0, null, f
|
|
|
133425
133354
|
}
|
|
133426
133355
|
} catch (e) {
|
|
133427
133356
|
}
|
|
133428
|
-
|
|
133357
|
+
await appApi.runInstall();
|
|
133429
133358
|
appApi.showSuccessInfo(i18n3.t(localeKeys3.success));
|
|
133430
|
-
}
|
|
133431
|
-
var src_default = (context, generator) =>
|
|
133359
|
+
};
|
|
133360
|
+
var src_default = async (context, generator) => {
|
|
133432
133361
|
const appApi = new AppAPI(context, generator);
|
|
133433
133362
|
const { locale } = context.config;
|
|
133434
133363
|
appApi.i18n.changeLanguage({ locale });
|
|
133435
133364
|
generator.logger.debug(`start run @modern-js/upgrade-generator`);
|
|
133436
133365
|
generator.logger.debug(`context=${JSON.stringify(context)}`);
|
|
133437
133366
|
generator.logger.debug(`context.data=${JSON.stringify(context.data)}`);
|
|
133438
|
-
|
|
133367
|
+
await handleTemplateFile(context, generator, appApi);
|
|
133439
133368
|
generator.logger.debug(`forge @modern-js/upgrade-generator succeed `);
|
|
133440
|
-
}
|
|
133369
|
+
};
|
|
133441
133370
|
// Annotate the CommonJS export names for ESM import in node:
|
|
133442
133371
|
0 && (module.exports = {
|
|
133443
133372
|
handleTemplateFile
|