@modern-js/monorepo-generator 3.1.35 → 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 +603 -674
- package/package.json +9 -9
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(
|
@@ -86494,22 +86426,20 @@ var require_fs_extra2 = __commonJS({
|
|
86494
86426
|
const o = r2(17);
|
86495
86427
|
const c = r2(971);
|
86496
86428
|
const s = r2(95);
|
86497
|
-
const a = n(function emptyDir(e3) {
|
86498
|
-
|
86499
|
-
|
86500
|
-
|
86501
|
-
|
86502
|
-
|
86503
|
-
|
86504
|
-
|
86505
|
-
return Promise.all(t3.map((t4) => s.remove(o.join(e3, t4))));
|
86506
|
-
});
|
86429
|
+
const a = n(async function emptyDir(e3) {
|
86430
|
+
let t3;
|
86431
|
+
try {
|
86432
|
+
t3 = await i.readdir(e3);
|
86433
|
+
} catch {
|
86434
|
+
return c.mkdirs(e3);
|
86435
|
+
}
|
86436
|
+
return Promise.all(t3.map((t4) => s.remove(o.join(e3, t4))));
|
86507
86437
|
});
|
86508
86438
|
function emptyDirSync(e3) {
|
86509
86439
|
let t3;
|
86510
86440
|
try {
|
86511
86441
|
t3 = i.readdirSync(e3);
|
86512
|
-
} catch
|
86442
|
+
} catch {
|
86513
86443
|
return c.mkdirsSync(e3);
|
86514
86444
|
}
|
86515
86445
|
t3.forEach((t4) => {
|
@@ -86562,7 +86492,7 @@ var require_fs_extra2 = __commonJS({
|
|
86562
86492
|
let t3;
|
86563
86493
|
try {
|
86564
86494
|
t3 = o.statSync(e3);
|
86565
|
-
} catch
|
86495
|
+
} catch {
|
86566
86496
|
}
|
86567
86497
|
if (t3 && t3.isFile())
|
86568
86498
|
return;
|
@@ -86629,7 +86559,7 @@ var require_fs_extra2 = __commonJS({
|
|
86629
86559
|
let r3;
|
86630
86560
|
try {
|
86631
86561
|
r3 = o.lstatSync(t3);
|
86632
|
-
} catch
|
86562
|
+
} catch {
|
86633
86563
|
}
|
86634
86564
|
try {
|
86635
86565
|
const t4 = o.lstatSync(e3);
|
@@ -86724,7 +86654,7 @@ var require_fs_extra2 = __commonJS({
|
|
86724
86654
|
return t3;
|
86725
86655
|
try {
|
86726
86656
|
r3 = n.lstatSync(e3);
|
86727
|
-
} catch
|
86657
|
+
} catch {
|
86728
86658
|
return "file";
|
86729
86659
|
}
|
86730
86660
|
return r3 && r3.isDirectory() ? "dir" : "file";
|
@@ -86787,7 +86717,7 @@ var require_fs_extra2 = __commonJS({
|
|
86787
86717
|
let n2;
|
86788
86718
|
try {
|
86789
86719
|
n2 = o.lstatSync(t3);
|
86790
|
-
} catch
|
86720
|
+
} catch {
|
86791
86721
|
}
|
86792
86722
|
if (n2 && n2.isSymbolicLink()) {
|
86793
86723
|
const r4 = o.statSync(e3);
|
@@ -86862,7 +86792,7 @@ var require_fs_extra2 = __commonJS({
|
|
86862
86792
|
}
|
86863
86793
|
}, 81: (e2, t2, r2) => {
|
86864
86794
|
"use strict";
|
86865
|
-
e2.exports =
|
86795
|
+
e2.exports = { ...r2(812), ...r2(2), ...r2(708), ...r2(726), ...r2(779), ...r2(971), ...r2(511), ...r2(701), ...r2(725), ...r2(95) };
|
86866
86796
|
}, 779: (e2, t2, r2) => {
|
86867
86797
|
"use strict";
|
86868
86798
|
const n = r2(5).fromPromise;
|
@@ -86893,11 +86823,9 @@ var require_fs_extra2 = __commonJS({
|
|
86893
86823
|
"use strict";
|
86894
86824
|
const { stringify: n } = r2(208);
|
86895
86825
|
const { outputFile: i } = r2(701);
|
86896
|
-
function outputJson(
|
86897
|
-
|
86898
|
-
|
86899
|
-
yield i(e3, o, r3);
|
86900
|
-
});
|
86826
|
+
async function outputJson(e3, t3, r3 = {}) {
|
86827
|
+
const o = n(t3, r3);
|
86828
|
+
await i(e3, o, r3);
|
86901
86829
|
}
|
86902
86830
|
e2.exports = outputJson;
|
86903
86831
|
}, 971: (e2, t2, r2) => {
|
@@ -86914,12 +86842,12 @@ var require_fs_extra2 = __commonJS({
|
|
86914
86842
|
const t3 = { mode: 511 };
|
86915
86843
|
if (typeof e3 === "number")
|
86916
86844
|
return e3;
|
86917
|
-
return
|
86845
|
+
return { ...t3, ...e3 }.mode;
|
86918
86846
|
};
|
86919
|
-
e2.exports.makeDir = (e3, t3) =>
|
86847
|
+
e2.exports.makeDir = async (e3, t3) => {
|
86920
86848
|
i(e3);
|
86921
86849
|
return n.mkdir(e3, { mode: getMode(t3), recursive: true });
|
86922
|
-
}
|
86850
|
+
};
|
86923
86851
|
e2.exports.makeDirSync = (e3, t3) => {
|
86924
86852
|
i(e3);
|
86925
86853
|
return n.mkdirSync(e3, { mode: getMode(t3), recursive: true });
|
@@ -87337,7 +87265,7 @@ var require_fs_extra2 = __commonJS({
|
|
87337
87265
|
try {
|
87338
87266
|
const r4 = t3.rmdirSync(e3, t3);
|
87339
87267
|
return r4;
|
87340
|
-
} catch
|
87268
|
+
} catch {
|
87341
87269
|
}
|
87342
87270
|
} while (Date.now() - r3 < 500);
|
87343
87271
|
} else {
|
@@ -88236,28 +88164,26 @@ var require_fs_extra2 = __commonJS({
|
|
88236
88164
|
}
|
88237
88165
|
const i = r2(5);
|
88238
88166
|
const { stringify: o, stripBom: c } = r2(208);
|
88239
|
-
function _readFile(
|
88240
|
-
|
88241
|
-
|
88242
|
-
|
88243
|
-
|
88244
|
-
|
88245
|
-
|
88246
|
-
|
88247
|
-
|
88248
|
-
|
88249
|
-
|
88250
|
-
|
88251
|
-
|
88252
|
-
|
88253
|
-
|
88254
|
-
|
88255
|
-
|
88256
|
-
return null;
|
88257
|
-
}
|
88167
|
+
async function _readFile(e3, t3 = {}) {
|
88168
|
+
if (typeof t3 === "string") {
|
88169
|
+
t3 = { encoding: t3 };
|
88170
|
+
}
|
88171
|
+
const r3 = t3.fs || n;
|
88172
|
+
const o2 = "throws" in t3 ? t3.throws : true;
|
88173
|
+
let s2 = await i.fromCallback(r3.readFile)(e3, t3);
|
88174
|
+
s2 = c(s2);
|
88175
|
+
let a2;
|
88176
|
+
try {
|
88177
|
+
a2 = JSON.parse(s2, t3 ? t3.reviver : null);
|
88178
|
+
} catch (t4) {
|
88179
|
+
if (o2) {
|
88180
|
+
t4.message = `${e3}: ${t4.message}`;
|
88181
|
+
throw t4;
|
88182
|
+
} else {
|
88183
|
+
return null;
|
88258
88184
|
}
|
88259
|
-
|
88260
|
-
|
88185
|
+
}
|
88186
|
+
return a2;
|
88261
88187
|
}
|
88262
88188
|
const s = i.fromPromise(_readFile);
|
88263
88189
|
function readFileSync(e3, t3 = {}) {
|
@@ -88279,12 +88205,10 @@ var require_fs_extra2 = __commonJS({
|
|
88279
88205
|
}
|
88280
88206
|
}
|
88281
88207
|
}
|
88282
|
-
function _writeFile(
|
88283
|
-
|
88284
|
-
|
88285
|
-
|
88286
|
-
yield i.fromCallback(c2.writeFile)(e3, s2, r3);
|
88287
|
-
});
|
88208
|
+
async function _writeFile(e3, t3, r3 = {}) {
|
88209
|
+
const c2 = r3.fs || n;
|
88210
|
+
const s2 = o(t3, r3);
|
88211
|
+
await i.fromCallback(c2.writeFile)(e3, s2, r3);
|
88288
88212
|
}
|
88289
88213
|
const a = i.fromPromise(_writeFile);
|
88290
88214
|
function writeFileSync(e3, t3, r3 = {}) {
|
@@ -88512,11 +88436,11 @@ var require_chalk2 = __commonJS({
|
|
88512
88436
|
} };
|
88513
88437
|
}
|
88514
88438
|
const f = Object.defineProperties(() => {
|
88515
|
-
},
|
88439
|
+
}, { ...u, level: { enumerable: true, get() {
|
88516
88440
|
return this._generator.level;
|
88517
88441
|
}, set(e3) {
|
88518
88442
|
this._generator.level = e3;
|
88519
|
-
} } })
|
88443
|
+
} } });
|
88520
88444
|
const createStyler = (e3, t3, n3) => {
|
88521
88445
|
let r2;
|
88522
88446
|
let s2;
|
@@ -88827,7 +88751,7 @@ var require_chalk2 = __commonJS({
|
|
88827
88751
|
return [o2 * 100, l * 100, c * 100, s2 * 100];
|
88828
88752
|
};
|
88829
88753
|
function comparativeDistance(e3, t3) {
|
88830
|
-
return
|
88754
|
+
return (e3[0] - t3[0]) ** 2 + (e3[1] - t3[1]) ** 2 + (e3[2] - t3[2]) ** 2;
|
88831
88755
|
}
|
88832
88756
|
o.rgb.keyword = function(e3) {
|
88833
88757
|
const t3 = s[e3];
|
@@ -88853,9 +88777,9 @@ var require_chalk2 = __commonJS({
|
|
88853
88777
|
let t3 = e3[0] / 255;
|
88854
88778
|
let n3 = e3[1] / 255;
|
88855
88779
|
let r2 = e3[2] / 255;
|
88856
|
-
t3 = t3 > 0.04045 ?
|
88857
|
-
n3 = n3 > 0.04045 ?
|
88858
|
-
r2 = r2 > 0.04045 ?
|
88780
|
+
t3 = t3 > 0.04045 ? ((t3 + 0.055) / 1.055) ** 2.4 : t3 / 12.92;
|
88781
|
+
n3 = n3 > 0.04045 ? ((n3 + 0.055) / 1.055) ** 2.4 : n3 / 12.92;
|
88782
|
+
r2 = r2 > 0.04045 ? ((r2 + 0.055) / 1.055) ** 2.4 : r2 / 12.92;
|
88859
88783
|
const s2 = t3 * 0.4124 + n3 * 0.3576 + r2 * 0.1805;
|
88860
88784
|
const o2 = t3 * 0.2126 + n3 * 0.7152 + r2 * 0.0722;
|
88861
88785
|
const l = t3 * 0.0193 + n3 * 0.1192 + r2 * 0.9505;
|
@@ -88869,9 +88793,9 @@ var require_chalk2 = __commonJS({
|
|
88869
88793
|
n3 /= 95.047;
|
88870
88794
|
r2 /= 100;
|
88871
88795
|
s2 /= 108.883;
|
88872
|
-
n3 = n3 > 8856e-6 ?
|
88873
|
-
r2 = r2 > 8856e-6 ?
|
88874
|
-
s2 = s2 > 8856e-6 ?
|
88796
|
+
n3 = n3 > 8856e-6 ? n3 ** (1 / 3) : 7.787 * n3 + 16 / 116;
|
88797
|
+
r2 = r2 > 8856e-6 ? r2 ** (1 / 3) : 7.787 * r2 + 16 / 116;
|
88798
|
+
s2 = s2 > 8856e-6 ? s2 ** (1 / 3) : 7.787 * s2 + 16 / 116;
|
88875
88799
|
const l = 116 * r2 - 16;
|
88876
88800
|
const c = 500 * (n3 - r2);
|
88877
88801
|
const i = 200 * (r2 - s2);
|
@@ -89045,9 +88969,9 @@ var require_chalk2 = __commonJS({
|
|
89045
88969
|
s2 = t3 * 3.2406 + n3 * -1.5372 + r2 * -0.4986;
|
89046
88970
|
o2 = t3 * -0.9689 + n3 * 1.8758 + r2 * 0.0415;
|
89047
88971
|
l = t3 * 0.0557 + n3 * -0.204 + r2 * 1.057;
|
89048
|
-
s2 = s2 > 31308e-7 ? 1.055 *
|
89049
|
-
o2 = o2 > 31308e-7 ? 1.055 *
|
89050
|
-
l = l > 31308e-7 ? 1.055 *
|
88972
|
+
s2 = s2 > 31308e-7 ? 1.055 * s2 ** (1 / 2.4) - 0.055 : s2 * 12.92;
|
88973
|
+
o2 = o2 > 31308e-7 ? 1.055 * o2 ** (1 / 2.4) - 0.055 : o2 * 12.92;
|
88974
|
+
l = l > 31308e-7 ? 1.055 * l ** (1 / 2.4) - 0.055 : l * 12.92;
|
89051
88975
|
s2 = Math.min(Math.max(0, s2), 1);
|
89052
88976
|
o2 = Math.min(Math.max(0, o2), 1);
|
89053
88977
|
l = Math.min(Math.max(0, l), 1);
|
@@ -89060,9 +88984,9 @@ var require_chalk2 = __commonJS({
|
|
89060
88984
|
t3 /= 95.047;
|
89061
88985
|
n3 /= 100;
|
89062
88986
|
r2 /= 108.883;
|
89063
|
-
t3 = t3 > 8856e-6 ?
|
89064
|
-
n3 = n3 > 8856e-6 ?
|
89065
|
-
r2 = r2 > 8856e-6 ?
|
88987
|
+
t3 = t3 > 8856e-6 ? t3 ** (1 / 3) : 7.787 * t3 + 16 / 116;
|
88988
|
+
n3 = n3 > 8856e-6 ? n3 ** (1 / 3) : 7.787 * n3 + 16 / 116;
|
88989
|
+
r2 = r2 > 8856e-6 ? r2 ** (1 / 3) : 7.787 * r2 + 16 / 116;
|
89066
88990
|
const s2 = 116 * n3 - 16;
|
89067
88991
|
const o2 = 500 * (t3 - n3);
|
89068
88992
|
const l = 200 * (n3 - r2);
|
@@ -89078,9 +89002,9 @@ var require_chalk2 = __commonJS({
|
|
89078
89002
|
o2 = (t3 + 16) / 116;
|
89079
89003
|
s2 = n3 / 500 + o2;
|
89080
89004
|
l = o2 - r2 / 200;
|
89081
|
-
const c =
|
89082
|
-
const i =
|
89083
|
-
const a =
|
89005
|
+
const c = o2 ** 3;
|
89006
|
+
const i = s2 ** 3;
|
89007
|
+
const a = l ** 3;
|
89084
89008
|
o2 = c > 8856e-6 ? c : (o2 - 16 / 116) / 7.787;
|
89085
89009
|
s2 = i > 8856e-6 ? i : (s2 - 16 / 116) / 7.787;
|
89086
89010
|
l = a > 8856e-6 ? a : (l - 16 / 116) / 7.787;
|
@@ -90336,7 +90260,7 @@ var require_ora3 = __commonJS({
|
|
90336
90260
|
if (typeof e3 === "string") {
|
90337
90261
|
e3 = { text: e3 };
|
90338
90262
|
}
|
90339
|
-
this.options =
|
90263
|
+
this.options = { text: "", color: "cyan", stream: process.stderr, discardStdin: true, ...e3 };
|
90340
90264
|
this.spinner = this.options.spinner;
|
90341
90265
|
this.color = this.options.color;
|
90342
90266
|
this.hideCursor = this.options.hideCursor !== false;
|
@@ -90553,14 +90477,14 @@ var require_ora3 = __commonJS({
|
|
90553
90477
|
}
|
90554
90478
|
const r3 = new Ora(t3);
|
90555
90479
|
r3.start();
|
90556
|
-
(() =>
|
90480
|
+
(async () => {
|
90557
90481
|
try {
|
90558
|
-
|
90482
|
+
await e3;
|
90559
90483
|
r3.succeed();
|
90560
|
-
} catch
|
90484
|
+
} catch {
|
90561
90485
|
r3.fail();
|
90562
90486
|
}
|
90563
|
-
})
|
90487
|
+
})();
|
90564
90488
|
return r3;
|
90565
90489
|
};
|
90566
90490
|
}, 959: (e2) => {
|
@@ -98980,7 +98904,7 @@ var require_execa2 = __commonJS({
|
|
98980
98904
|
const { joinCommand: w, parseCommand: E, getEscapedCommand: I } = n2(192);
|
98981
98905
|
const T = 1e3 * 1e3 * 100;
|
98982
98906
|
const getEnv = ({ env: e3, extendEnv: t3, preferLocal: n3, localDir: r2, execPath: o2 }) => {
|
98983
|
-
const s2 = t3 ?
|
98907
|
+
const s2 = t3 ? { ...process.env, ...e3 } : e3;
|
98984
98908
|
if (n3) {
|
98985
98909
|
return a.env({ env: s2, cwd: r2, execPath: o2 });
|
98986
98910
|
}
|
@@ -98991,7 +98915,7 @@ var require_execa2 = __commonJS({
|
|
98991
98915
|
e3 = o2.command;
|
98992
98916
|
t3 = o2.args;
|
98993
98917
|
n3 = o2.options;
|
98994
|
-
n3 =
|
98918
|
+
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 };
|
98995
98919
|
n3.env = getEnv(n3);
|
98996
98920
|
n3.stdio = u(n3);
|
98997
98921
|
if (process.platform === "win32" && r.basename(e3, ".exe") === "cmd") {
|
@@ -99027,8 +98951,8 @@ var require_execa2 = __commonJS({
|
|
99027
98951
|
const T2 = { isCanceled: false };
|
99028
98952
|
a2.kill = l.bind(null, a2.kill.bind(a2));
|
99029
98953
|
a2.cancel = f.bind(null, a2, T2);
|
99030
|
-
const handlePromise = () =>
|
99031
|
-
const [{ error: e4, exitCode: t4, signal: n4, timedOut: o2 }, c2, u3, l2] =
|
98954
|
+
const handlePromise = async () => {
|
98955
|
+
const [{ error: e4, exitCode: t4, signal: n4, timedOut: o2 }, c2, u3, l2] = await h(a2, r2.options, E2);
|
99032
98956
|
const f2 = handleOutput(r2.options, c2);
|
99033
98957
|
const p2 = handleOutput(r2.options, u3);
|
99034
98958
|
const m2 = handleOutput(r2.options, l2);
|
@@ -99040,7 +98964,7 @@ var require_execa2 = __commonJS({
|
|
99040
98964
|
throw c3;
|
99041
98965
|
}
|
99042
98966
|
return { command: s2, escapedCommand: i2, exitCode: 0, stdout: f2, stderr: p2, all: m2, failed: false, timedOut: false, isCanceled: false, killed: false };
|
99043
|
-
}
|
98967
|
+
};
|
99044
98968
|
const C = c(handlePromise);
|
99045
98969
|
x(a2, r2.options.input);
|
99046
98970
|
a2.all = y(a2, r2.options);
|
@@ -99085,7 +99009,7 @@ var require_execa2 = __commonJS({
|
|
99085
99009
|
const r2 = u.node(n3);
|
99086
99010
|
const o2 = process.execArgv.filter((e4) => !e4.startsWith("--inspect"));
|
99087
99011
|
const { nodePath: s2 = process.execPath, nodeOptions: i2 = o2 } = n3;
|
99088
|
-
return execa2(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []],
|
99012
|
+
return execa2(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []], { ...n3, stdin: void 0, stdout: void 0, stderr: void 0, stdio: r2, shell: false });
|
99089
99013
|
};
|
99090
99014
|
}, 192: (e2) => {
|
99091
99015
|
"use strict";
|
@@ -99241,7 +99165,7 @@ ${o.message}` : x;
|
|
99241
99165
|
throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e3}\` (${typeof e3})`);
|
99242
99166
|
}
|
99243
99167
|
};
|
99244
|
-
const setExitHandler =
|
99168
|
+
const setExitHandler = async (e3, { cleanup: t3, detached: n3 }, r2) => {
|
99245
99169
|
if (!t3 || n3) {
|
99246
99170
|
return r2;
|
99247
99171
|
}
|
@@ -99251,17 +99175,17 @@ ${o.message}` : x;
|
|
99251
99175
|
return r2.finally(() => {
|
99252
99176
|
s2();
|
99253
99177
|
});
|
99254
|
-
}
|
99178
|
+
};
|
99255
99179
|
e2.exports = { spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler };
|
99256
99180
|
}, 210: (e2) => {
|
99257
99181
|
"use strict";
|
99258
|
-
const t2 = (() =>
|
99259
|
-
})
|
99182
|
+
const t2 = (async () => {
|
99183
|
+
})().constructor.prototype;
|
99260
99184
|
const n2 = ["then", "catch", "finally"].map((e3) => [e3, Reflect.getOwnPropertyDescriptor(t2, e3)]);
|
99261
99185
|
const mergePromise = (e3, t3) => {
|
99262
99186
|
for (const [r, o] of n2) {
|
99263
99187
|
const n3 = typeof t3 === "function" ? (...e4) => Reflect.apply(o.value, t3(), e4) : o.value.bind(t3);
|
99264
|
-
Reflect.defineProperty(e3, r,
|
99188
|
+
Reflect.defineProperty(e3, r, { ...o, value: n3 });
|
99265
99189
|
}
|
99266
99190
|
return e3;
|
99267
99191
|
};
|
@@ -99345,17 +99269,17 @@ ${o.message}` : x;
|
|
99345
99269
|
}
|
99346
99270
|
return n3;
|
99347
99271
|
};
|
99348
|
-
const getBufferedData = (e3, t3) =>
|
99272
|
+
const getBufferedData = async (e3, t3) => {
|
99349
99273
|
if (!e3) {
|
99350
99274
|
return;
|
99351
99275
|
}
|
99352
99276
|
e3.destroy();
|
99353
99277
|
try {
|
99354
|
-
return
|
99278
|
+
return await t3;
|
99355
99279
|
} catch (e4) {
|
99356
99280
|
return e4.bufferedData;
|
99357
99281
|
}
|
99358
|
-
}
|
99282
|
+
};
|
99359
99283
|
const getStreamPromise = (e3, { encoding: t3, buffer: n3, maxBuffer: r2 }) => {
|
99360
99284
|
if (!e3 || !n3) {
|
99361
99285
|
return;
|
@@ -99365,16 +99289,16 @@ ${o.message}` : x;
|
|
99365
99289
|
}
|
99366
99290
|
return o.buffer(e3, { maxBuffer: r2 });
|
99367
99291
|
};
|
99368
|
-
const getSpawnedResult =
|
99292
|
+
const getSpawnedResult = async ({ stdout: e3, stderr: t3, all: n3 }, { encoding: r2, buffer: o2, maxBuffer: s2 }, i) => {
|
99369
99293
|
const a = getStreamPromise(e3, { encoding: r2, buffer: o2, maxBuffer: s2 });
|
99370
99294
|
const c = getStreamPromise(t3, { encoding: r2, buffer: o2, maxBuffer: s2 });
|
99371
99295
|
const d = getStreamPromise(n3, { encoding: r2, buffer: o2, maxBuffer: s2 * 2 });
|
99372
99296
|
try {
|
99373
|
-
return
|
99297
|
+
return await Promise.all([i, a, c, d]);
|
99374
99298
|
} catch (r3) {
|
99375
99299
|
return Promise.all([{ error: r3, signal: r3.signal, timedOut: r3.timedOut }, getBufferedData(e3, a), getBufferedData(t3, c), getBufferedData(n3, d)]);
|
99376
99300
|
}
|
99377
|
-
}
|
99301
|
+
};
|
99378
99302
|
const validateInputSync = ({ input: e3 }) => {
|
99379
99303
|
if (r(e3)) {
|
99380
99304
|
throw new TypeError("The `input` option cannot be a stream in sync mode");
|
@@ -99385,7 +99309,7 @@ ${o.message}` : x;
|
|
99385
99309
|
"use strict";
|
99386
99310
|
const { PassThrough: r } = n2(781);
|
99387
99311
|
e2.exports = (e3) => {
|
99388
|
-
e3 =
|
99312
|
+
e3 = { ...e3 };
|
99389
99313
|
const { array: t3 } = e3;
|
99390
99314
|
let { encoding: n3 } = e3;
|
99391
99315
|
const o = n3 === "buffer";
|
@@ -99434,41 +99358,39 @@ ${o.message}` : x;
|
|
99434
99358
|
this.name = "MaxBufferError";
|
99435
99359
|
}
|
99436
99360
|
}
|
99437
|
-
function getStream(e3, t3) {
|
99438
|
-
|
99439
|
-
|
99440
|
-
|
99441
|
-
|
99442
|
-
|
99443
|
-
|
99444
|
-
|
99445
|
-
|
99446
|
-
|
99447
|
-
|
99448
|
-
|
99449
|
-
|
99450
|
-
|
99451
|
-
|
99452
|
-
|
99453
|
-
|
99454
|
-
|
99455
|
-
|
99456
|
-
|
99457
|
-
|
99458
|
-
|
99459
|
-
|
99460
|
-
o2.
|
99461
|
-
|
99462
|
-
|
99463
|
-
}
|
99464
|
-
});
|
99361
|
+
async function getStream(e3, t3) {
|
99362
|
+
if (!e3) {
|
99363
|
+
throw new Error("Expected a stream");
|
99364
|
+
}
|
99365
|
+
t3 = { maxBuffer: Infinity, ...t3 };
|
99366
|
+
const { maxBuffer: n3 } = t3;
|
99367
|
+
const o2 = i(t3);
|
99368
|
+
await new Promise((t4, s2) => {
|
99369
|
+
const rejectPromise = (e4) => {
|
99370
|
+
if (e4 && o2.getBufferedLength() <= r.MAX_LENGTH) {
|
99371
|
+
e4.bufferedData = o2.getBufferedValue();
|
99372
|
+
}
|
99373
|
+
s2(e4);
|
99374
|
+
};
|
99375
|
+
(async () => {
|
99376
|
+
try {
|
99377
|
+
await a(e3, o2);
|
99378
|
+
t4();
|
99379
|
+
} catch (e4) {
|
99380
|
+
rejectPromise(e4);
|
99381
|
+
}
|
99382
|
+
})();
|
99383
|
+
o2.on("data", () => {
|
99384
|
+
if (o2.getBufferedLength() > n3) {
|
99385
|
+
rejectPromise(new MaxBufferError());
|
99386
|
+
}
|
99465
99387
|
});
|
99466
|
-
return o2.getBufferedValue();
|
99467
99388
|
});
|
99389
|
+
return o2.getBufferedValue();
|
99468
99390
|
}
|
99469
99391
|
e2.exports = getStream;
|
99470
|
-
e2.exports.buffer = (e3, t3) => getStream(e3,
|
99471
|
-
e2.exports.array = (e3, t3) => getStream(e3,
|
99392
|
+
e2.exports.buffer = (e3, t3) => getStream(e3, { ...t3, encoding: "buffer" });
|
99393
|
+
e2.exports.array = (e3, t3) => getStream(e3, { ...t3, array: true });
|
99472
99394
|
e2.exports.MaxBufferError = MaxBufferError;
|
99473
99395
|
}, 221: (e2, t2) => {
|
99474
99396
|
"use strict";
|
@@ -99488,7 +99410,7 @@ ${o.message}` : x;
|
|
99488
99410
|
return e3.reduce(getSignalByName, {});
|
99489
99411
|
};
|
99490
99412
|
const getSignalByName = function(e3, { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 }) {
|
99491
|
-
return
|
99413
|
+
return { ...e3, [t3]: { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 } };
|
99492
99414
|
};
|
99493
99415
|
const i = getSignalsByName();
|
99494
99416
|
t2.signalsByName = i;
|
@@ -99720,7 +99642,7 @@ ${o.message}` : x;
|
|
99720
99642
|
const r = n2(17);
|
99721
99643
|
const o = n2(460);
|
99722
99644
|
const npmRunPath = (e3) => {
|
99723
|
-
e3 =
|
99645
|
+
e3 = { cwd: process.cwd(), path: process.env[o()], execPath: process.execPath, ...e3 };
|
99724
99646
|
let t3;
|
99725
99647
|
let n3 = r.resolve(e3.cwd);
|
99726
99648
|
const s = [];
|
@@ -99736,8 +99658,8 @@ ${o.message}` : x;
|
|
99736
99658
|
e2.exports = npmRunPath;
|
99737
99659
|
e2.exports["default"] = npmRunPath;
|
99738
99660
|
e2.exports.env = (t3) => {
|
99739
|
-
t3 =
|
99740
|
-
const n3 =
|
99661
|
+
t3 = { env: process.env, ...t3 };
|
99662
|
+
const n3 = { ...t3.env };
|
99741
99663
|
const r2 = o({ env: n3 });
|
99742
99664
|
t3.path = n3[r2];
|
99743
99665
|
n3[r2] = e2.exports(t3);
|
@@ -101146,7 +101068,7 @@ var require_upath2 = __commonJS({
|
|
101146
101068
|
_.VERSION = typeof n !== "undefined" && n !== null ? n : "NO-VERSION";
|
101147
101069
|
p = function(e3) {
|
101148
101070
|
e3 = e3.replace(/\\/g, "/");
|
101149
|
-
e3 = e3.replace(
|
101071
|
+
e3 = e3.replace(/(?<!^)\/+/g, "/");
|
101150
101072
|
return e3;
|
101151
101073
|
};
|
101152
101074
|
for (c in o) {
|
@@ -101442,9 +101364,7 @@ var require_pkg_up2 = __commonJS({
|
|
101442
101364
|
};
|
101443
101365
|
}, 800: (e2, r2, n2) => {
|
101444
101366
|
const t = n2(485);
|
101445
|
-
e2.exports =
|
101446
|
-
return t("package.json", { cwd: e3 });
|
101447
|
-
});
|
101367
|
+
e2.exports = async ({ cwd: e3 } = {}) => t("package.json", { cwd: e3 });
|
101448
101368
|
e2.exports.sync = ({ cwd: e3 } = {}) => t.sync("package.json", { cwd: e3 });
|
101449
101369
|
}, 147: (e2) => {
|
101450
101370
|
e2.exports = require("fs");
|
@@ -104495,7 +104415,7 @@ var require_fast_glob2 = __commonJS({
|
|
104495
104415
|
}
|
104496
104416
|
if (t4.nodes && t4.ranges > 0) {
|
104497
104417
|
let r4 = s.reduce(t4.nodes);
|
104498
|
-
let i2 = n(...r4,
|
104418
|
+
let i2 = n(...r4, { ...e3, wrap: false, toRegex: true });
|
104499
104419
|
if (i2.length !== 0) {
|
104500
104420
|
return r4.length > 1 && i2.length > 1 ? `(${i2})` : i2;
|
104501
104421
|
}
|
@@ -104921,13 +104841,11 @@ var require_fast_glob2 = __commonJS({
|
|
104921
104841
|
const a = r2(1066);
|
104922
104842
|
const u = r2(7190);
|
104923
104843
|
const c = r2(3828);
|
104924
|
-
function FastGlob(t3, e3) {
|
104925
|
-
|
104926
|
-
|
104927
|
-
|
104928
|
-
|
104929
|
-
return c.array.flatten(n2);
|
104930
|
-
});
|
104844
|
+
async function FastGlob(t3, e3) {
|
104845
|
+
assertPatternsInput(t3);
|
104846
|
+
const r3 = getWorks(t3, i.default, e3);
|
104847
|
+
const n2 = await Promise.all(r3);
|
104848
|
+
return c.array.flatten(n2);
|
104931
104849
|
}
|
104932
104850
|
(function(t3) {
|
104933
104851
|
function sync(t4, e3) {
|
@@ -106098,7 +106016,7 @@ var require_fast_glob2 = __commonJS({
|
|
106098
106016
|
};
|
106099
106017
|
const toRange = (t3, e3, r3, n2) => {
|
106100
106018
|
if (r3) {
|
106101
|
-
return s(t3, e3,
|
106019
|
+
return s(t3, e3, { wrap: false, ...n2 });
|
106102
106020
|
}
|
106103
106021
|
let i = String.fromCharCode(t3);
|
106104
106022
|
if (t3 === e3)
|
@@ -106164,7 +106082,7 @@ var require_fast_glob2 = __commonJS({
|
|
106164
106082
|
g++;
|
106165
106083
|
}
|
106166
106084
|
if (n2.toRegex === true) {
|
106167
|
-
return r3 > 1 ? toSequence(d, n2) : toRegex(_, null,
|
106085
|
+
return r3 > 1 ? toSequence(d, n2) : toRegex(_, null, { wrap: false, ...n2 });
|
106168
106086
|
}
|
106169
106087
|
return _;
|
106170
106088
|
};
|
@@ -106206,7 +106124,7 @@ var require_fast_glob2 = __commonJS({
|
|
106206
106124
|
if (isObject4(r3)) {
|
106207
106125
|
return fill(t3, e3, 0, r3);
|
106208
106126
|
}
|
106209
|
-
let s2 =
|
106127
|
+
let s2 = { ...n2 };
|
106210
106128
|
if (s2.capture === true)
|
106211
106129
|
s2.wrap = true;
|
106212
106130
|
r3 = r3 || s2.step || 1;
|
@@ -106530,7 +106448,7 @@ var require_fast_glob2 = __commonJS({
|
|
106530
106448
|
}
|
106531
106449
|
};
|
106532
106450
|
for (let o3 = 0; o3 < e3.length; o3++) {
|
106533
|
-
let u2 = i(String(e3[o3]),
|
106451
|
+
let u2 = i(String(e3[o3]), { ...r3, onResult }, true);
|
106534
106452
|
let c2 = u2.state.negated || u2.state.negatedExtglob;
|
106535
106453
|
if (c2)
|
106536
106454
|
a++;
|
@@ -106572,7 +106490,7 @@ var require_fast_glob2 = __commonJS({
|
|
106572
106490
|
r3.onResult(t4);
|
106573
106491
|
s2.push(t4.output);
|
106574
106492
|
};
|
106575
|
-
let i2 = new Set(micromatch(t3, e3,
|
106493
|
+
let i2 = new Set(micromatch(t3, e3, { ...r3, onResult }));
|
106576
106494
|
for (let t4 of s2) {
|
106577
106495
|
if (!i2.has(t4)) {
|
106578
106496
|
n2.add(t4);
|
@@ -106595,7 +106513,7 @@ var require_fast_glob2 = __commonJS({
|
|
106595
106513
|
return true;
|
106596
106514
|
}
|
106597
106515
|
}
|
106598
|
-
return micromatch.isMatch(t3, e3,
|
106516
|
+
return micromatch.isMatch(t3, e3, { ...r3, contains: true });
|
106599
106517
|
};
|
106600
106518
|
micromatch.matchKeys = (t3, e3, r3) => {
|
106601
106519
|
if (!o.isObject(t3)) {
|
@@ -106635,7 +106553,7 @@ var require_fast_glob2 = __commonJS({
|
|
106635
106553
|
};
|
106636
106554
|
micromatch.capture = (t3, e3, r3) => {
|
106637
106555
|
let n2 = o.isWindows(r3);
|
106638
|
-
let s2 = i.makeRe(String(t3),
|
106556
|
+
let s2 = i.makeRe(String(t3), { ...r3, capture: true });
|
106639
106557
|
let a = s2.exec(n2 ? o.toPosixSlashes(e3) : e3);
|
106640
106558
|
if (a) {
|
106641
106559
|
return a.slice(1).map((t4) => t4 === void 0 ? "" : t4);
|
@@ -106663,7 +106581,7 @@ var require_fast_glob2 = __commonJS({
|
|
106663
106581
|
micromatch.braceExpand = (t3, e3) => {
|
106664
106582
|
if (typeof t3 !== "string")
|
106665
106583
|
throw new TypeError("Expected a string");
|
106666
|
-
return micromatch.braces(t3,
|
106584
|
+
return micromatch.braces(t3, { ...e3, expand: true });
|
106667
106585
|
};
|
106668
106586
|
t2.exports = micromatch;
|
106669
106587
|
}, 376: (t2, e2, r2) => {
|
@@ -106690,7 +106608,7 @@ var require_fast_glob2 = __commonJS({
|
|
106690
106608
|
const m = `[^.${c}]`;
|
106691
106609
|
const v = `${f}*?`;
|
106692
106610
|
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 };
|
106693
|
-
const A =
|
106611
|
+
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}]|$)` };
|
106694
106612
|
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" };
|
106695
106613
|
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) {
|
106696
106614
|
return { "!": { type: "negate", open: "(?:(?!(?:", close: `))${t3.STAR})` }, "?": { type: "qmark", open: "(?:", close: ")?" }, "+": { type: "plus", open: "(?:", close: ")+" }, "*": { type: "star", open: "(?:", close: ")*" }, "@": { type: "at", open: "(?:", close: ")" } };
|
@@ -106721,7 +106639,7 @@ var require_fast_glob2 = __commonJS({
|
|
106721
106639
|
throw new TypeError("Expected a string");
|
106722
106640
|
}
|
106723
106641
|
t3 = c[t3] || t3;
|
106724
|
-
const r3 =
|
106642
|
+
const r3 = { ...e3 };
|
106725
106643
|
const l = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
|
106726
106644
|
let f = t3.length;
|
106727
106645
|
if (f > l) {
|
@@ -106813,7 +106731,7 @@ var require_fast_glob2 = __commonJS({
|
|
106813
106731
|
M = t4;
|
106814
106732
|
};
|
106815
106733
|
const extglobOpen = (t4, e4) => {
|
106816
|
-
const n2 =
|
106734
|
+
const n2 = { ...y[e4], conditions: 1, inner: "" };
|
106817
106735
|
n2.prev = M;
|
106818
106736
|
n2.parens = H.parens;
|
106819
106737
|
n2.output = H.output;
|
@@ -106835,7 +106753,7 @@ var require_fast_glob2 = __commonJS({
|
|
106835
106753
|
n2 = t4.close = `)$))${i2}`;
|
106836
106754
|
}
|
106837
106755
|
if (t4.inner.includes("*") && (s2 = remaining()) && /^\.[^\\/.]+$/.test(s2)) {
|
106838
|
-
const r4 = parse3(s2,
|
106756
|
+
const r4 = parse3(s2, { ...e3, fastpaths: false }).output;
|
106839
106757
|
n2 = t4.close = `)${r4})${i2})`;
|
106840
106758
|
}
|
106841
106759
|
if (t4.prev.type === "bos") {
|
@@ -107357,7 +107275,7 @@ var require_fast_glob2 = __commonJS({
|
|
107357
107275
|
return H;
|
107358
107276
|
};
|
107359
107277
|
parse3.fastpaths = (t3, e3) => {
|
107360
|
-
const r3 =
|
107278
|
+
const r3 = { ...e3 };
|
107361
107279
|
const o2 = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
|
107362
107280
|
const a2 = t3.length;
|
107363
107281
|
if (a2 > o2) {
|
@@ -107448,7 +107366,7 @@ var require_fast_glob2 = __commonJS({
|
|
107448
107366
|
delete a2.state;
|
107449
107367
|
let isIgnored = () => false;
|
107450
107368
|
if (s2.ignore) {
|
107451
|
-
const t4 =
|
107369
|
+
const t4 = { ...e3, ignore: null, onMatch: null, onResult: null };
|
107452
107370
|
isIgnored = picomatch(s2.ignore, t4, r3);
|
107453
107371
|
}
|
107454
107372
|
const matcher = (r4, n3 = false) => {
|
@@ -107510,7 +107428,7 @@ var require_fast_glob2 = __commonJS({
|
|
107510
107428
|
picomatch.parse = (t3, e3) => {
|
107511
107429
|
if (Array.isArray(t3))
|
107512
107430
|
return t3.map((t4) => picomatch.parse(t4, e3));
|
107513
|
-
return i(t3,
|
107431
|
+
return i(t3, { ...e3, fastpaths: false });
|
107514
107432
|
};
|
107515
107433
|
picomatch.scan = (t3, e3) => s(t3, e3);
|
107516
107434
|
picomatch.compileRe = (t3, e3, r3 = false, n2 = false) => {
|
@@ -107975,7 +107893,7 @@ var require_fast_glob2 = __commonJS({
|
|
107975
107893
|
if (n(e3) === false) {
|
107976
107894
|
throw new TypeError("toRegexRange: expected the second argument to be a number.");
|
107977
107895
|
}
|
107978
|
-
let s =
|
107896
|
+
let s = { relaxZeros: true, ...r3 };
|
107979
107897
|
if (typeof s.strictZeros === "boolean") {
|
107980
107898
|
s.relaxZeros = s.strictZeros === false;
|
107981
107899
|
}
|
@@ -108253,19 +108171,19 @@ var require_globby2 = __commonJS({
|
|
108253
108171
|
}
|
108254
108172
|
return [n.posix.join(t3, "**")];
|
108255
108173
|
};
|
108256
|
-
t2.exports = (t3, e3) =>
|
108257
|
-
e3 =
|
108174
|
+
t2.exports = async (t3, e3) => {
|
108175
|
+
e3 = { cwd: process.cwd(), ...e3 };
|
108258
108176
|
if (typeof e3.cwd !== "string") {
|
108259
108177
|
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
|
108260
108178
|
}
|
108261
|
-
const r3 =
|
108262
|
-
const r4 =
|
108179
|
+
const r3 = await Promise.all([].concat(t3).map(async (t4) => {
|
108180
|
+
const r4 = await s.isDirectory(getPath(t4, e3.cwd));
|
108263
108181
|
return r4 ? getGlob(t4, e3) : t4;
|
108264
|
-
}))
|
108182
|
+
}));
|
108265
108183
|
return [].concat.apply([], r3);
|
108266
|
-
}
|
108184
|
+
};
|
108267
108185
|
t2.exports.sync = (t3, e3) => {
|
108268
|
-
e3 =
|
108186
|
+
e3 = { cwd: process.cwd(), ...e3 };
|
108269
108187
|
if (typeof e3.cwd !== "string") {
|
108270
108188
|
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
|
108271
108189
|
}
|
@@ -108310,24 +108228,24 @@ var require_globby2 = __commonJS({
|
|
108310
108228
|
return o.join(t3, e3);
|
108311
108229
|
};
|
108312
108230
|
const getIsIgnoredPredecate = (t3, e3) => (r3) => t3.ignores(a(o.relative(e3, ensureAbsolutePathForCwd(e3, r3.path || r3))));
|
108313
|
-
const getFile = (t3, e3) =>
|
108231
|
+
const getFile = async (t3, e3) => {
|
108314
108232
|
const r3 = o.join(e3, t3);
|
108315
|
-
const n2 =
|
108233
|
+
const n2 = await u(r3, "utf8");
|
108316
108234
|
return { cwd: e3, filePath: r3, content: n2 };
|
108317
|
-
}
|
108235
|
+
};
|
108318
108236
|
const getFileSync = (t3, e3) => {
|
108319
108237
|
const r3 = o.join(e3, t3);
|
108320
108238
|
const n2 = s.readFileSync(r3, "utf8");
|
108321
108239
|
return { cwd: e3, filePath: r3, content: n2 };
|
108322
108240
|
};
|
108323
108241
|
const normalizeOptions = ({ ignore: t3 = [], cwd: e3 = a(process.cwd()) } = {}) => ({ ignore: t3, cwd: e3 });
|
108324
|
-
t2.exports = (t3) =>
|
108242
|
+
t2.exports = async (t3) => {
|
108325
108243
|
t3 = normalizeOptions(t3);
|
108326
|
-
const e3 =
|
108327
|
-
const r3 =
|
108244
|
+
const e3 = await i("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
|
108245
|
+
const r3 = await Promise.all(e3.map((e4) => getFile(e4, t3.cwd)));
|
108328
108246
|
const n2 = reduceIgnore(r3);
|
108329
108247
|
return getIsIgnoredPredecate(n2, t3.cwd);
|
108330
|
-
}
|
108248
|
+
};
|
108331
108249
|
t2.exports.sync = (t3) => {
|
108332
108250
|
t3 = normalizeOptions(t3);
|
108333
108251
|
const e3 = i.sync("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
|
@@ -108358,7 +108276,7 @@ var require_globby2 = __commonJS({
|
|
108358
108276
|
let e3;
|
108359
108277
|
try {
|
108360
108278
|
e3 = n.statSync(t3.cwd);
|
108361
|
-
} catch
|
108279
|
+
} catch {
|
108362
108280
|
return;
|
108363
108281
|
}
|
108364
108282
|
if (!e3.isDirectory()) {
|
@@ -108371,13 +108289,13 @@ var require_globby2 = __commonJS({
|
|
108371
108289
|
assertPatternsInput(t3);
|
108372
108290
|
checkCwdOption(e3);
|
108373
108291
|
const r3 = [];
|
108374
|
-
e3 =
|
108292
|
+
e3 = { ignore: [], expandDirectories: true, ...e3 };
|
108375
108293
|
for (const [n2, s2] of t3.entries()) {
|
108376
108294
|
if (isNegative(s2)) {
|
108377
108295
|
continue;
|
108378
108296
|
}
|
108379
108297
|
const o2 = t3.slice(n2).filter((t4) => isNegative(t4)).map((t4) => t4.slice(1));
|
108380
|
-
const i2 =
|
108298
|
+
const i2 = { ...e3, ignore: e3.ignore.concat(o2) };
|
108381
108299
|
r3.push({ pattern: s2, options: i2 });
|
108382
108300
|
}
|
108383
108301
|
return r3;
|
@@ -108388,9 +108306,9 @@ var require_globby2 = __commonJS({
|
|
108388
108306
|
r3.cwd = t3.options.cwd;
|
108389
108307
|
}
|
108390
108308
|
if (Array.isArray(t3.options.expandDirectories)) {
|
108391
|
-
r3 =
|
108309
|
+
r3 = { ...r3, files: t3.options.expandDirectories };
|
108392
108310
|
} else if (typeof t3.options.expandDirectories === "object") {
|
108393
|
-
r3 =
|
108311
|
+
r3 = { ...r3, ...t3.options.expandDirectories };
|
108394
108312
|
}
|
108395
108313
|
return e3(t3.pattern, r3);
|
108396
108314
|
};
|
@@ -108403,22 +108321,20 @@ var require_globby2 = __commonJS({
|
|
108403
108321
|
}
|
108404
108322
|
return { pattern: e3, options: r3 };
|
108405
108323
|
};
|
108406
|
-
t2.exports = (t3, e3) =>
|
108324
|
+
t2.exports = async (t3, e3) => {
|
108407
108325
|
const r3 = generateGlobTasks(t3, e3);
|
108408
|
-
const getFilter = () =>
|
108409
|
-
|
108410
|
-
|
108411
|
-
|
108412
|
-
const t4 = yield Promise.all(r3.map((t5) => __async(exports, null, function* () {
|
108413
|
-
const e4 = yield getPattern(t5, c);
|
108326
|
+
const getFilter = async () => e3 && e3.gitignore ? a({ cwd: e3.cwd, ignore: e3.ignore }) : DEFAULT_FILTER;
|
108327
|
+
const getTasks = async () => {
|
108328
|
+
const t4 = await Promise.all(r3.map(async (t5) => {
|
108329
|
+
const e4 = await getPattern(t5, c);
|
108414
108330
|
return Promise.all(e4.map(globToTask(t5)));
|
108415
|
-
}))
|
108331
|
+
}));
|
108416
108332
|
return s(...t4);
|
108417
|
-
}
|
108418
|
-
const [n2, o2] =
|
108419
|
-
const p2 =
|
108333
|
+
};
|
108334
|
+
const [n2, o2] = await Promise.all([getFilter(), getTasks()]);
|
108335
|
+
const p2 = await Promise.all(o2.map((t4) => i(t4.pattern, t4.options)));
|
108420
108336
|
return s(...p2).filter((t4) => !n2(getPathString(t4)));
|
108421
|
-
}
|
108337
|
+
};
|
108422
108338
|
t2.exports.sync = (t3, e3) => {
|
108423
108339
|
const r3 = generateGlobTasks(t3, e3);
|
108424
108340
|
const n2 = [];
|
@@ -108772,21 +108688,19 @@ var require_globby2 = __commonJS({
|
|
108772
108688
|
"use strict";
|
108773
108689
|
const { promisify: n } = r2(837);
|
108774
108690
|
const s = r2(147);
|
108775
|
-
function isType4(t3, e3, r3) {
|
108776
|
-
|
108777
|
-
|
108778
|
-
|
108779
|
-
|
108780
|
-
|
108781
|
-
|
108782
|
-
|
108783
|
-
|
108784
|
-
|
108785
|
-
return false;
|
108786
|
-
}
|
108787
|
-
throw t4;
|
108691
|
+
async function isType4(t3, e3, r3) {
|
108692
|
+
if (typeof r3 !== "string") {
|
108693
|
+
throw new TypeError(`Expected a string, got ${typeof r3}`);
|
108694
|
+
}
|
108695
|
+
try {
|
108696
|
+
const o = await n(s[t3])(r3);
|
108697
|
+
return o[e3]();
|
108698
|
+
} catch (t4) {
|
108699
|
+
if (t4.code === "ENOENT") {
|
108700
|
+
return false;
|
108788
108701
|
}
|
108789
|
-
|
108702
|
+
throw t4;
|
108703
|
+
}
|
108790
108704
|
}
|
108791
108705
|
function isTypeSync(t3, e3, r3) {
|
108792
108706
|
if (typeof r3 !== "string") {
|
@@ -111161,15 +111075,15 @@ var require_gzip_size2 = __commonJS({
|
|
111161
111075
|
const i = t2(796);
|
111162
111076
|
const { promisify: a } = t2(837);
|
111163
111077
|
const s = t2(325);
|
111164
|
-
const getOptions = (e3) =>
|
111078
|
+
const getOptions = (e3) => ({ level: 9, ...e3 });
|
111165
111079
|
const p = a(i.gzip);
|
111166
|
-
e2.exports = (e3, r3) =>
|
111080
|
+
e2.exports = async (e3, r3) => {
|
111167
111081
|
if (!e3) {
|
111168
111082
|
return 0;
|
111169
111083
|
}
|
111170
|
-
const t3 =
|
111084
|
+
const t3 = await p(e3, getOptions(r3));
|
111171
111085
|
return t3.length;
|
111172
|
-
}
|
111086
|
+
};
|
111173
111087
|
e2.exports.sync = (e3, r3) => i.gzipSync(e3, getOptions(r3)).length;
|
111174
111088
|
e2.exports.stream = (e3) => {
|
111175
111089
|
const r3 = new o.PassThrough();
|
@@ -113939,12 +113853,10 @@ Expecting one of '${i3.join("', '")}'`);
|
|
113939
113853
|
this._parseCommand([], i3);
|
113940
113854
|
return this;
|
113941
113855
|
}
|
113942
|
-
parseAsync(t3, e3) {
|
113943
|
-
|
113944
|
-
|
113945
|
-
|
113946
|
-
return this;
|
113947
|
-
});
|
113856
|
+
async parseAsync(t3, e3) {
|
113857
|
+
const i3 = this._prepareUserArgs(t3, e3);
|
113858
|
+
await this._parseCommand([], i3);
|
113859
|
+
return this;
|
113948
113860
|
}
|
113949
113861
|
_executeSubCommand(t3, e3) {
|
113950
113862
|
e3 = e3.slice();
|
@@ -115751,11 +115663,11 @@ var require_fs = __commonJS({
|
|
115751
115663
|
}
|
115752
115664
|
return false;
|
115753
115665
|
};
|
115754
|
-
var emptyDir = (dir) =>
|
115755
|
-
if (
|
115756
|
-
|
115666
|
+
var emptyDir = async (dir) => {
|
115667
|
+
if (await _compiled.fs.pathExists(dir)) {
|
115668
|
+
await _compiled.fs.emptyDir(dir);
|
115757
115669
|
}
|
115758
|
-
}
|
115670
|
+
};
|
115759
115671
|
}
|
115760
115672
|
});
|
115761
115673
|
|
@@ -116167,19 +116079,19 @@ var require_project = __commonJS({
|
|
116167
116079
|
return false;
|
116168
116080
|
}
|
116169
116081
|
};
|
116170
|
-
var isApiOnly = (appDirectory, entryDir, apiDir) =>
|
116171
|
-
const existApi =
|
116172
|
-
const existSrc =
|
116082
|
+
var isApiOnly = async (appDirectory, entryDir, apiDir) => {
|
116083
|
+
const existApi = await _compiled.fs.pathExists(apiDir !== null && apiDir !== void 0 ? apiDir : _path.default.join(appDirectory, "api"));
|
116084
|
+
const existSrc = await _compiled.fs.pathExists(_path.default.join(appDirectory, entryDir !== null && entryDir !== void 0 ? entryDir : "src"));
|
116173
116085
|
const options = (0, _compiled.minimist)((0, _commands.getArgv)());
|
116174
116086
|
if (options["api-only"]) {
|
116175
116087
|
return true;
|
116176
116088
|
}
|
116177
116089
|
return existApi && !existSrc;
|
116178
|
-
}
|
116179
|
-
var isWebOnly = () =>
|
116090
|
+
};
|
116091
|
+
var isWebOnly = async () => {
|
116180
116092
|
const options = (0, _compiled.minimist)((0, _commands.getArgv)());
|
116181
116093
|
return Boolean(options["web-only"]);
|
116182
|
-
}
|
116094
|
+
};
|
116183
116095
|
var isBeyondReact17 = (cwd) => {
|
116184
116096
|
const pkgPath = _pkgup.default.sync({
|
116185
116097
|
cwd
|
@@ -116188,7 +116100,10 @@ var require_project = __commonJS({
|
|
116188
116100
|
return false;
|
116189
116101
|
}
|
116190
116102
|
const pkgInfo = JSON.parse(_compiled.fs.readFileSync(pkgPath, "utf8"));
|
116191
|
-
const deps =
|
116103
|
+
const deps = {
|
116104
|
+
...pkgInfo.devDependencies,
|
116105
|
+
...pkgInfo.dependencies
|
116106
|
+
};
|
116192
116107
|
if (typeof deps.react !== "string") {
|
116193
116108
|
return false;
|
116194
116109
|
}
|
@@ -116200,7 +116115,10 @@ var require_project = __commonJS({
|
|
116200
116115
|
return false;
|
116201
116116
|
}
|
116202
116117
|
const pkgInfo = JSON.parse(_compiled.fs.readFileSync(pkgPath, "utf8"));
|
116203
|
-
const deps =
|
116118
|
+
const deps = {
|
116119
|
+
...pkgInfo.devDependencies,
|
116120
|
+
...pkgInfo.dependencies
|
116121
|
+
};
|
116204
116122
|
if (typeof deps.react !== "string") {
|
116205
116123
|
return false;
|
116206
116124
|
}
|
@@ -116255,55 +116173,47 @@ var require_package4 = __commonJS({
|
|
116255
116173
|
}
|
116256
116174
|
});
|
116257
116175
|
var _compiled = require_compiled();
|
116258
|
-
function getPnpmVersion() {
|
116259
|
-
|
116260
|
-
|
116261
|
-
|
116262
|
-
|
116263
|
-
return stdout;
|
116264
|
-
});
|
116176
|
+
async function getPnpmVersion() {
|
116177
|
+
const { stdout } = await (0, _compiled.execa)("pnpm", [
|
116178
|
+
"--version"
|
116179
|
+
]);
|
116180
|
+
return stdout;
|
116265
116181
|
}
|
116266
|
-
function canUseNpm3() {
|
116267
|
-
|
116268
|
-
|
116269
|
-
|
116270
|
-
|
116271
|
-
|
116272
|
-
|
116273
|
-
|
116274
|
-
|
116275
|
-
|
116276
|
-
|
116277
|
-
}
|
116278
|
-
});
|
116182
|
+
async function canUseNpm3() {
|
116183
|
+
try {
|
116184
|
+
await (0, _compiled.execa)("npm", [
|
116185
|
+
"--version"
|
116186
|
+
], {
|
116187
|
+
env: process.env
|
116188
|
+
});
|
116189
|
+
return true;
|
116190
|
+
} catch (e) {
|
116191
|
+
return false;
|
116192
|
+
}
|
116279
116193
|
}
|
116280
|
-
function canUseYarn3() {
|
116281
|
-
|
116282
|
-
|
116283
|
-
|
116284
|
-
|
116285
|
-
|
116286
|
-
|
116287
|
-
|
116288
|
-
|
116289
|
-
|
116290
|
-
|
116291
|
-
}
|
116292
|
-
});
|
116194
|
+
async function canUseYarn3() {
|
116195
|
+
try {
|
116196
|
+
await (0, _compiled.execa)("yarn", [
|
116197
|
+
"--version"
|
116198
|
+
], {
|
116199
|
+
env: process.env
|
116200
|
+
});
|
116201
|
+
return true;
|
116202
|
+
} catch (e) {
|
116203
|
+
return false;
|
116204
|
+
}
|
116293
116205
|
}
|
116294
|
-
function canUsePnpm4() {
|
116295
|
-
|
116296
|
-
|
116297
|
-
|
116298
|
-
|
116299
|
-
|
116300
|
-
|
116301
|
-
|
116302
|
-
|
116303
|
-
|
116304
|
-
|
116305
|
-
}
|
116306
|
-
});
|
116206
|
+
async function canUsePnpm4() {
|
116207
|
+
try {
|
116208
|
+
await (0, _compiled.execa)("pnpm", [
|
116209
|
+
"--version"
|
116210
|
+
], {
|
116211
|
+
env: process.env
|
116212
|
+
});
|
116213
|
+
return true;
|
116214
|
+
} catch (e) {
|
116215
|
+
return false;
|
116216
|
+
}
|
116307
116217
|
}
|
116308
116218
|
}
|
116309
116219
|
});
|
@@ -116356,31 +116266,29 @@ var require_data = __commonJS({
|
|
116356
116266
|
var _is = require_is();
|
116357
116267
|
var _package = require_package4();
|
116358
116268
|
var MAX_TIMES = 5;
|
116359
|
-
function getPackageManager() {
|
116360
|
-
|
116361
|
-
|
116362
|
-
|
116363
|
-
|
116364
|
-
|
116365
|
-
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "pnpm-lock.yaml"))) {
|
116366
|
-
return "pnpm";
|
116367
|
-
}
|
116368
|
-
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "yarn.lock"))) {
|
116369
|
-
return "yarn";
|
116370
|
-
}
|
116371
|
-
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "package-lock.json"))) {
|
116372
|
-
return "npm";
|
116373
|
-
}
|
116374
|
-
appDirectory = _path.default.join(appDirectory, "..");
|
116375
|
-
}
|
116376
|
-
if (yield (0, _package.canUsePnpm)()) {
|
116269
|
+
async function getPackageManager(cwd = process.cwd()) {
|
116270
|
+
let appDirectory = cwd;
|
116271
|
+
let times = 0;
|
116272
|
+
while (_os.default.homedir() !== appDirectory && times < MAX_TIMES) {
|
116273
|
+
times++;
|
116274
|
+
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "pnpm-lock.yaml"))) {
|
116377
116275
|
return "pnpm";
|
116378
116276
|
}
|
116379
|
-
if (
|
116277
|
+
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "yarn.lock"))) {
|
116380
116278
|
return "yarn";
|
116381
116279
|
}
|
116382
|
-
|
116383
|
-
|
116280
|
+
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "package-lock.json"))) {
|
116281
|
+
return "npm";
|
116282
|
+
}
|
116283
|
+
appDirectory = _path.default.join(appDirectory, "..");
|
116284
|
+
}
|
116285
|
+
if (await (0, _package.canUsePnpm)()) {
|
116286
|
+
return "pnpm";
|
116287
|
+
}
|
116288
|
+
if (await (0, _package.canUseYarn)()) {
|
116289
|
+
return "yarn";
|
116290
|
+
}
|
116291
|
+
return "npm";
|
116384
116292
|
}
|
116385
116293
|
var getCoreJsVersion = (corejsPkgPath) => {
|
116386
116294
|
try {
|
@@ -116460,7 +116368,10 @@ var require_config3 = __commonJS({
|
|
116460
116368
|
if (optionsByEntry === void 0 && isMainEntry && packageName) {
|
116461
116369
|
optionsByEntry = getOptionsByEntryName(packageName, optionsByEntries);
|
116462
116370
|
}
|
116463
|
-
return optionsByEntry !== void 0 ? (0, _is.isPlainObject)(optionsByEntry) && (0, _is.isPlainObject)(baseOptions) ?
|
116371
|
+
return optionsByEntry !== void 0 ? (0, _is.isPlainObject)(optionsByEntry) && (0, _is.isPlainObject)(baseOptions) ? {
|
116372
|
+
...baseOptions,
|
116373
|
+
...optionsByEntry
|
116374
|
+
} : optionsByEntry : baseOptions;
|
116464
116375
|
} else {
|
116465
116376
|
return baseOptions;
|
116466
116377
|
}
|
@@ -116498,10 +116409,10 @@ var require_get2 = __commonJS({
|
|
116498
116409
|
var _fs = require_fs();
|
116499
116410
|
_export_star._(require_data(), exports);
|
116500
116411
|
_export_star._(require_config3(), exports);
|
116501
|
-
var getServerConfig = (appDirectory, configFile) =>
|
116412
|
+
var getServerConfig = async (appDirectory, configFile) => {
|
116502
116413
|
const configFilePath = (0, _fs.findExists)(_constants.CONFIG_FILE_EXTENSIONS.map((extension) => _path.default.resolve(appDirectory, `${configFile}${extension}`)));
|
116503
116414
|
return configFilePath;
|
116504
|
-
}
|
116415
|
+
};
|
116505
116416
|
var getTargetDir = (from, baseDir, targetBaseDir) => {
|
116506
116417
|
const relativePath = _path.default.relative(baseDir, from);
|
116507
116418
|
return _path.default.resolve(targetBaseDir, relativePath);
|
@@ -116626,8 +116537,14 @@ ${_chalk.default.grey(rest.join("\n"))}`;
|
|
116626
116537
|
}
|
116627
116538
|
constructor(options = {}) {
|
116628
116539
|
this.level = options.level || LOG_TYPES.log.level;
|
116629
|
-
this.config =
|
116630
|
-
|
116540
|
+
this.config = {
|
116541
|
+
...DEFAULT_CONFIG,
|
116542
|
+
...options.config || {}
|
116543
|
+
};
|
116544
|
+
this.types = {
|
116545
|
+
...LOG_TYPES,
|
116546
|
+
...options.types || {}
|
116547
|
+
};
|
116631
116548
|
this.longestLabel = this.getLongestLabel();
|
116632
116549
|
Object.keys(this.types).forEach((type) => {
|
116633
116550
|
this[type] = this._log.bind(this, type);
|
@@ -116745,7 +116662,10 @@ var require_alias = __commonJS({
|
|
116745
116662
|
const baseUrl = (_tsconfig = tsconfig) === null || _tsconfig === void 0 ? void 0 : (_tsconfig_compilerOptions = _tsconfig.compilerOptions) === null || _tsconfig_compilerOptions === void 0 ? void 0 : _tsconfig_compilerOptions.baseUrl;
|
116746
116663
|
return {
|
116747
116664
|
absoluteBaseUrl: baseUrl ? _path.default.join(option.appDirectory, baseUrl) : option.appDirectory,
|
116748
|
-
paths:
|
116665
|
+
paths: {
|
116666
|
+
...alias,
|
116667
|
+
...(_tsconfig1 = tsconfig) === null || _tsconfig1 === void 0 ? void 0 : (_tsconfig_compilerOptions1 = _tsconfig1.compilerOptions) === null || _tsconfig_compilerOptions1 === void 0 ? void 0 : _tsconfig_compilerOptions1.paths
|
116668
|
+
},
|
116749
116669
|
isTsPath: true,
|
116750
116670
|
isTsProject
|
116751
116671
|
};
|
@@ -116831,7 +116751,7 @@ var require_path = __commonJS({
|
|
116831
116751
|
try {
|
116832
116752
|
ret = _os.default.tmpdir();
|
116833
116753
|
ret = _fs.default.realpathSync(ret);
|
116834
|
-
} catch
|
116754
|
+
} catch {
|
116835
116755
|
}
|
116836
116756
|
return ret;
|
116837
116757
|
}
|
@@ -116932,7 +116852,10 @@ var require_babel = __commonJS({
|
|
116932
116852
|
presets.forEach((preset, index) => {
|
116933
116853
|
if (Array.isArray(preset)) {
|
116934
116854
|
if (typeof preset[0] === "string" && (0, _path1.normalizeToPosixPath)(preset[0]).includes(presetName)) {
|
116935
|
-
preset[1] =
|
116855
|
+
preset[1] = {
|
116856
|
+
...preset[1] || {},
|
116857
|
+
...options
|
116858
|
+
};
|
116936
116859
|
}
|
116937
116860
|
} else if (typeof preset === "string" && (0, _path1.normalizeToPosixPath)(preset).includes(presetName)) {
|
116938
116861
|
presets[index] = [
|
@@ -116961,7 +116884,10 @@ var require_babel = __commonJS({
|
|
116961
116884
|
};
|
116962
116885
|
var applyUserBabelConfig = (defaultOptions, userBabelConfig, extraBabelUtils) => {
|
116963
116886
|
if (userBabelConfig) {
|
116964
|
-
const babelUtils =
|
116887
|
+
const babelUtils = {
|
116888
|
+
...getBabelUtils(defaultOptions),
|
116889
|
+
...extraBabelUtils
|
116890
|
+
};
|
116965
116891
|
return (0, _applyOptionsChain.applyOptionsChain)(defaultOptions, userBabelConfig || {}, babelUtils);
|
116966
116892
|
}
|
116967
116893
|
return defaultOptions;
|
@@ -117034,7 +116960,10 @@ var require_monorepo = __commonJS({
|
|
117034
116960
|
return false;
|
117035
116961
|
}
|
117036
116962
|
const json = JSON.parse(_fs.default.readFileSync(pkgJsonPath, "utf8"));
|
117037
|
-
const deps =
|
116963
|
+
const deps = {
|
116964
|
+
...json.dependencies || {},
|
116965
|
+
...json.devDependencies || {}
|
116966
|
+
};
|
117038
116967
|
return Boolean(deps["@modern-js/monorepo-tools"]);
|
117039
116968
|
};
|
117040
116969
|
var findMonorepoRoot = (appDirectory, maxDepth = PACKAGE_MAX_DEPTH) => {
|
@@ -117094,7 +117023,7 @@ var require_port = __commonJS({
|
|
117094
117023
|
var _net = /* @__PURE__ */ _interop_require_default._(require("net"));
|
117095
117024
|
var _compiled = require_compiled();
|
117096
117025
|
var _logger = require_logger2();
|
117097
|
-
var getPort =
|
117026
|
+
var getPort = async (port, { tryLimits = 20, strictPort = false } = {}) => {
|
117098
117027
|
if (typeof port === "string") {
|
117099
117028
|
port = parseInt(port, 10);
|
117100
117029
|
}
|
@@ -117106,7 +117035,7 @@ var require_port = __commonJS({
|
|
117106
117035
|
let attempts = 0;
|
117107
117036
|
while (!found && attempts <= tryLimits) {
|
117108
117037
|
try {
|
117109
|
-
|
117038
|
+
await new Promise((resolve, reject) => {
|
117110
117039
|
const server = _net.default.createServer();
|
117111
117040
|
server.unref();
|
117112
117041
|
server.on("error", reject);
|
@@ -117134,7 +117063,7 @@ var require_port = __commonJS({
|
|
117134
117063
|
}
|
117135
117064
|
}
|
117136
117065
|
return port;
|
117137
|
-
}
|
117066
|
+
};
|
117138
117067
|
}
|
117139
117068
|
});
|
117140
117069
|
|
@@ -117285,13 +117214,14 @@ var require_require = __commonJS({
|
|
117285
117214
|
};
|
117286
117215
|
var dynamicImport = new Function("modulePath", "return import(modulePath)");
|
117287
117216
|
var requireExistModule = (filename, opt) => {
|
117288
|
-
const final =
|
117217
|
+
const final = {
|
117289
117218
|
extensions: [
|
117290
117219
|
".ts",
|
117291
117220
|
".js"
|
117292
117221
|
],
|
117293
|
-
interop: true
|
117294
|
-
|
117222
|
+
interop: true,
|
117223
|
+
...opt
|
117224
|
+
};
|
117295
117225
|
const exist = (0, _fs.findExists)(final.extensions.map((ext) => `${filename}${ext}`));
|
117296
117226
|
if (!exist) {
|
117297
117227
|
return null;
|
@@ -117371,7 +117301,7 @@ var require_runtimeExports = __commonJS({
|
|
117371
117301
|
_compiled.fs.appendFileSync(entryExportFile, `${statement}
|
117372
117302
|
`);
|
117373
117303
|
}
|
117374
|
-
} catch
|
117304
|
+
} catch {
|
117375
117305
|
}
|
117376
117306
|
};
|
117377
117307
|
const getPath = () => entryExportFile;
|
@@ -117419,29 +117349,29 @@ var require_watch = __commonJS({
|
|
117419
117349
|
ignored
|
117420
117350
|
});
|
117421
117351
|
watcher.on("ready", () => ready = true);
|
117422
|
-
watcher.on("change", (filePath) =>
|
117352
|
+
watcher.on("change", async (filePath) => {
|
117423
117353
|
const changedFilePath = _path.default.resolve(filePath);
|
117424
|
-
|
117354
|
+
await runTask({
|
117425
117355
|
changedFilePath,
|
117426
117356
|
changeType: WatchChangeType.CHANGE
|
117427
117357
|
});
|
117428
|
-
})
|
117429
|
-
watcher.on("add", (filePath) =>
|
117358
|
+
});
|
117359
|
+
watcher.on("add", async (filePath) => {
|
117430
117360
|
const changedFilePath = _path.default.resolve(filePath);
|
117431
117361
|
if (ready) {
|
117432
|
-
|
117362
|
+
await runTask({
|
117433
117363
|
changedFilePath,
|
117434
117364
|
changeType: WatchChangeType.ADD
|
117435
117365
|
});
|
117436
117366
|
}
|
117437
|
-
})
|
117438
|
-
watcher.on("unlink", (filePath) =>
|
117367
|
+
});
|
117368
|
+
watcher.on("unlink", async (filePath) => {
|
117439
117369
|
const changedFilePath = _path.default.resolve(filePath);
|
117440
|
-
|
117370
|
+
await runTask({
|
117441
117371
|
changedFilePath,
|
117442
117372
|
changeType: WatchChangeType.UNLINK
|
117443
117373
|
});
|
117444
|
-
})
|
117374
|
+
});
|
117445
117375
|
watcher.on("error", (err) => {
|
117446
117376
|
throw err;
|
117447
117377
|
});
|
@@ -133397,48 +133327,44 @@ function stripAnsi2(string) {
|
|
133397
133327
|
}
|
133398
133328
|
|
133399
133329
|
// ../../generator-utils/dist/esm/index.js
|
133400
|
-
function getPackageVersion(packageName, registry2) {
|
133401
|
-
|
133402
|
-
|
133403
|
-
|
133404
|
-
|
133405
|
-
|
133406
|
-
|
133407
|
-
|
133408
|
-
|
133409
|
-
|
133410
|
-
|
133411
|
-
|
133412
|
-
|
133413
|
-
args.push(`--registry=${registry2}`);
|
133414
|
-
}
|
133415
|
-
const result = yield (0, import_utils16.execa)("pnpm", args);
|
133416
|
-
spinner.stop();
|
133417
|
-
return stripAnsi2(result.stdout);
|
133418
|
-
}
|
133419
|
-
if (yield (0, import_utils16.canUseNpm)()) {
|
133420
|
-
const args = [
|
133421
|
-
"view",
|
133422
|
-
packageName,
|
133423
|
-
"version"
|
133424
|
-
];
|
133425
|
-
if (registry2) {
|
133426
|
-
args.push(`--registry=${registry2}`);
|
133427
|
-
}
|
133428
|
-
const result = yield (0, import_utils16.execa)("npm", args);
|
133429
|
-
spinner.stop();
|
133430
|
-
return stripAnsi2(result.stdout);
|
133330
|
+
async function getPackageVersion(packageName, registry2) {
|
133331
|
+
const spinner = (0, import_utils16.ora)({
|
133332
|
+
text: "Load Generator...",
|
133333
|
+
spinner: "runner"
|
133334
|
+
}).start();
|
133335
|
+
if (await (0, import_utils16.canUsePnpm)()) {
|
133336
|
+
const args = [
|
133337
|
+
"info",
|
133338
|
+
packageName,
|
133339
|
+
"version"
|
133340
|
+
];
|
133341
|
+
if (registry2) {
|
133342
|
+
args.push(`--registry=${registry2}`);
|
133431
133343
|
}
|
133344
|
+
const result = await (0, import_utils16.execa)("pnpm", args);
|
133432
133345
|
spinner.stop();
|
133433
|
-
|
133434
|
-
}
|
133346
|
+
return stripAnsi2(result.stdout);
|
133347
|
+
}
|
133348
|
+
if (await (0, import_utils16.canUseNpm)()) {
|
133349
|
+
const args = [
|
133350
|
+
"view",
|
133351
|
+
packageName,
|
133352
|
+
"version"
|
133353
|
+
];
|
133354
|
+
if (registry2) {
|
133355
|
+
args.push(`--registry=${registry2}`);
|
133356
|
+
}
|
133357
|
+
const result = await (0, import_utils16.execa)("npm", args);
|
133358
|
+
spinner.stop();
|
133359
|
+
return stripAnsi2(result.stdout);
|
133360
|
+
}
|
133361
|
+
spinner.stop();
|
133362
|
+
throw new Error("not found npm, please install npm before");
|
133435
133363
|
}
|
133436
|
-
function getModernVersion(solution, registry2, distTag = "latest") {
|
133437
|
-
|
133438
|
-
|
133439
|
-
|
133440
|
-
return modernVersion;
|
133441
|
-
});
|
133364
|
+
async function getModernVersion(solution, registry2, distTag = "latest") {
|
133365
|
+
const dep = SolutionToolsMap[solution];
|
133366
|
+
const modernVersion = await getPackageVersion(`${dep}@${distTag}`, registry2);
|
133367
|
+
return modernVersion;
|
133442
133368
|
}
|
133443
133369
|
function getPackageManagerText(packageManager) {
|
133444
133370
|
return packageManager === "yarn" ? "yarn" : `${packageManager} run`;
|
@@ -133483,62 +133409,65 @@ var getGeneratorPath = (generator, distTag) => {
|
|
133483
133409
|
}
|
133484
133410
|
return generator;
|
133485
133411
|
};
|
133486
|
-
var handleTemplateFile = (context, generator, appApi) =>
|
133487
|
-
const
|
133412
|
+
var handleTemplateFile = async (context, generator, appApi) => {
|
133413
|
+
const { hasPlugin, generatorPlugin, ...extra } = context.config;
|
133488
133414
|
let ans = {};
|
133489
133415
|
if (hasPlugin) {
|
133490
|
-
|
133416
|
+
await generatorPlugin.installPlugins(Solution.Monorepo, extra);
|
133491
133417
|
const schema = generatorPlugin.getInputSchema();
|
133492
133418
|
const inputValue = generatorPlugin.getInputValue();
|
133493
133419
|
const defaultConfig = generatorPlugin.getDefaultConfig();
|
133494
133420
|
context.config.gitCommitMessage = generatorPlugin.getGitMessage() || context.config.gitCommitMessage;
|
133495
|
-
ans =
|
133421
|
+
ans = await appApi.getInputBySchema(
|
133496
133422
|
schema,
|
133497
133423
|
"formily",
|
133498
|
-
|
133424
|
+
{
|
133425
|
+
...context.config,
|
133426
|
+
...defaultConfig,
|
133499
133427
|
isMonorepo: true
|
133500
|
-
}
|
133428
|
+
},
|
133501
133429
|
{},
|
133502
|
-
|
133430
|
+
{ ...inputValue }
|
133503
133431
|
);
|
133504
133432
|
} else {
|
133505
|
-
ans =
|
133433
|
+
ans = await appApi.getInputBySchemaFunc(getMonorepoSchema, {
|
133434
|
+
...context.config,
|
133506
133435
|
isMonorepo: true
|
133507
|
-
})
|
133436
|
+
});
|
133508
133437
|
}
|
133509
|
-
const modernVersion =
|
133438
|
+
const modernVersion = await getModernVersion(
|
133510
133439
|
Solution.Monorepo,
|
133511
133440
|
context.config.registry,
|
133512
133441
|
context.config.distTag
|
133513
133442
|
);
|
133514
133443
|
generator.logger.debug(`ans=`, ans);
|
133515
133444
|
const { packageManager } = ans;
|
133516
|
-
|
133445
|
+
await appApi.runSubGenerator(
|
133517
133446
|
getGeneratorPath(BaseGenerator, context.config.distTag),
|
133518
133447
|
void 0,
|
133519
|
-
|
133448
|
+
{ ...context.config, hasPlugin: false }
|
133520
133449
|
);
|
133521
|
-
|
133450
|
+
await appApi.forgeTemplate(
|
133522
133451
|
"templates/base-template/**/*",
|
133523
133452
|
void 0,
|
133524
133453
|
(resourceKey) => resourceKey.replace("templates/base-template/", "").replace(".handlebars", ""),
|
133525
133454
|
{ packageManager, modernVersion }
|
133526
133455
|
);
|
133527
133456
|
if (packageManager === PackageManager.Pnpm) {
|
133528
|
-
|
133457
|
+
await appApi.forgeTemplate(
|
133529
133458
|
"templates/pnpm-template/**/*",
|
133530
133459
|
void 0,
|
133531
133460
|
(resourceKey) => resourceKey.replace("templates/pnpm-template/", "").replace(".handlebars", "")
|
133532
133461
|
);
|
133533
133462
|
}
|
133534
133463
|
if (packageManager === PackageManager.Yarn) {
|
133535
|
-
|
133464
|
+
await appApi.forgeTemplate(
|
133536
133465
|
"templates/yarn-template/**/*",
|
133537
133466
|
void 0,
|
133538
133467
|
(resourceKey) => resourceKey.replace("templates/yarn-template/", "").replace(".handlebars", "")
|
133539
133468
|
);
|
133540
133469
|
const jsonAPI = new JsonAPI(generator);
|
133541
|
-
|
133470
|
+
await jsonAPI.update(
|
133542
133471
|
context.materials.default.get(
|
133543
133472
|
import_path7.default.join(generator.outputPath, "package.json")
|
133544
133473
|
),
|
@@ -133552,25 +133481,25 @@ var handleTemplateFile = (context, generator, appApi) => __async(void 0, null, f
|
|
133552
133481
|
}
|
133553
133482
|
);
|
133554
133483
|
}
|
133555
|
-
|
133484
|
+
await appApi.runSubGenerator(
|
133556
133485
|
getGeneratorPath(ChangesetGenerator, context.config.distTag)
|
133557
133486
|
);
|
133558
133487
|
const { packagesInfo } = context.config;
|
133559
133488
|
if (packagesInfo && Object.keys(packagesInfo).length > 0) {
|
133560
|
-
|
133489
|
+
await appApi.runSubGenerator(
|
133561
133490
|
getGeneratorPath(PackagesGenerator, context.config.distTag),
|
133562
133491
|
void 0,
|
133563
133492
|
context.config
|
133564
133493
|
);
|
133565
133494
|
}
|
133566
|
-
}
|
133567
|
-
var src_default = (context, generator) =>
|
133495
|
+
};
|
133496
|
+
var src_default = async (context, generator) => {
|
133568
133497
|
const appApi = new AppAPI(context, generator);
|
133569
133498
|
const { locale, successInfo } = context.config;
|
133570
133499
|
i18n2.changeLanguage({ locale });
|
133571
133500
|
i18n3.changeLanguage({ locale });
|
133572
133501
|
appApi.i18n.changeLanguage({ locale });
|
133573
|
-
if (!
|
133502
|
+
if (!await canUsePnpm() && !await canUseYarn()) {
|
133574
133503
|
generator.logger.warn(i18n3.t(localeKeys3.environment.yarn_pnpm));
|
133575
133504
|
process.exit(1);
|
133576
133505
|
}
|
@@ -133578,20 +133507,20 @@ var src_default = (context, generator) => __async(void 0, null, function* () {
|
|
133578
133507
|
generator.logger.debug(`context=${JSON.stringify(context)}`);
|
133579
133508
|
generator.logger.debug(`context.data=${JSON.stringify(context.data)}`);
|
133580
133509
|
try {
|
133581
|
-
|
133510
|
+
await handleTemplateFile(context, generator, appApi);
|
133582
133511
|
} catch (e) {
|
133583
133512
|
generator.logger.error(e);
|
133584
133513
|
process.exit(1);
|
133585
133514
|
}
|
133586
133515
|
if (context.handleForged) {
|
133587
|
-
|
133516
|
+
await context.handleForged(
|
133588
133517
|
Solution.Monorepo,
|
133589
133518
|
context,
|
133590
133519
|
context.config.hasPlugin
|
133591
133520
|
);
|
133592
133521
|
}
|
133593
133522
|
try {
|
133594
|
-
|
133523
|
+
await appApi.runGitAndInstall(context.config.gitCommitMessage);
|
133595
133524
|
} catch (e) {
|
133596
133525
|
process.exit(1);
|
133597
133526
|
}
|
@@ -133601,7 +133530,7 @@ var src_default = (context, generator) => __async(void 0, null, function* () {
|
|
133601
133530
|
})
|
133602
133531
|
);
|
133603
133532
|
generator.logger.debug(`forge @modern-js/monorepo-generator succeed `);
|
133604
|
-
}
|
133533
|
+
};
|
133605
133534
|
// Annotate the CommonJS export names for ESM import in node:
|
133606
133535
|
0 && (module.exports = {
|
133607
133536
|
handleTemplateFile
|