@modern-js/ssg-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 +571 -632
- package/package.json +7 -7
package/dist/index.js
CHANGED
@@ -1,27 +1,9 @@
|
|
1
1
|
var __create = Object.create;
|
2
2
|
var __defProp = Object.defineProperty;
|
3
|
-
var __defProps = Object.defineProperties;
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
5
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
6
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
7
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
8
5
|
var __getProtoOf = Object.getPrototypeOf;
|
9
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
10
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
11
|
-
var __pow = Math.pow;
|
12
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
13
|
-
var __spreadValues = (a, b) => {
|
14
|
-
for (var prop in b || (b = {}))
|
15
|
-
if (__hasOwnProp.call(b, prop))
|
16
|
-
__defNormalProp(a, prop, b[prop]);
|
17
|
-
if (__getOwnPropSymbols)
|
18
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
19
|
-
if (__propIsEnum.call(b, prop))
|
20
|
-
__defNormalProp(a, prop, b[prop]);
|
21
|
-
}
|
22
|
-
return a;
|
23
|
-
};
|
24
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
25
7
|
var __commonJS = (cb, mod) => function __require() {
|
26
8
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
27
9
|
};
|
@@ -46,26 +28,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
46
28
|
mod
|
47
29
|
));
|
48
30
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
49
|
-
var __async = (__this, __arguments, generator) => {
|
50
|
-
return new Promise((resolve, reject) => {
|
51
|
-
var fulfilled = (value) => {
|
52
|
-
try {
|
53
|
-
step(generator.next(value));
|
54
|
-
} catch (e) {
|
55
|
-
reject(e);
|
56
|
-
}
|
57
|
-
};
|
58
|
-
var rejected = (value) => {
|
59
|
-
try {
|
60
|
-
step(generator.throw(value));
|
61
|
-
} catch (e) {
|
62
|
-
reject(e);
|
63
|
-
}
|
64
|
-
};
|
65
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
66
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
67
|
-
});
|
68
|
-
};
|
69
31
|
|
70
32
|
// ../../../../node_modules/.pnpm/@modern-js+utils@2.18.0_react-dom@18.2.0_react@18.2.0/node_modules/@modern-js/utils/dist/compiled/import-lazy/index.js
|
71
33
|
var require_import_lazy = __commonJS({
|
@@ -492,22 +454,20 @@ var require_fs_extra = __commonJS({
|
|
492
454
|
const o = r2(17);
|
493
455
|
const c = r2(971);
|
494
456
|
const s = r2(95);
|
495
|
-
const a = n(function emptyDir(e3) {
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
return Promise.all(t3.map((t4) => s.remove(o.join(e3, t4))));
|
504
|
-
});
|
457
|
+
const a = n(async function emptyDir(e3) {
|
458
|
+
let t3;
|
459
|
+
try {
|
460
|
+
t3 = await i.readdir(e3);
|
461
|
+
} catch {
|
462
|
+
return c.mkdirs(e3);
|
463
|
+
}
|
464
|
+
return Promise.all(t3.map((t4) => s.remove(o.join(e3, t4))));
|
505
465
|
});
|
506
466
|
function emptyDirSync(e3) {
|
507
467
|
let t3;
|
508
468
|
try {
|
509
469
|
t3 = i.readdirSync(e3);
|
510
|
-
} catch
|
470
|
+
} catch {
|
511
471
|
return c.mkdirsSync(e3);
|
512
472
|
}
|
513
473
|
t3.forEach((t4) => {
|
@@ -560,7 +520,7 @@ var require_fs_extra = __commonJS({
|
|
560
520
|
let t3;
|
561
521
|
try {
|
562
522
|
t3 = o.statSync(e3);
|
563
|
-
} catch
|
523
|
+
} catch {
|
564
524
|
}
|
565
525
|
if (t3 && t3.isFile())
|
566
526
|
return;
|
@@ -627,7 +587,7 @@ var require_fs_extra = __commonJS({
|
|
627
587
|
let r3;
|
628
588
|
try {
|
629
589
|
r3 = o.lstatSync(t3);
|
630
|
-
} catch
|
590
|
+
} catch {
|
631
591
|
}
|
632
592
|
try {
|
633
593
|
const t4 = o.lstatSync(e3);
|
@@ -722,7 +682,7 @@ var require_fs_extra = __commonJS({
|
|
722
682
|
return t3;
|
723
683
|
try {
|
724
684
|
r3 = n.lstatSync(e3);
|
725
|
-
} catch
|
685
|
+
} catch {
|
726
686
|
return "file";
|
727
687
|
}
|
728
688
|
return r3 && r3.isDirectory() ? "dir" : "file";
|
@@ -785,7 +745,7 @@ var require_fs_extra = __commonJS({
|
|
785
745
|
let n2;
|
786
746
|
try {
|
787
747
|
n2 = o.lstatSync(t3);
|
788
|
-
} catch
|
748
|
+
} catch {
|
789
749
|
}
|
790
750
|
if (n2 && n2.isSymbolicLink()) {
|
791
751
|
const r4 = o.statSync(e3);
|
@@ -860,7 +820,7 @@ var require_fs_extra = __commonJS({
|
|
860
820
|
}
|
861
821
|
}, 81: (e2, t2, r2) => {
|
862
822
|
"use strict";
|
863
|
-
e2.exports =
|
823
|
+
e2.exports = { ...r2(812), ...r2(2), ...r2(708), ...r2(726), ...r2(779), ...r2(971), ...r2(511), ...r2(701), ...r2(725), ...r2(95) };
|
864
824
|
}, 779: (e2, t2, r2) => {
|
865
825
|
"use strict";
|
866
826
|
const n = r2(5).fromPromise;
|
@@ -891,11 +851,9 @@ var require_fs_extra = __commonJS({
|
|
891
851
|
"use strict";
|
892
852
|
const { stringify: n } = r2(208);
|
893
853
|
const { outputFile: i } = r2(701);
|
894
|
-
function outputJson(
|
895
|
-
|
896
|
-
|
897
|
-
yield i(e3, o, r3);
|
898
|
-
});
|
854
|
+
async function outputJson(e3, t3, r3 = {}) {
|
855
|
+
const o = n(t3, r3);
|
856
|
+
await i(e3, o, r3);
|
899
857
|
}
|
900
858
|
e2.exports = outputJson;
|
901
859
|
}, 971: (e2, t2, r2) => {
|
@@ -912,12 +870,12 @@ var require_fs_extra = __commonJS({
|
|
912
870
|
const t3 = { mode: 511 };
|
913
871
|
if (typeof e3 === "number")
|
914
872
|
return e3;
|
915
|
-
return
|
873
|
+
return { ...t3, ...e3 }.mode;
|
916
874
|
};
|
917
|
-
e2.exports.makeDir = (e3, t3) =>
|
875
|
+
e2.exports.makeDir = async (e3, t3) => {
|
918
876
|
i(e3);
|
919
877
|
return n.mkdir(e3, { mode: getMode(t3), recursive: true });
|
920
|
-
}
|
878
|
+
};
|
921
879
|
e2.exports.makeDirSync = (e3, t3) => {
|
922
880
|
i(e3);
|
923
881
|
return n.mkdirSync(e3, { mode: getMode(t3), recursive: true });
|
@@ -1335,7 +1293,7 @@ var require_fs_extra = __commonJS({
|
|
1335
1293
|
try {
|
1336
1294
|
const r4 = t3.rmdirSync(e3, t3);
|
1337
1295
|
return r4;
|
1338
|
-
} catch
|
1296
|
+
} catch {
|
1339
1297
|
}
|
1340
1298
|
} while (Date.now() - r3 < 500);
|
1341
1299
|
} else {
|
@@ -2234,28 +2192,26 @@ var require_fs_extra = __commonJS({
|
|
2234
2192
|
}
|
2235
2193
|
const i = r2(5);
|
2236
2194
|
const { stringify: o, stripBom: c } = r2(208);
|
2237
|
-
function _readFile(
|
2238
|
-
|
2239
|
-
|
2240
|
-
|
2241
|
-
|
2242
|
-
|
2243
|
-
|
2244
|
-
|
2245
|
-
|
2246
|
-
|
2247
|
-
|
2248
|
-
|
2249
|
-
|
2250
|
-
|
2251
|
-
|
2252
|
-
|
2253
|
-
|
2254
|
-
return null;
|
2255
|
-
}
|
2195
|
+
async function _readFile(e3, t3 = {}) {
|
2196
|
+
if (typeof t3 === "string") {
|
2197
|
+
t3 = { encoding: t3 };
|
2198
|
+
}
|
2199
|
+
const r3 = t3.fs || n;
|
2200
|
+
const o2 = "throws" in t3 ? t3.throws : true;
|
2201
|
+
let s2 = await i.fromCallback(r3.readFile)(e3, t3);
|
2202
|
+
s2 = c(s2);
|
2203
|
+
let a2;
|
2204
|
+
try {
|
2205
|
+
a2 = JSON.parse(s2, t3 ? t3.reviver : null);
|
2206
|
+
} catch (t4) {
|
2207
|
+
if (o2) {
|
2208
|
+
t4.message = `${e3}: ${t4.message}`;
|
2209
|
+
throw t4;
|
2210
|
+
} else {
|
2211
|
+
return null;
|
2256
2212
|
}
|
2257
|
-
|
2258
|
-
|
2213
|
+
}
|
2214
|
+
return a2;
|
2259
2215
|
}
|
2260
2216
|
const s = i.fromPromise(_readFile);
|
2261
2217
|
function readFileSync(e3, t3 = {}) {
|
@@ -2277,12 +2233,10 @@ var require_fs_extra = __commonJS({
|
|
2277
2233
|
}
|
2278
2234
|
}
|
2279
2235
|
}
|
2280
|
-
function _writeFile(
|
2281
|
-
|
2282
|
-
|
2283
|
-
|
2284
|
-
yield i.fromCallback(c2.writeFile)(e3, s2, r3);
|
2285
|
-
});
|
2236
|
+
async function _writeFile(e3, t3, r3 = {}) {
|
2237
|
+
const c2 = r3.fs || n;
|
2238
|
+
const s2 = o(t3, r3);
|
2239
|
+
await i.fromCallback(c2.writeFile)(e3, s2, r3);
|
2286
2240
|
}
|
2287
2241
|
const a = i.fromPromise(_writeFile);
|
2288
2242
|
function writeFileSync(e3, t3, r3 = {}) {
|
@@ -2510,11 +2464,11 @@ var require_chalk = __commonJS({
|
|
2510
2464
|
} };
|
2511
2465
|
}
|
2512
2466
|
const f = Object.defineProperties(() => {
|
2513
|
-
},
|
2467
|
+
}, { ...u, level: { enumerable: true, get() {
|
2514
2468
|
return this._generator.level;
|
2515
2469
|
}, set(e3) {
|
2516
2470
|
this._generator.level = e3;
|
2517
|
-
} } })
|
2471
|
+
} } });
|
2518
2472
|
const createStyler = (e3, t3, n3) => {
|
2519
2473
|
let r2;
|
2520
2474
|
let s2;
|
@@ -2825,7 +2779,7 @@ var require_chalk = __commonJS({
|
|
2825
2779
|
return [o2 * 100, l * 100, c * 100, s2 * 100];
|
2826
2780
|
};
|
2827
2781
|
function comparativeDistance(e3, t3) {
|
2828
|
-
return
|
2782
|
+
return (e3[0] - t3[0]) ** 2 + (e3[1] - t3[1]) ** 2 + (e3[2] - t3[2]) ** 2;
|
2829
2783
|
}
|
2830
2784
|
o.rgb.keyword = function(e3) {
|
2831
2785
|
const t3 = s[e3];
|
@@ -2851,9 +2805,9 @@ var require_chalk = __commonJS({
|
|
2851
2805
|
let t3 = e3[0] / 255;
|
2852
2806
|
let n3 = e3[1] / 255;
|
2853
2807
|
let r2 = e3[2] / 255;
|
2854
|
-
t3 = t3 > 0.04045 ?
|
2855
|
-
n3 = n3 > 0.04045 ?
|
2856
|
-
r2 = r2 > 0.04045 ?
|
2808
|
+
t3 = t3 > 0.04045 ? ((t3 + 0.055) / 1.055) ** 2.4 : t3 / 12.92;
|
2809
|
+
n3 = n3 > 0.04045 ? ((n3 + 0.055) / 1.055) ** 2.4 : n3 / 12.92;
|
2810
|
+
r2 = r2 > 0.04045 ? ((r2 + 0.055) / 1.055) ** 2.4 : r2 / 12.92;
|
2857
2811
|
const s2 = t3 * 0.4124 + n3 * 0.3576 + r2 * 0.1805;
|
2858
2812
|
const o2 = t3 * 0.2126 + n3 * 0.7152 + r2 * 0.0722;
|
2859
2813
|
const l = t3 * 0.0193 + n3 * 0.1192 + r2 * 0.9505;
|
@@ -2867,9 +2821,9 @@ var require_chalk = __commonJS({
|
|
2867
2821
|
n3 /= 95.047;
|
2868
2822
|
r2 /= 100;
|
2869
2823
|
s2 /= 108.883;
|
2870
|
-
n3 = n3 > 8856e-6 ?
|
2871
|
-
r2 = r2 > 8856e-6 ?
|
2872
|
-
s2 = s2 > 8856e-6 ?
|
2824
|
+
n3 = n3 > 8856e-6 ? n3 ** (1 / 3) : 7.787 * n3 + 16 / 116;
|
2825
|
+
r2 = r2 > 8856e-6 ? r2 ** (1 / 3) : 7.787 * r2 + 16 / 116;
|
2826
|
+
s2 = s2 > 8856e-6 ? s2 ** (1 / 3) : 7.787 * s2 + 16 / 116;
|
2873
2827
|
const l = 116 * r2 - 16;
|
2874
2828
|
const c = 500 * (n3 - r2);
|
2875
2829
|
const i = 200 * (r2 - s2);
|
@@ -3043,9 +2997,9 @@ var require_chalk = __commonJS({
|
|
3043
2997
|
s2 = t3 * 3.2406 + n3 * -1.5372 + r2 * -0.4986;
|
3044
2998
|
o2 = t3 * -0.9689 + n3 * 1.8758 + r2 * 0.0415;
|
3045
2999
|
l = t3 * 0.0557 + n3 * -0.204 + r2 * 1.057;
|
3046
|
-
s2 = s2 > 31308e-7 ? 1.055 *
|
3047
|
-
o2 = o2 > 31308e-7 ? 1.055 *
|
3048
|
-
l = l > 31308e-7 ? 1.055 *
|
3000
|
+
s2 = s2 > 31308e-7 ? 1.055 * s2 ** (1 / 2.4) - 0.055 : s2 * 12.92;
|
3001
|
+
o2 = o2 > 31308e-7 ? 1.055 * o2 ** (1 / 2.4) - 0.055 : o2 * 12.92;
|
3002
|
+
l = l > 31308e-7 ? 1.055 * l ** (1 / 2.4) - 0.055 : l * 12.92;
|
3049
3003
|
s2 = Math.min(Math.max(0, s2), 1);
|
3050
3004
|
o2 = Math.min(Math.max(0, o2), 1);
|
3051
3005
|
l = Math.min(Math.max(0, l), 1);
|
@@ -3058,9 +3012,9 @@ var require_chalk = __commonJS({
|
|
3058
3012
|
t3 /= 95.047;
|
3059
3013
|
n3 /= 100;
|
3060
3014
|
r2 /= 108.883;
|
3061
|
-
t3 = t3 > 8856e-6 ?
|
3062
|
-
n3 = n3 > 8856e-6 ?
|
3063
|
-
r2 = r2 > 8856e-6 ?
|
3015
|
+
t3 = t3 > 8856e-6 ? t3 ** (1 / 3) : 7.787 * t3 + 16 / 116;
|
3016
|
+
n3 = n3 > 8856e-6 ? n3 ** (1 / 3) : 7.787 * n3 + 16 / 116;
|
3017
|
+
r2 = r2 > 8856e-6 ? r2 ** (1 / 3) : 7.787 * r2 + 16 / 116;
|
3064
3018
|
const s2 = 116 * n3 - 16;
|
3065
3019
|
const o2 = 500 * (t3 - n3);
|
3066
3020
|
const l = 200 * (n3 - r2);
|
@@ -3076,9 +3030,9 @@ var require_chalk = __commonJS({
|
|
3076
3030
|
o2 = (t3 + 16) / 116;
|
3077
3031
|
s2 = n3 / 500 + o2;
|
3078
3032
|
l = o2 - r2 / 200;
|
3079
|
-
const c =
|
3080
|
-
const i =
|
3081
|
-
const a =
|
3033
|
+
const c = o2 ** 3;
|
3034
|
+
const i = s2 ** 3;
|
3035
|
+
const a = l ** 3;
|
3082
3036
|
o2 = c > 8856e-6 ? c : (o2 - 16 / 116) / 7.787;
|
3083
3037
|
s2 = i > 8856e-6 ? i : (s2 - 16 / 116) / 7.787;
|
3084
3038
|
l = a > 8856e-6 ? a : (l - 16 / 116) / 7.787;
|
@@ -4334,7 +4288,7 @@ var require_ora = __commonJS({
|
|
4334
4288
|
if (typeof e3 === "string") {
|
4335
4289
|
e3 = { text: e3 };
|
4336
4290
|
}
|
4337
|
-
this.options =
|
4291
|
+
this.options = { text: "", color: "cyan", stream: process.stderr, discardStdin: true, ...e3 };
|
4338
4292
|
this.spinner = this.options.spinner;
|
4339
4293
|
this.color = this.options.color;
|
4340
4294
|
this.hideCursor = this.options.hideCursor !== false;
|
@@ -4551,14 +4505,14 @@ var require_ora = __commonJS({
|
|
4551
4505
|
}
|
4552
4506
|
const r3 = new Ora(t3);
|
4553
4507
|
r3.start();
|
4554
|
-
(() =>
|
4508
|
+
(async () => {
|
4555
4509
|
try {
|
4556
|
-
|
4510
|
+
await e3;
|
4557
4511
|
r3.succeed();
|
4558
|
-
} catch
|
4512
|
+
} catch {
|
4559
4513
|
r3.fail();
|
4560
4514
|
}
|
4561
|
-
})
|
4515
|
+
})();
|
4562
4516
|
return r3;
|
4563
4517
|
};
|
4564
4518
|
}, 959: (e2) => {
|
@@ -12978,7 +12932,7 @@ var require_execa = __commonJS({
|
|
12978
12932
|
const { joinCommand: w, parseCommand: E, getEscapedCommand: I } = n2(192);
|
12979
12933
|
const T = 1e3 * 1e3 * 100;
|
12980
12934
|
const getEnv = ({ env: e3, extendEnv: t3, preferLocal: n3, localDir: r2, execPath: o2 }) => {
|
12981
|
-
const s2 = t3 ?
|
12935
|
+
const s2 = t3 ? { ...process.env, ...e3 } : e3;
|
12982
12936
|
if (n3) {
|
12983
12937
|
return a.env({ env: s2, cwd: r2, execPath: o2 });
|
12984
12938
|
}
|
@@ -12989,7 +12943,7 @@ var require_execa = __commonJS({
|
|
12989
12943
|
e3 = o2.command;
|
12990
12944
|
t3 = o2.args;
|
12991
12945
|
n3 = o2.options;
|
12992
|
-
n3 =
|
12946
|
+
n3 = { maxBuffer: T, buffer: true, stripFinalNewline: true, extendEnv: true, preferLocal: false, localDir: n3.cwd || process.cwd(), execPath: process.execPath, encoding: "utf8", reject: true, cleanup: true, all: false, windowsHide: true, ...n3 };
|
12993
12947
|
n3.env = getEnv(n3);
|
12994
12948
|
n3.stdio = u(n3);
|
12995
12949
|
if (process.platform === "win32" && r.basename(e3, ".exe") === "cmd") {
|
@@ -13025,8 +12979,8 @@ var require_execa = __commonJS({
|
|
13025
12979
|
const T2 = { isCanceled: false };
|
13026
12980
|
a2.kill = l.bind(null, a2.kill.bind(a2));
|
13027
12981
|
a2.cancel = f.bind(null, a2, T2);
|
13028
|
-
const handlePromise = () =>
|
13029
|
-
const [{ error: e4, exitCode: t4, signal: n4, timedOut: o2 }, c2, u3, l2] =
|
12982
|
+
const handlePromise = async () => {
|
12983
|
+
const [{ error: e4, exitCode: t4, signal: n4, timedOut: o2 }, c2, u3, l2] = await h(a2, r2.options, E2);
|
13030
12984
|
const f2 = handleOutput(r2.options, c2);
|
13031
12985
|
const p2 = handleOutput(r2.options, u3);
|
13032
12986
|
const m2 = handleOutput(r2.options, l2);
|
@@ -13038,7 +12992,7 @@ var require_execa = __commonJS({
|
|
13038
12992
|
throw c3;
|
13039
12993
|
}
|
13040
12994
|
return { command: s2, escapedCommand: i2, exitCode: 0, stdout: f2, stderr: p2, all: m2, failed: false, timedOut: false, isCanceled: false, killed: false };
|
13041
|
-
}
|
12995
|
+
};
|
13042
12996
|
const C = c(handlePromise);
|
13043
12997
|
x(a2, r2.options.input);
|
13044
12998
|
a2.all = y(a2, r2.options);
|
@@ -13083,7 +13037,7 @@ var require_execa = __commonJS({
|
|
13083
13037
|
const r2 = u.node(n3);
|
13084
13038
|
const o2 = process.execArgv.filter((e4) => !e4.startsWith("--inspect"));
|
13085
13039
|
const { nodePath: s2 = process.execPath, nodeOptions: i2 = o2 } = n3;
|
13086
|
-
return execa3(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []],
|
13040
|
+
return execa3(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []], { ...n3, stdin: void 0, stdout: void 0, stderr: void 0, stdio: r2, shell: false });
|
13087
13041
|
};
|
13088
13042
|
}, 192: (e2) => {
|
13089
13043
|
"use strict";
|
@@ -13239,7 +13193,7 @@ ${o.message}` : x;
|
|
13239
13193
|
throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e3}\` (${typeof e3})`);
|
13240
13194
|
}
|
13241
13195
|
};
|
13242
|
-
const setExitHandler =
|
13196
|
+
const setExitHandler = async (e3, { cleanup: t3, detached: n3 }, r2) => {
|
13243
13197
|
if (!t3 || n3) {
|
13244
13198
|
return r2;
|
13245
13199
|
}
|
@@ -13249,17 +13203,17 @@ ${o.message}` : x;
|
|
13249
13203
|
return r2.finally(() => {
|
13250
13204
|
s2();
|
13251
13205
|
});
|
13252
|
-
}
|
13206
|
+
};
|
13253
13207
|
e2.exports = { spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler };
|
13254
13208
|
}, 210: (e2) => {
|
13255
13209
|
"use strict";
|
13256
|
-
const t2 = (() =>
|
13257
|
-
})
|
13210
|
+
const t2 = (async () => {
|
13211
|
+
})().constructor.prototype;
|
13258
13212
|
const n2 = ["then", "catch", "finally"].map((e3) => [e3, Reflect.getOwnPropertyDescriptor(t2, e3)]);
|
13259
13213
|
const mergePromise = (e3, t3) => {
|
13260
13214
|
for (const [r, o] of n2) {
|
13261
13215
|
const n3 = typeof t3 === "function" ? (...e4) => Reflect.apply(o.value, t3(), e4) : o.value.bind(t3);
|
13262
|
-
Reflect.defineProperty(e3, r,
|
13216
|
+
Reflect.defineProperty(e3, r, { ...o, value: n3 });
|
13263
13217
|
}
|
13264
13218
|
return e3;
|
13265
13219
|
};
|
@@ -13343,17 +13297,17 @@ ${o.message}` : x;
|
|
13343
13297
|
}
|
13344
13298
|
return n3;
|
13345
13299
|
};
|
13346
|
-
const getBufferedData = (e3, t3) =>
|
13300
|
+
const getBufferedData = async (e3, t3) => {
|
13347
13301
|
if (!e3) {
|
13348
13302
|
return;
|
13349
13303
|
}
|
13350
13304
|
e3.destroy();
|
13351
13305
|
try {
|
13352
|
-
return
|
13306
|
+
return await t3;
|
13353
13307
|
} catch (e4) {
|
13354
13308
|
return e4.bufferedData;
|
13355
13309
|
}
|
13356
|
-
}
|
13310
|
+
};
|
13357
13311
|
const getStreamPromise = (e3, { encoding: t3, buffer: n3, maxBuffer: r2 }) => {
|
13358
13312
|
if (!e3 || !n3) {
|
13359
13313
|
return;
|
@@ -13363,16 +13317,16 @@ ${o.message}` : x;
|
|
13363
13317
|
}
|
13364
13318
|
return o.buffer(e3, { maxBuffer: r2 });
|
13365
13319
|
};
|
13366
|
-
const getSpawnedResult =
|
13320
|
+
const getSpawnedResult = async ({ stdout: e3, stderr: t3, all: n3 }, { encoding: r2, buffer: o2, maxBuffer: s2 }, i) => {
|
13367
13321
|
const a = getStreamPromise(e3, { encoding: r2, buffer: o2, maxBuffer: s2 });
|
13368
13322
|
const c = getStreamPromise(t3, { encoding: r2, buffer: o2, maxBuffer: s2 });
|
13369
13323
|
const d = getStreamPromise(n3, { encoding: r2, buffer: o2, maxBuffer: s2 * 2 });
|
13370
13324
|
try {
|
13371
|
-
return
|
13325
|
+
return await Promise.all([i, a, c, d]);
|
13372
13326
|
} catch (r3) {
|
13373
13327
|
return Promise.all([{ error: r3, signal: r3.signal, timedOut: r3.timedOut }, getBufferedData(e3, a), getBufferedData(t3, c), getBufferedData(n3, d)]);
|
13374
13328
|
}
|
13375
|
-
}
|
13329
|
+
};
|
13376
13330
|
const validateInputSync = ({ input: e3 }) => {
|
13377
13331
|
if (r(e3)) {
|
13378
13332
|
throw new TypeError("The `input` option cannot be a stream in sync mode");
|
@@ -13383,7 +13337,7 @@ ${o.message}` : x;
|
|
13383
13337
|
"use strict";
|
13384
13338
|
const { PassThrough: r } = n2(781);
|
13385
13339
|
e2.exports = (e3) => {
|
13386
|
-
e3 =
|
13340
|
+
e3 = { ...e3 };
|
13387
13341
|
const { array: t3 } = e3;
|
13388
13342
|
let { encoding: n3 } = e3;
|
13389
13343
|
const o = n3 === "buffer";
|
@@ -13432,41 +13386,39 @@ ${o.message}` : x;
|
|
13432
13386
|
this.name = "MaxBufferError";
|
13433
13387
|
}
|
13434
13388
|
}
|
13435
|
-
function getStream(e3, t3) {
|
13436
|
-
|
13437
|
-
|
13438
|
-
|
13439
|
-
|
13440
|
-
|
13441
|
-
|
13442
|
-
|
13443
|
-
|
13444
|
-
|
13445
|
-
|
13446
|
-
|
13447
|
-
|
13448
|
-
|
13449
|
-
|
13450
|
-
|
13451
|
-
|
13452
|
-
|
13453
|
-
|
13454
|
-
|
13455
|
-
|
13456
|
-
|
13457
|
-
|
13458
|
-
o2.
|
13459
|
-
|
13460
|
-
|
13461
|
-
}
|
13462
|
-
});
|
13389
|
+
async function getStream(e3, t3) {
|
13390
|
+
if (!e3) {
|
13391
|
+
throw new Error("Expected a stream");
|
13392
|
+
}
|
13393
|
+
t3 = { maxBuffer: Infinity, ...t3 };
|
13394
|
+
const { maxBuffer: n3 } = t3;
|
13395
|
+
const o2 = i(t3);
|
13396
|
+
await new Promise((t4, s2) => {
|
13397
|
+
const rejectPromise = (e4) => {
|
13398
|
+
if (e4 && o2.getBufferedLength() <= r.MAX_LENGTH) {
|
13399
|
+
e4.bufferedData = o2.getBufferedValue();
|
13400
|
+
}
|
13401
|
+
s2(e4);
|
13402
|
+
};
|
13403
|
+
(async () => {
|
13404
|
+
try {
|
13405
|
+
await a(e3, o2);
|
13406
|
+
t4();
|
13407
|
+
} catch (e4) {
|
13408
|
+
rejectPromise(e4);
|
13409
|
+
}
|
13410
|
+
})();
|
13411
|
+
o2.on("data", () => {
|
13412
|
+
if (o2.getBufferedLength() > n3) {
|
13413
|
+
rejectPromise(new MaxBufferError());
|
13414
|
+
}
|
13463
13415
|
});
|
13464
|
-
return o2.getBufferedValue();
|
13465
13416
|
});
|
13417
|
+
return o2.getBufferedValue();
|
13466
13418
|
}
|
13467
13419
|
e2.exports = getStream;
|
13468
|
-
e2.exports.buffer = (e3, t3) => getStream(e3,
|
13469
|
-
e2.exports.array = (e3, t3) => getStream(e3,
|
13420
|
+
e2.exports.buffer = (e3, t3) => getStream(e3, { ...t3, encoding: "buffer" });
|
13421
|
+
e2.exports.array = (e3, t3) => getStream(e3, { ...t3, array: true });
|
13470
13422
|
e2.exports.MaxBufferError = MaxBufferError;
|
13471
13423
|
}, 221: (e2, t2) => {
|
13472
13424
|
"use strict";
|
@@ -13486,7 +13438,7 @@ ${o.message}` : x;
|
|
13486
13438
|
return e3.reduce(getSignalByName, {});
|
13487
13439
|
};
|
13488
13440
|
const getSignalByName = function(e3, { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 }) {
|
13489
|
-
return
|
13441
|
+
return { ...e3, [t3]: { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 } };
|
13490
13442
|
};
|
13491
13443
|
const i = getSignalsByName();
|
13492
13444
|
t2.signalsByName = i;
|
@@ -13718,7 +13670,7 @@ ${o.message}` : x;
|
|
13718
13670
|
const r = n2(17);
|
13719
13671
|
const o = n2(460);
|
13720
13672
|
const npmRunPath = (e3) => {
|
13721
|
-
e3 =
|
13673
|
+
e3 = { cwd: process.cwd(), path: process.env[o()], execPath: process.execPath, ...e3 };
|
13722
13674
|
let t3;
|
13723
13675
|
let n3 = r.resolve(e3.cwd);
|
13724
13676
|
const s = [];
|
@@ -13734,8 +13686,8 @@ ${o.message}` : x;
|
|
13734
13686
|
e2.exports = npmRunPath;
|
13735
13687
|
e2.exports["default"] = npmRunPath;
|
13736
13688
|
e2.exports.env = (t3) => {
|
13737
|
-
t3 =
|
13738
|
-
const n3 =
|
13689
|
+
t3 = { env: process.env, ...t3 };
|
13690
|
+
const n3 = { ...t3.env };
|
13739
13691
|
const r2 = o({ env: n3 });
|
13740
13692
|
t3.path = n3[r2];
|
13741
13693
|
n3[r2] = e2.exports(t3);
|
@@ -15144,7 +15096,7 @@ var require_upath = __commonJS({
|
|
15144
15096
|
_.VERSION = typeof n !== "undefined" && n !== null ? n : "NO-VERSION";
|
15145
15097
|
p = function(e3) {
|
15146
15098
|
e3 = e3.replace(/\\/g, "/");
|
15147
|
-
e3 = e3.replace(
|
15099
|
+
e3 = e3.replace(/(?<!^)\/+/g, "/");
|
15148
15100
|
return e3;
|
15149
15101
|
};
|
15150
15102
|
for (c in o) {
|
@@ -15440,9 +15392,7 @@ var require_pkg_up = __commonJS({
|
|
15440
15392
|
};
|
15441
15393
|
}, 800: (e2, r2, n2) => {
|
15442
15394
|
const t = n2(485);
|
15443
|
-
e2.exports =
|
15444
|
-
return t("package.json", { cwd: e3 });
|
15445
|
-
});
|
15395
|
+
e2.exports = async ({ cwd: e3 } = {}) => t("package.json", { cwd: e3 });
|
15446
15396
|
e2.exports.sync = ({ cwd: e3 } = {}) => t.sync("package.json", { cwd: e3 });
|
15447
15397
|
}, 147: (e2) => {
|
15448
15398
|
e2.exports = require("fs");
|
@@ -23973,7 +23923,7 @@ var require_fast_glob = __commonJS({
|
|
23973
23923
|
}
|
23974
23924
|
if (t4.nodes && t4.ranges > 0) {
|
23975
23925
|
let r4 = s.reduce(t4.nodes);
|
23976
|
-
let i2 = n(...r4,
|
23926
|
+
let i2 = n(...r4, { ...e3, wrap: false, toRegex: true });
|
23977
23927
|
if (i2.length !== 0) {
|
23978
23928
|
return r4.length > 1 && i2.length > 1 ? `(${i2})` : i2;
|
23979
23929
|
}
|
@@ -24399,13 +24349,11 @@ var require_fast_glob = __commonJS({
|
|
24399
24349
|
const a = r2(1066);
|
24400
24350
|
const u = r2(7190);
|
24401
24351
|
const c = r2(3828);
|
24402
|
-
function FastGlob(t3, e3) {
|
24403
|
-
|
24404
|
-
|
24405
|
-
|
24406
|
-
|
24407
|
-
return c.array.flatten(n2);
|
24408
|
-
});
|
24352
|
+
async function FastGlob(t3, e3) {
|
24353
|
+
assertPatternsInput(t3);
|
24354
|
+
const r3 = getWorks(t3, i.default, e3);
|
24355
|
+
const n2 = await Promise.all(r3);
|
24356
|
+
return c.array.flatten(n2);
|
24409
24357
|
}
|
24410
24358
|
(function(t3) {
|
24411
24359
|
function sync(t4, e3) {
|
@@ -25576,7 +25524,7 @@ var require_fast_glob = __commonJS({
|
|
25576
25524
|
};
|
25577
25525
|
const toRange = (t3, e3, r3, n2) => {
|
25578
25526
|
if (r3) {
|
25579
|
-
return s(t3, e3,
|
25527
|
+
return s(t3, e3, { wrap: false, ...n2 });
|
25580
25528
|
}
|
25581
25529
|
let i = String.fromCharCode(t3);
|
25582
25530
|
if (t3 === e3)
|
@@ -25642,7 +25590,7 @@ var require_fast_glob = __commonJS({
|
|
25642
25590
|
g++;
|
25643
25591
|
}
|
25644
25592
|
if (n2.toRegex === true) {
|
25645
|
-
return r3 > 1 ? toSequence(d, n2) : toRegex(_, null,
|
25593
|
+
return r3 > 1 ? toSequence(d, n2) : toRegex(_, null, { wrap: false, ...n2 });
|
25646
25594
|
}
|
25647
25595
|
return _;
|
25648
25596
|
};
|
@@ -25684,7 +25632,7 @@ var require_fast_glob = __commonJS({
|
|
25684
25632
|
if (isObject4(r3)) {
|
25685
25633
|
return fill(t3, e3, 0, r3);
|
25686
25634
|
}
|
25687
|
-
let s2 =
|
25635
|
+
let s2 = { ...n2 };
|
25688
25636
|
if (s2.capture === true)
|
25689
25637
|
s2.wrap = true;
|
25690
25638
|
r3 = r3 || s2.step || 1;
|
@@ -26008,7 +25956,7 @@ var require_fast_glob = __commonJS({
|
|
26008
25956
|
}
|
26009
25957
|
};
|
26010
25958
|
for (let o3 = 0; o3 < e3.length; o3++) {
|
26011
|
-
let u2 = i(String(e3[o3]),
|
25959
|
+
let u2 = i(String(e3[o3]), { ...r3, onResult }, true);
|
26012
25960
|
let c2 = u2.state.negated || u2.state.negatedExtglob;
|
26013
25961
|
if (c2)
|
26014
25962
|
a++;
|
@@ -26050,7 +25998,7 @@ var require_fast_glob = __commonJS({
|
|
26050
25998
|
r3.onResult(t4);
|
26051
25999
|
s2.push(t4.output);
|
26052
26000
|
};
|
26053
|
-
let i2 = new Set(micromatch(t3, e3,
|
26001
|
+
let i2 = new Set(micromatch(t3, e3, { ...r3, onResult }));
|
26054
26002
|
for (let t4 of s2) {
|
26055
26003
|
if (!i2.has(t4)) {
|
26056
26004
|
n2.add(t4);
|
@@ -26073,7 +26021,7 @@ var require_fast_glob = __commonJS({
|
|
26073
26021
|
return true;
|
26074
26022
|
}
|
26075
26023
|
}
|
26076
|
-
return micromatch.isMatch(t3, e3,
|
26024
|
+
return micromatch.isMatch(t3, e3, { ...r3, contains: true });
|
26077
26025
|
};
|
26078
26026
|
micromatch.matchKeys = (t3, e3, r3) => {
|
26079
26027
|
if (!o.isObject(t3)) {
|
@@ -26113,7 +26061,7 @@ var require_fast_glob = __commonJS({
|
|
26113
26061
|
};
|
26114
26062
|
micromatch.capture = (t3, e3, r3) => {
|
26115
26063
|
let n2 = o.isWindows(r3);
|
26116
|
-
let s2 = i.makeRe(String(t3),
|
26064
|
+
let s2 = i.makeRe(String(t3), { ...r3, capture: true });
|
26117
26065
|
let a = s2.exec(n2 ? o.toPosixSlashes(e3) : e3);
|
26118
26066
|
if (a) {
|
26119
26067
|
return a.slice(1).map((t4) => t4 === void 0 ? "" : t4);
|
@@ -26141,7 +26089,7 @@ var require_fast_glob = __commonJS({
|
|
26141
26089
|
micromatch.braceExpand = (t3, e3) => {
|
26142
26090
|
if (typeof t3 !== "string")
|
26143
26091
|
throw new TypeError("Expected a string");
|
26144
|
-
return micromatch.braces(t3,
|
26092
|
+
return micromatch.braces(t3, { ...e3, expand: true });
|
26145
26093
|
};
|
26146
26094
|
t2.exports = micromatch;
|
26147
26095
|
}, 376: (t2, e2, r2) => {
|
@@ -26168,7 +26116,7 @@ var require_fast_glob = __commonJS({
|
|
26168
26116
|
const m = `[^.${c}]`;
|
26169
26117
|
const v = `${f}*?`;
|
26170
26118
|
const E = { DOT_LITERAL: o, PLUS_LITERAL: a, QMARK_LITERAL: u, SLASH_LITERAL: c, ONE_CHAR: l, QMARK: f, END_ANCHOR: p, DOTS_SLASH: d, NO_DOT: _, NO_DOTS: g, NO_DOT_SLASH: y, NO_DOTS_SLASH: S, QMARK_NO_DOT: m, STAR: v, START_ANCHOR: h };
|
26171
|
-
const A =
|
26119
|
+
const A = { ...E, SLASH_LITERAL: `[${s}]`, QMARK: i, STAR: `${i}*?`, DOTS_SLASH: `${o}{1,2}(?:[${s}]|$)`, NO_DOT: `(?!${o})`, NO_DOTS: `(?!(?:^|[${s}])${o}{1,2}(?:[${s}]|$))`, NO_DOT_SLASH: `(?!${o}{0,1}(?:[${s}]|$))`, NO_DOTS_SLASH: `(?!${o}{1,2}(?:[${s}]|$))`, QMARK_NO_DOT: `[^.${s}]`, START_ANCHOR: `(?:^|[${s}])`, END_ANCHOR: `(?:[${s}]|$)` };
|
26172
26120
|
const b = { alnum: "a-zA-Z0-9", alpha: "a-zA-Z", ascii: "\\x00-\\x7F", blank: " \\t", cntrl: "\\x00-\\x1F\\x7F", digit: "0-9", graph: "\\x21-\\x7E", lower: "a-z", print: "\\x20-\\x7E ", punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~", space: " \\t\\r\\n\\v\\f", upper: "A-Z", word: "A-Za-z0-9_", xdigit: "A-Fa-f0-9" };
|
26173
26121
|
t2.exports = { MAX_LENGTH: 1024 * 64, POSIX_REGEX_SOURCE: b, REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g, REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/, REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/, REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g, REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g, REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g, REPLACEMENTS: { "***": "*", "**/**": "**", "**/**/**": "**" }, CHAR_0: 48, CHAR_9: 57, CHAR_UPPERCASE_A: 65, CHAR_LOWERCASE_A: 97, CHAR_UPPERCASE_Z: 90, CHAR_LOWERCASE_Z: 122, CHAR_LEFT_PARENTHESES: 40, CHAR_RIGHT_PARENTHESES: 41, CHAR_ASTERISK: 42, CHAR_AMPERSAND: 38, CHAR_AT: 64, CHAR_BACKWARD_SLASH: 92, CHAR_CARRIAGE_RETURN: 13, CHAR_CIRCUMFLEX_ACCENT: 94, CHAR_COLON: 58, CHAR_COMMA: 44, CHAR_DOT: 46, CHAR_DOUBLE_QUOTE: 34, CHAR_EQUAL: 61, CHAR_EXCLAMATION_MARK: 33, CHAR_FORM_FEED: 12, CHAR_FORWARD_SLASH: 47, CHAR_GRAVE_ACCENT: 96, CHAR_HASH: 35, CHAR_HYPHEN_MINUS: 45, CHAR_LEFT_ANGLE_BRACKET: 60, CHAR_LEFT_CURLY_BRACE: 123, CHAR_LEFT_SQUARE_BRACKET: 91, CHAR_LINE_FEED: 10, CHAR_NO_BREAK_SPACE: 160, CHAR_PERCENT: 37, CHAR_PLUS: 43, CHAR_QUESTION_MARK: 63, CHAR_RIGHT_ANGLE_BRACKET: 62, CHAR_RIGHT_CURLY_BRACE: 125, CHAR_RIGHT_SQUARE_BRACKET: 93, CHAR_SEMICOLON: 59, CHAR_SINGLE_QUOTE: 39, CHAR_SPACE: 32, CHAR_TAB: 9, CHAR_UNDERSCORE: 95, CHAR_VERTICAL_LINE: 124, CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279, SEP: n.sep, extglobChars(t3) {
|
26174
26122
|
return { "!": { type: "negate", open: "(?:(?!(?:", close: `))${t3.STAR})` }, "?": { type: "qmark", open: "(?:", close: ")?" }, "+": { type: "plus", open: "(?:", close: ")+" }, "*": { type: "star", open: "(?:", close: ")*" }, "@": { type: "at", open: "(?:", close: ")" } };
|
@@ -26199,7 +26147,7 @@ var require_fast_glob = __commonJS({
|
|
26199
26147
|
throw new TypeError("Expected a string");
|
26200
26148
|
}
|
26201
26149
|
t3 = c[t3] || t3;
|
26202
|
-
const r3 =
|
26150
|
+
const r3 = { ...e3 };
|
26203
26151
|
const l = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
|
26204
26152
|
let f = t3.length;
|
26205
26153
|
if (f > l) {
|
@@ -26291,7 +26239,7 @@ var require_fast_glob = __commonJS({
|
|
26291
26239
|
M = t4;
|
26292
26240
|
};
|
26293
26241
|
const extglobOpen = (t4, e4) => {
|
26294
|
-
const n2 =
|
26242
|
+
const n2 = { ...y[e4], conditions: 1, inner: "" };
|
26295
26243
|
n2.prev = M;
|
26296
26244
|
n2.parens = H.parens;
|
26297
26245
|
n2.output = H.output;
|
@@ -26313,7 +26261,7 @@ var require_fast_glob = __commonJS({
|
|
26313
26261
|
n2 = t4.close = `)$))${i2}`;
|
26314
26262
|
}
|
26315
26263
|
if (t4.inner.includes("*") && (s2 = remaining()) && /^\.[^\\/.]+$/.test(s2)) {
|
26316
|
-
const r4 = parse3(s2,
|
26264
|
+
const r4 = parse3(s2, { ...e3, fastpaths: false }).output;
|
26317
26265
|
n2 = t4.close = `)${r4})${i2})`;
|
26318
26266
|
}
|
26319
26267
|
if (t4.prev.type === "bos") {
|
@@ -26835,7 +26783,7 @@ var require_fast_glob = __commonJS({
|
|
26835
26783
|
return H;
|
26836
26784
|
};
|
26837
26785
|
parse3.fastpaths = (t3, e3) => {
|
26838
|
-
const r3 =
|
26786
|
+
const r3 = { ...e3 };
|
26839
26787
|
const o2 = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
|
26840
26788
|
const a2 = t3.length;
|
26841
26789
|
if (a2 > o2) {
|
@@ -26926,7 +26874,7 @@ var require_fast_glob = __commonJS({
|
|
26926
26874
|
delete a2.state;
|
26927
26875
|
let isIgnored = () => false;
|
26928
26876
|
if (s2.ignore) {
|
26929
|
-
const t4 =
|
26877
|
+
const t4 = { ...e3, ignore: null, onMatch: null, onResult: null };
|
26930
26878
|
isIgnored = picomatch(s2.ignore, t4, r3);
|
26931
26879
|
}
|
26932
26880
|
const matcher = (r4, n3 = false) => {
|
@@ -26988,7 +26936,7 @@ var require_fast_glob = __commonJS({
|
|
26988
26936
|
picomatch.parse = (t3, e3) => {
|
26989
26937
|
if (Array.isArray(t3))
|
26990
26938
|
return t3.map((t4) => picomatch.parse(t4, e3));
|
26991
|
-
return i(t3,
|
26939
|
+
return i(t3, { ...e3, fastpaths: false });
|
26992
26940
|
};
|
26993
26941
|
picomatch.scan = (t3, e3) => s(t3, e3);
|
26994
26942
|
picomatch.compileRe = (t3, e3, r3 = false, n2 = false) => {
|
@@ -27453,7 +27401,7 @@ var require_fast_glob = __commonJS({
|
|
27453
27401
|
if (n(e3) === false) {
|
27454
27402
|
throw new TypeError("toRegexRange: expected the second argument to be a number.");
|
27455
27403
|
}
|
27456
|
-
let s =
|
27404
|
+
let s = { relaxZeros: true, ...r3 };
|
27457
27405
|
if (typeof s.strictZeros === "boolean") {
|
27458
27406
|
s.relaxZeros = s.strictZeros === false;
|
27459
27407
|
}
|
@@ -27731,19 +27679,19 @@ var require_globby = __commonJS({
|
|
27731
27679
|
}
|
27732
27680
|
return [n.posix.join(t3, "**")];
|
27733
27681
|
};
|
27734
|
-
t2.exports = (t3, e3) =>
|
27735
|
-
e3 =
|
27682
|
+
t2.exports = async (t3, e3) => {
|
27683
|
+
e3 = { cwd: process.cwd(), ...e3 };
|
27736
27684
|
if (typeof e3.cwd !== "string") {
|
27737
27685
|
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
|
27738
27686
|
}
|
27739
|
-
const r3 =
|
27740
|
-
const r4 =
|
27687
|
+
const r3 = await Promise.all([].concat(t3).map(async (t4) => {
|
27688
|
+
const r4 = await s.isDirectory(getPath(t4, e3.cwd));
|
27741
27689
|
return r4 ? getGlob(t4, e3) : t4;
|
27742
|
-
}))
|
27690
|
+
}));
|
27743
27691
|
return [].concat.apply([], r3);
|
27744
|
-
}
|
27692
|
+
};
|
27745
27693
|
t2.exports.sync = (t3, e3) => {
|
27746
|
-
e3 =
|
27694
|
+
e3 = { cwd: process.cwd(), ...e3 };
|
27747
27695
|
if (typeof e3.cwd !== "string") {
|
27748
27696
|
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
|
27749
27697
|
}
|
@@ -27788,24 +27736,24 @@ var require_globby = __commonJS({
|
|
27788
27736
|
return o.join(t3, e3);
|
27789
27737
|
};
|
27790
27738
|
const getIsIgnoredPredecate = (t3, e3) => (r3) => t3.ignores(a(o.relative(e3, ensureAbsolutePathForCwd(e3, r3.path || r3))));
|
27791
|
-
const getFile = (t3, e3) =>
|
27739
|
+
const getFile = async (t3, e3) => {
|
27792
27740
|
const r3 = o.join(e3, t3);
|
27793
|
-
const n2 =
|
27741
|
+
const n2 = await u(r3, "utf8");
|
27794
27742
|
return { cwd: e3, filePath: r3, content: n2 };
|
27795
|
-
}
|
27743
|
+
};
|
27796
27744
|
const getFileSync = (t3, e3) => {
|
27797
27745
|
const r3 = o.join(e3, t3);
|
27798
27746
|
const n2 = s.readFileSync(r3, "utf8");
|
27799
27747
|
return { cwd: e3, filePath: r3, content: n2 };
|
27800
27748
|
};
|
27801
27749
|
const normalizeOptions = ({ ignore: t3 = [], cwd: e3 = a(process.cwd()) } = {}) => ({ ignore: t3, cwd: e3 });
|
27802
|
-
t2.exports = (t3) =>
|
27750
|
+
t2.exports = async (t3) => {
|
27803
27751
|
t3 = normalizeOptions(t3);
|
27804
|
-
const e3 =
|
27805
|
-
const r3 =
|
27752
|
+
const e3 = await i("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
|
27753
|
+
const r3 = await Promise.all(e3.map((e4) => getFile(e4, t3.cwd)));
|
27806
27754
|
const n2 = reduceIgnore(r3);
|
27807
27755
|
return getIsIgnoredPredecate(n2, t3.cwd);
|
27808
|
-
}
|
27756
|
+
};
|
27809
27757
|
t2.exports.sync = (t3) => {
|
27810
27758
|
t3 = normalizeOptions(t3);
|
27811
27759
|
const e3 = i.sync("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
|
@@ -27836,7 +27784,7 @@ var require_globby = __commonJS({
|
|
27836
27784
|
let e3;
|
27837
27785
|
try {
|
27838
27786
|
e3 = n.statSync(t3.cwd);
|
27839
|
-
} catch
|
27787
|
+
} catch {
|
27840
27788
|
return;
|
27841
27789
|
}
|
27842
27790
|
if (!e3.isDirectory()) {
|
@@ -27849,13 +27797,13 @@ var require_globby = __commonJS({
|
|
27849
27797
|
assertPatternsInput(t3);
|
27850
27798
|
checkCwdOption(e3);
|
27851
27799
|
const r3 = [];
|
27852
|
-
e3 =
|
27800
|
+
e3 = { ignore: [], expandDirectories: true, ...e3 };
|
27853
27801
|
for (const [n2, s2] of t3.entries()) {
|
27854
27802
|
if (isNegative(s2)) {
|
27855
27803
|
continue;
|
27856
27804
|
}
|
27857
27805
|
const o2 = t3.slice(n2).filter((t4) => isNegative(t4)).map((t4) => t4.slice(1));
|
27858
|
-
const i2 =
|
27806
|
+
const i2 = { ...e3, ignore: e3.ignore.concat(o2) };
|
27859
27807
|
r3.push({ pattern: s2, options: i2 });
|
27860
27808
|
}
|
27861
27809
|
return r3;
|
@@ -27866,9 +27814,9 @@ var require_globby = __commonJS({
|
|
27866
27814
|
r3.cwd = t3.options.cwd;
|
27867
27815
|
}
|
27868
27816
|
if (Array.isArray(t3.options.expandDirectories)) {
|
27869
|
-
r3 =
|
27817
|
+
r3 = { ...r3, files: t3.options.expandDirectories };
|
27870
27818
|
} else if (typeof t3.options.expandDirectories === "object") {
|
27871
|
-
r3 =
|
27819
|
+
r3 = { ...r3, ...t3.options.expandDirectories };
|
27872
27820
|
}
|
27873
27821
|
return e3(t3.pattern, r3);
|
27874
27822
|
};
|
@@ -27881,22 +27829,20 @@ var require_globby = __commonJS({
|
|
27881
27829
|
}
|
27882
27830
|
return { pattern: e3, options: r3 };
|
27883
27831
|
};
|
27884
|
-
t2.exports = (t3, e3) =>
|
27832
|
+
t2.exports = async (t3, e3) => {
|
27885
27833
|
const r3 = generateGlobTasks(t3, e3);
|
27886
|
-
const getFilter = () =>
|
27887
|
-
|
27888
|
-
|
27889
|
-
|
27890
|
-
const t4 = yield Promise.all(r3.map((t5) => __async(exports, null, function* () {
|
27891
|
-
const e4 = yield getPattern(t5, c);
|
27834
|
+
const getFilter = async () => e3 && e3.gitignore ? a({ cwd: e3.cwd, ignore: e3.ignore }) : DEFAULT_FILTER;
|
27835
|
+
const getTasks = async () => {
|
27836
|
+
const t4 = await Promise.all(r3.map(async (t5) => {
|
27837
|
+
const e4 = await getPattern(t5, c);
|
27892
27838
|
return Promise.all(e4.map(globToTask(t5)));
|
27893
|
-
}))
|
27839
|
+
}));
|
27894
27840
|
return s(...t4);
|
27895
|
-
}
|
27896
|
-
const [n2, o2] =
|
27897
|
-
const p2 =
|
27841
|
+
};
|
27842
|
+
const [n2, o2] = await Promise.all([getFilter(), getTasks()]);
|
27843
|
+
const p2 = await Promise.all(o2.map((t4) => i(t4.pattern, t4.options)));
|
27898
27844
|
return s(...p2).filter((t4) => !n2(getPathString(t4)));
|
27899
|
-
}
|
27845
|
+
};
|
27900
27846
|
t2.exports.sync = (t3, e3) => {
|
27901
27847
|
const r3 = generateGlobTasks(t3, e3);
|
27902
27848
|
const n2 = [];
|
@@ -28250,21 +28196,19 @@ var require_globby = __commonJS({
|
|
28250
28196
|
"use strict";
|
28251
28197
|
const { promisify: n } = r2(837);
|
28252
28198
|
const s = r2(147);
|
28253
|
-
function isType4(t3, e3, r3) {
|
28254
|
-
|
28255
|
-
|
28256
|
-
|
28257
|
-
|
28258
|
-
|
28259
|
-
|
28260
|
-
|
28261
|
-
|
28262
|
-
|
28263
|
-
return false;
|
28264
|
-
}
|
28265
|
-
throw t4;
|
28199
|
+
async function isType4(t3, e3, r3) {
|
28200
|
+
if (typeof r3 !== "string") {
|
28201
|
+
throw new TypeError(`Expected a string, got ${typeof r3}`);
|
28202
|
+
}
|
28203
|
+
try {
|
28204
|
+
const o = await n(s[t3])(r3);
|
28205
|
+
return o[e3]();
|
28206
|
+
} catch (t4) {
|
28207
|
+
if (t4.code === "ENOENT") {
|
28208
|
+
return false;
|
28266
28209
|
}
|
28267
|
-
|
28210
|
+
throw t4;
|
28211
|
+
}
|
28268
28212
|
}
|
28269
28213
|
function isTypeSync(t3, e3, r3) {
|
28270
28214
|
if (typeof r3 !== "string") {
|
@@ -30639,15 +30583,15 @@ var require_gzip_size = __commonJS({
|
|
30639
30583
|
const i = t2(796);
|
30640
30584
|
const { promisify: a } = t2(837);
|
30641
30585
|
const s = t2(325);
|
30642
|
-
const getOptions = (e3) =>
|
30586
|
+
const getOptions = (e3) => ({ level: 9, ...e3 });
|
30643
30587
|
const p = a(i.gzip);
|
30644
|
-
e2.exports = (e3, r3) =>
|
30588
|
+
e2.exports = async (e3, r3) => {
|
30645
30589
|
if (!e3) {
|
30646
30590
|
return 0;
|
30647
30591
|
}
|
30648
|
-
const t3 =
|
30592
|
+
const t3 = await p(e3, getOptions(r3));
|
30649
30593
|
return t3.length;
|
30650
|
-
}
|
30594
|
+
};
|
30651
30595
|
e2.exports.sync = (e3, r3) => i.gzipSync(e3, getOptions(r3)).length;
|
30652
30596
|
e2.exports.stream = (e3) => {
|
30653
30597
|
const r3 = new o.PassThrough();
|
@@ -33609,12 +33553,10 @@ Expecting one of '${i3.join("', '")}'`);
|
|
33609
33553
|
this._parseCommand([], i3);
|
33610
33554
|
return this;
|
33611
33555
|
}
|
33612
|
-
parseAsync(t3, e3) {
|
33613
|
-
|
33614
|
-
|
33615
|
-
|
33616
|
-
return this;
|
33617
|
-
});
|
33556
|
+
async parseAsync(t3, e3) {
|
33557
|
+
const i3 = this._prepareUserArgs(t3, e3);
|
33558
|
+
await this._parseCommand([], i3);
|
33559
|
+
return this;
|
33618
33560
|
}
|
33619
33561
|
_executeSubCommand(t3, e3) {
|
33620
33562
|
e3 = e3.slice();
|
@@ -42285,9 +42227,10 @@ var require_parse = __commonJS({
|
|
42285
42227
|
var parse_comments = (prefix) => {
|
42286
42228
|
const comments = [];
|
42287
42229
|
while (current && (is("LineComment") || is("BlockComment"))) {
|
42288
|
-
const comment =
|
42230
|
+
const comment = {
|
42231
|
+
...current,
|
42289
42232
|
inline
|
42290
|
-
}
|
42233
|
+
};
|
42291
42234
|
comments.push(comment);
|
42292
42235
|
next();
|
42293
42236
|
}
|
@@ -49754,12 +49697,12 @@ var require_baseUI = __commonJS({
|
|
49754
49697
|
const ms = new MuteStream();
|
49755
49698
|
ms.pipe(opt.output || process.stdout);
|
49756
49699
|
const output2 = ms;
|
49757
|
-
return
|
49758
|
-
terminal: true
|
49759
|
-
|
49700
|
+
return {
|
49701
|
+
terminal: true,
|
49702
|
+
...opt,
|
49760
49703
|
input,
|
49761
49704
|
output: output2
|
49762
|
-
}
|
49705
|
+
};
|
49763
49706
|
}
|
49764
49707
|
module2.exports = UI;
|
49765
49708
|
}
|
@@ -61217,14 +61160,14 @@ var require_prompt = __commonJS({
|
|
61217
61160
|
}
|
61218
61161
|
run(questions, answers) {
|
61219
61162
|
if (_.isPlainObject(answers)) {
|
61220
|
-
this.answers =
|
61163
|
+
this.answers = { ...answers };
|
61221
61164
|
} else {
|
61222
61165
|
this.answers = {};
|
61223
61166
|
}
|
61224
61167
|
if (_.isPlainObject(questions)) {
|
61225
61168
|
questions = Object.values(questions).every(
|
61226
61169
|
(v) => _.isPlainObject(v) && v.name === void 0
|
61227
|
-
) ? Object.entries(questions).map(([name, question]) =>
|
61170
|
+
) ? Object.entries(questions).map(([name, question]) => ({ name, ...question })) : [questions];
|
61228
61171
|
}
|
61229
61172
|
const obs = Array.isArray(questions) ? from(questions) : questions;
|
61230
61173
|
this.process = obs.pipe(
|
@@ -61252,7 +61195,7 @@ var require_prompt = __commonJS({
|
|
61252
61195
|
return Promise.reject(error);
|
61253
61196
|
}
|
61254
61197
|
processQuestion(question) {
|
61255
|
-
question =
|
61198
|
+
question = { ...question };
|
61256
61199
|
return defer(() => {
|
61257
61200
|
const obs = of(question);
|
61258
61201
|
return obs.pipe(
|
@@ -64210,7 +64153,7 @@ var require_conversions = __commonJS({
|
|
64210
64153
|
return [c * 100, m * 100, y * 100, k * 100];
|
64211
64154
|
};
|
64212
64155
|
function comparativeDistance(x, y) {
|
64213
|
-
return
|
64156
|
+
return (x[0] - y[0]) ** 2 + (x[1] - y[1]) ** 2 + (x[2] - y[2]) ** 2;
|
64214
64157
|
}
|
64215
64158
|
convert.rgb.keyword = function(rgb) {
|
64216
64159
|
const reversed = reverseKeywords[rgb];
|
@@ -64236,9 +64179,9 @@ var require_conversions = __commonJS({
|
|
64236
64179
|
let r = rgb[0] / 255;
|
64237
64180
|
let g = rgb[1] / 255;
|
64238
64181
|
let b = rgb[2] / 255;
|
64239
|
-
r = r > 0.04045 ?
|
64240
|
-
g = g > 0.04045 ?
|
64241
|
-
b = b > 0.04045 ?
|
64182
|
+
r = r > 0.04045 ? ((r + 0.055) / 1.055) ** 2.4 : r / 12.92;
|
64183
|
+
g = g > 0.04045 ? ((g + 0.055) / 1.055) ** 2.4 : g / 12.92;
|
64184
|
+
b = b > 0.04045 ? ((b + 0.055) / 1.055) ** 2.4 : b / 12.92;
|
64242
64185
|
const x = r * 0.4124 + g * 0.3576 + b * 0.1805;
|
64243
64186
|
const y = r * 0.2126 + g * 0.7152 + b * 0.0722;
|
64244
64187
|
const z = r * 0.0193 + g * 0.1192 + b * 0.9505;
|
@@ -64252,9 +64195,9 @@ var require_conversions = __commonJS({
|
|
64252
64195
|
x /= 95.047;
|
64253
64196
|
y /= 100;
|
64254
64197
|
z /= 108.883;
|
64255
|
-
x = x > 8856e-6 ?
|
64256
|
-
y = y > 8856e-6 ?
|
64257
|
-
z = z > 8856e-6 ?
|
64198
|
+
x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
|
64199
|
+
y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
|
64200
|
+
z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
|
64258
64201
|
const l = 116 * y - 16;
|
64259
64202
|
const a = 500 * (x - y);
|
64260
64203
|
const b = 200 * (y - z);
|
@@ -64428,9 +64371,9 @@ var require_conversions = __commonJS({
|
|
64428
64371
|
r = x * 3.2406 + y * -1.5372 + z * -0.4986;
|
64429
64372
|
g = x * -0.9689 + y * 1.8758 + z * 0.0415;
|
64430
64373
|
b = x * 0.0557 + y * -0.204 + z * 1.057;
|
64431
|
-
r = r > 31308e-7 ? 1.055 *
|
64432
|
-
g = g > 31308e-7 ? 1.055 *
|
64433
|
-
b = b > 31308e-7 ? 1.055 *
|
64374
|
+
r = r > 31308e-7 ? 1.055 * r ** (1 / 2.4) - 0.055 : r * 12.92;
|
64375
|
+
g = g > 31308e-7 ? 1.055 * g ** (1 / 2.4) - 0.055 : g * 12.92;
|
64376
|
+
b = b > 31308e-7 ? 1.055 * b ** (1 / 2.4) - 0.055 : b * 12.92;
|
64434
64377
|
r = Math.min(Math.max(0, r), 1);
|
64435
64378
|
g = Math.min(Math.max(0, g), 1);
|
64436
64379
|
b = Math.min(Math.max(0, b), 1);
|
@@ -64443,9 +64386,9 @@ var require_conversions = __commonJS({
|
|
64443
64386
|
x /= 95.047;
|
64444
64387
|
y /= 100;
|
64445
64388
|
z /= 108.883;
|
64446
|
-
x = x > 8856e-6 ?
|
64447
|
-
y = y > 8856e-6 ?
|
64448
|
-
z = z > 8856e-6 ?
|
64389
|
+
x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
|
64390
|
+
y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
|
64391
|
+
z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
|
64449
64392
|
const l = 116 * y - 16;
|
64450
64393
|
const a = 500 * (x - y);
|
64451
64394
|
const b = 200 * (y - z);
|
@@ -64461,9 +64404,9 @@ var require_conversions = __commonJS({
|
|
64461
64404
|
y = (l + 16) / 116;
|
64462
64405
|
x = a / 500 + y;
|
64463
64406
|
z = y - b / 200;
|
64464
|
-
const y2 =
|
64465
|
-
const x2 =
|
64466
|
-
const z2 =
|
64407
|
+
const y2 = y ** 3;
|
64408
|
+
const x2 = x ** 3;
|
64409
|
+
const z2 = z ** 3;
|
64467
64410
|
y = y2 > 8856e-6 ? y2 : (y - 16 / 116) / 7.787;
|
64468
64411
|
x = x2 > 8856e-6 ? x2 : (x - 16 / 116) / 7.787;
|
64469
64412
|
z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787;
|
@@ -70367,12 +70310,13 @@ var require_ora2 = __commonJS({
|
|
70367
70310
|
text: options
|
70368
70311
|
};
|
70369
70312
|
}
|
70370
|
-
this.options =
|
70313
|
+
this.options = {
|
70371
70314
|
text: "",
|
70372
70315
|
color: "cyan",
|
70373
70316
|
stream: process.stderr,
|
70374
|
-
discardStdin: true
|
70375
|
-
|
70317
|
+
discardStdin: true,
|
70318
|
+
...options
|
70319
|
+
};
|
70376
70320
|
this.spinner = this.options.spinner;
|
70377
70321
|
this.color = this.options.color;
|
70378
70322
|
this.hideCursor = this.options.hideCursor !== false;
|
@@ -70589,14 +70533,14 @@ var require_ora2 = __commonJS({
|
|
70589
70533
|
}
|
70590
70534
|
const spinner = new Ora(options);
|
70591
70535
|
spinner.start();
|
70592
|
-
(() =>
|
70536
|
+
(async () => {
|
70593
70537
|
try {
|
70594
|
-
|
70538
|
+
await action2;
|
70595
70539
|
spinner.succeed();
|
70596
|
-
} catch
|
70540
|
+
} catch {
|
70597
70541
|
spinner.fail();
|
70598
70542
|
}
|
70599
|
-
})
|
70543
|
+
})();
|
70600
70544
|
return spinner;
|
70601
70545
|
};
|
70602
70546
|
}
|
@@ -82176,7 +82120,7 @@ var require_prompt2 = __commonJS({
|
|
82176
82120
|
if (_.isPlainObject(questions)) {
|
82177
82121
|
questions = Object.values(questions).every(
|
82178
82122
|
(v) => _.isPlainObject(v) && v.name === void 0
|
82179
|
-
) ? Object.entries(questions).map(([name, question]) =>
|
82123
|
+
) ? Object.entries(questions).map(([name, question]) => ({ name, ...question })) : [questions];
|
82180
82124
|
}
|
82181
82125
|
const obs = _.isArray(questions) ? from(questions) : questions;
|
82182
82126
|
this.process = obs.pipe(
|
@@ -84878,22 +84822,20 @@ var require_fs_extra2 = __commonJS({
|
|
84878
84822
|
const o = r2(17);
|
84879
84823
|
const c = r2(971);
|
84880
84824
|
const s = r2(95);
|
84881
|
-
const a = n(function emptyDir(e3) {
|
84882
|
-
|
84883
|
-
|
84884
|
-
|
84885
|
-
|
84886
|
-
|
84887
|
-
|
84888
|
-
|
84889
|
-
return Promise.all(t3.map((t4) => s.remove(o.join(e3, t4))));
|
84890
|
-
});
|
84825
|
+
const a = n(async function emptyDir(e3) {
|
84826
|
+
let t3;
|
84827
|
+
try {
|
84828
|
+
t3 = await i.readdir(e3);
|
84829
|
+
} catch {
|
84830
|
+
return c.mkdirs(e3);
|
84831
|
+
}
|
84832
|
+
return Promise.all(t3.map((t4) => s.remove(o.join(e3, t4))));
|
84891
84833
|
});
|
84892
84834
|
function emptyDirSync(e3) {
|
84893
84835
|
let t3;
|
84894
84836
|
try {
|
84895
84837
|
t3 = i.readdirSync(e3);
|
84896
|
-
} catch
|
84838
|
+
} catch {
|
84897
84839
|
return c.mkdirsSync(e3);
|
84898
84840
|
}
|
84899
84841
|
t3.forEach((t4) => {
|
@@ -84946,7 +84888,7 @@ var require_fs_extra2 = __commonJS({
|
|
84946
84888
|
let t3;
|
84947
84889
|
try {
|
84948
84890
|
t3 = o.statSync(e3);
|
84949
|
-
} catch
|
84891
|
+
} catch {
|
84950
84892
|
}
|
84951
84893
|
if (t3 && t3.isFile())
|
84952
84894
|
return;
|
@@ -85013,7 +84955,7 @@ var require_fs_extra2 = __commonJS({
|
|
85013
84955
|
let r3;
|
85014
84956
|
try {
|
85015
84957
|
r3 = o.lstatSync(t3);
|
85016
|
-
} catch
|
84958
|
+
} catch {
|
85017
84959
|
}
|
85018
84960
|
try {
|
85019
84961
|
const t4 = o.lstatSync(e3);
|
@@ -85108,7 +85050,7 @@ var require_fs_extra2 = __commonJS({
|
|
85108
85050
|
return t3;
|
85109
85051
|
try {
|
85110
85052
|
r3 = n.lstatSync(e3);
|
85111
|
-
} catch
|
85053
|
+
} catch {
|
85112
85054
|
return "file";
|
85113
85055
|
}
|
85114
85056
|
return r3 && r3.isDirectory() ? "dir" : "file";
|
@@ -85171,7 +85113,7 @@ var require_fs_extra2 = __commonJS({
|
|
85171
85113
|
let n2;
|
85172
85114
|
try {
|
85173
85115
|
n2 = o.lstatSync(t3);
|
85174
|
-
} catch
|
85116
|
+
} catch {
|
85175
85117
|
}
|
85176
85118
|
if (n2 && n2.isSymbolicLink()) {
|
85177
85119
|
const r4 = o.statSync(e3);
|
@@ -85246,7 +85188,7 @@ var require_fs_extra2 = __commonJS({
|
|
85246
85188
|
}
|
85247
85189
|
}, 81: (e2, t2, r2) => {
|
85248
85190
|
"use strict";
|
85249
|
-
e2.exports =
|
85191
|
+
e2.exports = { ...r2(812), ...r2(2), ...r2(708), ...r2(726), ...r2(779), ...r2(971), ...r2(511), ...r2(701), ...r2(725), ...r2(95) };
|
85250
85192
|
}, 779: (e2, t2, r2) => {
|
85251
85193
|
"use strict";
|
85252
85194
|
const n = r2(5).fromPromise;
|
@@ -85277,11 +85219,9 @@ var require_fs_extra2 = __commonJS({
|
|
85277
85219
|
"use strict";
|
85278
85220
|
const { stringify: n } = r2(208);
|
85279
85221
|
const { outputFile: i } = r2(701);
|
85280
|
-
function outputJson(
|
85281
|
-
|
85282
|
-
|
85283
|
-
yield i(e3, o, r3);
|
85284
|
-
});
|
85222
|
+
async function outputJson(e3, t3, r3 = {}) {
|
85223
|
+
const o = n(t3, r3);
|
85224
|
+
await i(e3, o, r3);
|
85285
85225
|
}
|
85286
85226
|
e2.exports = outputJson;
|
85287
85227
|
}, 971: (e2, t2, r2) => {
|
@@ -85298,12 +85238,12 @@ var require_fs_extra2 = __commonJS({
|
|
85298
85238
|
const t3 = { mode: 511 };
|
85299
85239
|
if (typeof e3 === "number")
|
85300
85240
|
return e3;
|
85301
|
-
return
|
85241
|
+
return { ...t3, ...e3 }.mode;
|
85302
85242
|
};
|
85303
|
-
e2.exports.makeDir = (e3, t3) =>
|
85243
|
+
e2.exports.makeDir = async (e3, t3) => {
|
85304
85244
|
i(e3);
|
85305
85245
|
return n.mkdir(e3, { mode: getMode(t3), recursive: true });
|
85306
|
-
}
|
85246
|
+
};
|
85307
85247
|
e2.exports.makeDirSync = (e3, t3) => {
|
85308
85248
|
i(e3);
|
85309
85249
|
return n.mkdirSync(e3, { mode: getMode(t3), recursive: true });
|
@@ -85721,7 +85661,7 @@ var require_fs_extra2 = __commonJS({
|
|
85721
85661
|
try {
|
85722
85662
|
const r4 = t3.rmdirSync(e3, t3);
|
85723
85663
|
return r4;
|
85724
|
-
} catch
|
85664
|
+
} catch {
|
85725
85665
|
}
|
85726
85666
|
} while (Date.now() - r3 < 500);
|
85727
85667
|
} else {
|
@@ -86620,28 +86560,26 @@ var require_fs_extra2 = __commonJS({
|
|
86620
86560
|
}
|
86621
86561
|
const i = r2(5);
|
86622
86562
|
const { stringify: o, stripBom: c } = r2(208);
|
86623
|
-
function _readFile(
|
86624
|
-
|
86625
|
-
|
86626
|
-
|
86627
|
-
|
86628
|
-
|
86629
|
-
|
86630
|
-
|
86631
|
-
|
86632
|
-
|
86633
|
-
|
86634
|
-
|
86635
|
-
|
86636
|
-
|
86637
|
-
|
86638
|
-
|
86639
|
-
|
86640
|
-
return null;
|
86641
|
-
}
|
86563
|
+
async function _readFile(e3, t3 = {}) {
|
86564
|
+
if (typeof t3 === "string") {
|
86565
|
+
t3 = { encoding: t3 };
|
86566
|
+
}
|
86567
|
+
const r3 = t3.fs || n;
|
86568
|
+
const o2 = "throws" in t3 ? t3.throws : true;
|
86569
|
+
let s2 = await i.fromCallback(r3.readFile)(e3, t3);
|
86570
|
+
s2 = c(s2);
|
86571
|
+
let a2;
|
86572
|
+
try {
|
86573
|
+
a2 = JSON.parse(s2, t3 ? t3.reviver : null);
|
86574
|
+
} catch (t4) {
|
86575
|
+
if (o2) {
|
86576
|
+
t4.message = `${e3}: ${t4.message}`;
|
86577
|
+
throw t4;
|
86578
|
+
} else {
|
86579
|
+
return null;
|
86642
86580
|
}
|
86643
|
-
|
86644
|
-
|
86581
|
+
}
|
86582
|
+
return a2;
|
86645
86583
|
}
|
86646
86584
|
const s = i.fromPromise(_readFile);
|
86647
86585
|
function readFileSync(e3, t3 = {}) {
|
@@ -86663,12 +86601,10 @@ var require_fs_extra2 = __commonJS({
|
|
86663
86601
|
}
|
86664
86602
|
}
|
86665
86603
|
}
|
86666
|
-
function _writeFile(
|
86667
|
-
|
86668
|
-
|
86669
|
-
|
86670
|
-
yield i.fromCallback(c2.writeFile)(e3, s2, r3);
|
86671
|
-
});
|
86604
|
+
async function _writeFile(e3, t3, r3 = {}) {
|
86605
|
+
const c2 = r3.fs || n;
|
86606
|
+
const s2 = o(t3, r3);
|
86607
|
+
await i.fromCallback(c2.writeFile)(e3, s2, r3);
|
86672
86608
|
}
|
86673
86609
|
const a = i.fromPromise(_writeFile);
|
86674
86610
|
function writeFileSync(e3, t3, r3 = {}) {
|
@@ -86896,11 +86832,11 @@ var require_chalk2 = __commonJS({
|
|
86896
86832
|
} };
|
86897
86833
|
}
|
86898
86834
|
const f = Object.defineProperties(() => {
|
86899
|
-
},
|
86835
|
+
}, { ...u, level: { enumerable: true, get() {
|
86900
86836
|
return this._generator.level;
|
86901
86837
|
}, set(e3) {
|
86902
86838
|
this._generator.level = e3;
|
86903
|
-
} } })
|
86839
|
+
} } });
|
86904
86840
|
const createStyler = (e3, t3, n3) => {
|
86905
86841
|
let r2;
|
86906
86842
|
let s2;
|
@@ -87211,7 +87147,7 @@ var require_chalk2 = __commonJS({
|
|
87211
87147
|
return [o2 * 100, l * 100, c * 100, s2 * 100];
|
87212
87148
|
};
|
87213
87149
|
function comparativeDistance(e3, t3) {
|
87214
|
-
return
|
87150
|
+
return (e3[0] - t3[0]) ** 2 + (e3[1] - t3[1]) ** 2 + (e3[2] - t3[2]) ** 2;
|
87215
87151
|
}
|
87216
87152
|
o.rgb.keyword = function(e3) {
|
87217
87153
|
const t3 = s[e3];
|
@@ -87237,9 +87173,9 @@ var require_chalk2 = __commonJS({
|
|
87237
87173
|
let t3 = e3[0] / 255;
|
87238
87174
|
let n3 = e3[1] / 255;
|
87239
87175
|
let r2 = e3[2] / 255;
|
87240
|
-
t3 = t3 > 0.04045 ?
|
87241
|
-
n3 = n3 > 0.04045 ?
|
87242
|
-
r2 = r2 > 0.04045 ?
|
87176
|
+
t3 = t3 > 0.04045 ? ((t3 + 0.055) / 1.055) ** 2.4 : t3 / 12.92;
|
87177
|
+
n3 = n3 > 0.04045 ? ((n3 + 0.055) / 1.055) ** 2.4 : n3 / 12.92;
|
87178
|
+
r2 = r2 > 0.04045 ? ((r2 + 0.055) / 1.055) ** 2.4 : r2 / 12.92;
|
87243
87179
|
const s2 = t3 * 0.4124 + n3 * 0.3576 + r2 * 0.1805;
|
87244
87180
|
const o2 = t3 * 0.2126 + n3 * 0.7152 + r2 * 0.0722;
|
87245
87181
|
const l = t3 * 0.0193 + n3 * 0.1192 + r2 * 0.9505;
|
@@ -87253,9 +87189,9 @@ var require_chalk2 = __commonJS({
|
|
87253
87189
|
n3 /= 95.047;
|
87254
87190
|
r2 /= 100;
|
87255
87191
|
s2 /= 108.883;
|
87256
|
-
n3 = n3 > 8856e-6 ?
|
87257
|
-
r2 = r2 > 8856e-6 ?
|
87258
|
-
s2 = s2 > 8856e-6 ?
|
87192
|
+
n3 = n3 > 8856e-6 ? n3 ** (1 / 3) : 7.787 * n3 + 16 / 116;
|
87193
|
+
r2 = r2 > 8856e-6 ? r2 ** (1 / 3) : 7.787 * r2 + 16 / 116;
|
87194
|
+
s2 = s2 > 8856e-6 ? s2 ** (1 / 3) : 7.787 * s2 + 16 / 116;
|
87259
87195
|
const l = 116 * r2 - 16;
|
87260
87196
|
const c = 500 * (n3 - r2);
|
87261
87197
|
const i = 200 * (r2 - s2);
|
@@ -87429,9 +87365,9 @@ var require_chalk2 = __commonJS({
|
|
87429
87365
|
s2 = t3 * 3.2406 + n3 * -1.5372 + r2 * -0.4986;
|
87430
87366
|
o2 = t3 * -0.9689 + n3 * 1.8758 + r2 * 0.0415;
|
87431
87367
|
l = t3 * 0.0557 + n3 * -0.204 + r2 * 1.057;
|
87432
|
-
s2 = s2 > 31308e-7 ? 1.055 *
|
87433
|
-
o2 = o2 > 31308e-7 ? 1.055 *
|
87434
|
-
l = l > 31308e-7 ? 1.055 *
|
87368
|
+
s2 = s2 > 31308e-7 ? 1.055 * s2 ** (1 / 2.4) - 0.055 : s2 * 12.92;
|
87369
|
+
o2 = o2 > 31308e-7 ? 1.055 * o2 ** (1 / 2.4) - 0.055 : o2 * 12.92;
|
87370
|
+
l = l > 31308e-7 ? 1.055 * l ** (1 / 2.4) - 0.055 : l * 12.92;
|
87435
87371
|
s2 = Math.min(Math.max(0, s2), 1);
|
87436
87372
|
o2 = Math.min(Math.max(0, o2), 1);
|
87437
87373
|
l = Math.min(Math.max(0, l), 1);
|
@@ -87444,9 +87380,9 @@ var require_chalk2 = __commonJS({
|
|
87444
87380
|
t3 /= 95.047;
|
87445
87381
|
n3 /= 100;
|
87446
87382
|
r2 /= 108.883;
|
87447
|
-
t3 = t3 > 8856e-6 ?
|
87448
|
-
n3 = n3 > 8856e-6 ?
|
87449
|
-
r2 = r2 > 8856e-6 ?
|
87383
|
+
t3 = t3 > 8856e-6 ? t3 ** (1 / 3) : 7.787 * t3 + 16 / 116;
|
87384
|
+
n3 = n3 > 8856e-6 ? n3 ** (1 / 3) : 7.787 * n3 + 16 / 116;
|
87385
|
+
r2 = r2 > 8856e-6 ? r2 ** (1 / 3) : 7.787 * r2 + 16 / 116;
|
87450
87386
|
const s2 = 116 * n3 - 16;
|
87451
87387
|
const o2 = 500 * (t3 - n3);
|
87452
87388
|
const l = 200 * (n3 - r2);
|
@@ -87462,9 +87398,9 @@ var require_chalk2 = __commonJS({
|
|
87462
87398
|
o2 = (t3 + 16) / 116;
|
87463
87399
|
s2 = n3 / 500 + o2;
|
87464
87400
|
l = o2 - r2 / 200;
|
87465
|
-
const c =
|
87466
|
-
const i =
|
87467
|
-
const a =
|
87401
|
+
const c = o2 ** 3;
|
87402
|
+
const i = s2 ** 3;
|
87403
|
+
const a = l ** 3;
|
87468
87404
|
o2 = c > 8856e-6 ? c : (o2 - 16 / 116) / 7.787;
|
87469
87405
|
s2 = i > 8856e-6 ? i : (s2 - 16 / 116) / 7.787;
|
87470
87406
|
l = a > 8856e-6 ? a : (l - 16 / 116) / 7.787;
|
@@ -88720,7 +88656,7 @@ var require_ora3 = __commonJS({
|
|
88720
88656
|
if (typeof e3 === "string") {
|
88721
88657
|
e3 = { text: e3 };
|
88722
88658
|
}
|
88723
|
-
this.options =
|
88659
|
+
this.options = { text: "", color: "cyan", stream: process.stderr, discardStdin: true, ...e3 };
|
88724
88660
|
this.spinner = this.options.spinner;
|
88725
88661
|
this.color = this.options.color;
|
88726
88662
|
this.hideCursor = this.options.hideCursor !== false;
|
@@ -88937,14 +88873,14 @@ var require_ora3 = __commonJS({
|
|
88937
88873
|
}
|
88938
88874
|
const r3 = new Ora(t3);
|
88939
88875
|
r3.start();
|
88940
|
-
(() =>
|
88876
|
+
(async () => {
|
88941
88877
|
try {
|
88942
|
-
|
88878
|
+
await e3;
|
88943
88879
|
r3.succeed();
|
88944
|
-
} catch
|
88880
|
+
} catch {
|
88945
88881
|
r3.fail();
|
88946
88882
|
}
|
88947
|
-
})
|
88883
|
+
})();
|
88948
88884
|
return r3;
|
88949
88885
|
};
|
88950
88886
|
}, 959: (e2) => {
|
@@ -97364,7 +97300,7 @@ var require_execa2 = __commonJS({
|
|
97364
97300
|
const { joinCommand: w, parseCommand: E, getEscapedCommand: I } = n2(192);
|
97365
97301
|
const T = 1e3 * 1e3 * 100;
|
97366
97302
|
const getEnv = ({ env: e3, extendEnv: t3, preferLocal: n3, localDir: r2, execPath: o2 }) => {
|
97367
|
-
const s2 = t3 ?
|
97303
|
+
const s2 = t3 ? { ...process.env, ...e3 } : e3;
|
97368
97304
|
if (n3) {
|
97369
97305
|
return a.env({ env: s2, cwd: r2, execPath: o2 });
|
97370
97306
|
}
|
@@ -97375,7 +97311,7 @@ var require_execa2 = __commonJS({
|
|
97375
97311
|
e3 = o2.command;
|
97376
97312
|
t3 = o2.args;
|
97377
97313
|
n3 = o2.options;
|
97378
|
-
n3 =
|
97314
|
+
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 };
|
97379
97315
|
n3.env = getEnv(n3);
|
97380
97316
|
n3.stdio = u(n3);
|
97381
97317
|
if (process.platform === "win32" && r.basename(e3, ".exe") === "cmd") {
|
@@ -97411,8 +97347,8 @@ var require_execa2 = __commonJS({
|
|
97411
97347
|
const T2 = { isCanceled: false };
|
97412
97348
|
a2.kill = l.bind(null, a2.kill.bind(a2));
|
97413
97349
|
a2.cancel = f.bind(null, a2, T2);
|
97414
|
-
const handlePromise = () =>
|
97415
|
-
const [{ error: e4, exitCode: t4, signal: n4, timedOut: o2 }, c2, u3, l2] =
|
97350
|
+
const handlePromise = async () => {
|
97351
|
+
const [{ error: e4, exitCode: t4, signal: n4, timedOut: o2 }, c2, u3, l2] = await h(a2, r2.options, E2);
|
97416
97352
|
const f2 = handleOutput(r2.options, c2);
|
97417
97353
|
const p2 = handleOutput(r2.options, u3);
|
97418
97354
|
const m2 = handleOutput(r2.options, l2);
|
@@ -97424,7 +97360,7 @@ var require_execa2 = __commonJS({
|
|
97424
97360
|
throw c3;
|
97425
97361
|
}
|
97426
97362
|
return { command: s2, escapedCommand: i2, exitCode: 0, stdout: f2, stderr: p2, all: m2, failed: false, timedOut: false, isCanceled: false, killed: false };
|
97427
|
-
}
|
97363
|
+
};
|
97428
97364
|
const C = c(handlePromise);
|
97429
97365
|
x(a2, r2.options.input);
|
97430
97366
|
a2.all = y(a2, r2.options);
|
@@ -97469,7 +97405,7 @@ var require_execa2 = __commonJS({
|
|
97469
97405
|
const r2 = u.node(n3);
|
97470
97406
|
const o2 = process.execArgv.filter((e4) => !e4.startsWith("--inspect"));
|
97471
97407
|
const { nodePath: s2 = process.execPath, nodeOptions: i2 = o2 } = n3;
|
97472
|
-
return execa3(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []],
|
97408
|
+
return execa3(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []], { ...n3, stdin: void 0, stdout: void 0, stderr: void 0, stdio: r2, shell: false });
|
97473
97409
|
};
|
97474
97410
|
}, 192: (e2) => {
|
97475
97411
|
"use strict";
|
@@ -97625,7 +97561,7 @@ ${o.message}` : x;
|
|
97625
97561
|
throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e3}\` (${typeof e3})`);
|
97626
97562
|
}
|
97627
97563
|
};
|
97628
|
-
const setExitHandler =
|
97564
|
+
const setExitHandler = async (e3, { cleanup: t3, detached: n3 }, r2) => {
|
97629
97565
|
if (!t3 || n3) {
|
97630
97566
|
return r2;
|
97631
97567
|
}
|
@@ -97635,17 +97571,17 @@ ${o.message}` : x;
|
|
97635
97571
|
return r2.finally(() => {
|
97636
97572
|
s2();
|
97637
97573
|
});
|
97638
|
-
}
|
97574
|
+
};
|
97639
97575
|
e2.exports = { spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler };
|
97640
97576
|
}, 210: (e2) => {
|
97641
97577
|
"use strict";
|
97642
|
-
const t2 = (() =>
|
97643
|
-
})
|
97578
|
+
const t2 = (async () => {
|
97579
|
+
})().constructor.prototype;
|
97644
97580
|
const n2 = ["then", "catch", "finally"].map((e3) => [e3, Reflect.getOwnPropertyDescriptor(t2, e3)]);
|
97645
97581
|
const mergePromise = (e3, t3) => {
|
97646
97582
|
for (const [r, o] of n2) {
|
97647
97583
|
const n3 = typeof t3 === "function" ? (...e4) => Reflect.apply(o.value, t3(), e4) : o.value.bind(t3);
|
97648
|
-
Reflect.defineProperty(e3, r,
|
97584
|
+
Reflect.defineProperty(e3, r, { ...o, value: n3 });
|
97649
97585
|
}
|
97650
97586
|
return e3;
|
97651
97587
|
};
|
@@ -97729,17 +97665,17 @@ ${o.message}` : x;
|
|
97729
97665
|
}
|
97730
97666
|
return n3;
|
97731
97667
|
};
|
97732
|
-
const getBufferedData = (e3, t3) =>
|
97668
|
+
const getBufferedData = async (e3, t3) => {
|
97733
97669
|
if (!e3) {
|
97734
97670
|
return;
|
97735
97671
|
}
|
97736
97672
|
e3.destroy();
|
97737
97673
|
try {
|
97738
|
-
return
|
97674
|
+
return await t3;
|
97739
97675
|
} catch (e4) {
|
97740
97676
|
return e4.bufferedData;
|
97741
97677
|
}
|
97742
|
-
}
|
97678
|
+
};
|
97743
97679
|
const getStreamPromise = (e3, { encoding: t3, buffer: n3, maxBuffer: r2 }) => {
|
97744
97680
|
if (!e3 || !n3) {
|
97745
97681
|
return;
|
@@ -97749,16 +97685,16 @@ ${o.message}` : x;
|
|
97749
97685
|
}
|
97750
97686
|
return o.buffer(e3, { maxBuffer: r2 });
|
97751
97687
|
};
|
97752
|
-
const getSpawnedResult =
|
97688
|
+
const getSpawnedResult = async ({ stdout: e3, stderr: t3, all: n3 }, { encoding: r2, buffer: o2, maxBuffer: s2 }, i) => {
|
97753
97689
|
const a = getStreamPromise(e3, { encoding: r2, buffer: o2, maxBuffer: s2 });
|
97754
97690
|
const c = getStreamPromise(t3, { encoding: r2, buffer: o2, maxBuffer: s2 });
|
97755
97691
|
const d = getStreamPromise(n3, { encoding: r2, buffer: o2, maxBuffer: s2 * 2 });
|
97756
97692
|
try {
|
97757
|
-
return
|
97693
|
+
return await Promise.all([i, a, c, d]);
|
97758
97694
|
} catch (r3) {
|
97759
97695
|
return Promise.all([{ error: r3, signal: r3.signal, timedOut: r3.timedOut }, getBufferedData(e3, a), getBufferedData(t3, c), getBufferedData(n3, d)]);
|
97760
97696
|
}
|
97761
|
-
}
|
97697
|
+
};
|
97762
97698
|
const validateInputSync = ({ input: e3 }) => {
|
97763
97699
|
if (r(e3)) {
|
97764
97700
|
throw new TypeError("The `input` option cannot be a stream in sync mode");
|
@@ -97769,7 +97705,7 @@ ${o.message}` : x;
|
|
97769
97705
|
"use strict";
|
97770
97706
|
const { PassThrough: r } = n2(781);
|
97771
97707
|
e2.exports = (e3) => {
|
97772
|
-
e3 =
|
97708
|
+
e3 = { ...e3 };
|
97773
97709
|
const { array: t3 } = e3;
|
97774
97710
|
let { encoding: n3 } = e3;
|
97775
97711
|
const o = n3 === "buffer";
|
@@ -97818,41 +97754,39 @@ ${o.message}` : x;
|
|
97818
97754
|
this.name = "MaxBufferError";
|
97819
97755
|
}
|
97820
97756
|
}
|
97821
|
-
function getStream(e3, t3) {
|
97822
|
-
|
97823
|
-
|
97824
|
-
|
97825
|
-
|
97826
|
-
|
97827
|
-
|
97828
|
-
|
97829
|
-
|
97830
|
-
|
97831
|
-
|
97832
|
-
|
97833
|
-
|
97834
|
-
|
97835
|
-
|
97836
|
-
|
97837
|
-
|
97838
|
-
|
97839
|
-
|
97840
|
-
|
97841
|
-
|
97842
|
-
|
97843
|
-
|
97844
|
-
o2.
|
97845
|
-
|
97846
|
-
|
97847
|
-
}
|
97848
|
-
});
|
97757
|
+
async function getStream(e3, t3) {
|
97758
|
+
if (!e3) {
|
97759
|
+
throw new Error("Expected a stream");
|
97760
|
+
}
|
97761
|
+
t3 = { maxBuffer: Infinity, ...t3 };
|
97762
|
+
const { maxBuffer: n3 } = t3;
|
97763
|
+
const o2 = i(t3);
|
97764
|
+
await new Promise((t4, s2) => {
|
97765
|
+
const rejectPromise = (e4) => {
|
97766
|
+
if (e4 && o2.getBufferedLength() <= r.MAX_LENGTH) {
|
97767
|
+
e4.bufferedData = o2.getBufferedValue();
|
97768
|
+
}
|
97769
|
+
s2(e4);
|
97770
|
+
};
|
97771
|
+
(async () => {
|
97772
|
+
try {
|
97773
|
+
await a(e3, o2);
|
97774
|
+
t4();
|
97775
|
+
} catch (e4) {
|
97776
|
+
rejectPromise(e4);
|
97777
|
+
}
|
97778
|
+
})();
|
97779
|
+
o2.on("data", () => {
|
97780
|
+
if (o2.getBufferedLength() > n3) {
|
97781
|
+
rejectPromise(new MaxBufferError());
|
97782
|
+
}
|
97849
97783
|
});
|
97850
|
-
return o2.getBufferedValue();
|
97851
97784
|
});
|
97785
|
+
return o2.getBufferedValue();
|
97852
97786
|
}
|
97853
97787
|
e2.exports = getStream;
|
97854
|
-
e2.exports.buffer = (e3, t3) => getStream(e3,
|
97855
|
-
e2.exports.array = (e3, t3) => getStream(e3,
|
97788
|
+
e2.exports.buffer = (e3, t3) => getStream(e3, { ...t3, encoding: "buffer" });
|
97789
|
+
e2.exports.array = (e3, t3) => getStream(e3, { ...t3, array: true });
|
97856
97790
|
e2.exports.MaxBufferError = MaxBufferError;
|
97857
97791
|
}, 221: (e2, t2) => {
|
97858
97792
|
"use strict";
|
@@ -97872,7 +97806,7 @@ ${o.message}` : x;
|
|
97872
97806
|
return e3.reduce(getSignalByName, {});
|
97873
97807
|
};
|
97874
97808
|
const getSignalByName = function(e3, { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 }) {
|
97875
|
-
return
|
97809
|
+
return { ...e3, [t3]: { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 } };
|
97876
97810
|
};
|
97877
97811
|
const i = getSignalsByName();
|
97878
97812
|
t2.signalsByName = i;
|
@@ -98104,7 +98038,7 @@ ${o.message}` : x;
|
|
98104
98038
|
const r = n2(17);
|
98105
98039
|
const o = n2(460);
|
98106
98040
|
const npmRunPath = (e3) => {
|
98107
|
-
e3 =
|
98041
|
+
e3 = { cwd: process.cwd(), path: process.env[o()], execPath: process.execPath, ...e3 };
|
98108
98042
|
let t3;
|
98109
98043
|
let n3 = r.resolve(e3.cwd);
|
98110
98044
|
const s = [];
|
@@ -98120,8 +98054,8 @@ ${o.message}` : x;
|
|
98120
98054
|
e2.exports = npmRunPath;
|
98121
98055
|
e2.exports["default"] = npmRunPath;
|
98122
98056
|
e2.exports.env = (t3) => {
|
98123
|
-
t3 =
|
98124
|
-
const n3 =
|
98057
|
+
t3 = { env: process.env, ...t3 };
|
98058
|
+
const n3 = { ...t3.env };
|
98125
98059
|
const r2 = o({ env: n3 });
|
98126
98060
|
t3.path = n3[r2];
|
98127
98061
|
n3[r2] = e2.exports(t3);
|
@@ -99530,7 +99464,7 @@ var require_upath2 = __commonJS({
|
|
99530
99464
|
_.VERSION = typeof n !== "undefined" && n !== null ? n : "NO-VERSION";
|
99531
99465
|
p = function(e3) {
|
99532
99466
|
e3 = e3.replace(/\\/g, "/");
|
99533
|
-
e3 = e3.replace(
|
99467
|
+
e3 = e3.replace(/(?<!^)\/+/g, "/");
|
99534
99468
|
return e3;
|
99535
99469
|
};
|
99536
99470
|
for (c in o) {
|
@@ -99826,9 +99760,7 @@ var require_pkg_up2 = __commonJS({
|
|
99826
99760
|
};
|
99827
99761
|
}, 800: (e2, r2, n2) => {
|
99828
99762
|
const t = n2(485);
|
99829
|
-
e2.exports =
|
99830
|
-
return t("package.json", { cwd: e3 });
|
99831
|
-
});
|
99763
|
+
e2.exports = async ({ cwd: e3 } = {}) => t("package.json", { cwd: e3 });
|
99832
99764
|
e2.exports.sync = ({ cwd: e3 } = {}) => t.sync("package.json", { cwd: e3 });
|
99833
99765
|
}, 147: (e2) => {
|
99834
99766
|
e2.exports = require("fs");
|
@@ -102879,7 +102811,7 @@ var require_fast_glob2 = __commonJS({
|
|
102879
102811
|
}
|
102880
102812
|
if (t4.nodes && t4.ranges > 0) {
|
102881
102813
|
let r4 = s.reduce(t4.nodes);
|
102882
|
-
let i2 = n(...r4,
|
102814
|
+
let i2 = n(...r4, { ...e3, wrap: false, toRegex: true });
|
102883
102815
|
if (i2.length !== 0) {
|
102884
102816
|
return r4.length > 1 && i2.length > 1 ? `(${i2})` : i2;
|
102885
102817
|
}
|
@@ -103305,13 +103237,11 @@ var require_fast_glob2 = __commonJS({
|
|
103305
103237
|
const a = r2(1066);
|
103306
103238
|
const u = r2(7190);
|
103307
103239
|
const c = r2(3828);
|
103308
|
-
function FastGlob(t3, e3) {
|
103309
|
-
|
103310
|
-
|
103311
|
-
|
103312
|
-
|
103313
|
-
return c.array.flatten(n2);
|
103314
|
-
});
|
103240
|
+
async function FastGlob(t3, e3) {
|
103241
|
+
assertPatternsInput(t3);
|
103242
|
+
const r3 = getWorks(t3, i.default, e3);
|
103243
|
+
const n2 = await Promise.all(r3);
|
103244
|
+
return c.array.flatten(n2);
|
103315
103245
|
}
|
103316
103246
|
(function(t3) {
|
103317
103247
|
function sync(t4, e3) {
|
@@ -104482,7 +104412,7 @@ var require_fast_glob2 = __commonJS({
|
|
104482
104412
|
};
|
104483
104413
|
const toRange = (t3, e3, r3, n2) => {
|
104484
104414
|
if (r3) {
|
104485
|
-
return s(t3, e3,
|
104415
|
+
return s(t3, e3, { wrap: false, ...n2 });
|
104486
104416
|
}
|
104487
104417
|
let i = String.fromCharCode(t3);
|
104488
104418
|
if (t3 === e3)
|
@@ -104548,7 +104478,7 @@ var require_fast_glob2 = __commonJS({
|
|
104548
104478
|
g++;
|
104549
104479
|
}
|
104550
104480
|
if (n2.toRegex === true) {
|
104551
|
-
return r3 > 1 ? toSequence(d, n2) : toRegex(_, null,
|
104481
|
+
return r3 > 1 ? toSequence(d, n2) : toRegex(_, null, { wrap: false, ...n2 });
|
104552
104482
|
}
|
104553
104483
|
return _;
|
104554
104484
|
};
|
@@ -104590,7 +104520,7 @@ var require_fast_glob2 = __commonJS({
|
|
104590
104520
|
if (isObject4(r3)) {
|
104591
104521
|
return fill(t3, e3, 0, r3);
|
104592
104522
|
}
|
104593
|
-
let s2 =
|
104523
|
+
let s2 = { ...n2 };
|
104594
104524
|
if (s2.capture === true)
|
104595
104525
|
s2.wrap = true;
|
104596
104526
|
r3 = r3 || s2.step || 1;
|
@@ -104914,7 +104844,7 @@ var require_fast_glob2 = __commonJS({
|
|
104914
104844
|
}
|
104915
104845
|
};
|
104916
104846
|
for (let o3 = 0; o3 < e3.length; o3++) {
|
104917
|
-
let u2 = i(String(e3[o3]),
|
104847
|
+
let u2 = i(String(e3[o3]), { ...r3, onResult }, true);
|
104918
104848
|
let c2 = u2.state.negated || u2.state.negatedExtglob;
|
104919
104849
|
if (c2)
|
104920
104850
|
a++;
|
@@ -104956,7 +104886,7 @@ var require_fast_glob2 = __commonJS({
|
|
104956
104886
|
r3.onResult(t4);
|
104957
104887
|
s2.push(t4.output);
|
104958
104888
|
};
|
104959
|
-
let i2 = new Set(micromatch(t3, e3,
|
104889
|
+
let i2 = new Set(micromatch(t3, e3, { ...r3, onResult }));
|
104960
104890
|
for (let t4 of s2) {
|
104961
104891
|
if (!i2.has(t4)) {
|
104962
104892
|
n2.add(t4);
|
@@ -104979,7 +104909,7 @@ var require_fast_glob2 = __commonJS({
|
|
104979
104909
|
return true;
|
104980
104910
|
}
|
104981
104911
|
}
|
104982
|
-
return micromatch.isMatch(t3, e3,
|
104912
|
+
return micromatch.isMatch(t3, e3, { ...r3, contains: true });
|
104983
104913
|
};
|
104984
104914
|
micromatch.matchKeys = (t3, e3, r3) => {
|
104985
104915
|
if (!o.isObject(t3)) {
|
@@ -105019,7 +104949,7 @@ var require_fast_glob2 = __commonJS({
|
|
105019
104949
|
};
|
105020
104950
|
micromatch.capture = (t3, e3, r3) => {
|
105021
104951
|
let n2 = o.isWindows(r3);
|
105022
|
-
let s2 = i.makeRe(String(t3),
|
104952
|
+
let s2 = i.makeRe(String(t3), { ...r3, capture: true });
|
105023
104953
|
let a = s2.exec(n2 ? o.toPosixSlashes(e3) : e3);
|
105024
104954
|
if (a) {
|
105025
104955
|
return a.slice(1).map((t4) => t4 === void 0 ? "" : t4);
|
@@ -105047,7 +104977,7 @@ var require_fast_glob2 = __commonJS({
|
|
105047
104977
|
micromatch.braceExpand = (t3, e3) => {
|
105048
104978
|
if (typeof t3 !== "string")
|
105049
104979
|
throw new TypeError("Expected a string");
|
105050
|
-
return micromatch.braces(t3,
|
104980
|
+
return micromatch.braces(t3, { ...e3, expand: true });
|
105051
104981
|
};
|
105052
104982
|
t2.exports = micromatch;
|
105053
104983
|
}, 376: (t2, e2, r2) => {
|
@@ -105074,7 +105004,7 @@ var require_fast_glob2 = __commonJS({
|
|
105074
105004
|
const m = `[^.${c}]`;
|
105075
105005
|
const v = `${f}*?`;
|
105076
105006
|
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 };
|
105077
|
-
const A =
|
105007
|
+
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}]|$)` };
|
105078
105008
|
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" };
|
105079
105009
|
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) {
|
105080
105010
|
return { "!": { type: "negate", open: "(?:(?!(?:", close: `))${t3.STAR})` }, "?": { type: "qmark", open: "(?:", close: ")?" }, "+": { type: "plus", open: "(?:", close: ")+" }, "*": { type: "star", open: "(?:", close: ")*" }, "@": { type: "at", open: "(?:", close: ")" } };
|
@@ -105105,7 +105035,7 @@ var require_fast_glob2 = __commonJS({
|
|
105105
105035
|
throw new TypeError("Expected a string");
|
105106
105036
|
}
|
105107
105037
|
t3 = c[t3] || t3;
|
105108
|
-
const r3 =
|
105038
|
+
const r3 = { ...e3 };
|
105109
105039
|
const l = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
|
105110
105040
|
let f = t3.length;
|
105111
105041
|
if (f > l) {
|
@@ -105197,7 +105127,7 @@ var require_fast_glob2 = __commonJS({
|
|
105197
105127
|
M = t4;
|
105198
105128
|
};
|
105199
105129
|
const extglobOpen = (t4, e4) => {
|
105200
|
-
const n2 =
|
105130
|
+
const n2 = { ...y[e4], conditions: 1, inner: "" };
|
105201
105131
|
n2.prev = M;
|
105202
105132
|
n2.parens = H.parens;
|
105203
105133
|
n2.output = H.output;
|
@@ -105219,7 +105149,7 @@ var require_fast_glob2 = __commonJS({
|
|
105219
105149
|
n2 = t4.close = `)$))${i2}`;
|
105220
105150
|
}
|
105221
105151
|
if (t4.inner.includes("*") && (s2 = remaining()) && /^\.[^\\/.]+$/.test(s2)) {
|
105222
|
-
const r4 = parse3(s2,
|
105152
|
+
const r4 = parse3(s2, { ...e3, fastpaths: false }).output;
|
105223
105153
|
n2 = t4.close = `)${r4})${i2})`;
|
105224
105154
|
}
|
105225
105155
|
if (t4.prev.type === "bos") {
|
@@ -105741,7 +105671,7 @@ var require_fast_glob2 = __commonJS({
|
|
105741
105671
|
return H;
|
105742
105672
|
};
|
105743
105673
|
parse3.fastpaths = (t3, e3) => {
|
105744
|
-
const r3 =
|
105674
|
+
const r3 = { ...e3 };
|
105745
105675
|
const o2 = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
|
105746
105676
|
const a2 = t3.length;
|
105747
105677
|
if (a2 > o2) {
|
@@ -105832,7 +105762,7 @@ var require_fast_glob2 = __commonJS({
|
|
105832
105762
|
delete a2.state;
|
105833
105763
|
let isIgnored = () => false;
|
105834
105764
|
if (s2.ignore) {
|
105835
|
-
const t4 =
|
105765
|
+
const t4 = { ...e3, ignore: null, onMatch: null, onResult: null };
|
105836
105766
|
isIgnored = picomatch(s2.ignore, t4, r3);
|
105837
105767
|
}
|
105838
105768
|
const matcher = (r4, n3 = false) => {
|
@@ -105894,7 +105824,7 @@ var require_fast_glob2 = __commonJS({
|
|
105894
105824
|
picomatch.parse = (t3, e3) => {
|
105895
105825
|
if (Array.isArray(t3))
|
105896
105826
|
return t3.map((t4) => picomatch.parse(t4, e3));
|
105897
|
-
return i(t3,
|
105827
|
+
return i(t3, { ...e3, fastpaths: false });
|
105898
105828
|
};
|
105899
105829
|
picomatch.scan = (t3, e3) => s(t3, e3);
|
105900
105830
|
picomatch.compileRe = (t3, e3, r3 = false, n2 = false) => {
|
@@ -106359,7 +106289,7 @@ var require_fast_glob2 = __commonJS({
|
|
106359
106289
|
if (n(e3) === false) {
|
106360
106290
|
throw new TypeError("toRegexRange: expected the second argument to be a number.");
|
106361
106291
|
}
|
106362
|
-
let s =
|
106292
|
+
let s = { relaxZeros: true, ...r3 };
|
106363
106293
|
if (typeof s.strictZeros === "boolean") {
|
106364
106294
|
s.relaxZeros = s.strictZeros === false;
|
106365
106295
|
}
|
@@ -106637,19 +106567,19 @@ var require_globby2 = __commonJS({
|
|
106637
106567
|
}
|
106638
106568
|
return [n.posix.join(t3, "**")];
|
106639
106569
|
};
|
106640
|
-
t2.exports = (t3, e3) =>
|
106641
|
-
e3 =
|
106570
|
+
t2.exports = async (t3, e3) => {
|
106571
|
+
e3 = { cwd: process.cwd(), ...e3 };
|
106642
106572
|
if (typeof e3.cwd !== "string") {
|
106643
106573
|
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
|
106644
106574
|
}
|
106645
|
-
const r3 =
|
106646
|
-
const r4 =
|
106575
|
+
const r3 = await Promise.all([].concat(t3).map(async (t4) => {
|
106576
|
+
const r4 = await s.isDirectory(getPath(t4, e3.cwd));
|
106647
106577
|
return r4 ? getGlob(t4, e3) : t4;
|
106648
|
-
}))
|
106578
|
+
}));
|
106649
106579
|
return [].concat.apply([], r3);
|
106650
|
-
}
|
106580
|
+
};
|
106651
106581
|
t2.exports.sync = (t3, e3) => {
|
106652
|
-
e3 =
|
106582
|
+
e3 = { cwd: process.cwd(), ...e3 };
|
106653
106583
|
if (typeof e3.cwd !== "string") {
|
106654
106584
|
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
|
106655
106585
|
}
|
@@ -106694,24 +106624,24 @@ var require_globby2 = __commonJS({
|
|
106694
106624
|
return o.join(t3, e3);
|
106695
106625
|
};
|
106696
106626
|
const getIsIgnoredPredecate = (t3, e3) => (r3) => t3.ignores(a(o.relative(e3, ensureAbsolutePathForCwd(e3, r3.path || r3))));
|
106697
|
-
const getFile = (t3, e3) =>
|
106627
|
+
const getFile = async (t3, e3) => {
|
106698
106628
|
const r3 = o.join(e3, t3);
|
106699
|
-
const n2 =
|
106629
|
+
const n2 = await u(r3, "utf8");
|
106700
106630
|
return { cwd: e3, filePath: r3, content: n2 };
|
106701
|
-
}
|
106631
|
+
};
|
106702
106632
|
const getFileSync = (t3, e3) => {
|
106703
106633
|
const r3 = o.join(e3, t3);
|
106704
106634
|
const n2 = s.readFileSync(r3, "utf8");
|
106705
106635
|
return { cwd: e3, filePath: r3, content: n2 };
|
106706
106636
|
};
|
106707
106637
|
const normalizeOptions = ({ ignore: t3 = [], cwd: e3 = a(process.cwd()) } = {}) => ({ ignore: t3, cwd: e3 });
|
106708
|
-
t2.exports = (t3) =>
|
106638
|
+
t2.exports = async (t3) => {
|
106709
106639
|
t3 = normalizeOptions(t3);
|
106710
|
-
const e3 =
|
106711
|
-
const r3 =
|
106640
|
+
const e3 = await i("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
|
106641
|
+
const r3 = await Promise.all(e3.map((e4) => getFile(e4, t3.cwd)));
|
106712
106642
|
const n2 = reduceIgnore(r3);
|
106713
106643
|
return getIsIgnoredPredecate(n2, t3.cwd);
|
106714
|
-
}
|
106644
|
+
};
|
106715
106645
|
t2.exports.sync = (t3) => {
|
106716
106646
|
t3 = normalizeOptions(t3);
|
106717
106647
|
const e3 = i.sync("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
|
@@ -106742,7 +106672,7 @@ var require_globby2 = __commonJS({
|
|
106742
106672
|
let e3;
|
106743
106673
|
try {
|
106744
106674
|
e3 = n.statSync(t3.cwd);
|
106745
|
-
} catch
|
106675
|
+
} catch {
|
106746
106676
|
return;
|
106747
106677
|
}
|
106748
106678
|
if (!e3.isDirectory()) {
|
@@ -106755,13 +106685,13 @@ var require_globby2 = __commonJS({
|
|
106755
106685
|
assertPatternsInput(t3);
|
106756
106686
|
checkCwdOption(e3);
|
106757
106687
|
const r3 = [];
|
106758
|
-
e3 =
|
106688
|
+
e3 = { ignore: [], expandDirectories: true, ...e3 };
|
106759
106689
|
for (const [n2, s2] of t3.entries()) {
|
106760
106690
|
if (isNegative(s2)) {
|
106761
106691
|
continue;
|
106762
106692
|
}
|
106763
106693
|
const o2 = t3.slice(n2).filter((t4) => isNegative(t4)).map((t4) => t4.slice(1));
|
106764
|
-
const i2 =
|
106694
|
+
const i2 = { ...e3, ignore: e3.ignore.concat(o2) };
|
106765
106695
|
r3.push({ pattern: s2, options: i2 });
|
106766
106696
|
}
|
106767
106697
|
return r3;
|
@@ -106772,9 +106702,9 @@ var require_globby2 = __commonJS({
|
|
106772
106702
|
r3.cwd = t3.options.cwd;
|
106773
106703
|
}
|
106774
106704
|
if (Array.isArray(t3.options.expandDirectories)) {
|
106775
|
-
r3 =
|
106705
|
+
r3 = { ...r3, files: t3.options.expandDirectories };
|
106776
106706
|
} else if (typeof t3.options.expandDirectories === "object") {
|
106777
|
-
r3 =
|
106707
|
+
r3 = { ...r3, ...t3.options.expandDirectories };
|
106778
106708
|
}
|
106779
106709
|
return e3(t3.pattern, r3);
|
106780
106710
|
};
|
@@ -106787,22 +106717,20 @@ var require_globby2 = __commonJS({
|
|
106787
106717
|
}
|
106788
106718
|
return { pattern: e3, options: r3 };
|
106789
106719
|
};
|
106790
|
-
t2.exports = (t3, e3) =>
|
106720
|
+
t2.exports = async (t3, e3) => {
|
106791
106721
|
const r3 = generateGlobTasks(t3, e3);
|
106792
|
-
const getFilter = () =>
|
106793
|
-
|
106794
|
-
|
106795
|
-
|
106796
|
-
const t4 = yield Promise.all(r3.map((t5) => __async(exports, null, function* () {
|
106797
|
-
const e4 = yield getPattern(t5, c);
|
106722
|
+
const getFilter = async () => e3 && e3.gitignore ? a({ cwd: e3.cwd, ignore: e3.ignore }) : DEFAULT_FILTER;
|
106723
|
+
const getTasks = async () => {
|
106724
|
+
const t4 = await Promise.all(r3.map(async (t5) => {
|
106725
|
+
const e4 = await getPattern(t5, c);
|
106798
106726
|
return Promise.all(e4.map(globToTask(t5)));
|
106799
|
-
}))
|
106727
|
+
}));
|
106800
106728
|
return s(...t4);
|
106801
|
-
}
|
106802
|
-
const [n2, o2] =
|
106803
|
-
const p2 =
|
106729
|
+
};
|
106730
|
+
const [n2, o2] = await Promise.all([getFilter(), getTasks()]);
|
106731
|
+
const p2 = await Promise.all(o2.map((t4) => i(t4.pattern, t4.options)));
|
106804
106732
|
return s(...p2).filter((t4) => !n2(getPathString(t4)));
|
106805
|
-
}
|
106733
|
+
};
|
106806
106734
|
t2.exports.sync = (t3, e3) => {
|
106807
106735
|
const r3 = generateGlobTasks(t3, e3);
|
106808
106736
|
const n2 = [];
|
@@ -107156,21 +107084,19 @@ var require_globby2 = __commonJS({
|
|
107156
107084
|
"use strict";
|
107157
107085
|
const { promisify: n } = r2(837);
|
107158
107086
|
const s = r2(147);
|
107159
|
-
function isType4(t3, e3, r3) {
|
107160
|
-
|
107161
|
-
|
107162
|
-
|
107163
|
-
|
107164
|
-
|
107165
|
-
|
107166
|
-
|
107167
|
-
|
107168
|
-
|
107169
|
-
return false;
|
107170
|
-
}
|
107171
|
-
throw t4;
|
107087
|
+
async function isType4(t3, e3, r3) {
|
107088
|
+
if (typeof r3 !== "string") {
|
107089
|
+
throw new TypeError(`Expected a string, got ${typeof r3}`);
|
107090
|
+
}
|
107091
|
+
try {
|
107092
|
+
const o = await n(s[t3])(r3);
|
107093
|
+
return o[e3]();
|
107094
|
+
} catch (t4) {
|
107095
|
+
if (t4.code === "ENOENT") {
|
107096
|
+
return false;
|
107172
107097
|
}
|
107173
|
-
|
107098
|
+
throw t4;
|
107099
|
+
}
|
107174
107100
|
}
|
107175
107101
|
function isTypeSync(t3, e3, r3) {
|
107176
107102
|
if (typeof r3 !== "string") {
|
@@ -109545,15 +109471,15 @@ var require_gzip_size2 = __commonJS({
|
|
109545
109471
|
const i = t2(796);
|
109546
109472
|
const { promisify: a } = t2(837);
|
109547
109473
|
const s = t2(325);
|
109548
|
-
const getOptions = (e3) =>
|
109474
|
+
const getOptions = (e3) => ({ level: 9, ...e3 });
|
109549
109475
|
const p = a(i.gzip);
|
109550
|
-
e2.exports = (e3, r3) =>
|
109476
|
+
e2.exports = async (e3, r3) => {
|
109551
109477
|
if (!e3) {
|
109552
109478
|
return 0;
|
109553
109479
|
}
|
109554
|
-
const t3 =
|
109480
|
+
const t3 = await p(e3, getOptions(r3));
|
109555
109481
|
return t3.length;
|
109556
|
-
}
|
109482
|
+
};
|
109557
109483
|
e2.exports.sync = (e3, r3) => i.gzipSync(e3, getOptions(r3)).length;
|
109558
109484
|
e2.exports.stream = (e3) => {
|
109559
109485
|
const r3 = new o.PassThrough();
|
@@ -112323,12 +112249,10 @@ Expecting one of '${i3.join("', '")}'`);
|
|
112323
112249
|
this._parseCommand([], i3);
|
112324
112250
|
return this;
|
112325
112251
|
}
|
112326
|
-
parseAsync(t3, e3) {
|
112327
|
-
|
112328
|
-
|
112329
|
-
|
112330
|
-
return this;
|
112331
|
-
});
|
112252
|
+
async parseAsync(t3, e3) {
|
112253
|
+
const i3 = this._prepareUserArgs(t3, e3);
|
112254
|
+
await this._parseCommand([], i3);
|
112255
|
+
return this;
|
112332
112256
|
}
|
112333
112257
|
_executeSubCommand(t3, e3) {
|
112334
112258
|
e3 = e3.slice();
|
@@ -114135,11 +114059,11 @@ var require_fs = __commonJS({
|
|
114135
114059
|
}
|
114136
114060
|
return false;
|
114137
114061
|
};
|
114138
|
-
var emptyDir = (dir) =>
|
114139
|
-
if (
|
114140
|
-
|
114062
|
+
var emptyDir = async (dir) => {
|
114063
|
+
if (await _compiled.fs.pathExists(dir)) {
|
114064
|
+
await _compiled.fs.emptyDir(dir);
|
114141
114065
|
}
|
114142
|
-
}
|
114066
|
+
};
|
114143
114067
|
}
|
114144
114068
|
});
|
114145
114069
|
|
@@ -114551,19 +114475,19 @@ var require_project = __commonJS({
|
|
114551
114475
|
return false;
|
114552
114476
|
}
|
114553
114477
|
};
|
114554
|
-
var isApiOnly = (appDirectory, entryDir, apiDir) =>
|
114555
|
-
const existApi =
|
114556
|
-
const existSrc =
|
114478
|
+
var isApiOnly = async (appDirectory, entryDir, apiDir) => {
|
114479
|
+
const existApi = await _compiled.fs.pathExists(apiDir !== null && apiDir !== void 0 ? apiDir : _path.default.join(appDirectory, "api"));
|
114480
|
+
const existSrc = await _compiled.fs.pathExists(_path.default.join(appDirectory, entryDir !== null && entryDir !== void 0 ? entryDir : "src"));
|
114557
114481
|
const options = (0, _compiled.minimist)((0, _commands.getArgv)());
|
114558
114482
|
if (options["api-only"]) {
|
114559
114483
|
return true;
|
114560
114484
|
}
|
114561
114485
|
return existApi && !existSrc;
|
114562
|
-
}
|
114563
|
-
var isWebOnly = () =>
|
114486
|
+
};
|
114487
|
+
var isWebOnly = async () => {
|
114564
114488
|
const options = (0, _compiled.minimist)((0, _commands.getArgv)());
|
114565
114489
|
return Boolean(options["web-only"]);
|
114566
|
-
}
|
114490
|
+
};
|
114567
114491
|
var isBeyondReact17 = (cwd) => {
|
114568
114492
|
const pkgPath = _pkgup.default.sync({
|
114569
114493
|
cwd
|
@@ -114572,7 +114496,10 @@ var require_project = __commonJS({
|
|
114572
114496
|
return false;
|
114573
114497
|
}
|
114574
114498
|
const pkgInfo = JSON.parse(_compiled.fs.readFileSync(pkgPath, "utf8"));
|
114575
|
-
const deps =
|
114499
|
+
const deps = {
|
114500
|
+
...pkgInfo.devDependencies,
|
114501
|
+
...pkgInfo.dependencies
|
114502
|
+
};
|
114576
114503
|
if (typeof deps.react !== "string") {
|
114577
114504
|
return false;
|
114578
114505
|
}
|
@@ -114584,7 +114511,10 @@ var require_project = __commonJS({
|
|
114584
114511
|
return false;
|
114585
114512
|
}
|
114586
114513
|
const pkgInfo = JSON.parse(_compiled.fs.readFileSync(pkgPath, "utf8"));
|
114587
|
-
const deps =
|
114514
|
+
const deps = {
|
114515
|
+
...pkgInfo.devDependencies,
|
114516
|
+
...pkgInfo.dependencies
|
114517
|
+
};
|
114588
114518
|
if (typeof deps.react !== "string") {
|
114589
114519
|
return false;
|
114590
114520
|
}
|
@@ -114639,55 +114569,47 @@ var require_package4 = __commonJS({
|
|
114639
114569
|
}
|
114640
114570
|
});
|
114641
114571
|
var _compiled = require_compiled();
|
114642
|
-
function getPnpmVersion() {
|
114643
|
-
|
114644
|
-
|
114645
|
-
|
114646
|
-
|
114647
|
-
return stdout;
|
114648
|
-
});
|
114572
|
+
async function getPnpmVersion() {
|
114573
|
+
const { stdout } = await (0, _compiled.execa)("pnpm", [
|
114574
|
+
"--version"
|
114575
|
+
]);
|
114576
|
+
return stdout;
|
114649
114577
|
}
|
114650
|
-
function canUseNpm4() {
|
114651
|
-
|
114652
|
-
|
114653
|
-
|
114654
|
-
|
114655
|
-
|
114656
|
-
|
114657
|
-
|
114658
|
-
|
114659
|
-
|
114660
|
-
|
114661
|
-
}
|
114662
|
-
});
|
114578
|
+
async function canUseNpm4() {
|
114579
|
+
try {
|
114580
|
+
await (0, _compiled.execa)("npm", [
|
114581
|
+
"--version"
|
114582
|
+
], {
|
114583
|
+
env: process.env
|
114584
|
+
});
|
114585
|
+
return true;
|
114586
|
+
} catch (e) {
|
114587
|
+
return false;
|
114588
|
+
}
|
114663
114589
|
}
|
114664
|
-
function canUseYarn3() {
|
114665
|
-
|
114666
|
-
|
114667
|
-
|
114668
|
-
|
114669
|
-
|
114670
|
-
|
114671
|
-
|
114672
|
-
|
114673
|
-
|
114674
|
-
|
114675
|
-
}
|
114676
|
-
});
|
114590
|
+
async function canUseYarn3() {
|
114591
|
+
try {
|
114592
|
+
await (0, _compiled.execa)("yarn", [
|
114593
|
+
"--version"
|
114594
|
+
], {
|
114595
|
+
env: process.env
|
114596
|
+
});
|
114597
|
+
return true;
|
114598
|
+
} catch (e) {
|
114599
|
+
return false;
|
114600
|
+
}
|
114677
114601
|
}
|
114678
|
-
function canUsePnpm4() {
|
114679
|
-
|
114680
|
-
|
114681
|
-
|
114682
|
-
|
114683
|
-
|
114684
|
-
|
114685
|
-
|
114686
|
-
|
114687
|
-
|
114688
|
-
|
114689
|
-
}
|
114690
|
-
});
|
114602
|
+
async function canUsePnpm4() {
|
114603
|
+
try {
|
114604
|
+
await (0, _compiled.execa)("pnpm", [
|
114605
|
+
"--version"
|
114606
|
+
], {
|
114607
|
+
env: process.env
|
114608
|
+
});
|
114609
|
+
return true;
|
114610
|
+
} catch (e) {
|
114611
|
+
return false;
|
114612
|
+
}
|
114691
114613
|
}
|
114692
114614
|
}
|
114693
114615
|
});
|
@@ -114740,31 +114662,29 @@ var require_data = __commonJS({
|
|
114740
114662
|
var _is = require_is();
|
114741
114663
|
var _package = require_package4();
|
114742
114664
|
var MAX_TIMES = 5;
|
114743
|
-
function getPackageManager2() {
|
114744
|
-
|
114745
|
-
|
114746
|
-
|
114747
|
-
|
114748
|
-
|
114749
|
-
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "pnpm-lock.yaml"))) {
|
114750
|
-
return "pnpm";
|
114751
|
-
}
|
114752
|
-
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "yarn.lock"))) {
|
114753
|
-
return "yarn";
|
114754
|
-
}
|
114755
|
-
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "package-lock.json"))) {
|
114756
|
-
return "npm";
|
114757
|
-
}
|
114758
|
-
appDirectory = _path.default.join(appDirectory, "..");
|
114759
|
-
}
|
114760
|
-
if (yield (0, _package.canUsePnpm)()) {
|
114665
|
+
async function getPackageManager2(cwd = process.cwd()) {
|
114666
|
+
let appDirectory = cwd;
|
114667
|
+
let times = 0;
|
114668
|
+
while (_os.default.homedir() !== appDirectory && times < MAX_TIMES) {
|
114669
|
+
times++;
|
114670
|
+
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "pnpm-lock.yaml"))) {
|
114761
114671
|
return "pnpm";
|
114762
114672
|
}
|
114763
|
-
if (
|
114673
|
+
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "yarn.lock"))) {
|
114764
114674
|
return "yarn";
|
114765
114675
|
}
|
114766
|
-
|
114767
|
-
|
114676
|
+
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "package-lock.json"))) {
|
114677
|
+
return "npm";
|
114678
|
+
}
|
114679
|
+
appDirectory = _path.default.join(appDirectory, "..");
|
114680
|
+
}
|
114681
|
+
if (await (0, _package.canUsePnpm)()) {
|
114682
|
+
return "pnpm";
|
114683
|
+
}
|
114684
|
+
if (await (0, _package.canUseYarn)()) {
|
114685
|
+
return "yarn";
|
114686
|
+
}
|
114687
|
+
return "npm";
|
114768
114688
|
}
|
114769
114689
|
var getCoreJsVersion = (corejsPkgPath) => {
|
114770
114690
|
try {
|
@@ -114844,7 +114764,10 @@ var require_config3 = __commonJS({
|
|
114844
114764
|
if (optionsByEntry === void 0 && isMainEntry && packageName) {
|
114845
114765
|
optionsByEntry = getOptionsByEntryName(packageName, optionsByEntries);
|
114846
114766
|
}
|
114847
|
-
return optionsByEntry !== void 0 ? (0, _is.isPlainObject)(optionsByEntry) && (0, _is.isPlainObject)(baseOptions) ?
|
114767
|
+
return optionsByEntry !== void 0 ? (0, _is.isPlainObject)(optionsByEntry) && (0, _is.isPlainObject)(baseOptions) ? {
|
114768
|
+
...baseOptions,
|
114769
|
+
...optionsByEntry
|
114770
|
+
} : optionsByEntry : baseOptions;
|
114848
114771
|
} else {
|
114849
114772
|
return baseOptions;
|
114850
114773
|
}
|
@@ -114882,10 +114805,10 @@ var require_get2 = __commonJS({
|
|
114882
114805
|
var _fs = require_fs();
|
114883
114806
|
_export_star._(require_data(), exports);
|
114884
114807
|
_export_star._(require_config3(), exports);
|
114885
|
-
var getServerConfig = (appDirectory, configFile) =>
|
114808
|
+
var getServerConfig = async (appDirectory, configFile) => {
|
114886
114809
|
const configFilePath = (0, _fs.findExists)(_constants.CONFIG_FILE_EXTENSIONS.map((extension) => _path.default.resolve(appDirectory, `${configFile}${extension}`)));
|
114887
114810
|
return configFilePath;
|
114888
|
-
}
|
114811
|
+
};
|
114889
114812
|
var getTargetDir = (from, baseDir, targetBaseDir) => {
|
114890
114813
|
const relativePath = _path.default.relative(baseDir, from);
|
114891
114814
|
return _path.default.resolve(targetBaseDir, relativePath);
|
@@ -115010,8 +114933,14 @@ ${_chalk.default.grey(rest.join("\n"))}`;
|
|
115010
114933
|
}
|
115011
114934
|
constructor(options = {}) {
|
115012
114935
|
this.level = options.level || LOG_TYPES.log.level;
|
115013
|
-
this.config =
|
115014
|
-
|
114936
|
+
this.config = {
|
114937
|
+
...DEFAULT_CONFIG,
|
114938
|
+
...options.config || {}
|
114939
|
+
};
|
114940
|
+
this.types = {
|
114941
|
+
...LOG_TYPES,
|
114942
|
+
...options.types || {}
|
114943
|
+
};
|
115015
114944
|
this.longestLabel = this.getLongestLabel();
|
115016
114945
|
Object.keys(this.types).forEach((type) => {
|
115017
114946
|
this[type] = this._log.bind(this, type);
|
@@ -115129,7 +115058,10 @@ var require_alias = __commonJS({
|
|
115129
115058
|
const baseUrl = (_tsconfig = tsconfig) === null || _tsconfig === void 0 ? void 0 : (_tsconfig_compilerOptions = _tsconfig.compilerOptions) === null || _tsconfig_compilerOptions === void 0 ? void 0 : _tsconfig_compilerOptions.baseUrl;
|
115130
115059
|
return {
|
115131
115060
|
absoluteBaseUrl: baseUrl ? _path.default.join(option.appDirectory, baseUrl) : option.appDirectory,
|
115132
|
-
paths:
|
115061
|
+
paths: {
|
115062
|
+
...alias,
|
115063
|
+
...(_tsconfig1 = tsconfig) === null || _tsconfig1 === void 0 ? void 0 : (_tsconfig_compilerOptions1 = _tsconfig1.compilerOptions) === null || _tsconfig_compilerOptions1 === void 0 ? void 0 : _tsconfig_compilerOptions1.paths
|
115064
|
+
},
|
115133
115065
|
isTsPath: true,
|
115134
115066
|
isTsProject: isTsProject2
|
115135
115067
|
};
|
@@ -115215,7 +115147,7 @@ var require_path = __commonJS({
|
|
115215
115147
|
try {
|
115216
115148
|
ret = _os.default.tmpdir();
|
115217
115149
|
ret = _fs.default.realpathSync(ret);
|
115218
|
-
} catch
|
115150
|
+
} catch {
|
115219
115151
|
}
|
115220
115152
|
return ret;
|
115221
115153
|
}
|
@@ -115316,7 +115248,10 @@ var require_babel = __commonJS({
|
|
115316
115248
|
presets.forEach((preset, index) => {
|
115317
115249
|
if (Array.isArray(preset)) {
|
115318
115250
|
if (typeof preset[0] === "string" && (0, _path1.normalizeToPosixPath)(preset[0]).includes(presetName)) {
|
115319
|
-
preset[1] =
|
115251
|
+
preset[1] = {
|
115252
|
+
...preset[1] || {},
|
115253
|
+
...options
|
115254
|
+
};
|
115320
115255
|
}
|
115321
115256
|
} else if (typeof preset === "string" && (0, _path1.normalizeToPosixPath)(preset).includes(presetName)) {
|
115322
115257
|
presets[index] = [
|
@@ -115345,7 +115280,10 @@ var require_babel = __commonJS({
|
|
115345
115280
|
};
|
115346
115281
|
var applyUserBabelConfig = (defaultOptions, userBabelConfig, extraBabelUtils) => {
|
115347
115282
|
if (userBabelConfig) {
|
115348
|
-
const babelUtils =
|
115283
|
+
const babelUtils = {
|
115284
|
+
...getBabelUtils(defaultOptions),
|
115285
|
+
...extraBabelUtils
|
115286
|
+
};
|
115349
115287
|
return (0, _applyOptionsChain.applyOptionsChain)(defaultOptions, userBabelConfig || {}, babelUtils);
|
115350
115288
|
}
|
115351
115289
|
return defaultOptions;
|
@@ -115418,7 +115356,10 @@ var require_monorepo = __commonJS({
|
|
115418
115356
|
return false;
|
115419
115357
|
}
|
115420
115358
|
const json = JSON.parse(_fs.default.readFileSync(pkgJsonPath, "utf8"));
|
115421
|
-
const deps =
|
115359
|
+
const deps = {
|
115360
|
+
...json.dependencies || {},
|
115361
|
+
...json.devDependencies || {}
|
115362
|
+
};
|
115422
115363
|
return Boolean(deps["@modern-js/monorepo-tools"]);
|
115423
115364
|
};
|
115424
115365
|
var findMonorepoRoot = (appDirectory, maxDepth = PACKAGE_MAX_DEPTH) => {
|
@@ -115478,7 +115419,7 @@ var require_port = __commonJS({
|
|
115478
115419
|
var _net = /* @__PURE__ */ _interop_require_default._(require("net"));
|
115479
115420
|
var _compiled = require_compiled();
|
115480
115421
|
var _logger = require_logger2();
|
115481
|
-
var getPort =
|
115422
|
+
var getPort = async (port, { tryLimits = 20, strictPort = false } = {}) => {
|
115482
115423
|
if (typeof port === "string") {
|
115483
115424
|
port = parseInt(port, 10);
|
115484
115425
|
}
|
@@ -115490,7 +115431,7 @@ var require_port = __commonJS({
|
|
115490
115431
|
let attempts = 0;
|
115491
115432
|
while (!found && attempts <= tryLimits) {
|
115492
115433
|
try {
|
115493
|
-
|
115434
|
+
await new Promise((resolve, reject) => {
|
115494
115435
|
const server = _net.default.createServer();
|
115495
115436
|
server.unref();
|
115496
115437
|
server.on("error", reject);
|
@@ -115518,7 +115459,7 @@ var require_port = __commonJS({
|
|
115518
115459
|
}
|
115519
115460
|
}
|
115520
115461
|
return port;
|
115521
|
-
}
|
115462
|
+
};
|
115522
115463
|
}
|
115523
115464
|
});
|
115524
115465
|
|
@@ -115669,13 +115610,14 @@ var require_require = __commonJS({
|
|
115669
115610
|
};
|
115670
115611
|
var dynamicImport = new Function("modulePath", "return import(modulePath)");
|
115671
115612
|
var requireExistModule = (filename, opt) => {
|
115672
|
-
const final =
|
115613
|
+
const final = {
|
115673
115614
|
extensions: [
|
115674
115615
|
".ts",
|
115675
115616
|
".js"
|
115676
115617
|
],
|
115677
|
-
interop: true
|
115678
|
-
|
115618
|
+
interop: true,
|
115619
|
+
...opt
|
115620
|
+
};
|
115679
115621
|
const exist = (0, _fs.findExists)(final.extensions.map((ext) => `${filename}${ext}`));
|
115680
115622
|
if (!exist) {
|
115681
115623
|
return null;
|
@@ -115755,7 +115697,7 @@ var require_runtimeExports = __commonJS({
|
|
115755
115697
|
_compiled.fs.appendFileSync(entryExportFile, `${statement}
|
115756
115698
|
`);
|
115757
115699
|
}
|
115758
|
-
} catch
|
115700
|
+
} catch {
|
115759
115701
|
}
|
115760
115702
|
};
|
115761
115703
|
const getPath = () => entryExportFile;
|
@@ -115803,29 +115745,29 @@ var require_watch = __commonJS({
|
|
115803
115745
|
ignored
|
115804
115746
|
});
|
115805
115747
|
watcher.on("ready", () => ready = true);
|
115806
|
-
watcher.on("change", (filePath) =>
|
115748
|
+
watcher.on("change", async (filePath) => {
|
115807
115749
|
const changedFilePath = _path.default.resolve(filePath);
|
115808
|
-
|
115750
|
+
await runTask({
|
115809
115751
|
changedFilePath,
|
115810
115752
|
changeType: WatchChangeType.CHANGE
|
115811
115753
|
});
|
115812
|
-
})
|
115813
|
-
watcher.on("add", (filePath) =>
|
115754
|
+
});
|
115755
|
+
watcher.on("add", async (filePath) => {
|
115814
115756
|
const changedFilePath = _path.default.resolve(filePath);
|
115815
115757
|
if (ready) {
|
115816
|
-
|
115758
|
+
await runTask({
|
115817
115759
|
changedFilePath,
|
115818
115760
|
changeType: WatchChangeType.ADD
|
115819
115761
|
});
|
115820
115762
|
}
|
115821
|
-
})
|
115822
|
-
watcher.on("unlink", (filePath) =>
|
115763
|
+
});
|
115764
|
+
watcher.on("unlink", async (filePath) => {
|
115823
115765
|
const changedFilePath = _path.default.resolve(filePath);
|
115824
|
-
|
115766
|
+
await runTask({
|
115825
115767
|
changedFilePath,
|
115826
115768
|
changeType: WatchChangeType.UNLINK
|
115827
115769
|
});
|
115828
|
-
})
|
115770
|
+
});
|
115829
115771
|
watcher.on("error", (err) => {
|
115830
115772
|
throw err;
|
115831
115773
|
});
|
@@ -131027,18 +130969,16 @@ var DependenceGenerator = "@modern-js/dependence-generator";
|
|
131027
130969
|
|
131028
130970
|
// ../../generator-utils/dist/esm/utils/fsExist.js
|
131029
130971
|
var import_utils14 = __toESM(require_cjs2());
|
131030
|
-
function fileExist(filePath) {
|
131031
|
-
|
131032
|
-
|
131033
|
-
|
131034
|
-
|
131035
|
-
return true;
|
131036
|
-
}
|
131037
|
-
return false;
|
131038
|
-
} catch (e) {
|
131039
|
-
return false;
|
130972
|
+
async function fileExist(filePath) {
|
130973
|
+
try {
|
130974
|
+
const stat = await import_utils14.fs.stat(filePath);
|
130975
|
+
if (stat.isFile()) {
|
130976
|
+
return true;
|
131040
130977
|
}
|
131041
|
-
|
130978
|
+
return false;
|
130979
|
+
} catch (e) {
|
130980
|
+
return false;
|
130981
|
+
}
|
131042
130982
|
}
|
131043
130983
|
|
131044
130984
|
// ../../generator-utils/dist/esm/index.js
|
@@ -131046,18 +130986,16 @@ var import_utils16 = __toESM(require_cjs2());
|
|
131046
130986
|
function isTsProject(appDir) {
|
131047
130987
|
return import_utils15.fs.existsSync(import_path5.default.join(appDir, "tsconfig.json"));
|
131048
130988
|
}
|
131049
|
-
function getModernConfigFile(appDir) {
|
131050
|
-
|
131051
|
-
|
131052
|
-
|
131053
|
-
|
131054
|
-
|
131055
|
-
|
131056
|
-
|
131057
|
-
|
131058
|
-
|
131059
|
-
return isTsProject(appDir) ? "modern.config.ts" : "modern.config.js";
|
131060
|
-
});
|
130989
|
+
async function getModernConfigFile(appDir) {
|
130990
|
+
let exist = await fileExist(import_path5.default.join(appDir, "modern.config.ts"));
|
130991
|
+
if (exist) {
|
130992
|
+
return "modern.config.ts";
|
130993
|
+
}
|
130994
|
+
exist = await fileExist(import_path5.default.join(appDir, "modern.config.js"));
|
130995
|
+
if (exist) {
|
130996
|
+
return "modern.config.js";
|
130997
|
+
}
|
130998
|
+
return isTsProject(appDir) ? "modern.config.ts" : "modern.config.js";
|
131061
130999
|
}
|
131062
131000
|
|
131063
131001
|
// src/locale/zh.ts
|
@@ -131083,34 +131021,35 @@ var getGeneratorPath = (generator, distTag) => {
|
|
131083
131021
|
}
|
131084
131022
|
return generator;
|
131085
131023
|
};
|
131086
|
-
var handleTemplateFile = (context, _generator, appApi) =>
|
131087
|
-
|
131024
|
+
var handleTemplateFile = async (context, _generator, appApi) => {
|
131025
|
+
await appApi.runSubGenerator(
|
131088
131026
|
getGeneratorPath(DependenceGenerator, context.config.distTag),
|
131089
131027
|
void 0,
|
131090
|
-
|
131028
|
+
{
|
131029
|
+
...context.config,
|
131091
131030
|
isSubGenerator: true
|
131092
|
-
}
|
131031
|
+
}
|
131093
131032
|
);
|
131094
|
-
}
|
131095
|
-
var src_default = (context, generator) =>
|
131033
|
+
};
|
131034
|
+
var src_default = async (context, generator) => {
|
131096
131035
|
const appApi = new AppAPI(context, generator);
|
131097
131036
|
const { locale } = context.config;
|
131098
131037
|
i18n2.changeLanguage({ locale });
|
131099
131038
|
appApi.i18n.changeLanguage({ locale });
|
131100
|
-
if (!
|
131039
|
+
if (!await appApi.checkEnvironment()) {
|
131101
131040
|
process.exit(1);
|
131102
131041
|
}
|
131103
131042
|
generator.logger.debug(`start run @modern-js/ssg-generator`);
|
131104
131043
|
generator.logger.debug(`context=${JSON.stringify(context)}`);
|
131105
131044
|
generator.logger.debug(`context.data=${JSON.stringify(context.data)}`);
|
131106
|
-
|
131045
|
+
await handleTemplateFile(context, generator, appApi);
|
131107
131046
|
if (!context.config.isSubGenerator) {
|
131108
|
-
|
131047
|
+
await appApi.runInstall(void 0, { ignoreScripts: true });
|
131109
131048
|
if (!context.config.pluginName) {
|
131110
131049
|
appApi.showSuccessInfo();
|
131111
131050
|
} else {
|
131112
131051
|
const appDir = context.materials.default.basePath;
|
131113
|
-
const configFile =
|
131052
|
+
const configFile = await getModernConfigFile(appDir);
|
131114
131053
|
const isTS = configFile.endsWith("ts");
|
131115
131054
|
const { pluginName, pluginDependence, shouldUsePluginNameExport } = context.config;
|
131116
131055
|
console.info(
|
@@ -131158,7 +131097,7 @@ module.exports = {
|
|
131158
131097
|
}
|
131159
131098
|
}
|
131160
131099
|
generator.logger.debug(`forge @modern-js/ssg-generator succeed `);
|
131161
|
-
}
|
131100
|
+
};
|
131162
131101
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
131163
131102
|
/*!
|
131164
131103
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|