@modern-js/base-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 +559 -626
- package/package.json +5 -5
- package/templates/base-templates/.gitignore.handlebars +4 -20
package/dist/index.js
CHANGED
|
@@ -1,39 +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
|
-
var __objRest = (source, exclude) => {
|
|
26
|
-
var target = {};
|
|
27
|
-
for (var prop in source)
|
|
28
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
29
|
-
target[prop] = source[prop];
|
|
30
|
-
if (source != null && __getOwnPropSymbols)
|
|
31
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
33
|
-
target[prop] = source[prop];
|
|
34
|
-
}
|
|
35
|
-
return target;
|
|
36
|
-
};
|
|
37
7
|
var __commonJS = (cb, mod) => function __require() {
|
|
38
8
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
39
9
|
};
|
|
@@ -58,26 +28,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
58
28
|
mod
|
|
59
29
|
));
|
|
60
30
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
61
|
-
var __async = (__this, __arguments, generator) => {
|
|
62
|
-
return new Promise((resolve, reject) => {
|
|
63
|
-
var fulfilled = (value) => {
|
|
64
|
-
try {
|
|
65
|
-
step(generator.next(value));
|
|
66
|
-
} catch (e) {
|
|
67
|
-
reject(e);
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
var rejected = (value) => {
|
|
71
|
-
try {
|
|
72
|
-
step(generator.throw(value));
|
|
73
|
-
} catch (e) {
|
|
74
|
-
reject(e);
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
78
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
79
|
-
});
|
|
80
|
-
};
|
|
81
31
|
|
|
82
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
|
|
83
33
|
var require_import_lazy = __commonJS({
|
|
@@ -504,22 +454,20 @@ var require_fs_extra = __commonJS({
|
|
|
504
454
|
const o = r2(17);
|
|
505
455
|
const c = r2(971);
|
|
506
456
|
const s = r2(95);
|
|
507
|
-
const a = n(function emptyDir(e3) {
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
return Promise.all(t3.map((t4) => s.remove(o.join(e3, t4))));
|
|
516
|
-
});
|
|
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))));
|
|
517
465
|
});
|
|
518
466
|
function emptyDirSync(e3) {
|
|
519
467
|
let t3;
|
|
520
468
|
try {
|
|
521
469
|
t3 = i.readdirSync(e3);
|
|
522
|
-
} catch
|
|
470
|
+
} catch {
|
|
523
471
|
return c.mkdirsSync(e3);
|
|
524
472
|
}
|
|
525
473
|
t3.forEach((t4) => {
|
|
@@ -572,7 +520,7 @@ var require_fs_extra = __commonJS({
|
|
|
572
520
|
let t3;
|
|
573
521
|
try {
|
|
574
522
|
t3 = o.statSync(e3);
|
|
575
|
-
} catch
|
|
523
|
+
} catch {
|
|
576
524
|
}
|
|
577
525
|
if (t3 && t3.isFile())
|
|
578
526
|
return;
|
|
@@ -639,7 +587,7 @@ var require_fs_extra = __commonJS({
|
|
|
639
587
|
let r3;
|
|
640
588
|
try {
|
|
641
589
|
r3 = o.lstatSync(t3);
|
|
642
|
-
} catch
|
|
590
|
+
} catch {
|
|
643
591
|
}
|
|
644
592
|
try {
|
|
645
593
|
const t4 = o.lstatSync(e3);
|
|
@@ -734,7 +682,7 @@ var require_fs_extra = __commonJS({
|
|
|
734
682
|
return t3;
|
|
735
683
|
try {
|
|
736
684
|
r3 = n.lstatSync(e3);
|
|
737
|
-
} catch
|
|
685
|
+
} catch {
|
|
738
686
|
return "file";
|
|
739
687
|
}
|
|
740
688
|
return r3 && r3.isDirectory() ? "dir" : "file";
|
|
@@ -797,7 +745,7 @@ var require_fs_extra = __commonJS({
|
|
|
797
745
|
let n2;
|
|
798
746
|
try {
|
|
799
747
|
n2 = o.lstatSync(t3);
|
|
800
|
-
} catch
|
|
748
|
+
} catch {
|
|
801
749
|
}
|
|
802
750
|
if (n2 && n2.isSymbolicLink()) {
|
|
803
751
|
const r4 = o.statSync(e3);
|
|
@@ -872,7 +820,7 @@ var require_fs_extra = __commonJS({
|
|
|
872
820
|
}
|
|
873
821
|
}, 81: (e2, t2, r2) => {
|
|
874
822
|
"use strict";
|
|
875
|
-
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) };
|
|
876
824
|
}, 779: (e2, t2, r2) => {
|
|
877
825
|
"use strict";
|
|
878
826
|
const n = r2(5).fromPromise;
|
|
@@ -903,11 +851,9 @@ var require_fs_extra = __commonJS({
|
|
|
903
851
|
"use strict";
|
|
904
852
|
const { stringify: n } = r2(208);
|
|
905
853
|
const { outputFile: i } = r2(701);
|
|
906
|
-
function outputJson(
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
yield i(e3, o, r3);
|
|
910
|
-
});
|
|
854
|
+
async function outputJson(e3, t3, r3 = {}) {
|
|
855
|
+
const o = n(t3, r3);
|
|
856
|
+
await i(e3, o, r3);
|
|
911
857
|
}
|
|
912
858
|
e2.exports = outputJson;
|
|
913
859
|
}, 971: (e2, t2, r2) => {
|
|
@@ -924,12 +870,12 @@ var require_fs_extra = __commonJS({
|
|
|
924
870
|
const t3 = { mode: 511 };
|
|
925
871
|
if (typeof e3 === "number")
|
|
926
872
|
return e3;
|
|
927
|
-
return
|
|
873
|
+
return { ...t3, ...e3 }.mode;
|
|
928
874
|
};
|
|
929
|
-
e2.exports.makeDir = (e3, t3) =>
|
|
875
|
+
e2.exports.makeDir = async (e3, t3) => {
|
|
930
876
|
i(e3);
|
|
931
877
|
return n.mkdir(e3, { mode: getMode(t3), recursive: true });
|
|
932
|
-
}
|
|
878
|
+
};
|
|
933
879
|
e2.exports.makeDirSync = (e3, t3) => {
|
|
934
880
|
i(e3);
|
|
935
881
|
return n.mkdirSync(e3, { mode: getMode(t3), recursive: true });
|
|
@@ -1347,7 +1293,7 @@ var require_fs_extra = __commonJS({
|
|
|
1347
1293
|
try {
|
|
1348
1294
|
const r4 = t3.rmdirSync(e3, t3);
|
|
1349
1295
|
return r4;
|
|
1350
|
-
} catch
|
|
1296
|
+
} catch {
|
|
1351
1297
|
}
|
|
1352
1298
|
} while (Date.now() - r3 < 500);
|
|
1353
1299
|
} else {
|
|
@@ -2246,28 +2192,26 @@ var require_fs_extra = __commonJS({
|
|
|
2246
2192
|
}
|
|
2247
2193
|
const i = r2(5);
|
|
2248
2194
|
const { stringify: o, stripBom: c } = r2(208);
|
|
2249
|
-
function _readFile(
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
return null;
|
|
2267
|
-
}
|
|
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;
|
|
2268
2212
|
}
|
|
2269
|
-
|
|
2270
|
-
|
|
2213
|
+
}
|
|
2214
|
+
return a2;
|
|
2271
2215
|
}
|
|
2272
2216
|
const s = i.fromPromise(_readFile);
|
|
2273
2217
|
function readFileSync(e3, t3 = {}) {
|
|
@@ -2289,12 +2233,10 @@ var require_fs_extra = __commonJS({
|
|
|
2289
2233
|
}
|
|
2290
2234
|
}
|
|
2291
2235
|
}
|
|
2292
|
-
function _writeFile(
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
yield i.fromCallback(c2.writeFile)(e3, s2, r3);
|
|
2297
|
-
});
|
|
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);
|
|
2298
2240
|
}
|
|
2299
2241
|
const a = i.fromPromise(_writeFile);
|
|
2300
2242
|
function writeFileSync(e3, t3, r3 = {}) {
|
|
@@ -2522,11 +2464,11 @@ var require_chalk = __commonJS({
|
|
|
2522
2464
|
} };
|
|
2523
2465
|
}
|
|
2524
2466
|
const f = Object.defineProperties(() => {
|
|
2525
|
-
},
|
|
2467
|
+
}, { ...u, level: { enumerable: true, get() {
|
|
2526
2468
|
return this._generator.level;
|
|
2527
2469
|
}, set(e3) {
|
|
2528
2470
|
this._generator.level = e3;
|
|
2529
|
-
} } })
|
|
2471
|
+
} } });
|
|
2530
2472
|
const createStyler = (e3, t3, n3) => {
|
|
2531
2473
|
let r2;
|
|
2532
2474
|
let s2;
|
|
@@ -2837,7 +2779,7 @@ var require_chalk = __commonJS({
|
|
|
2837
2779
|
return [o2 * 100, l * 100, c * 100, s2 * 100];
|
|
2838
2780
|
};
|
|
2839
2781
|
function comparativeDistance(e3, t3) {
|
|
2840
|
-
return
|
|
2782
|
+
return (e3[0] - t3[0]) ** 2 + (e3[1] - t3[1]) ** 2 + (e3[2] - t3[2]) ** 2;
|
|
2841
2783
|
}
|
|
2842
2784
|
o.rgb.keyword = function(e3) {
|
|
2843
2785
|
const t3 = s[e3];
|
|
@@ -2863,9 +2805,9 @@ var require_chalk = __commonJS({
|
|
|
2863
2805
|
let t3 = e3[0] / 255;
|
|
2864
2806
|
let n3 = e3[1] / 255;
|
|
2865
2807
|
let r2 = e3[2] / 255;
|
|
2866
|
-
t3 = t3 > 0.04045 ?
|
|
2867
|
-
n3 = n3 > 0.04045 ?
|
|
2868
|
-
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;
|
|
2869
2811
|
const s2 = t3 * 0.4124 + n3 * 0.3576 + r2 * 0.1805;
|
|
2870
2812
|
const o2 = t3 * 0.2126 + n3 * 0.7152 + r2 * 0.0722;
|
|
2871
2813
|
const l = t3 * 0.0193 + n3 * 0.1192 + r2 * 0.9505;
|
|
@@ -2879,9 +2821,9 @@ var require_chalk = __commonJS({
|
|
|
2879
2821
|
n3 /= 95.047;
|
|
2880
2822
|
r2 /= 100;
|
|
2881
2823
|
s2 /= 108.883;
|
|
2882
|
-
n3 = n3 > 8856e-6 ?
|
|
2883
|
-
r2 = r2 > 8856e-6 ?
|
|
2884
|
-
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;
|
|
2885
2827
|
const l = 116 * r2 - 16;
|
|
2886
2828
|
const c = 500 * (n3 - r2);
|
|
2887
2829
|
const i = 200 * (r2 - s2);
|
|
@@ -3055,9 +2997,9 @@ var require_chalk = __commonJS({
|
|
|
3055
2997
|
s2 = t3 * 3.2406 + n3 * -1.5372 + r2 * -0.4986;
|
|
3056
2998
|
o2 = t3 * -0.9689 + n3 * 1.8758 + r2 * 0.0415;
|
|
3057
2999
|
l = t3 * 0.0557 + n3 * -0.204 + r2 * 1.057;
|
|
3058
|
-
s2 = s2 > 31308e-7 ? 1.055 *
|
|
3059
|
-
o2 = o2 > 31308e-7 ? 1.055 *
|
|
3060
|
-
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;
|
|
3061
3003
|
s2 = Math.min(Math.max(0, s2), 1);
|
|
3062
3004
|
o2 = Math.min(Math.max(0, o2), 1);
|
|
3063
3005
|
l = Math.min(Math.max(0, l), 1);
|
|
@@ -3070,9 +3012,9 @@ var require_chalk = __commonJS({
|
|
|
3070
3012
|
t3 /= 95.047;
|
|
3071
3013
|
n3 /= 100;
|
|
3072
3014
|
r2 /= 108.883;
|
|
3073
|
-
t3 = t3 > 8856e-6 ?
|
|
3074
|
-
n3 = n3 > 8856e-6 ?
|
|
3075
|
-
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;
|
|
3076
3018
|
const s2 = 116 * n3 - 16;
|
|
3077
3019
|
const o2 = 500 * (t3 - n3);
|
|
3078
3020
|
const l = 200 * (n3 - r2);
|
|
@@ -3088,9 +3030,9 @@ var require_chalk = __commonJS({
|
|
|
3088
3030
|
o2 = (t3 + 16) / 116;
|
|
3089
3031
|
s2 = n3 / 500 + o2;
|
|
3090
3032
|
l = o2 - r2 / 200;
|
|
3091
|
-
const c =
|
|
3092
|
-
const i =
|
|
3093
|
-
const a =
|
|
3033
|
+
const c = o2 ** 3;
|
|
3034
|
+
const i = s2 ** 3;
|
|
3035
|
+
const a = l ** 3;
|
|
3094
3036
|
o2 = c > 8856e-6 ? c : (o2 - 16 / 116) / 7.787;
|
|
3095
3037
|
s2 = i > 8856e-6 ? i : (s2 - 16 / 116) / 7.787;
|
|
3096
3038
|
l = a > 8856e-6 ? a : (l - 16 / 116) / 7.787;
|
|
@@ -4346,7 +4288,7 @@ var require_ora = __commonJS({
|
|
|
4346
4288
|
if (typeof e3 === "string") {
|
|
4347
4289
|
e3 = { text: e3 };
|
|
4348
4290
|
}
|
|
4349
|
-
this.options =
|
|
4291
|
+
this.options = { text: "", color: "cyan", stream: process.stderr, discardStdin: true, ...e3 };
|
|
4350
4292
|
this.spinner = this.options.spinner;
|
|
4351
4293
|
this.color = this.options.color;
|
|
4352
4294
|
this.hideCursor = this.options.hideCursor !== false;
|
|
@@ -4563,14 +4505,14 @@ var require_ora = __commonJS({
|
|
|
4563
4505
|
}
|
|
4564
4506
|
const r3 = new Ora(t3);
|
|
4565
4507
|
r3.start();
|
|
4566
|
-
(() =>
|
|
4508
|
+
(async () => {
|
|
4567
4509
|
try {
|
|
4568
|
-
|
|
4510
|
+
await e3;
|
|
4569
4511
|
r3.succeed();
|
|
4570
|
-
} catch
|
|
4512
|
+
} catch {
|
|
4571
4513
|
r3.fail();
|
|
4572
4514
|
}
|
|
4573
|
-
})
|
|
4515
|
+
})();
|
|
4574
4516
|
return r3;
|
|
4575
4517
|
};
|
|
4576
4518
|
}, 959: (e2) => {
|
|
@@ -12990,7 +12932,7 @@ var require_execa = __commonJS({
|
|
|
12990
12932
|
const { joinCommand: w, parseCommand: E, getEscapedCommand: I } = n2(192);
|
|
12991
12933
|
const T = 1e3 * 1e3 * 100;
|
|
12992
12934
|
const getEnv = ({ env: e3, extendEnv: t3, preferLocal: n3, localDir: r2, execPath: o2 }) => {
|
|
12993
|
-
const s2 = t3 ?
|
|
12935
|
+
const s2 = t3 ? { ...process.env, ...e3 } : e3;
|
|
12994
12936
|
if (n3) {
|
|
12995
12937
|
return a.env({ env: s2, cwd: r2, execPath: o2 });
|
|
12996
12938
|
}
|
|
@@ -13001,7 +12943,7 @@ var require_execa = __commonJS({
|
|
|
13001
12943
|
e3 = o2.command;
|
|
13002
12944
|
t3 = o2.args;
|
|
13003
12945
|
n3 = o2.options;
|
|
13004
|
-
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 };
|
|
13005
12947
|
n3.env = getEnv(n3);
|
|
13006
12948
|
n3.stdio = u(n3);
|
|
13007
12949
|
if (process.platform === "win32" && r.basename(e3, ".exe") === "cmd") {
|
|
@@ -13037,8 +12979,8 @@ var require_execa = __commonJS({
|
|
|
13037
12979
|
const T2 = { isCanceled: false };
|
|
13038
12980
|
a2.kill = l.bind(null, a2.kill.bind(a2));
|
|
13039
12981
|
a2.cancel = f.bind(null, a2, T2);
|
|
13040
|
-
const handlePromise = () =>
|
|
13041
|
-
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);
|
|
13042
12984
|
const f2 = handleOutput(r2.options, c2);
|
|
13043
12985
|
const p2 = handleOutput(r2.options, u3);
|
|
13044
12986
|
const m2 = handleOutput(r2.options, l2);
|
|
@@ -13050,7 +12992,7 @@ var require_execa = __commonJS({
|
|
|
13050
12992
|
throw c3;
|
|
13051
12993
|
}
|
|
13052
12994
|
return { command: s2, escapedCommand: i2, exitCode: 0, stdout: f2, stderr: p2, all: m2, failed: false, timedOut: false, isCanceled: false, killed: false };
|
|
13053
|
-
}
|
|
12995
|
+
};
|
|
13054
12996
|
const C = c(handlePromise);
|
|
13055
12997
|
x(a2, r2.options.input);
|
|
13056
12998
|
a2.all = y(a2, r2.options);
|
|
@@ -13095,7 +13037,7 @@ var require_execa = __commonJS({
|
|
|
13095
13037
|
const r2 = u.node(n3);
|
|
13096
13038
|
const o2 = process.execArgv.filter((e4) => !e4.startsWith("--inspect"));
|
|
13097
13039
|
const { nodePath: s2 = process.execPath, nodeOptions: i2 = o2 } = n3;
|
|
13098
|
-
return execa2(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []],
|
|
13040
|
+
return execa2(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []], { ...n3, stdin: void 0, stdout: void 0, stderr: void 0, stdio: r2, shell: false });
|
|
13099
13041
|
};
|
|
13100
13042
|
}, 192: (e2) => {
|
|
13101
13043
|
"use strict";
|
|
@@ -13251,7 +13193,7 @@ ${o.message}` : x;
|
|
|
13251
13193
|
throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e3}\` (${typeof e3})`);
|
|
13252
13194
|
}
|
|
13253
13195
|
};
|
|
13254
|
-
const setExitHandler =
|
|
13196
|
+
const setExitHandler = async (e3, { cleanup: t3, detached: n3 }, r2) => {
|
|
13255
13197
|
if (!t3 || n3) {
|
|
13256
13198
|
return r2;
|
|
13257
13199
|
}
|
|
@@ -13261,17 +13203,17 @@ ${o.message}` : x;
|
|
|
13261
13203
|
return r2.finally(() => {
|
|
13262
13204
|
s2();
|
|
13263
13205
|
});
|
|
13264
|
-
}
|
|
13206
|
+
};
|
|
13265
13207
|
e2.exports = { spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler };
|
|
13266
13208
|
}, 210: (e2) => {
|
|
13267
13209
|
"use strict";
|
|
13268
|
-
const t2 = (() =>
|
|
13269
|
-
})
|
|
13210
|
+
const t2 = (async () => {
|
|
13211
|
+
})().constructor.prototype;
|
|
13270
13212
|
const n2 = ["then", "catch", "finally"].map((e3) => [e3, Reflect.getOwnPropertyDescriptor(t2, e3)]);
|
|
13271
13213
|
const mergePromise = (e3, t3) => {
|
|
13272
13214
|
for (const [r, o] of n2) {
|
|
13273
13215
|
const n3 = typeof t3 === "function" ? (...e4) => Reflect.apply(o.value, t3(), e4) : o.value.bind(t3);
|
|
13274
|
-
Reflect.defineProperty(e3, r,
|
|
13216
|
+
Reflect.defineProperty(e3, r, { ...o, value: n3 });
|
|
13275
13217
|
}
|
|
13276
13218
|
return e3;
|
|
13277
13219
|
};
|
|
@@ -13355,17 +13297,17 @@ ${o.message}` : x;
|
|
|
13355
13297
|
}
|
|
13356
13298
|
return n3;
|
|
13357
13299
|
};
|
|
13358
|
-
const getBufferedData = (e3, t3) =>
|
|
13300
|
+
const getBufferedData = async (e3, t3) => {
|
|
13359
13301
|
if (!e3) {
|
|
13360
13302
|
return;
|
|
13361
13303
|
}
|
|
13362
13304
|
e3.destroy();
|
|
13363
13305
|
try {
|
|
13364
|
-
return
|
|
13306
|
+
return await t3;
|
|
13365
13307
|
} catch (e4) {
|
|
13366
13308
|
return e4.bufferedData;
|
|
13367
13309
|
}
|
|
13368
|
-
}
|
|
13310
|
+
};
|
|
13369
13311
|
const getStreamPromise = (e3, { encoding: t3, buffer: n3, maxBuffer: r2 }) => {
|
|
13370
13312
|
if (!e3 || !n3) {
|
|
13371
13313
|
return;
|
|
@@ -13375,16 +13317,16 @@ ${o.message}` : x;
|
|
|
13375
13317
|
}
|
|
13376
13318
|
return o.buffer(e3, { maxBuffer: r2 });
|
|
13377
13319
|
};
|
|
13378
|
-
const getSpawnedResult =
|
|
13320
|
+
const getSpawnedResult = async ({ stdout: e3, stderr: t3, all: n3 }, { encoding: r2, buffer: o2, maxBuffer: s2 }, i) => {
|
|
13379
13321
|
const a = getStreamPromise(e3, { encoding: r2, buffer: o2, maxBuffer: s2 });
|
|
13380
13322
|
const c = getStreamPromise(t3, { encoding: r2, buffer: o2, maxBuffer: s2 });
|
|
13381
13323
|
const d = getStreamPromise(n3, { encoding: r2, buffer: o2, maxBuffer: s2 * 2 });
|
|
13382
13324
|
try {
|
|
13383
|
-
return
|
|
13325
|
+
return await Promise.all([i, a, c, d]);
|
|
13384
13326
|
} catch (r3) {
|
|
13385
13327
|
return Promise.all([{ error: r3, signal: r3.signal, timedOut: r3.timedOut }, getBufferedData(e3, a), getBufferedData(t3, c), getBufferedData(n3, d)]);
|
|
13386
13328
|
}
|
|
13387
|
-
}
|
|
13329
|
+
};
|
|
13388
13330
|
const validateInputSync = ({ input: e3 }) => {
|
|
13389
13331
|
if (r(e3)) {
|
|
13390
13332
|
throw new TypeError("The `input` option cannot be a stream in sync mode");
|
|
@@ -13395,7 +13337,7 @@ ${o.message}` : x;
|
|
|
13395
13337
|
"use strict";
|
|
13396
13338
|
const { PassThrough: r } = n2(781);
|
|
13397
13339
|
e2.exports = (e3) => {
|
|
13398
|
-
e3 =
|
|
13340
|
+
e3 = { ...e3 };
|
|
13399
13341
|
const { array: t3 } = e3;
|
|
13400
13342
|
let { encoding: n3 } = e3;
|
|
13401
13343
|
const o = n3 === "buffer";
|
|
@@ -13444,41 +13386,39 @@ ${o.message}` : x;
|
|
|
13444
13386
|
this.name = "MaxBufferError";
|
|
13445
13387
|
}
|
|
13446
13388
|
}
|
|
13447
|
-
function getStream(e3, t3) {
|
|
13448
|
-
|
|
13449
|
-
|
|
13450
|
-
|
|
13451
|
-
|
|
13452
|
-
|
|
13453
|
-
|
|
13454
|
-
|
|
13455
|
-
|
|
13456
|
-
|
|
13457
|
-
|
|
13458
|
-
|
|
13459
|
-
|
|
13460
|
-
|
|
13461
|
-
|
|
13462
|
-
|
|
13463
|
-
|
|
13464
|
-
|
|
13465
|
-
|
|
13466
|
-
|
|
13467
|
-
|
|
13468
|
-
|
|
13469
|
-
|
|
13470
|
-
o2.
|
|
13471
|
-
|
|
13472
|
-
|
|
13473
|
-
}
|
|
13474
|
-
});
|
|
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
|
+
}
|
|
13475
13415
|
});
|
|
13476
|
-
return o2.getBufferedValue();
|
|
13477
13416
|
});
|
|
13417
|
+
return o2.getBufferedValue();
|
|
13478
13418
|
}
|
|
13479
13419
|
e2.exports = getStream;
|
|
13480
|
-
e2.exports.buffer = (e3, t3) => getStream(e3,
|
|
13481
|
-
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 });
|
|
13482
13422
|
e2.exports.MaxBufferError = MaxBufferError;
|
|
13483
13423
|
}, 221: (e2, t2) => {
|
|
13484
13424
|
"use strict";
|
|
@@ -13498,7 +13438,7 @@ ${o.message}` : x;
|
|
|
13498
13438
|
return e3.reduce(getSignalByName, {});
|
|
13499
13439
|
};
|
|
13500
13440
|
const getSignalByName = function(e3, { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 }) {
|
|
13501
|
-
return
|
|
13441
|
+
return { ...e3, [t3]: { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 } };
|
|
13502
13442
|
};
|
|
13503
13443
|
const i = getSignalsByName();
|
|
13504
13444
|
t2.signalsByName = i;
|
|
@@ -13730,7 +13670,7 @@ ${o.message}` : x;
|
|
|
13730
13670
|
const r = n2(17);
|
|
13731
13671
|
const o = n2(460);
|
|
13732
13672
|
const npmRunPath = (e3) => {
|
|
13733
|
-
e3 =
|
|
13673
|
+
e3 = { cwd: process.cwd(), path: process.env[o()], execPath: process.execPath, ...e3 };
|
|
13734
13674
|
let t3;
|
|
13735
13675
|
let n3 = r.resolve(e3.cwd);
|
|
13736
13676
|
const s = [];
|
|
@@ -13746,8 +13686,8 @@ ${o.message}` : x;
|
|
|
13746
13686
|
e2.exports = npmRunPath;
|
|
13747
13687
|
e2.exports["default"] = npmRunPath;
|
|
13748
13688
|
e2.exports.env = (t3) => {
|
|
13749
|
-
t3 =
|
|
13750
|
-
const n3 =
|
|
13689
|
+
t3 = { env: process.env, ...t3 };
|
|
13690
|
+
const n3 = { ...t3.env };
|
|
13751
13691
|
const r2 = o({ env: n3 });
|
|
13752
13692
|
t3.path = n3[r2];
|
|
13753
13693
|
n3[r2] = e2.exports(t3);
|
|
@@ -15156,7 +15096,7 @@ var require_upath = __commonJS({
|
|
|
15156
15096
|
_.VERSION = typeof n !== "undefined" && n !== null ? n : "NO-VERSION";
|
|
15157
15097
|
p = function(e3) {
|
|
15158
15098
|
e3 = e3.replace(/\\/g, "/");
|
|
15159
|
-
e3 = e3.replace(
|
|
15099
|
+
e3 = e3.replace(/(?<!^)\/+/g, "/");
|
|
15160
15100
|
return e3;
|
|
15161
15101
|
};
|
|
15162
15102
|
for (c in o) {
|
|
@@ -15452,9 +15392,7 @@ var require_pkg_up = __commonJS({
|
|
|
15452
15392
|
};
|
|
15453
15393
|
}, 800: (e2, r2, n2) => {
|
|
15454
15394
|
const t = n2(485);
|
|
15455
|
-
e2.exports =
|
|
15456
|
-
return t("package.json", { cwd: e3 });
|
|
15457
|
-
});
|
|
15395
|
+
e2.exports = async ({ cwd: e3 } = {}) => t("package.json", { cwd: e3 });
|
|
15458
15396
|
e2.exports.sync = ({ cwd: e3 } = {}) => t.sync("package.json", { cwd: e3 });
|
|
15459
15397
|
}, 147: (e2) => {
|
|
15460
15398
|
e2.exports = require("fs");
|
|
@@ -23985,7 +23923,7 @@ var require_fast_glob = __commonJS({
|
|
|
23985
23923
|
}
|
|
23986
23924
|
if (t4.nodes && t4.ranges > 0) {
|
|
23987
23925
|
let r4 = s.reduce(t4.nodes);
|
|
23988
|
-
let i2 = n(...r4,
|
|
23926
|
+
let i2 = n(...r4, { ...e3, wrap: false, toRegex: true });
|
|
23989
23927
|
if (i2.length !== 0) {
|
|
23990
23928
|
return r4.length > 1 && i2.length > 1 ? `(${i2})` : i2;
|
|
23991
23929
|
}
|
|
@@ -24411,13 +24349,11 @@ var require_fast_glob = __commonJS({
|
|
|
24411
24349
|
const a = r2(1066);
|
|
24412
24350
|
const u = r2(7190);
|
|
24413
24351
|
const c = r2(3828);
|
|
24414
|
-
function FastGlob(t3, e3) {
|
|
24415
|
-
|
|
24416
|
-
|
|
24417
|
-
|
|
24418
|
-
|
|
24419
|
-
return c.array.flatten(n2);
|
|
24420
|
-
});
|
|
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);
|
|
24421
24357
|
}
|
|
24422
24358
|
(function(t3) {
|
|
24423
24359
|
function sync(t4, e3) {
|
|
@@ -25588,7 +25524,7 @@ var require_fast_glob = __commonJS({
|
|
|
25588
25524
|
};
|
|
25589
25525
|
const toRange = (t3, e3, r3, n2) => {
|
|
25590
25526
|
if (r3) {
|
|
25591
|
-
return s(t3, e3,
|
|
25527
|
+
return s(t3, e3, { wrap: false, ...n2 });
|
|
25592
25528
|
}
|
|
25593
25529
|
let i = String.fromCharCode(t3);
|
|
25594
25530
|
if (t3 === e3)
|
|
@@ -25654,7 +25590,7 @@ var require_fast_glob = __commonJS({
|
|
|
25654
25590
|
g++;
|
|
25655
25591
|
}
|
|
25656
25592
|
if (n2.toRegex === true) {
|
|
25657
|
-
return r3 > 1 ? toSequence(d, n2) : toRegex(_, null,
|
|
25593
|
+
return r3 > 1 ? toSequence(d, n2) : toRegex(_, null, { wrap: false, ...n2 });
|
|
25658
25594
|
}
|
|
25659
25595
|
return _;
|
|
25660
25596
|
};
|
|
@@ -25696,7 +25632,7 @@ var require_fast_glob = __commonJS({
|
|
|
25696
25632
|
if (isObject4(r3)) {
|
|
25697
25633
|
return fill(t3, e3, 0, r3);
|
|
25698
25634
|
}
|
|
25699
|
-
let s2 =
|
|
25635
|
+
let s2 = { ...n2 };
|
|
25700
25636
|
if (s2.capture === true)
|
|
25701
25637
|
s2.wrap = true;
|
|
25702
25638
|
r3 = r3 || s2.step || 1;
|
|
@@ -26020,7 +25956,7 @@ var require_fast_glob = __commonJS({
|
|
|
26020
25956
|
}
|
|
26021
25957
|
};
|
|
26022
25958
|
for (let o3 = 0; o3 < e3.length; o3++) {
|
|
26023
|
-
let u2 = i(String(e3[o3]),
|
|
25959
|
+
let u2 = i(String(e3[o3]), { ...r3, onResult }, true);
|
|
26024
25960
|
let c2 = u2.state.negated || u2.state.negatedExtglob;
|
|
26025
25961
|
if (c2)
|
|
26026
25962
|
a++;
|
|
@@ -26062,7 +25998,7 @@ var require_fast_glob = __commonJS({
|
|
|
26062
25998
|
r3.onResult(t4);
|
|
26063
25999
|
s2.push(t4.output);
|
|
26064
26000
|
};
|
|
26065
|
-
let i2 = new Set(micromatch(t3, e3,
|
|
26001
|
+
let i2 = new Set(micromatch(t3, e3, { ...r3, onResult }));
|
|
26066
26002
|
for (let t4 of s2) {
|
|
26067
26003
|
if (!i2.has(t4)) {
|
|
26068
26004
|
n2.add(t4);
|
|
@@ -26085,7 +26021,7 @@ var require_fast_glob = __commonJS({
|
|
|
26085
26021
|
return true;
|
|
26086
26022
|
}
|
|
26087
26023
|
}
|
|
26088
|
-
return micromatch.isMatch(t3, e3,
|
|
26024
|
+
return micromatch.isMatch(t3, e3, { ...r3, contains: true });
|
|
26089
26025
|
};
|
|
26090
26026
|
micromatch.matchKeys = (t3, e3, r3) => {
|
|
26091
26027
|
if (!o.isObject(t3)) {
|
|
@@ -26125,7 +26061,7 @@ var require_fast_glob = __commonJS({
|
|
|
26125
26061
|
};
|
|
26126
26062
|
micromatch.capture = (t3, e3, r3) => {
|
|
26127
26063
|
let n2 = o.isWindows(r3);
|
|
26128
|
-
let s2 = i.makeRe(String(t3),
|
|
26064
|
+
let s2 = i.makeRe(String(t3), { ...r3, capture: true });
|
|
26129
26065
|
let a = s2.exec(n2 ? o.toPosixSlashes(e3) : e3);
|
|
26130
26066
|
if (a) {
|
|
26131
26067
|
return a.slice(1).map((t4) => t4 === void 0 ? "" : t4);
|
|
@@ -26153,7 +26089,7 @@ var require_fast_glob = __commonJS({
|
|
|
26153
26089
|
micromatch.braceExpand = (t3, e3) => {
|
|
26154
26090
|
if (typeof t3 !== "string")
|
|
26155
26091
|
throw new TypeError("Expected a string");
|
|
26156
|
-
return micromatch.braces(t3,
|
|
26092
|
+
return micromatch.braces(t3, { ...e3, expand: true });
|
|
26157
26093
|
};
|
|
26158
26094
|
t2.exports = micromatch;
|
|
26159
26095
|
}, 376: (t2, e2, r2) => {
|
|
@@ -26180,7 +26116,7 @@ var require_fast_glob = __commonJS({
|
|
|
26180
26116
|
const m = `[^.${c}]`;
|
|
26181
26117
|
const v = `${f}*?`;
|
|
26182
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 };
|
|
26183
|
-
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}]|$)` };
|
|
26184
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" };
|
|
26185
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) {
|
|
26186
26122
|
return { "!": { type: "negate", open: "(?:(?!(?:", close: `))${t3.STAR})` }, "?": { type: "qmark", open: "(?:", close: ")?" }, "+": { type: "plus", open: "(?:", close: ")+" }, "*": { type: "star", open: "(?:", close: ")*" }, "@": { type: "at", open: "(?:", close: ")" } };
|
|
@@ -26211,7 +26147,7 @@ var require_fast_glob = __commonJS({
|
|
|
26211
26147
|
throw new TypeError("Expected a string");
|
|
26212
26148
|
}
|
|
26213
26149
|
t3 = c[t3] || t3;
|
|
26214
|
-
const r3 =
|
|
26150
|
+
const r3 = { ...e3 };
|
|
26215
26151
|
const l = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
|
|
26216
26152
|
let f = t3.length;
|
|
26217
26153
|
if (f > l) {
|
|
@@ -26303,7 +26239,7 @@ var require_fast_glob = __commonJS({
|
|
|
26303
26239
|
M = t4;
|
|
26304
26240
|
};
|
|
26305
26241
|
const extglobOpen = (t4, e4) => {
|
|
26306
|
-
const n2 =
|
|
26242
|
+
const n2 = { ...y[e4], conditions: 1, inner: "" };
|
|
26307
26243
|
n2.prev = M;
|
|
26308
26244
|
n2.parens = H.parens;
|
|
26309
26245
|
n2.output = H.output;
|
|
@@ -26325,7 +26261,7 @@ var require_fast_glob = __commonJS({
|
|
|
26325
26261
|
n2 = t4.close = `)$))${i2}`;
|
|
26326
26262
|
}
|
|
26327
26263
|
if (t4.inner.includes("*") && (s2 = remaining()) && /^\.[^\\/.]+$/.test(s2)) {
|
|
26328
|
-
const r4 = parse3(s2,
|
|
26264
|
+
const r4 = parse3(s2, { ...e3, fastpaths: false }).output;
|
|
26329
26265
|
n2 = t4.close = `)${r4})${i2})`;
|
|
26330
26266
|
}
|
|
26331
26267
|
if (t4.prev.type === "bos") {
|
|
@@ -26847,7 +26783,7 @@ var require_fast_glob = __commonJS({
|
|
|
26847
26783
|
return H;
|
|
26848
26784
|
};
|
|
26849
26785
|
parse3.fastpaths = (t3, e3) => {
|
|
26850
|
-
const r3 =
|
|
26786
|
+
const r3 = { ...e3 };
|
|
26851
26787
|
const o2 = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
|
|
26852
26788
|
const a2 = t3.length;
|
|
26853
26789
|
if (a2 > o2) {
|
|
@@ -26938,7 +26874,7 @@ var require_fast_glob = __commonJS({
|
|
|
26938
26874
|
delete a2.state;
|
|
26939
26875
|
let isIgnored = () => false;
|
|
26940
26876
|
if (s2.ignore) {
|
|
26941
|
-
const t4 =
|
|
26877
|
+
const t4 = { ...e3, ignore: null, onMatch: null, onResult: null };
|
|
26942
26878
|
isIgnored = picomatch(s2.ignore, t4, r3);
|
|
26943
26879
|
}
|
|
26944
26880
|
const matcher = (r4, n3 = false) => {
|
|
@@ -27000,7 +26936,7 @@ var require_fast_glob = __commonJS({
|
|
|
27000
26936
|
picomatch.parse = (t3, e3) => {
|
|
27001
26937
|
if (Array.isArray(t3))
|
|
27002
26938
|
return t3.map((t4) => picomatch.parse(t4, e3));
|
|
27003
|
-
return i(t3,
|
|
26939
|
+
return i(t3, { ...e3, fastpaths: false });
|
|
27004
26940
|
};
|
|
27005
26941
|
picomatch.scan = (t3, e3) => s(t3, e3);
|
|
27006
26942
|
picomatch.compileRe = (t3, e3, r3 = false, n2 = false) => {
|
|
@@ -27465,7 +27401,7 @@ var require_fast_glob = __commonJS({
|
|
|
27465
27401
|
if (n(e3) === false) {
|
|
27466
27402
|
throw new TypeError("toRegexRange: expected the second argument to be a number.");
|
|
27467
27403
|
}
|
|
27468
|
-
let s =
|
|
27404
|
+
let s = { relaxZeros: true, ...r3 };
|
|
27469
27405
|
if (typeof s.strictZeros === "boolean") {
|
|
27470
27406
|
s.relaxZeros = s.strictZeros === false;
|
|
27471
27407
|
}
|
|
@@ -27743,19 +27679,19 @@ var require_globby = __commonJS({
|
|
|
27743
27679
|
}
|
|
27744
27680
|
return [n.posix.join(t3, "**")];
|
|
27745
27681
|
};
|
|
27746
|
-
t2.exports = (t3, e3) =>
|
|
27747
|
-
e3 =
|
|
27682
|
+
t2.exports = async (t3, e3) => {
|
|
27683
|
+
e3 = { cwd: process.cwd(), ...e3 };
|
|
27748
27684
|
if (typeof e3.cwd !== "string") {
|
|
27749
27685
|
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
|
|
27750
27686
|
}
|
|
27751
|
-
const r3 =
|
|
27752
|
-
const r4 =
|
|
27687
|
+
const r3 = await Promise.all([].concat(t3).map(async (t4) => {
|
|
27688
|
+
const r4 = await s.isDirectory(getPath(t4, e3.cwd));
|
|
27753
27689
|
return r4 ? getGlob(t4, e3) : t4;
|
|
27754
|
-
}))
|
|
27690
|
+
}));
|
|
27755
27691
|
return [].concat.apply([], r3);
|
|
27756
|
-
}
|
|
27692
|
+
};
|
|
27757
27693
|
t2.exports.sync = (t3, e3) => {
|
|
27758
|
-
e3 =
|
|
27694
|
+
e3 = { cwd: process.cwd(), ...e3 };
|
|
27759
27695
|
if (typeof e3.cwd !== "string") {
|
|
27760
27696
|
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
|
|
27761
27697
|
}
|
|
@@ -27800,24 +27736,24 @@ var require_globby = __commonJS({
|
|
|
27800
27736
|
return o.join(t3, e3);
|
|
27801
27737
|
};
|
|
27802
27738
|
const getIsIgnoredPredecate = (t3, e3) => (r3) => t3.ignores(a(o.relative(e3, ensureAbsolutePathForCwd(e3, r3.path || r3))));
|
|
27803
|
-
const getFile = (t3, e3) =>
|
|
27739
|
+
const getFile = async (t3, e3) => {
|
|
27804
27740
|
const r3 = o.join(e3, t3);
|
|
27805
|
-
const n2 =
|
|
27741
|
+
const n2 = await u(r3, "utf8");
|
|
27806
27742
|
return { cwd: e3, filePath: r3, content: n2 };
|
|
27807
|
-
}
|
|
27743
|
+
};
|
|
27808
27744
|
const getFileSync = (t3, e3) => {
|
|
27809
27745
|
const r3 = o.join(e3, t3);
|
|
27810
27746
|
const n2 = s.readFileSync(r3, "utf8");
|
|
27811
27747
|
return { cwd: e3, filePath: r3, content: n2 };
|
|
27812
27748
|
};
|
|
27813
27749
|
const normalizeOptions = ({ ignore: t3 = [], cwd: e3 = a(process.cwd()) } = {}) => ({ ignore: t3, cwd: e3 });
|
|
27814
|
-
t2.exports = (t3) =>
|
|
27750
|
+
t2.exports = async (t3) => {
|
|
27815
27751
|
t3 = normalizeOptions(t3);
|
|
27816
|
-
const e3 =
|
|
27817
|
-
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)));
|
|
27818
27754
|
const n2 = reduceIgnore(r3);
|
|
27819
27755
|
return getIsIgnoredPredecate(n2, t3.cwd);
|
|
27820
|
-
}
|
|
27756
|
+
};
|
|
27821
27757
|
t2.exports.sync = (t3) => {
|
|
27822
27758
|
t3 = normalizeOptions(t3);
|
|
27823
27759
|
const e3 = i.sync("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
|
|
@@ -27848,7 +27784,7 @@ var require_globby = __commonJS({
|
|
|
27848
27784
|
let e3;
|
|
27849
27785
|
try {
|
|
27850
27786
|
e3 = n.statSync(t3.cwd);
|
|
27851
|
-
} catch
|
|
27787
|
+
} catch {
|
|
27852
27788
|
return;
|
|
27853
27789
|
}
|
|
27854
27790
|
if (!e3.isDirectory()) {
|
|
@@ -27861,13 +27797,13 @@ var require_globby = __commonJS({
|
|
|
27861
27797
|
assertPatternsInput(t3);
|
|
27862
27798
|
checkCwdOption(e3);
|
|
27863
27799
|
const r3 = [];
|
|
27864
|
-
e3 =
|
|
27800
|
+
e3 = { ignore: [], expandDirectories: true, ...e3 };
|
|
27865
27801
|
for (const [n2, s2] of t3.entries()) {
|
|
27866
27802
|
if (isNegative(s2)) {
|
|
27867
27803
|
continue;
|
|
27868
27804
|
}
|
|
27869
27805
|
const o2 = t3.slice(n2).filter((t4) => isNegative(t4)).map((t4) => t4.slice(1));
|
|
27870
|
-
const i2 =
|
|
27806
|
+
const i2 = { ...e3, ignore: e3.ignore.concat(o2) };
|
|
27871
27807
|
r3.push({ pattern: s2, options: i2 });
|
|
27872
27808
|
}
|
|
27873
27809
|
return r3;
|
|
@@ -27878,9 +27814,9 @@ var require_globby = __commonJS({
|
|
|
27878
27814
|
r3.cwd = t3.options.cwd;
|
|
27879
27815
|
}
|
|
27880
27816
|
if (Array.isArray(t3.options.expandDirectories)) {
|
|
27881
|
-
r3 =
|
|
27817
|
+
r3 = { ...r3, files: t3.options.expandDirectories };
|
|
27882
27818
|
} else if (typeof t3.options.expandDirectories === "object") {
|
|
27883
|
-
r3 =
|
|
27819
|
+
r3 = { ...r3, ...t3.options.expandDirectories };
|
|
27884
27820
|
}
|
|
27885
27821
|
return e3(t3.pattern, r3);
|
|
27886
27822
|
};
|
|
@@ -27893,22 +27829,20 @@ var require_globby = __commonJS({
|
|
|
27893
27829
|
}
|
|
27894
27830
|
return { pattern: e3, options: r3 };
|
|
27895
27831
|
};
|
|
27896
|
-
t2.exports = (t3, e3) =>
|
|
27832
|
+
t2.exports = async (t3, e3) => {
|
|
27897
27833
|
const r3 = generateGlobTasks(t3, e3);
|
|
27898
|
-
const getFilter = () =>
|
|
27899
|
-
|
|
27900
|
-
|
|
27901
|
-
|
|
27902
|
-
const t4 = yield Promise.all(r3.map((t5) => __async(exports, null, function* () {
|
|
27903
|
-
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);
|
|
27904
27838
|
return Promise.all(e4.map(globToTask(t5)));
|
|
27905
|
-
}))
|
|
27839
|
+
}));
|
|
27906
27840
|
return s(...t4);
|
|
27907
|
-
}
|
|
27908
|
-
const [n2, o2] =
|
|
27909
|
-
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)));
|
|
27910
27844
|
return s(...p2).filter((t4) => !n2(getPathString(t4)));
|
|
27911
|
-
}
|
|
27845
|
+
};
|
|
27912
27846
|
t2.exports.sync = (t3, e3) => {
|
|
27913
27847
|
const r3 = generateGlobTasks(t3, e3);
|
|
27914
27848
|
const n2 = [];
|
|
@@ -28262,21 +28196,19 @@ var require_globby = __commonJS({
|
|
|
28262
28196
|
"use strict";
|
|
28263
28197
|
const { promisify: n } = r2(837);
|
|
28264
28198
|
const s = r2(147);
|
|
28265
|
-
function isType4(t3, e3, r3) {
|
|
28266
|
-
|
|
28267
|
-
|
|
28268
|
-
|
|
28269
|
-
|
|
28270
|
-
|
|
28271
|
-
|
|
28272
|
-
|
|
28273
|
-
|
|
28274
|
-
|
|
28275
|
-
return false;
|
|
28276
|
-
}
|
|
28277
|
-
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;
|
|
28278
28209
|
}
|
|
28279
|
-
|
|
28210
|
+
throw t4;
|
|
28211
|
+
}
|
|
28280
28212
|
}
|
|
28281
28213
|
function isTypeSync(t3, e3, r3) {
|
|
28282
28214
|
if (typeof r3 !== "string") {
|
|
@@ -30651,15 +30583,15 @@ var require_gzip_size = __commonJS({
|
|
|
30651
30583
|
const i = t2(796);
|
|
30652
30584
|
const { promisify: a } = t2(837);
|
|
30653
30585
|
const s = t2(325);
|
|
30654
|
-
const getOptions = (e3) =>
|
|
30586
|
+
const getOptions = (e3) => ({ level: 9, ...e3 });
|
|
30655
30587
|
const p = a(i.gzip);
|
|
30656
|
-
e2.exports = (e3, r3) =>
|
|
30588
|
+
e2.exports = async (e3, r3) => {
|
|
30657
30589
|
if (!e3) {
|
|
30658
30590
|
return 0;
|
|
30659
30591
|
}
|
|
30660
|
-
const t3 =
|
|
30592
|
+
const t3 = await p(e3, getOptions(r3));
|
|
30661
30593
|
return t3.length;
|
|
30662
|
-
}
|
|
30594
|
+
};
|
|
30663
30595
|
e2.exports.sync = (e3, r3) => i.gzipSync(e3, getOptions(r3)).length;
|
|
30664
30596
|
e2.exports.stream = (e3) => {
|
|
30665
30597
|
const r3 = new o.PassThrough();
|
|
@@ -33621,12 +33553,10 @@ Expecting one of '${i3.join("', '")}'`);
|
|
|
33621
33553
|
this._parseCommand([], i3);
|
|
33622
33554
|
return this;
|
|
33623
33555
|
}
|
|
33624
|
-
parseAsync(t3, e3) {
|
|
33625
|
-
|
|
33626
|
-
|
|
33627
|
-
|
|
33628
|
-
return this;
|
|
33629
|
-
});
|
|
33556
|
+
async parseAsync(t3, e3) {
|
|
33557
|
+
const i3 = this._prepareUserArgs(t3, e3);
|
|
33558
|
+
await this._parseCommand([], i3);
|
|
33559
|
+
return this;
|
|
33630
33560
|
}
|
|
33631
33561
|
_executeSubCommand(t3, e3) {
|
|
33632
33562
|
e3 = e3.slice();
|
|
@@ -42297,9 +42227,10 @@ var require_parse = __commonJS({
|
|
|
42297
42227
|
var parse_comments = (prefix) => {
|
|
42298
42228
|
const comments = [];
|
|
42299
42229
|
while (current && (is("LineComment") || is("BlockComment"))) {
|
|
42300
|
-
const comment =
|
|
42230
|
+
const comment = {
|
|
42231
|
+
...current,
|
|
42301
42232
|
inline
|
|
42302
|
-
}
|
|
42233
|
+
};
|
|
42303
42234
|
comments.push(comment);
|
|
42304
42235
|
next();
|
|
42305
42236
|
}
|
|
@@ -49766,12 +49697,12 @@ var require_baseUI = __commonJS({
|
|
|
49766
49697
|
const ms = new MuteStream();
|
|
49767
49698
|
ms.pipe(opt.output || process.stdout);
|
|
49768
49699
|
const output2 = ms;
|
|
49769
|
-
return
|
|
49770
|
-
terminal: true
|
|
49771
|
-
|
|
49700
|
+
return {
|
|
49701
|
+
terminal: true,
|
|
49702
|
+
...opt,
|
|
49772
49703
|
input,
|
|
49773
49704
|
output: output2
|
|
49774
|
-
}
|
|
49705
|
+
};
|
|
49775
49706
|
}
|
|
49776
49707
|
module2.exports = UI;
|
|
49777
49708
|
}
|
|
@@ -61229,14 +61160,14 @@ var require_prompt = __commonJS({
|
|
|
61229
61160
|
}
|
|
61230
61161
|
run(questions, answers) {
|
|
61231
61162
|
if (_.isPlainObject(answers)) {
|
|
61232
|
-
this.answers =
|
|
61163
|
+
this.answers = { ...answers };
|
|
61233
61164
|
} else {
|
|
61234
61165
|
this.answers = {};
|
|
61235
61166
|
}
|
|
61236
61167
|
if (_.isPlainObject(questions)) {
|
|
61237
61168
|
questions = Object.values(questions).every(
|
|
61238
61169
|
(v) => _.isPlainObject(v) && v.name === void 0
|
|
61239
|
-
) ? Object.entries(questions).map(([name, question]) =>
|
|
61170
|
+
) ? Object.entries(questions).map(([name, question]) => ({ name, ...question })) : [questions];
|
|
61240
61171
|
}
|
|
61241
61172
|
const obs = Array.isArray(questions) ? from(questions) : questions;
|
|
61242
61173
|
this.process = obs.pipe(
|
|
@@ -61264,7 +61195,7 @@ var require_prompt = __commonJS({
|
|
|
61264
61195
|
return Promise.reject(error);
|
|
61265
61196
|
}
|
|
61266
61197
|
processQuestion(question) {
|
|
61267
|
-
question =
|
|
61198
|
+
question = { ...question };
|
|
61268
61199
|
return defer(() => {
|
|
61269
61200
|
const obs = of(question);
|
|
61270
61201
|
return obs.pipe(
|
|
@@ -64222,7 +64153,7 @@ var require_conversions = __commonJS({
|
|
|
64222
64153
|
return [c * 100, m * 100, y * 100, k * 100];
|
|
64223
64154
|
};
|
|
64224
64155
|
function comparativeDistance(x, y) {
|
|
64225
|
-
return
|
|
64156
|
+
return (x[0] - y[0]) ** 2 + (x[1] - y[1]) ** 2 + (x[2] - y[2]) ** 2;
|
|
64226
64157
|
}
|
|
64227
64158
|
convert.rgb.keyword = function(rgb) {
|
|
64228
64159
|
const reversed = reverseKeywords[rgb];
|
|
@@ -64248,9 +64179,9 @@ var require_conversions = __commonJS({
|
|
|
64248
64179
|
let r = rgb[0] / 255;
|
|
64249
64180
|
let g = rgb[1] / 255;
|
|
64250
64181
|
let b = rgb[2] / 255;
|
|
64251
|
-
r = r > 0.04045 ?
|
|
64252
|
-
g = g > 0.04045 ?
|
|
64253
|
-
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;
|
|
64254
64185
|
const x = r * 0.4124 + g * 0.3576 + b * 0.1805;
|
|
64255
64186
|
const y = r * 0.2126 + g * 0.7152 + b * 0.0722;
|
|
64256
64187
|
const z = r * 0.0193 + g * 0.1192 + b * 0.9505;
|
|
@@ -64264,9 +64195,9 @@ var require_conversions = __commonJS({
|
|
|
64264
64195
|
x /= 95.047;
|
|
64265
64196
|
y /= 100;
|
|
64266
64197
|
z /= 108.883;
|
|
64267
|
-
x = x > 8856e-6 ?
|
|
64268
|
-
y = y > 8856e-6 ?
|
|
64269
|
-
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;
|
|
64270
64201
|
const l = 116 * y - 16;
|
|
64271
64202
|
const a = 500 * (x - y);
|
|
64272
64203
|
const b = 200 * (y - z);
|
|
@@ -64440,9 +64371,9 @@ var require_conversions = __commonJS({
|
|
|
64440
64371
|
r = x * 3.2406 + y * -1.5372 + z * -0.4986;
|
|
64441
64372
|
g = x * -0.9689 + y * 1.8758 + z * 0.0415;
|
|
64442
64373
|
b = x * 0.0557 + y * -0.204 + z * 1.057;
|
|
64443
|
-
r = r > 31308e-7 ? 1.055 *
|
|
64444
|
-
g = g > 31308e-7 ? 1.055 *
|
|
64445
|
-
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;
|
|
64446
64377
|
r = Math.min(Math.max(0, r), 1);
|
|
64447
64378
|
g = Math.min(Math.max(0, g), 1);
|
|
64448
64379
|
b = Math.min(Math.max(0, b), 1);
|
|
@@ -64455,9 +64386,9 @@ var require_conversions = __commonJS({
|
|
|
64455
64386
|
x /= 95.047;
|
|
64456
64387
|
y /= 100;
|
|
64457
64388
|
z /= 108.883;
|
|
64458
|
-
x = x > 8856e-6 ?
|
|
64459
|
-
y = y > 8856e-6 ?
|
|
64460
|
-
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;
|
|
64461
64392
|
const l = 116 * y - 16;
|
|
64462
64393
|
const a = 500 * (x - y);
|
|
64463
64394
|
const b = 200 * (y - z);
|
|
@@ -64473,9 +64404,9 @@ var require_conversions = __commonJS({
|
|
|
64473
64404
|
y = (l + 16) / 116;
|
|
64474
64405
|
x = a / 500 + y;
|
|
64475
64406
|
z = y - b / 200;
|
|
64476
|
-
const y2 =
|
|
64477
|
-
const x2 =
|
|
64478
|
-
const z2 =
|
|
64407
|
+
const y2 = y ** 3;
|
|
64408
|
+
const x2 = x ** 3;
|
|
64409
|
+
const z2 = z ** 3;
|
|
64479
64410
|
y = y2 > 8856e-6 ? y2 : (y - 16 / 116) / 7.787;
|
|
64480
64411
|
x = x2 > 8856e-6 ? x2 : (x - 16 / 116) / 7.787;
|
|
64481
64412
|
z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787;
|
|
@@ -70379,12 +70310,13 @@ var require_ora2 = __commonJS({
|
|
|
70379
70310
|
text: options
|
|
70380
70311
|
};
|
|
70381
70312
|
}
|
|
70382
|
-
this.options =
|
|
70313
|
+
this.options = {
|
|
70383
70314
|
text: "",
|
|
70384
70315
|
color: "cyan",
|
|
70385
70316
|
stream: process.stderr,
|
|
70386
|
-
discardStdin: true
|
|
70387
|
-
|
|
70317
|
+
discardStdin: true,
|
|
70318
|
+
...options
|
|
70319
|
+
};
|
|
70388
70320
|
this.spinner = this.options.spinner;
|
|
70389
70321
|
this.color = this.options.color;
|
|
70390
70322
|
this.hideCursor = this.options.hideCursor !== false;
|
|
@@ -70601,14 +70533,14 @@ var require_ora2 = __commonJS({
|
|
|
70601
70533
|
}
|
|
70602
70534
|
const spinner = new Ora(options);
|
|
70603
70535
|
spinner.start();
|
|
70604
|
-
(() =>
|
|
70536
|
+
(async () => {
|
|
70605
70537
|
try {
|
|
70606
|
-
|
|
70538
|
+
await action2;
|
|
70607
70539
|
spinner.succeed();
|
|
70608
|
-
} catch
|
|
70540
|
+
} catch {
|
|
70609
70541
|
spinner.fail();
|
|
70610
70542
|
}
|
|
70611
|
-
})
|
|
70543
|
+
})();
|
|
70612
70544
|
return spinner;
|
|
70613
70545
|
};
|
|
70614
70546
|
}
|
|
@@ -82188,7 +82120,7 @@ var require_prompt2 = __commonJS({
|
|
|
82188
82120
|
if (_.isPlainObject(questions)) {
|
|
82189
82121
|
questions = Object.values(questions).every(
|
|
82190
82122
|
(v) => _.isPlainObject(v) && v.name === void 0
|
|
82191
|
-
) ? Object.entries(questions).map(([name, question]) =>
|
|
82123
|
+
) ? Object.entries(questions).map(([name, question]) => ({ name, ...question })) : [questions];
|
|
82192
82124
|
}
|
|
82193
82125
|
const obs = _.isArray(questions) ? from(questions) : questions;
|
|
82194
82126
|
this.process = obs.pipe(
|
|
@@ -84897,22 +84829,20 @@ var require_fs_extra2 = __commonJS({
|
|
|
84897
84829
|
const o = r2(17);
|
|
84898
84830
|
const c = r2(971);
|
|
84899
84831
|
const s = r2(95);
|
|
84900
|
-
const a = n(function emptyDir(e3) {
|
|
84901
|
-
|
|
84902
|
-
|
|
84903
|
-
|
|
84904
|
-
|
|
84905
|
-
|
|
84906
|
-
|
|
84907
|
-
|
|
84908
|
-
return Promise.all(t3.map((t4) => s.remove(o.join(e3, t4))));
|
|
84909
|
-
});
|
|
84832
|
+
const a = n(async function emptyDir(e3) {
|
|
84833
|
+
let t3;
|
|
84834
|
+
try {
|
|
84835
|
+
t3 = await i.readdir(e3);
|
|
84836
|
+
} catch {
|
|
84837
|
+
return c.mkdirs(e3);
|
|
84838
|
+
}
|
|
84839
|
+
return Promise.all(t3.map((t4) => s.remove(o.join(e3, t4))));
|
|
84910
84840
|
});
|
|
84911
84841
|
function emptyDirSync(e3) {
|
|
84912
84842
|
let t3;
|
|
84913
84843
|
try {
|
|
84914
84844
|
t3 = i.readdirSync(e3);
|
|
84915
|
-
} catch
|
|
84845
|
+
} catch {
|
|
84916
84846
|
return c.mkdirsSync(e3);
|
|
84917
84847
|
}
|
|
84918
84848
|
t3.forEach((t4) => {
|
|
@@ -84965,7 +84895,7 @@ var require_fs_extra2 = __commonJS({
|
|
|
84965
84895
|
let t3;
|
|
84966
84896
|
try {
|
|
84967
84897
|
t3 = o.statSync(e3);
|
|
84968
|
-
} catch
|
|
84898
|
+
} catch {
|
|
84969
84899
|
}
|
|
84970
84900
|
if (t3 && t3.isFile())
|
|
84971
84901
|
return;
|
|
@@ -85032,7 +84962,7 @@ var require_fs_extra2 = __commonJS({
|
|
|
85032
84962
|
let r3;
|
|
85033
84963
|
try {
|
|
85034
84964
|
r3 = o.lstatSync(t3);
|
|
85035
|
-
} catch
|
|
84965
|
+
} catch {
|
|
85036
84966
|
}
|
|
85037
84967
|
try {
|
|
85038
84968
|
const t4 = o.lstatSync(e3);
|
|
@@ -85127,7 +85057,7 @@ var require_fs_extra2 = __commonJS({
|
|
|
85127
85057
|
return t3;
|
|
85128
85058
|
try {
|
|
85129
85059
|
r3 = n.lstatSync(e3);
|
|
85130
|
-
} catch
|
|
85060
|
+
} catch {
|
|
85131
85061
|
return "file";
|
|
85132
85062
|
}
|
|
85133
85063
|
return r3 && r3.isDirectory() ? "dir" : "file";
|
|
@@ -85190,7 +85120,7 @@ var require_fs_extra2 = __commonJS({
|
|
|
85190
85120
|
let n2;
|
|
85191
85121
|
try {
|
|
85192
85122
|
n2 = o.lstatSync(t3);
|
|
85193
|
-
} catch
|
|
85123
|
+
} catch {
|
|
85194
85124
|
}
|
|
85195
85125
|
if (n2 && n2.isSymbolicLink()) {
|
|
85196
85126
|
const r4 = o.statSync(e3);
|
|
@@ -85265,7 +85195,7 @@ var require_fs_extra2 = __commonJS({
|
|
|
85265
85195
|
}
|
|
85266
85196
|
}, 81: (e2, t2, r2) => {
|
|
85267
85197
|
"use strict";
|
|
85268
|
-
e2.exports =
|
|
85198
|
+
e2.exports = { ...r2(812), ...r2(2), ...r2(708), ...r2(726), ...r2(779), ...r2(971), ...r2(511), ...r2(701), ...r2(725), ...r2(95) };
|
|
85269
85199
|
}, 779: (e2, t2, r2) => {
|
|
85270
85200
|
"use strict";
|
|
85271
85201
|
const n = r2(5).fromPromise;
|
|
@@ -85296,11 +85226,9 @@ var require_fs_extra2 = __commonJS({
|
|
|
85296
85226
|
"use strict";
|
|
85297
85227
|
const { stringify: n } = r2(208);
|
|
85298
85228
|
const { outputFile: i } = r2(701);
|
|
85299
|
-
function outputJson(
|
|
85300
|
-
|
|
85301
|
-
|
|
85302
|
-
yield i(e3, o, r3);
|
|
85303
|
-
});
|
|
85229
|
+
async function outputJson(e3, t3, r3 = {}) {
|
|
85230
|
+
const o = n(t3, r3);
|
|
85231
|
+
await i(e3, o, r3);
|
|
85304
85232
|
}
|
|
85305
85233
|
e2.exports = outputJson;
|
|
85306
85234
|
}, 971: (e2, t2, r2) => {
|
|
@@ -85317,12 +85245,12 @@ var require_fs_extra2 = __commonJS({
|
|
|
85317
85245
|
const t3 = { mode: 511 };
|
|
85318
85246
|
if (typeof e3 === "number")
|
|
85319
85247
|
return e3;
|
|
85320
|
-
return
|
|
85248
|
+
return { ...t3, ...e3 }.mode;
|
|
85321
85249
|
};
|
|
85322
|
-
e2.exports.makeDir = (e3, t3) =>
|
|
85250
|
+
e2.exports.makeDir = async (e3, t3) => {
|
|
85323
85251
|
i(e3);
|
|
85324
85252
|
return n.mkdir(e3, { mode: getMode(t3), recursive: true });
|
|
85325
|
-
}
|
|
85253
|
+
};
|
|
85326
85254
|
e2.exports.makeDirSync = (e3, t3) => {
|
|
85327
85255
|
i(e3);
|
|
85328
85256
|
return n.mkdirSync(e3, { mode: getMode(t3), recursive: true });
|
|
@@ -85740,7 +85668,7 @@ var require_fs_extra2 = __commonJS({
|
|
|
85740
85668
|
try {
|
|
85741
85669
|
const r4 = t3.rmdirSync(e3, t3);
|
|
85742
85670
|
return r4;
|
|
85743
|
-
} catch
|
|
85671
|
+
} catch {
|
|
85744
85672
|
}
|
|
85745
85673
|
} while (Date.now() - r3 < 500);
|
|
85746
85674
|
} else {
|
|
@@ -86639,28 +86567,26 @@ var require_fs_extra2 = __commonJS({
|
|
|
86639
86567
|
}
|
|
86640
86568
|
const i = r2(5);
|
|
86641
86569
|
const { stringify: o, stripBom: c } = r2(208);
|
|
86642
|
-
function _readFile(
|
|
86643
|
-
|
|
86644
|
-
|
|
86645
|
-
|
|
86646
|
-
|
|
86647
|
-
|
|
86648
|
-
|
|
86649
|
-
|
|
86650
|
-
|
|
86651
|
-
|
|
86652
|
-
|
|
86653
|
-
|
|
86654
|
-
|
|
86655
|
-
|
|
86656
|
-
|
|
86657
|
-
|
|
86658
|
-
|
|
86659
|
-
return null;
|
|
86660
|
-
}
|
|
86570
|
+
async function _readFile(e3, t3 = {}) {
|
|
86571
|
+
if (typeof t3 === "string") {
|
|
86572
|
+
t3 = { encoding: t3 };
|
|
86573
|
+
}
|
|
86574
|
+
const r3 = t3.fs || n;
|
|
86575
|
+
const o2 = "throws" in t3 ? t3.throws : true;
|
|
86576
|
+
let s2 = await i.fromCallback(r3.readFile)(e3, t3);
|
|
86577
|
+
s2 = c(s2);
|
|
86578
|
+
let a2;
|
|
86579
|
+
try {
|
|
86580
|
+
a2 = JSON.parse(s2, t3 ? t3.reviver : null);
|
|
86581
|
+
} catch (t4) {
|
|
86582
|
+
if (o2) {
|
|
86583
|
+
t4.message = `${e3}: ${t4.message}`;
|
|
86584
|
+
throw t4;
|
|
86585
|
+
} else {
|
|
86586
|
+
return null;
|
|
86661
86587
|
}
|
|
86662
|
-
|
|
86663
|
-
|
|
86588
|
+
}
|
|
86589
|
+
return a2;
|
|
86664
86590
|
}
|
|
86665
86591
|
const s = i.fromPromise(_readFile);
|
|
86666
86592
|
function readFileSync(e3, t3 = {}) {
|
|
@@ -86682,12 +86608,10 @@ var require_fs_extra2 = __commonJS({
|
|
|
86682
86608
|
}
|
|
86683
86609
|
}
|
|
86684
86610
|
}
|
|
86685
|
-
function _writeFile(
|
|
86686
|
-
|
|
86687
|
-
|
|
86688
|
-
|
|
86689
|
-
yield i.fromCallback(c2.writeFile)(e3, s2, r3);
|
|
86690
|
-
});
|
|
86611
|
+
async function _writeFile(e3, t3, r3 = {}) {
|
|
86612
|
+
const c2 = r3.fs || n;
|
|
86613
|
+
const s2 = o(t3, r3);
|
|
86614
|
+
await i.fromCallback(c2.writeFile)(e3, s2, r3);
|
|
86691
86615
|
}
|
|
86692
86616
|
const a = i.fromPromise(_writeFile);
|
|
86693
86617
|
function writeFileSync(e3, t3, r3 = {}) {
|
|
@@ -86915,11 +86839,11 @@ var require_chalk2 = __commonJS({
|
|
|
86915
86839
|
} };
|
|
86916
86840
|
}
|
|
86917
86841
|
const f = Object.defineProperties(() => {
|
|
86918
|
-
},
|
|
86842
|
+
}, { ...u, level: { enumerable: true, get() {
|
|
86919
86843
|
return this._generator.level;
|
|
86920
86844
|
}, set(e3) {
|
|
86921
86845
|
this._generator.level = e3;
|
|
86922
|
-
} } })
|
|
86846
|
+
} } });
|
|
86923
86847
|
const createStyler = (e3, t3, n3) => {
|
|
86924
86848
|
let r2;
|
|
86925
86849
|
let s2;
|
|
@@ -87230,7 +87154,7 @@ var require_chalk2 = __commonJS({
|
|
|
87230
87154
|
return [o2 * 100, l * 100, c * 100, s2 * 100];
|
|
87231
87155
|
};
|
|
87232
87156
|
function comparativeDistance(e3, t3) {
|
|
87233
|
-
return
|
|
87157
|
+
return (e3[0] - t3[0]) ** 2 + (e3[1] - t3[1]) ** 2 + (e3[2] - t3[2]) ** 2;
|
|
87234
87158
|
}
|
|
87235
87159
|
o.rgb.keyword = function(e3) {
|
|
87236
87160
|
const t3 = s[e3];
|
|
@@ -87256,9 +87180,9 @@ var require_chalk2 = __commonJS({
|
|
|
87256
87180
|
let t3 = e3[0] / 255;
|
|
87257
87181
|
let n3 = e3[1] / 255;
|
|
87258
87182
|
let r2 = e3[2] / 255;
|
|
87259
|
-
t3 = t3 > 0.04045 ?
|
|
87260
|
-
n3 = n3 > 0.04045 ?
|
|
87261
|
-
r2 = r2 > 0.04045 ?
|
|
87183
|
+
t3 = t3 > 0.04045 ? ((t3 + 0.055) / 1.055) ** 2.4 : t3 / 12.92;
|
|
87184
|
+
n3 = n3 > 0.04045 ? ((n3 + 0.055) / 1.055) ** 2.4 : n3 / 12.92;
|
|
87185
|
+
r2 = r2 > 0.04045 ? ((r2 + 0.055) / 1.055) ** 2.4 : r2 / 12.92;
|
|
87262
87186
|
const s2 = t3 * 0.4124 + n3 * 0.3576 + r2 * 0.1805;
|
|
87263
87187
|
const o2 = t3 * 0.2126 + n3 * 0.7152 + r2 * 0.0722;
|
|
87264
87188
|
const l = t3 * 0.0193 + n3 * 0.1192 + r2 * 0.9505;
|
|
@@ -87272,9 +87196,9 @@ var require_chalk2 = __commonJS({
|
|
|
87272
87196
|
n3 /= 95.047;
|
|
87273
87197
|
r2 /= 100;
|
|
87274
87198
|
s2 /= 108.883;
|
|
87275
|
-
n3 = n3 > 8856e-6 ?
|
|
87276
|
-
r2 = r2 > 8856e-6 ?
|
|
87277
|
-
s2 = s2 > 8856e-6 ?
|
|
87199
|
+
n3 = n3 > 8856e-6 ? n3 ** (1 / 3) : 7.787 * n3 + 16 / 116;
|
|
87200
|
+
r2 = r2 > 8856e-6 ? r2 ** (1 / 3) : 7.787 * r2 + 16 / 116;
|
|
87201
|
+
s2 = s2 > 8856e-6 ? s2 ** (1 / 3) : 7.787 * s2 + 16 / 116;
|
|
87278
87202
|
const l = 116 * r2 - 16;
|
|
87279
87203
|
const c = 500 * (n3 - r2);
|
|
87280
87204
|
const i = 200 * (r2 - s2);
|
|
@@ -87448,9 +87372,9 @@ var require_chalk2 = __commonJS({
|
|
|
87448
87372
|
s2 = t3 * 3.2406 + n3 * -1.5372 + r2 * -0.4986;
|
|
87449
87373
|
o2 = t3 * -0.9689 + n3 * 1.8758 + r2 * 0.0415;
|
|
87450
87374
|
l = t3 * 0.0557 + n3 * -0.204 + r2 * 1.057;
|
|
87451
|
-
s2 = s2 > 31308e-7 ? 1.055 *
|
|
87452
|
-
o2 = o2 > 31308e-7 ? 1.055 *
|
|
87453
|
-
l = l > 31308e-7 ? 1.055 *
|
|
87375
|
+
s2 = s2 > 31308e-7 ? 1.055 * s2 ** (1 / 2.4) - 0.055 : s2 * 12.92;
|
|
87376
|
+
o2 = o2 > 31308e-7 ? 1.055 * o2 ** (1 / 2.4) - 0.055 : o2 * 12.92;
|
|
87377
|
+
l = l > 31308e-7 ? 1.055 * l ** (1 / 2.4) - 0.055 : l * 12.92;
|
|
87454
87378
|
s2 = Math.min(Math.max(0, s2), 1);
|
|
87455
87379
|
o2 = Math.min(Math.max(0, o2), 1);
|
|
87456
87380
|
l = Math.min(Math.max(0, l), 1);
|
|
@@ -87463,9 +87387,9 @@ var require_chalk2 = __commonJS({
|
|
|
87463
87387
|
t3 /= 95.047;
|
|
87464
87388
|
n3 /= 100;
|
|
87465
87389
|
r2 /= 108.883;
|
|
87466
|
-
t3 = t3 > 8856e-6 ?
|
|
87467
|
-
n3 = n3 > 8856e-6 ?
|
|
87468
|
-
r2 = r2 > 8856e-6 ?
|
|
87390
|
+
t3 = t3 > 8856e-6 ? t3 ** (1 / 3) : 7.787 * t3 + 16 / 116;
|
|
87391
|
+
n3 = n3 > 8856e-6 ? n3 ** (1 / 3) : 7.787 * n3 + 16 / 116;
|
|
87392
|
+
r2 = r2 > 8856e-6 ? r2 ** (1 / 3) : 7.787 * r2 + 16 / 116;
|
|
87469
87393
|
const s2 = 116 * n3 - 16;
|
|
87470
87394
|
const o2 = 500 * (t3 - n3);
|
|
87471
87395
|
const l = 200 * (n3 - r2);
|
|
@@ -87481,9 +87405,9 @@ var require_chalk2 = __commonJS({
|
|
|
87481
87405
|
o2 = (t3 + 16) / 116;
|
|
87482
87406
|
s2 = n3 / 500 + o2;
|
|
87483
87407
|
l = o2 - r2 / 200;
|
|
87484
|
-
const c =
|
|
87485
|
-
const i =
|
|
87486
|
-
const a =
|
|
87408
|
+
const c = o2 ** 3;
|
|
87409
|
+
const i = s2 ** 3;
|
|
87410
|
+
const a = l ** 3;
|
|
87487
87411
|
o2 = c > 8856e-6 ? c : (o2 - 16 / 116) / 7.787;
|
|
87488
87412
|
s2 = i > 8856e-6 ? i : (s2 - 16 / 116) / 7.787;
|
|
87489
87413
|
l = a > 8856e-6 ? a : (l - 16 / 116) / 7.787;
|
|
@@ -88739,7 +88663,7 @@ var require_ora3 = __commonJS({
|
|
|
88739
88663
|
if (typeof e3 === "string") {
|
|
88740
88664
|
e3 = { text: e3 };
|
|
88741
88665
|
}
|
|
88742
|
-
this.options =
|
|
88666
|
+
this.options = { text: "", color: "cyan", stream: process.stderr, discardStdin: true, ...e3 };
|
|
88743
88667
|
this.spinner = this.options.spinner;
|
|
88744
88668
|
this.color = this.options.color;
|
|
88745
88669
|
this.hideCursor = this.options.hideCursor !== false;
|
|
@@ -88956,14 +88880,14 @@ var require_ora3 = __commonJS({
|
|
|
88956
88880
|
}
|
|
88957
88881
|
const r3 = new Ora(t3);
|
|
88958
88882
|
r3.start();
|
|
88959
|
-
(() =>
|
|
88883
|
+
(async () => {
|
|
88960
88884
|
try {
|
|
88961
|
-
|
|
88885
|
+
await e3;
|
|
88962
88886
|
r3.succeed();
|
|
88963
|
-
} catch
|
|
88887
|
+
} catch {
|
|
88964
88888
|
r3.fail();
|
|
88965
88889
|
}
|
|
88966
|
-
})
|
|
88890
|
+
})();
|
|
88967
88891
|
return r3;
|
|
88968
88892
|
};
|
|
88969
88893
|
}, 959: (e2) => {
|
|
@@ -97383,7 +97307,7 @@ var require_execa2 = __commonJS({
|
|
|
97383
97307
|
const { joinCommand: w, parseCommand: E, getEscapedCommand: I } = n2(192);
|
|
97384
97308
|
const T = 1e3 * 1e3 * 100;
|
|
97385
97309
|
const getEnv = ({ env: e3, extendEnv: t3, preferLocal: n3, localDir: r2, execPath: o2 }) => {
|
|
97386
|
-
const s2 = t3 ?
|
|
97310
|
+
const s2 = t3 ? { ...process.env, ...e3 } : e3;
|
|
97387
97311
|
if (n3) {
|
|
97388
97312
|
return a.env({ env: s2, cwd: r2, execPath: o2 });
|
|
97389
97313
|
}
|
|
@@ -97394,7 +97318,7 @@ var require_execa2 = __commonJS({
|
|
|
97394
97318
|
e3 = o2.command;
|
|
97395
97319
|
t3 = o2.args;
|
|
97396
97320
|
n3 = o2.options;
|
|
97397
|
-
n3 =
|
|
97321
|
+
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 };
|
|
97398
97322
|
n3.env = getEnv(n3);
|
|
97399
97323
|
n3.stdio = u(n3);
|
|
97400
97324
|
if (process.platform === "win32" && r.basename(e3, ".exe") === "cmd") {
|
|
@@ -97430,8 +97354,8 @@ var require_execa2 = __commonJS({
|
|
|
97430
97354
|
const T2 = { isCanceled: false };
|
|
97431
97355
|
a2.kill = l.bind(null, a2.kill.bind(a2));
|
|
97432
97356
|
a2.cancel = f.bind(null, a2, T2);
|
|
97433
|
-
const handlePromise = () =>
|
|
97434
|
-
const [{ error: e4, exitCode: t4, signal: n4, timedOut: o2 }, c2, u3, l2] =
|
|
97357
|
+
const handlePromise = async () => {
|
|
97358
|
+
const [{ error: e4, exitCode: t4, signal: n4, timedOut: o2 }, c2, u3, l2] = await h(a2, r2.options, E2);
|
|
97435
97359
|
const f2 = handleOutput(r2.options, c2);
|
|
97436
97360
|
const p2 = handleOutput(r2.options, u3);
|
|
97437
97361
|
const m2 = handleOutput(r2.options, l2);
|
|
@@ -97443,7 +97367,7 @@ var require_execa2 = __commonJS({
|
|
|
97443
97367
|
throw c3;
|
|
97444
97368
|
}
|
|
97445
97369
|
return { command: s2, escapedCommand: i2, exitCode: 0, stdout: f2, stderr: p2, all: m2, failed: false, timedOut: false, isCanceled: false, killed: false };
|
|
97446
|
-
}
|
|
97370
|
+
};
|
|
97447
97371
|
const C = c(handlePromise);
|
|
97448
97372
|
x(a2, r2.options.input);
|
|
97449
97373
|
a2.all = y(a2, r2.options);
|
|
@@ -97488,7 +97412,7 @@ var require_execa2 = __commonJS({
|
|
|
97488
97412
|
const r2 = u.node(n3);
|
|
97489
97413
|
const o2 = process.execArgv.filter((e4) => !e4.startsWith("--inspect"));
|
|
97490
97414
|
const { nodePath: s2 = process.execPath, nodeOptions: i2 = o2 } = n3;
|
|
97491
|
-
return execa2(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []],
|
|
97415
|
+
return execa2(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []], { ...n3, stdin: void 0, stdout: void 0, stderr: void 0, stdio: r2, shell: false });
|
|
97492
97416
|
};
|
|
97493
97417
|
}, 192: (e2) => {
|
|
97494
97418
|
"use strict";
|
|
@@ -97644,7 +97568,7 @@ ${o.message}` : x;
|
|
|
97644
97568
|
throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e3}\` (${typeof e3})`);
|
|
97645
97569
|
}
|
|
97646
97570
|
};
|
|
97647
|
-
const setExitHandler =
|
|
97571
|
+
const setExitHandler = async (e3, { cleanup: t3, detached: n3 }, r2) => {
|
|
97648
97572
|
if (!t3 || n3) {
|
|
97649
97573
|
return r2;
|
|
97650
97574
|
}
|
|
@@ -97654,17 +97578,17 @@ ${o.message}` : x;
|
|
|
97654
97578
|
return r2.finally(() => {
|
|
97655
97579
|
s2();
|
|
97656
97580
|
});
|
|
97657
|
-
}
|
|
97581
|
+
};
|
|
97658
97582
|
e2.exports = { spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler };
|
|
97659
97583
|
}, 210: (e2) => {
|
|
97660
97584
|
"use strict";
|
|
97661
|
-
const t2 = (() =>
|
|
97662
|
-
})
|
|
97585
|
+
const t2 = (async () => {
|
|
97586
|
+
})().constructor.prototype;
|
|
97663
97587
|
const n2 = ["then", "catch", "finally"].map((e3) => [e3, Reflect.getOwnPropertyDescriptor(t2, e3)]);
|
|
97664
97588
|
const mergePromise = (e3, t3) => {
|
|
97665
97589
|
for (const [r, o] of n2) {
|
|
97666
97590
|
const n3 = typeof t3 === "function" ? (...e4) => Reflect.apply(o.value, t3(), e4) : o.value.bind(t3);
|
|
97667
|
-
Reflect.defineProperty(e3, r,
|
|
97591
|
+
Reflect.defineProperty(e3, r, { ...o, value: n3 });
|
|
97668
97592
|
}
|
|
97669
97593
|
return e3;
|
|
97670
97594
|
};
|
|
@@ -97748,17 +97672,17 @@ ${o.message}` : x;
|
|
|
97748
97672
|
}
|
|
97749
97673
|
return n3;
|
|
97750
97674
|
};
|
|
97751
|
-
const getBufferedData = (e3, t3) =>
|
|
97675
|
+
const getBufferedData = async (e3, t3) => {
|
|
97752
97676
|
if (!e3) {
|
|
97753
97677
|
return;
|
|
97754
97678
|
}
|
|
97755
97679
|
e3.destroy();
|
|
97756
97680
|
try {
|
|
97757
|
-
return
|
|
97681
|
+
return await t3;
|
|
97758
97682
|
} catch (e4) {
|
|
97759
97683
|
return e4.bufferedData;
|
|
97760
97684
|
}
|
|
97761
|
-
}
|
|
97685
|
+
};
|
|
97762
97686
|
const getStreamPromise = (e3, { encoding: t3, buffer: n3, maxBuffer: r2 }) => {
|
|
97763
97687
|
if (!e3 || !n3) {
|
|
97764
97688
|
return;
|
|
@@ -97768,16 +97692,16 @@ ${o.message}` : x;
|
|
|
97768
97692
|
}
|
|
97769
97693
|
return o.buffer(e3, { maxBuffer: r2 });
|
|
97770
97694
|
};
|
|
97771
|
-
const getSpawnedResult =
|
|
97695
|
+
const getSpawnedResult = async ({ stdout: e3, stderr: t3, all: n3 }, { encoding: r2, buffer: o2, maxBuffer: s2 }, i) => {
|
|
97772
97696
|
const a = getStreamPromise(e3, { encoding: r2, buffer: o2, maxBuffer: s2 });
|
|
97773
97697
|
const c = getStreamPromise(t3, { encoding: r2, buffer: o2, maxBuffer: s2 });
|
|
97774
97698
|
const d = getStreamPromise(n3, { encoding: r2, buffer: o2, maxBuffer: s2 * 2 });
|
|
97775
97699
|
try {
|
|
97776
|
-
return
|
|
97700
|
+
return await Promise.all([i, a, c, d]);
|
|
97777
97701
|
} catch (r3) {
|
|
97778
97702
|
return Promise.all([{ error: r3, signal: r3.signal, timedOut: r3.timedOut }, getBufferedData(e3, a), getBufferedData(t3, c), getBufferedData(n3, d)]);
|
|
97779
97703
|
}
|
|
97780
|
-
}
|
|
97704
|
+
};
|
|
97781
97705
|
const validateInputSync = ({ input: e3 }) => {
|
|
97782
97706
|
if (r(e3)) {
|
|
97783
97707
|
throw new TypeError("The `input` option cannot be a stream in sync mode");
|
|
@@ -97788,7 +97712,7 @@ ${o.message}` : x;
|
|
|
97788
97712
|
"use strict";
|
|
97789
97713
|
const { PassThrough: r } = n2(781);
|
|
97790
97714
|
e2.exports = (e3) => {
|
|
97791
|
-
e3 =
|
|
97715
|
+
e3 = { ...e3 };
|
|
97792
97716
|
const { array: t3 } = e3;
|
|
97793
97717
|
let { encoding: n3 } = e3;
|
|
97794
97718
|
const o = n3 === "buffer";
|
|
@@ -97837,41 +97761,39 @@ ${o.message}` : x;
|
|
|
97837
97761
|
this.name = "MaxBufferError";
|
|
97838
97762
|
}
|
|
97839
97763
|
}
|
|
97840
|
-
function getStream(e3, t3) {
|
|
97841
|
-
|
|
97842
|
-
|
|
97843
|
-
|
|
97844
|
-
|
|
97845
|
-
|
|
97846
|
-
|
|
97847
|
-
|
|
97848
|
-
|
|
97849
|
-
|
|
97850
|
-
|
|
97851
|
-
|
|
97852
|
-
|
|
97853
|
-
|
|
97854
|
-
|
|
97855
|
-
|
|
97856
|
-
|
|
97857
|
-
|
|
97858
|
-
|
|
97859
|
-
|
|
97860
|
-
|
|
97861
|
-
|
|
97862
|
-
|
|
97863
|
-
o2.
|
|
97864
|
-
|
|
97865
|
-
|
|
97866
|
-
}
|
|
97867
|
-
});
|
|
97764
|
+
async function getStream(e3, t3) {
|
|
97765
|
+
if (!e3) {
|
|
97766
|
+
throw new Error("Expected a stream");
|
|
97767
|
+
}
|
|
97768
|
+
t3 = { maxBuffer: Infinity, ...t3 };
|
|
97769
|
+
const { maxBuffer: n3 } = t3;
|
|
97770
|
+
const o2 = i(t3);
|
|
97771
|
+
await new Promise((t4, s2) => {
|
|
97772
|
+
const rejectPromise = (e4) => {
|
|
97773
|
+
if (e4 && o2.getBufferedLength() <= r.MAX_LENGTH) {
|
|
97774
|
+
e4.bufferedData = o2.getBufferedValue();
|
|
97775
|
+
}
|
|
97776
|
+
s2(e4);
|
|
97777
|
+
};
|
|
97778
|
+
(async () => {
|
|
97779
|
+
try {
|
|
97780
|
+
await a(e3, o2);
|
|
97781
|
+
t4();
|
|
97782
|
+
} catch (e4) {
|
|
97783
|
+
rejectPromise(e4);
|
|
97784
|
+
}
|
|
97785
|
+
})();
|
|
97786
|
+
o2.on("data", () => {
|
|
97787
|
+
if (o2.getBufferedLength() > n3) {
|
|
97788
|
+
rejectPromise(new MaxBufferError());
|
|
97789
|
+
}
|
|
97868
97790
|
});
|
|
97869
|
-
return o2.getBufferedValue();
|
|
97870
97791
|
});
|
|
97792
|
+
return o2.getBufferedValue();
|
|
97871
97793
|
}
|
|
97872
97794
|
e2.exports = getStream;
|
|
97873
|
-
e2.exports.buffer = (e3, t3) => getStream(e3,
|
|
97874
|
-
e2.exports.array = (e3, t3) => getStream(e3,
|
|
97795
|
+
e2.exports.buffer = (e3, t3) => getStream(e3, { ...t3, encoding: "buffer" });
|
|
97796
|
+
e2.exports.array = (e3, t3) => getStream(e3, { ...t3, array: true });
|
|
97875
97797
|
e2.exports.MaxBufferError = MaxBufferError;
|
|
97876
97798
|
}, 221: (e2, t2) => {
|
|
97877
97799
|
"use strict";
|
|
@@ -97891,7 +97813,7 @@ ${o.message}` : x;
|
|
|
97891
97813
|
return e3.reduce(getSignalByName, {});
|
|
97892
97814
|
};
|
|
97893
97815
|
const getSignalByName = function(e3, { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 }) {
|
|
97894
|
-
return
|
|
97816
|
+
return { ...e3, [t3]: { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 } };
|
|
97895
97817
|
};
|
|
97896
97818
|
const i = getSignalsByName();
|
|
97897
97819
|
t2.signalsByName = i;
|
|
@@ -98123,7 +98045,7 @@ ${o.message}` : x;
|
|
|
98123
98045
|
const r = n2(17);
|
|
98124
98046
|
const o = n2(460);
|
|
98125
98047
|
const npmRunPath = (e3) => {
|
|
98126
|
-
e3 =
|
|
98048
|
+
e3 = { cwd: process.cwd(), path: process.env[o()], execPath: process.execPath, ...e3 };
|
|
98127
98049
|
let t3;
|
|
98128
98050
|
let n3 = r.resolve(e3.cwd);
|
|
98129
98051
|
const s = [];
|
|
@@ -98139,8 +98061,8 @@ ${o.message}` : x;
|
|
|
98139
98061
|
e2.exports = npmRunPath;
|
|
98140
98062
|
e2.exports["default"] = npmRunPath;
|
|
98141
98063
|
e2.exports.env = (t3) => {
|
|
98142
|
-
t3 =
|
|
98143
|
-
const n3 =
|
|
98064
|
+
t3 = { env: process.env, ...t3 };
|
|
98065
|
+
const n3 = { ...t3.env };
|
|
98144
98066
|
const r2 = o({ env: n3 });
|
|
98145
98067
|
t3.path = n3[r2];
|
|
98146
98068
|
n3[r2] = e2.exports(t3);
|
|
@@ -99549,7 +99471,7 @@ var require_upath2 = __commonJS({
|
|
|
99549
99471
|
_.VERSION = typeof n !== "undefined" && n !== null ? n : "NO-VERSION";
|
|
99550
99472
|
p = function(e3) {
|
|
99551
99473
|
e3 = e3.replace(/\\/g, "/");
|
|
99552
|
-
e3 = e3.replace(
|
|
99474
|
+
e3 = e3.replace(/(?<!^)\/+/g, "/");
|
|
99553
99475
|
return e3;
|
|
99554
99476
|
};
|
|
99555
99477
|
for (c in o) {
|
|
@@ -99845,9 +99767,7 @@ var require_pkg_up2 = __commonJS({
|
|
|
99845
99767
|
};
|
|
99846
99768
|
}, 800: (e2, r2, n2) => {
|
|
99847
99769
|
const t = n2(485);
|
|
99848
|
-
e2.exports =
|
|
99849
|
-
return t("package.json", { cwd: e3 });
|
|
99850
|
-
});
|
|
99770
|
+
e2.exports = async ({ cwd: e3 } = {}) => t("package.json", { cwd: e3 });
|
|
99851
99771
|
e2.exports.sync = ({ cwd: e3 } = {}) => t.sync("package.json", { cwd: e3 });
|
|
99852
99772
|
}, 147: (e2) => {
|
|
99853
99773
|
e2.exports = require("fs");
|
|
@@ -102898,7 +102818,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
102898
102818
|
}
|
|
102899
102819
|
if (t4.nodes && t4.ranges > 0) {
|
|
102900
102820
|
let r4 = s.reduce(t4.nodes);
|
|
102901
|
-
let i2 = n(...r4,
|
|
102821
|
+
let i2 = n(...r4, { ...e3, wrap: false, toRegex: true });
|
|
102902
102822
|
if (i2.length !== 0) {
|
|
102903
102823
|
return r4.length > 1 && i2.length > 1 ? `(${i2})` : i2;
|
|
102904
102824
|
}
|
|
@@ -103324,13 +103244,11 @@ var require_fast_glob2 = __commonJS({
|
|
|
103324
103244
|
const a = r2(1066);
|
|
103325
103245
|
const u = r2(7190);
|
|
103326
103246
|
const c = r2(3828);
|
|
103327
|
-
function FastGlob(t3, e3) {
|
|
103328
|
-
|
|
103329
|
-
|
|
103330
|
-
|
|
103331
|
-
|
|
103332
|
-
return c.array.flatten(n2);
|
|
103333
|
-
});
|
|
103247
|
+
async function FastGlob(t3, e3) {
|
|
103248
|
+
assertPatternsInput(t3);
|
|
103249
|
+
const r3 = getWorks(t3, i.default, e3);
|
|
103250
|
+
const n2 = await Promise.all(r3);
|
|
103251
|
+
return c.array.flatten(n2);
|
|
103334
103252
|
}
|
|
103335
103253
|
(function(t3) {
|
|
103336
103254
|
function sync(t4, e3) {
|
|
@@ -104501,7 +104419,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
104501
104419
|
};
|
|
104502
104420
|
const toRange = (t3, e3, r3, n2) => {
|
|
104503
104421
|
if (r3) {
|
|
104504
|
-
return s(t3, e3,
|
|
104422
|
+
return s(t3, e3, { wrap: false, ...n2 });
|
|
104505
104423
|
}
|
|
104506
104424
|
let i = String.fromCharCode(t3);
|
|
104507
104425
|
if (t3 === e3)
|
|
@@ -104567,7 +104485,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
104567
104485
|
g++;
|
|
104568
104486
|
}
|
|
104569
104487
|
if (n2.toRegex === true) {
|
|
104570
|
-
return r3 > 1 ? toSequence(d, n2) : toRegex(_, null,
|
|
104488
|
+
return r3 > 1 ? toSequence(d, n2) : toRegex(_, null, { wrap: false, ...n2 });
|
|
104571
104489
|
}
|
|
104572
104490
|
return _;
|
|
104573
104491
|
};
|
|
@@ -104609,7 +104527,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
104609
104527
|
if (isObject4(r3)) {
|
|
104610
104528
|
return fill(t3, e3, 0, r3);
|
|
104611
104529
|
}
|
|
104612
|
-
let s2 =
|
|
104530
|
+
let s2 = { ...n2 };
|
|
104613
104531
|
if (s2.capture === true)
|
|
104614
104532
|
s2.wrap = true;
|
|
104615
104533
|
r3 = r3 || s2.step || 1;
|
|
@@ -104933,7 +104851,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
104933
104851
|
}
|
|
104934
104852
|
};
|
|
104935
104853
|
for (let o3 = 0; o3 < e3.length; o3++) {
|
|
104936
|
-
let u2 = i(String(e3[o3]),
|
|
104854
|
+
let u2 = i(String(e3[o3]), { ...r3, onResult }, true);
|
|
104937
104855
|
let c2 = u2.state.negated || u2.state.negatedExtglob;
|
|
104938
104856
|
if (c2)
|
|
104939
104857
|
a++;
|
|
@@ -104975,7 +104893,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
104975
104893
|
r3.onResult(t4);
|
|
104976
104894
|
s2.push(t4.output);
|
|
104977
104895
|
};
|
|
104978
|
-
let i2 = new Set(micromatch(t3, e3,
|
|
104896
|
+
let i2 = new Set(micromatch(t3, e3, { ...r3, onResult }));
|
|
104979
104897
|
for (let t4 of s2) {
|
|
104980
104898
|
if (!i2.has(t4)) {
|
|
104981
104899
|
n2.add(t4);
|
|
@@ -104998,7 +104916,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
104998
104916
|
return true;
|
|
104999
104917
|
}
|
|
105000
104918
|
}
|
|
105001
|
-
return micromatch.isMatch(t3, e3,
|
|
104919
|
+
return micromatch.isMatch(t3, e3, { ...r3, contains: true });
|
|
105002
104920
|
};
|
|
105003
104921
|
micromatch.matchKeys = (t3, e3, r3) => {
|
|
105004
104922
|
if (!o.isObject(t3)) {
|
|
@@ -105038,7 +104956,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
105038
104956
|
};
|
|
105039
104957
|
micromatch.capture = (t3, e3, r3) => {
|
|
105040
104958
|
let n2 = o.isWindows(r3);
|
|
105041
|
-
let s2 = i.makeRe(String(t3),
|
|
104959
|
+
let s2 = i.makeRe(String(t3), { ...r3, capture: true });
|
|
105042
104960
|
let a = s2.exec(n2 ? o.toPosixSlashes(e3) : e3);
|
|
105043
104961
|
if (a) {
|
|
105044
104962
|
return a.slice(1).map((t4) => t4 === void 0 ? "" : t4);
|
|
@@ -105066,7 +104984,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
105066
104984
|
micromatch.braceExpand = (t3, e3) => {
|
|
105067
104985
|
if (typeof t3 !== "string")
|
|
105068
104986
|
throw new TypeError("Expected a string");
|
|
105069
|
-
return micromatch.braces(t3,
|
|
104987
|
+
return micromatch.braces(t3, { ...e3, expand: true });
|
|
105070
104988
|
};
|
|
105071
104989
|
t2.exports = micromatch;
|
|
105072
104990
|
}, 376: (t2, e2, r2) => {
|
|
@@ -105093,7 +105011,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
105093
105011
|
const m = `[^.${c}]`;
|
|
105094
105012
|
const v = `${f}*?`;
|
|
105095
105013
|
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 };
|
|
105096
|
-
const A =
|
|
105014
|
+
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}]|$)` };
|
|
105097
105015
|
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" };
|
|
105098
105016
|
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) {
|
|
105099
105017
|
return { "!": { type: "negate", open: "(?:(?!(?:", close: `))${t3.STAR})` }, "?": { type: "qmark", open: "(?:", close: ")?" }, "+": { type: "plus", open: "(?:", close: ")+" }, "*": { type: "star", open: "(?:", close: ")*" }, "@": { type: "at", open: "(?:", close: ")" } };
|
|
@@ -105124,7 +105042,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
105124
105042
|
throw new TypeError("Expected a string");
|
|
105125
105043
|
}
|
|
105126
105044
|
t3 = c[t3] || t3;
|
|
105127
|
-
const r3 =
|
|
105045
|
+
const r3 = { ...e3 };
|
|
105128
105046
|
const l = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
|
|
105129
105047
|
let f = t3.length;
|
|
105130
105048
|
if (f > l) {
|
|
@@ -105216,7 +105134,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
105216
105134
|
M = t4;
|
|
105217
105135
|
};
|
|
105218
105136
|
const extglobOpen = (t4, e4) => {
|
|
105219
|
-
const n2 =
|
|
105137
|
+
const n2 = { ...y[e4], conditions: 1, inner: "" };
|
|
105220
105138
|
n2.prev = M;
|
|
105221
105139
|
n2.parens = H.parens;
|
|
105222
105140
|
n2.output = H.output;
|
|
@@ -105238,7 +105156,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
105238
105156
|
n2 = t4.close = `)$))${i2}`;
|
|
105239
105157
|
}
|
|
105240
105158
|
if (t4.inner.includes("*") && (s2 = remaining()) && /^\.[^\\/.]+$/.test(s2)) {
|
|
105241
|
-
const r4 = parse3(s2,
|
|
105159
|
+
const r4 = parse3(s2, { ...e3, fastpaths: false }).output;
|
|
105242
105160
|
n2 = t4.close = `)${r4})${i2})`;
|
|
105243
105161
|
}
|
|
105244
105162
|
if (t4.prev.type === "bos") {
|
|
@@ -105760,7 +105678,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
105760
105678
|
return H;
|
|
105761
105679
|
};
|
|
105762
105680
|
parse3.fastpaths = (t3, e3) => {
|
|
105763
|
-
const r3 =
|
|
105681
|
+
const r3 = { ...e3 };
|
|
105764
105682
|
const o2 = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
|
|
105765
105683
|
const a2 = t3.length;
|
|
105766
105684
|
if (a2 > o2) {
|
|
@@ -105851,7 +105769,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
105851
105769
|
delete a2.state;
|
|
105852
105770
|
let isIgnored = () => false;
|
|
105853
105771
|
if (s2.ignore) {
|
|
105854
|
-
const t4 =
|
|
105772
|
+
const t4 = { ...e3, ignore: null, onMatch: null, onResult: null };
|
|
105855
105773
|
isIgnored = picomatch(s2.ignore, t4, r3);
|
|
105856
105774
|
}
|
|
105857
105775
|
const matcher = (r4, n3 = false) => {
|
|
@@ -105913,7 +105831,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
105913
105831
|
picomatch.parse = (t3, e3) => {
|
|
105914
105832
|
if (Array.isArray(t3))
|
|
105915
105833
|
return t3.map((t4) => picomatch.parse(t4, e3));
|
|
105916
|
-
return i(t3,
|
|
105834
|
+
return i(t3, { ...e3, fastpaths: false });
|
|
105917
105835
|
};
|
|
105918
105836
|
picomatch.scan = (t3, e3) => s(t3, e3);
|
|
105919
105837
|
picomatch.compileRe = (t3, e3, r3 = false, n2 = false) => {
|
|
@@ -106378,7 +106296,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
106378
106296
|
if (n(e3) === false) {
|
|
106379
106297
|
throw new TypeError("toRegexRange: expected the second argument to be a number.");
|
|
106380
106298
|
}
|
|
106381
|
-
let s =
|
|
106299
|
+
let s = { relaxZeros: true, ...r3 };
|
|
106382
106300
|
if (typeof s.strictZeros === "boolean") {
|
|
106383
106301
|
s.relaxZeros = s.strictZeros === false;
|
|
106384
106302
|
}
|
|
@@ -106656,19 +106574,19 @@ var require_globby2 = __commonJS({
|
|
|
106656
106574
|
}
|
|
106657
106575
|
return [n.posix.join(t3, "**")];
|
|
106658
106576
|
};
|
|
106659
|
-
t2.exports = (t3, e3) =>
|
|
106660
|
-
e3 =
|
|
106577
|
+
t2.exports = async (t3, e3) => {
|
|
106578
|
+
e3 = { cwd: process.cwd(), ...e3 };
|
|
106661
106579
|
if (typeof e3.cwd !== "string") {
|
|
106662
106580
|
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
|
|
106663
106581
|
}
|
|
106664
|
-
const r3 =
|
|
106665
|
-
const r4 =
|
|
106582
|
+
const r3 = await Promise.all([].concat(t3).map(async (t4) => {
|
|
106583
|
+
const r4 = await s.isDirectory(getPath(t4, e3.cwd));
|
|
106666
106584
|
return r4 ? getGlob(t4, e3) : t4;
|
|
106667
|
-
}))
|
|
106585
|
+
}));
|
|
106668
106586
|
return [].concat.apply([], r3);
|
|
106669
|
-
}
|
|
106587
|
+
};
|
|
106670
106588
|
t2.exports.sync = (t3, e3) => {
|
|
106671
|
-
e3 =
|
|
106589
|
+
e3 = { cwd: process.cwd(), ...e3 };
|
|
106672
106590
|
if (typeof e3.cwd !== "string") {
|
|
106673
106591
|
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
|
|
106674
106592
|
}
|
|
@@ -106713,24 +106631,24 @@ var require_globby2 = __commonJS({
|
|
|
106713
106631
|
return o.join(t3, e3);
|
|
106714
106632
|
};
|
|
106715
106633
|
const getIsIgnoredPredecate = (t3, e3) => (r3) => t3.ignores(a(o.relative(e3, ensureAbsolutePathForCwd(e3, r3.path || r3))));
|
|
106716
|
-
const getFile = (t3, e3) =>
|
|
106634
|
+
const getFile = async (t3, e3) => {
|
|
106717
106635
|
const r3 = o.join(e3, t3);
|
|
106718
|
-
const n2 =
|
|
106636
|
+
const n2 = await u(r3, "utf8");
|
|
106719
106637
|
return { cwd: e3, filePath: r3, content: n2 };
|
|
106720
|
-
}
|
|
106638
|
+
};
|
|
106721
106639
|
const getFileSync = (t3, e3) => {
|
|
106722
106640
|
const r3 = o.join(e3, t3);
|
|
106723
106641
|
const n2 = s.readFileSync(r3, "utf8");
|
|
106724
106642
|
return { cwd: e3, filePath: r3, content: n2 };
|
|
106725
106643
|
};
|
|
106726
106644
|
const normalizeOptions = ({ ignore: t3 = [], cwd: e3 = a(process.cwd()) } = {}) => ({ ignore: t3, cwd: e3 });
|
|
106727
|
-
t2.exports = (t3) =>
|
|
106645
|
+
t2.exports = async (t3) => {
|
|
106728
106646
|
t3 = normalizeOptions(t3);
|
|
106729
|
-
const e3 =
|
|
106730
|
-
const r3 =
|
|
106647
|
+
const e3 = await i("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
|
|
106648
|
+
const r3 = await Promise.all(e3.map((e4) => getFile(e4, t3.cwd)));
|
|
106731
106649
|
const n2 = reduceIgnore(r3);
|
|
106732
106650
|
return getIsIgnoredPredecate(n2, t3.cwd);
|
|
106733
|
-
}
|
|
106651
|
+
};
|
|
106734
106652
|
t2.exports.sync = (t3) => {
|
|
106735
106653
|
t3 = normalizeOptions(t3);
|
|
106736
106654
|
const e3 = i.sync("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
|
|
@@ -106761,7 +106679,7 @@ var require_globby2 = __commonJS({
|
|
|
106761
106679
|
let e3;
|
|
106762
106680
|
try {
|
|
106763
106681
|
e3 = n.statSync(t3.cwd);
|
|
106764
|
-
} catch
|
|
106682
|
+
} catch {
|
|
106765
106683
|
return;
|
|
106766
106684
|
}
|
|
106767
106685
|
if (!e3.isDirectory()) {
|
|
@@ -106774,13 +106692,13 @@ var require_globby2 = __commonJS({
|
|
|
106774
106692
|
assertPatternsInput(t3);
|
|
106775
106693
|
checkCwdOption(e3);
|
|
106776
106694
|
const r3 = [];
|
|
106777
|
-
e3 =
|
|
106695
|
+
e3 = { ignore: [], expandDirectories: true, ...e3 };
|
|
106778
106696
|
for (const [n2, s2] of t3.entries()) {
|
|
106779
106697
|
if (isNegative(s2)) {
|
|
106780
106698
|
continue;
|
|
106781
106699
|
}
|
|
106782
106700
|
const o2 = t3.slice(n2).filter((t4) => isNegative(t4)).map((t4) => t4.slice(1));
|
|
106783
|
-
const i2 =
|
|
106701
|
+
const i2 = { ...e3, ignore: e3.ignore.concat(o2) };
|
|
106784
106702
|
r3.push({ pattern: s2, options: i2 });
|
|
106785
106703
|
}
|
|
106786
106704
|
return r3;
|
|
@@ -106791,9 +106709,9 @@ var require_globby2 = __commonJS({
|
|
|
106791
106709
|
r3.cwd = t3.options.cwd;
|
|
106792
106710
|
}
|
|
106793
106711
|
if (Array.isArray(t3.options.expandDirectories)) {
|
|
106794
|
-
r3 =
|
|
106712
|
+
r3 = { ...r3, files: t3.options.expandDirectories };
|
|
106795
106713
|
} else if (typeof t3.options.expandDirectories === "object") {
|
|
106796
|
-
r3 =
|
|
106714
|
+
r3 = { ...r3, ...t3.options.expandDirectories };
|
|
106797
106715
|
}
|
|
106798
106716
|
return e3(t3.pattern, r3);
|
|
106799
106717
|
};
|
|
@@ -106806,22 +106724,20 @@ var require_globby2 = __commonJS({
|
|
|
106806
106724
|
}
|
|
106807
106725
|
return { pattern: e3, options: r3 };
|
|
106808
106726
|
};
|
|
106809
|
-
t2.exports = (t3, e3) =>
|
|
106727
|
+
t2.exports = async (t3, e3) => {
|
|
106810
106728
|
const r3 = generateGlobTasks(t3, e3);
|
|
106811
|
-
const getFilter = () =>
|
|
106812
|
-
|
|
106813
|
-
|
|
106814
|
-
|
|
106815
|
-
const t4 = yield Promise.all(r3.map((t5) => __async(exports, null, function* () {
|
|
106816
|
-
const e4 = yield getPattern(t5, c);
|
|
106729
|
+
const getFilter = async () => e3 && e3.gitignore ? a({ cwd: e3.cwd, ignore: e3.ignore }) : DEFAULT_FILTER;
|
|
106730
|
+
const getTasks = async () => {
|
|
106731
|
+
const t4 = await Promise.all(r3.map(async (t5) => {
|
|
106732
|
+
const e4 = await getPattern(t5, c);
|
|
106817
106733
|
return Promise.all(e4.map(globToTask(t5)));
|
|
106818
|
-
}))
|
|
106734
|
+
}));
|
|
106819
106735
|
return s(...t4);
|
|
106820
|
-
}
|
|
106821
|
-
const [n2, o2] =
|
|
106822
|
-
const p2 =
|
|
106736
|
+
};
|
|
106737
|
+
const [n2, o2] = await Promise.all([getFilter(), getTasks()]);
|
|
106738
|
+
const p2 = await Promise.all(o2.map((t4) => i(t4.pattern, t4.options)));
|
|
106823
106739
|
return s(...p2).filter((t4) => !n2(getPathString(t4)));
|
|
106824
|
-
}
|
|
106740
|
+
};
|
|
106825
106741
|
t2.exports.sync = (t3, e3) => {
|
|
106826
106742
|
const r3 = generateGlobTasks(t3, e3);
|
|
106827
106743
|
const n2 = [];
|
|
@@ -107175,21 +107091,19 @@ var require_globby2 = __commonJS({
|
|
|
107175
107091
|
"use strict";
|
|
107176
107092
|
const { promisify: n } = r2(837);
|
|
107177
107093
|
const s = r2(147);
|
|
107178
|
-
function isType4(t3, e3, r3) {
|
|
107179
|
-
|
|
107180
|
-
|
|
107181
|
-
|
|
107182
|
-
|
|
107183
|
-
|
|
107184
|
-
|
|
107185
|
-
|
|
107186
|
-
|
|
107187
|
-
|
|
107188
|
-
return false;
|
|
107189
|
-
}
|
|
107190
|
-
throw t4;
|
|
107094
|
+
async function isType4(t3, e3, r3) {
|
|
107095
|
+
if (typeof r3 !== "string") {
|
|
107096
|
+
throw new TypeError(`Expected a string, got ${typeof r3}`);
|
|
107097
|
+
}
|
|
107098
|
+
try {
|
|
107099
|
+
const o = await n(s[t3])(r3);
|
|
107100
|
+
return o[e3]();
|
|
107101
|
+
} catch (t4) {
|
|
107102
|
+
if (t4.code === "ENOENT") {
|
|
107103
|
+
return false;
|
|
107191
107104
|
}
|
|
107192
|
-
|
|
107105
|
+
throw t4;
|
|
107106
|
+
}
|
|
107193
107107
|
}
|
|
107194
107108
|
function isTypeSync(t3, e3, r3) {
|
|
107195
107109
|
if (typeof r3 !== "string") {
|
|
@@ -109564,15 +109478,15 @@ var require_gzip_size2 = __commonJS({
|
|
|
109564
109478
|
const i = t2(796);
|
|
109565
109479
|
const { promisify: a } = t2(837);
|
|
109566
109480
|
const s = t2(325);
|
|
109567
|
-
const getOptions = (e3) =>
|
|
109481
|
+
const getOptions = (e3) => ({ level: 9, ...e3 });
|
|
109568
109482
|
const p = a(i.gzip);
|
|
109569
|
-
e2.exports = (e3, r3) =>
|
|
109483
|
+
e2.exports = async (e3, r3) => {
|
|
109570
109484
|
if (!e3) {
|
|
109571
109485
|
return 0;
|
|
109572
109486
|
}
|
|
109573
|
-
const t3 =
|
|
109487
|
+
const t3 = await p(e3, getOptions(r3));
|
|
109574
109488
|
return t3.length;
|
|
109575
|
-
}
|
|
109489
|
+
};
|
|
109576
109490
|
e2.exports.sync = (e3, r3) => i.gzipSync(e3, getOptions(r3)).length;
|
|
109577
109491
|
e2.exports.stream = (e3) => {
|
|
109578
109492
|
const r3 = new o.PassThrough();
|
|
@@ -112342,12 +112256,10 @@ Expecting one of '${i3.join("', '")}'`);
|
|
|
112342
112256
|
this._parseCommand([], i3);
|
|
112343
112257
|
return this;
|
|
112344
112258
|
}
|
|
112345
|
-
parseAsync(t3, e3) {
|
|
112346
|
-
|
|
112347
|
-
|
|
112348
|
-
|
|
112349
|
-
return this;
|
|
112350
|
-
});
|
|
112259
|
+
async parseAsync(t3, e3) {
|
|
112260
|
+
const i3 = this._prepareUserArgs(t3, e3);
|
|
112261
|
+
await this._parseCommand([], i3);
|
|
112262
|
+
return this;
|
|
112351
112263
|
}
|
|
112352
112264
|
_executeSubCommand(t3, e3) {
|
|
112353
112265
|
e3 = e3.slice();
|
|
@@ -114154,11 +114066,11 @@ var require_fs = __commonJS({
|
|
|
114154
114066
|
}
|
|
114155
114067
|
return false;
|
|
114156
114068
|
};
|
|
114157
|
-
var emptyDir = (dir) =>
|
|
114158
|
-
if (
|
|
114159
|
-
|
|
114069
|
+
var emptyDir = async (dir) => {
|
|
114070
|
+
if (await _compiled.fs.pathExists(dir)) {
|
|
114071
|
+
await _compiled.fs.emptyDir(dir);
|
|
114160
114072
|
}
|
|
114161
|
-
}
|
|
114073
|
+
};
|
|
114162
114074
|
}
|
|
114163
114075
|
});
|
|
114164
114076
|
|
|
@@ -114570,19 +114482,19 @@ var require_project = __commonJS({
|
|
|
114570
114482
|
return false;
|
|
114571
114483
|
}
|
|
114572
114484
|
};
|
|
114573
|
-
var isApiOnly = (appDirectory, entryDir, apiDir) =>
|
|
114574
|
-
const existApi =
|
|
114575
|
-
const existSrc =
|
|
114485
|
+
var isApiOnly = async (appDirectory, entryDir, apiDir) => {
|
|
114486
|
+
const existApi = await _compiled.fs.pathExists(apiDir !== null && apiDir !== void 0 ? apiDir : _path.default.join(appDirectory, "api"));
|
|
114487
|
+
const existSrc = await _compiled.fs.pathExists(_path.default.join(appDirectory, entryDir !== null && entryDir !== void 0 ? entryDir : "src"));
|
|
114576
114488
|
const options = (0, _compiled.minimist)((0, _commands.getArgv)());
|
|
114577
114489
|
if (options["api-only"]) {
|
|
114578
114490
|
return true;
|
|
114579
114491
|
}
|
|
114580
114492
|
return existApi && !existSrc;
|
|
114581
|
-
}
|
|
114582
|
-
var isWebOnly = () =>
|
|
114493
|
+
};
|
|
114494
|
+
var isWebOnly = async () => {
|
|
114583
114495
|
const options = (0, _compiled.minimist)((0, _commands.getArgv)());
|
|
114584
114496
|
return Boolean(options["web-only"]);
|
|
114585
|
-
}
|
|
114497
|
+
};
|
|
114586
114498
|
var isBeyondReact17 = (cwd) => {
|
|
114587
114499
|
const pkgPath = _pkgup.default.sync({
|
|
114588
114500
|
cwd
|
|
@@ -114591,7 +114503,10 @@ var require_project = __commonJS({
|
|
|
114591
114503
|
return false;
|
|
114592
114504
|
}
|
|
114593
114505
|
const pkgInfo = JSON.parse(_compiled.fs.readFileSync(pkgPath, "utf8"));
|
|
114594
|
-
const deps =
|
|
114506
|
+
const deps = {
|
|
114507
|
+
...pkgInfo.devDependencies,
|
|
114508
|
+
...pkgInfo.dependencies
|
|
114509
|
+
};
|
|
114595
114510
|
if (typeof deps.react !== "string") {
|
|
114596
114511
|
return false;
|
|
114597
114512
|
}
|
|
@@ -114603,7 +114518,10 @@ var require_project = __commonJS({
|
|
|
114603
114518
|
return false;
|
|
114604
114519
|
}
|
|
114605
114520
|
const pkgInfo = JSON.parse(_compiled.fs.readFileSync(pkgPath, "utf8"));
|
|
114606
|
-
const deps =
|
|
114521
|
+
const deps = {
|
|
114522
|
+
...pkgInfo.devDependencies,
|
|
114523
|
+
...pkgInfo.dependencies
|
|
114524
|
+
};
|
|
114607
114525
|
if (typeof deps.react !== "string") {
|
|
114608
114526
|
return false;
|
|
114609
114527
|
}
|
|
@@ -114658,55 +114576,47 @@ var require_package4 = __commonJS({
|
|
|
114658
114576
|
}
|
|
114659
114577
|
});
|
|
114660
114578
|
var _compiled = require_compiled();
|
|
114661
|
-
function getPnpmVersion() {
|
|
114662
|
-
|
|
114663
|
-
|
|
114664
|
-
|
|
114665
|
-
|
|
114666
|
-
return stdout;
|
|
114667
|
-
});
|
|
114579
|
+
async function getPnpmVersion() {
|
|
114580
|
+
const { stdout } = await (0, _compiled.execa)("pnpm", [
|
|
114581
|
+
"--version"
|
|
114582
|
+
]);
|
|
114583
|
+
return stdout;
|
|
114668
114584
|
}
|
|
114669
|
-
function canUseNpm3() {
|
|
114670
|
-
|
|
114671
|
-
|
|
114672
|
-
|
|
114673
|
-
|
|
114674
|
-
|
|
114675
|
-
|
|
114676
|
-
|
|
114677
|
-
|
|
114678
|
-
|
|
114679
|
-
|
|
114680
|
-
}
|
|
114681
|
-
});
|
|
114585
|
+
async function canUseNpm3() {
|
|
114586
|
+
try {
|
|
114587
|
+
await (0, _compiled.execa)("npm", [
|
|
114588
|
+
"--version"
|
|
114589
|
+
], {
|
|
114590
|
+
env: process.env
|
|
114591
|
+
});
|
|
114592
|
+
return true;
|
|
114593
|
+
} catch (e) {
|
|
114594
|
+
return false;
|
|
114595
|
+
}
|
|
114682
114596
|
}
|
|
114683
|
-
function canUseYarn3() {
|
|
114684
|
-
|
|
114685
|
-
|
|
114686
|
-
|
|
114687
|
-
|
|
114688
|
-
|
|
114689
|
-
|
|
114690
|
-
|
|
114691
|
-
|
|
114692
|
-
|
|
114693
|
-
|
|
114694
|
-
}
|
|
114695
|
-
});
|
|
114597
|
+
async function canUseYarn3() {
|
|
114598
|
+
try {
|
|
114599
|
+
await (0, _compiled.execa)("yarn", [
|
|
114600
|
+
"--version"
|
|
114601
|
+
], {
|
|
114602
|
+
env: process.env
|
|
114603
|
+
});
|
|
114604
|
+
return true;
|
|
114605
|
+
} catch (e) {
|
|
114606
|
+
return false;
|
|
114607
|
+
}
|
|
114696
114608
|
}
|
|
114697
|
-
function canUsePnpm3() {
|
|
114698
|
-
|
|
114699
|
-
|
|
114700
|
-
|
|
114701
|
-
|
|
114702
|
-
|
|
114703
|
-
|
|
114704
|
-
|
|
114705
|
-
|
|
114706
|
-
|
|
114707
|
-
|
|
114708
|
-
}
|
|
114709
|
-
});
|
|
114609
|
+
async function canUsePnpm3() {
|
|
114610
|
+
try {
|
|
114611
|
+
await (0, _compiled.execa)("pnpm", [
|
|
114612
|
+
"--version"
|
|
114613
|
+
], {
|
|
114614
|
+
env: process.env
|
|
114615
|
+
});
|
|
114616
|
+
return true;
|
|
114617
|
+
} catch (e) {
|
|
114618
|
+
return false;
|
|
114619
|
+
}
|
|
114710
114620
|
}
|
|
114711
114621
|
}
|
|
114712
114622
|
});
|
|
@@ -114759,31 +114669,29 @@ var require_data = __commonJS({
|
|
|
114759
114669
|
var _is = require_is();
|
|
114760
114670
|
var _package = require_package4();
|
|
114761
114671
|
var MAX_TIMES = 5;
|
|
114762
|
-
function getPackageManager2() {
|
|
114763
|
-
|
|
114764
|
-
|
|
114765
|
-
|
|
114766
|
-
|
|
114767
|
-
|
|
114768
|
-
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "pnpm-lock.yaml"))) {
|
|
114769
|
-
return "pnpm";
|
|
114770
|
-
}
|
|
114771
|
-
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "yarn.lock"))) {
|
|
114772
|
-
return "yarn";
|
|
114773
|
-
}
|
|
114774
|
-
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "package-lock.json"))) {
|
|
114775
|
-
return "npm";
|
|
114776
|
-
}
|
|
114777
|
-
appDirectory = _path.default.join(appDirectory, "..");
|
|
114778
|
-
}
|
|
114779
|
-
if (yield (0, _package.canUsePnpm)()) {
|
|
114672
|
+
async function getPackageManager2(cwd = process.cwd()) {
|
|
114673
|
+
let appDirectory = cwd;
|
|
114674
|
+
let times = 0;
|
|
114675
|
+
while (_os.default.homedir() !== appDirectory && times < MAX_TIMES) {
|
|
114676
|
+
times++;
|
|
114677
|
+
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "pnpm-lock.yaml"))) {
|
|
114780
114678
|
return "pnpm";
|
|
114781
114679
|
}
|
|
114782
|
-
if (
|
|
114680
|
+
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "yarn.lock"))) {
|
|
114783
114681
|
return "yarn";
|
|
114784
114682
|
}
|
|
114785
|
-
|
|
114786
|
-
|
|
114683
|
+
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "package-lock.json"))) {
|
|
114684
|
+
return "npm";
|
|
114685
|
+
}
|
|
114686
|
+
appDirectory = _path.default.join(appDirectory, "..");
|
|
114687
|
+
}
|
|
114688
|
+
if (await (0, _package.canUsePnpm)()) {
|
|
114689
|
+
return "pnpm";
|
|
114690
|
+
}
|
|
114691
|
+
if (await (0, _package.canUseYarn)()) {
|
|
114692
|
+
return "yarn";
|
|
114693
|
+
}
|
|
114694
|
+
return "npm";
|
|
114787
114695
|
}
|
|
114788
114696
|
var getCoreJsVersion = (corejsPkgPath) => {
|
|
114789
114697
|
try {
|
|
@@ -114863,7 +114771,10 @@ var require_config3 = __commonJS({
|
|
|
114863
114771
|
if (optionsByEntry === void 0 && isMainEntry && packageName) {
|
|
114864
114772
|
optionsByEntry = getOptionsByEntryName(packageName, optionsByEntries);
|
|
114865
114773
|
}
|
|
114866
|
-
return optionsByEntry !== void 0 ? (0, _is.isPlainObject)(optionsByEntry) && (0, _is.isPlainObject)(baseOptions) ?
|
|
114774
|
+
return optionsByEntry !== void 0 ? (0, _is.isPlainObject)(optionsByEntry) && (0, _is.isPlainObject)(baseOptions) ? {
|
|
114775
|
+
...baseOptions,
|
|
114776
|
+
...optionsByEntry
|
|
114777
|
+
} : optionsByEntry : baseOptions;
|
|
114867
114778
|
} else {
|
|
114868
114779
|
return baseOptions;
|
|
114869
114780
|
}
|
|
@@ -114901,10 +114812,10 @@ var require_get2 = __commonJS({
|
|
|
114901
114812
|
var _fs = require_fs();
|
|
114902
114813
|
_export_star._(require_data(), exports);
|
|
114903
114814
|
_export_star._(require_config3(), exports);
|
|
114904
|
-
var getServerConfig = (appDirectory, configFile) =>
|
|
114815
|
+
var getServerConfig = async (appDirectory, configFile) => {
|
|
114905
114816
|
const configFilePath = (0, _fs.findExists)(_constants.CONFIG_FILE_EXTENSIONS.map((extension) => _path.default.resolve(appDirectory, `${configFile}${extension}`)));
|
|
114906
114817
|
return configFilePath;
|
|
114907
|
-
}
|
|
114818
|
+
};
|
|
114908
114819
|
var getTargetDir = (from, baseDir, targetBaseDir) => {
|
|
114909
114820
|
const relativePath = _path.default.relative(baseDir, from);
|
|
114910
114821
|
return _path.default.resolve(targetBaseDir, relativePath);
|
|
@@ -115029,8 +114940,14 @@ ${_chalk.default.grey(rest.join("\n"))}`;
|
|
|
115029
114940
|
}
|
|
115030
114941
|
constructor(options = {}) {
|
|
115031
114942
|
this.level = options.level || LOG_TYPES.log.level;
|
|
115032
|
-
this.config =
|
|
115033
|
-
|
|
114943
|
+
this.config = {
|
|
114944
|
+
...DEFAULT_CONFIG,
|
|
114945
|
+
...options.config || {}
|
|
114946
|
+
};
|
|
114947
|
+
this.types = {
|
|
114948
|
+
...LOG_TYPES,
|
|
114949
|
+
...options.types || {}
|
|
114950
|
+
};
|
|
115034
114951
|
this.longestLabel = this.getLongestLabel();
|
|
115035
114952
|
Object.keys(this.types).forEach((type) => {
|
|
115036
114953
|
this[type] = this._log.bind(this, type);
|
|
@@ -115148,7 +115065,10 @@ var require_alias = __commonJS({
|
|
|
115148
115065
|
const baseUrl = (_tsconfig = tsconfig) === null || _tsconfig === void 0 ? void 0 : (_tsconfig_compilerOptions = _tsconfig.compilerOptions) === null || _tsconfig_compilerOptions === void 0 ? void 0 : _tsconfig_compilerOptions.baseUrl;
|
|
115149
115066
|
return {
|
|
115150
115067
|
absoluteBaseUrl: baseUrl ? _path.default.join(option.appDirectory, baseUrl) : option.appDirectory,
|
|
115151
|
-
paths:
|
|
115068
|
+
paths: {
|
|
115069
|
+
...alias,
|
|
115070
|
+
...(_tsconfig1 = tsconfig) === null || _tsconfig1 === void 0 ? void 0 : (_tsconfig_compilerOptions1 = _tsconfig1.compilerOptions) === null || _tsconfig_compilerOptions1 === void 0 ? void 0 : _tsconfig_compilerOptions1.paths
|
|
115071
|
+
},
|
|
115152
115072
|
isTsPath: true,
|
|
115153
115073
|
isTsProject
|
|
115154
115074
|
};
|
|
@@ -115234,7 +115154,7 @@ var require_path = __commonJS({
|
|
|
115234
115154
|
try {
|
|
115235
115155
|
ret = _os.default.tmpdir();
|
|
115236
115156
|
ret = _fs.default.realpathSync(ret);
|
|
115237
|
-
} catch
|
|
115157
|
+
} catch {
|
|
115238
115158
|
}
|
|
115239
115159
|
return ret;
|
|
115240
115160
|
}
|
|
@@ -115335,7 +115255,10 @@ var require_babel = __commonJS({
|
|
|
115335
115255
|
presets.forEach((preset, index) => {
|
|
115336
115256
|
if (Array.isArray(preset)) {
|
|
115337
115257
|
if (typeof preset[0] === "string" && (0, _path1.normalizeToPosixPath)(preset[0]).includes(presetName)) {
|
|
115338
|
-
preset[1] =
|
|
115258
|
+
preset[1] = {
|
|
115259
|
+
...preset[1] || {},
|
|
115260
|
+
...options
|
|
115261
|
+
};
|
|
115339
115262
|
}
|
|
115340
115263
|
} else if (typeof preset === "string" && (0, _path1.normalizeToPosixPath)(preset).includes(presetName)) {
|
|
115341
115264
|
presets[index] = [
|
|
@@ -115364,7 +115287,10 @@ var require_babel = __commonJS({
|
|
|
115364
115287
|
};
|
|
115365
115288
|
var applyUserBabelConfig = (defaultOptions, userBabelConfig, extraBabelUtils) => {
|
|
115366
115289
|
if (userBabelConfig) {
|
|
115367
|
-
const babelUtils =
|
|
115290
|
+
const babelUtils = {
|
|
115291
|
+
...getBabelUtils(defaultOptions),
|
|
115292
|
+
...extraBabelUtils
|
|
115293
|
+
};
|
|
115368
115294
|
return (0, _applyOptionsChain.applyOptionsChain)(defaultOptions, userBabelConfig || {}, babelUtils);
|
|
115369
115295
|
}
|
|
115370
115296
|
return defaultOptions;
|
|
@@ -115437,7 +115363,10 @@ var require_monorepo = __commonJS({
|
|
|
115437
115363
|
return false;
|
|
115438
115364
|
}
|
|
115439
115365
|
const json = JSON.parse(_fs.default.readFileSync(pkgJsonPath, "utf8"));
|
|
115440
|
-
const deps =
|
|
115366
|
+
const deps = {
|
|
115367
|
+
...json.dependencies || {},
|
|
115368
|
+
...json.devDependencies || {}
|
|
115369
|
+
};
|
|
115441
115370
|
return Boolean(deps["@modern-js/monorepo-tools"]);
|
|
115442
115371
|
};
|
|
115443
115372
|
var findMonorepoRoot = (appDirectory, maxDepth = PACKAGE_MAX_DEPTH) => {
|
|
@@ -115497,7 +115426,7 @@ var require_port = __commonJS({
|
|
|
115497
115426
|
var _net = /* @__PURE__ */ _interop_require_default._(require("net"));
|
|
115498
115427
|
var _compiled = require_compiled();
|
|
115499
115428
|
var _logger = require_logger2();
|
|
115500
|
-
var getPort =
|
|
115429
|
+
var getPort = async (port, { tryLimits = 20, strictPort = false } = {}) => {
|
|
115501
115430
|
if (typeof port === "string") {
|
|
115502
115431
|
port = parseInt(port, 10);
|
|
115503
115432
|
}
|
|
@@ -115509,7 +115438,7 @@ var require_port = __commonJS({
|
|
|
115509
115438
|
let attempts = 0;
|
|
115510
115439
|
while (!found && attempts <= tryLimits) {
|
|
115511
115440
|
try {
|
|
115512
|
-
|
|
115441
|
+
await new Promise((resolve, reject) => {
|
|
115513
115442
|
const server = _net.default.createServer();
|
|
115514
115443
|
server.unref();
|
|
115515
115444
|
server.on("error", reject);
|
|
@@ -115537,7 +115466,7 @@ var require_port = __commonJS({
|
|
|
115537
115466
|
}
|
|
115538
115467
|
}
|
|
115539
115468
|
return port;
|
|
115540
|
-
}
|
|
115469
|
+
};
|
|
115541
115470
|
}
|
|
115542
115471
|
});
|
|
115543
115472
|
|
|
@@ -115688,13 +115617,14 @@ var require_require = __commonJS({
|
|
|
115688
115617
|
};
|
|
115689
115618
|
var dynamicImport = new Function("modulePath", "return import(modulePath)");
|
|
115690
115619
|
var requireExistModule = (filename, opt) => {
|
|
115691
|
-
const final =
|
|
115620
|
+
const final = {
|
|
115692
115621
|
extensions: [
|
|
115693
115622
|
".ts",
|
|
115694
115623
|
".js"
|
|
115695
115624
|
],
|
|
115696
|
-
interop: true
|
|
115697
|
-
|
|
115625
|
+
interop: true,
|
|
115626
|
+
...opt
|
|
115627
|
+
};
|
|
115698
115628
|
const exist = (0, _fs.findExists)(final.extensions.map((ext) => `${filename}${ext}`));
|
|
115699
115629
|
if (!exist) {
|
|
115700
115630
|
return null;
|
|
@@ -115774,7 +115704,7 @@ var require_runtimeExports = __commonJS({
|
|
|
115774
115704
|
_compiled.fs.appendFileSync(entryExportFile, `${statement}
|
|
115775
115705
|
`);
|
|
115776
115706
|
}
|
|
115777
|
-
} catch
|
|
115707
|
+
} catch {
|
|
115778
115708
|
}
|
|
115779
115709
|
};
|
|
115780
115710
|
const getPath = () => entryExportFile;
|
|
@@ -115822,29 +115752,29 @@ var require_watch = __commonJS({
|
|
|
115822
115752
|
ignored
|
|
115823
115753
|
});
|
|
115824
115754
|
watcher.on("ready", () => ready = true);
|
|
115825
|
-
watcher.on("change", (filePath) =>
|
|
115755
|
+
watcher.on("change", async (filePath) => {
|
|
115826
115756
|
const changedFilePath = _path.default.resolve(filePath);
|
|
115827
|
-
|
|
115757
|
+
await runTask({
|
|
115828
115758
|
changedFilePath,
|
|
115829
115759
|
changeType: WatchChangeType.CHANGE
|
|
115830
115760
|
});
|
|
115831
|
-
})
|
|
115832
|
-
watcher.on("add", (filePath) =>
|
|
115761
|
+
});
|
|
115762
|
+
watcher.on("add", async (filePath) => {
|
|
115833
115763
|
const changedFilePath = _path.default.resolve(filePath);
|
|
115834
115764
|
if (ready) {
|
|
115835
|
-
|
|
115765
|
+
await runTask({
|
|
115836
115766
|
changedFilePath,
|
|
115837
115767
|
changeType: WatchChangeType.ADD
|
|
115838
115768
|
});
|
|
115839
115769
|
}
|
|
115840
|
-
})
|
|
115841
|
-
watcher.on("unlink", (filePath) =>
|
|
115770
|
+
});
|
|
115771
|
+
watcher.on("unlink", async (filePath) => {
|
|
115842
115772
|
const changedFilePath = _path.default.resolve(filePath);
|
|
115843
|
-
|
|
115773
|
+
await runTask({
|
|
115844
115774
|
changedFilePath,
|
|
115845
115775
|
changeType: WatchChangeType.UNLINK
|
|
115846
115776
|
});
|
|
115847
|
-
})
|
|
115777
|
+
});
|
|
115848
115778
|
watcher.on("error", (err) => {
|
|
115849
115779
|
throw err;
|
|
115850
115780
|
});
|
|
@@ -131041,60 +130971,63 @@ var import_path5 = __toESM(require("path"));
|
|
|
131041
130971
|
var import_utils14 = __toESM(require_cjs2());
|
|
131042
130972
|
|
|
131043
130973
|
// src/index.ts
|
|
131044
|
-
var handleTemplateFile = (context, generator, appApi) =>
|
|
131045
|
-
const
|
|
130974
|
+
var handleTemplateFile = async (context, generator, appApi) => {
|
|
130975
|
+
const { hasPlugin, generatorPlugin, ...extra } = context.config;
|
|
131046
130976
|
let ans = {};
|
|
131047
130977
|
if (hasPlugin) {
|
|
131048
|
-
|
|
130978
|
+
await generatorPlugin.installPlugins("custom", extra);
|
|
131049
130979
|
const schema = generatorPlugin.getInputSchema();
|
|
131050
130980
|
const inputValue = generatorPlugin.getInputValue();
|
|
131051
130981
|
const defaultConfig = generatorPlugin.getDefaultConfig();
|
|
131052
|
-
ans =
|
|
130982
|
+
ans = await appApi.getInputBySchema(
|
|
131053
130983
|
schema,
|
|
131054
130984
|
"formily",
|
|
131055
|
-
|
|
130985
|
+
{
|
|
130986
|
+
...context.config,
|
|
130987
|
+
...defaultConfig
|
|
130988
|
+
},
|
|
131056
130989
|
{},
|
|
131057
|
-
|
|
130990
|
+
{ ...inputValue }
|
|
131058
130991
|
);
|
|
131059
130992
|
} else {
|
|
131060
|
-
ans =
|
|
130993
|
+
ans = await appApi.getInputBySchemaFunc(getBaseSchema, context.config);
|
|
131061
130994
|
}
|
|
131062
130995
|
const { packageManager } = ans;
|
|
131063
|
-
|
|
130996
|
+
await appApi.forgeTemplate(
|
|
131064
130997
|
"templates/base-templates/**/*",
|
|
131065
130998
|
void 0,
|
|
131066
130999
|
(resourceKey) => resourceKey.replace("templates/base-templates/", "").replace(".handlebars", "")
|
|
131067
131000
|
);
|
|
131068
|
-
|
|
131001
|
+
await appApi.forgeTemplate(
|
|
131069
131002
|
"templates/idea/**/*",
|
|
131070
131003
|
void 0,
|
|
131071
131004
|
(resourceKey) => resourceKey.replace("templates/idea/", ".idea/")
|
|
131072
131005
|
);
|
|
131073
131006
|
if (packageManager === PackageManager.Pnpm) {
|
|
131074
|
-
|
|
131007
|
+
await appApi.forgeTemplate(
|
|
131075
131008
|
"templates/pnpm-templates/**/*",
|
|
131076
131009
|
void 0,
|
|
131077
131010
|
(resourceKey) => resourceKey.replace("templates/pnpm-templates/npmrc", ".npmrc").replace(".handlebars", "")
|
|
131078
131011
|
);
|
|
131079
131012
|
}
|
|
131080
131013
|
import_utils14.fs.chmodSync(import_path6.default.join(generator.outputPath, ".husky", "pre-commit"), "755");
|
|
131081
|
-
}
|
|
131082
|
-
var src_default = (context, generator) =>
|
|
131014
|
+
};
|
|
131015
|
+
var src_default = async (context, generator) => {
|
|
131083
131016
|
const appApi = new AppAPI(context, generator);
|
|
131084
131017
|
const { locale } = context.config;
|
|
131085
131018
|
appApi.i18n.changeLanguage({ locale });
|
|
131086
|
-
if (!
|
|
131019
|
+
if (!await appApi.checkEnvironment()) {
|
|
131087
131020
|
process.exit(1);
|
|
131088
131021
|
}
|
|
131089
131022
|
generator.logger.debug(`start run @modern-js/base-generator`);
|
|
131090
131023
|
generator.logger.debug(`context=${JSON.stringify(context)}`);
|
|
131091
131024
|
generator.logger.debug(`context.data=${JSON.stringify(context.data)}`);
|
|
131092
|
-
|
|
131025
|
+
await handleTemplateFile(context, generator, appApi);
|
|
131093
131026
|
if (context.handleForged) {
|
|
131094
|
-
|
|
131027
|
+
await context.handleForged("custom", context, context.config.hasPlugin);
|
|
131095
131028
|
}
|
|
131096
131029
|
generator.logger.debug(`forge @modern-js/base-generator succeed `);
|
|
131097
|
-
}
|
|
131030
|
+
};
|
|
131098
131031
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
131099
131032
|
/*!
|
|
131100
131033
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|