@modern-js/repo-generator 3.1.35 → 3.1.37
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 +693 -758
- package/package.json +12 -12
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/lodash@4.17.21/node_modules/lodash/lodash.js
|
71
33
|
var require_lodash = __commonJS({
|
@@ -5979,22 +5941,20 @@ var require_fs_extra = __commonJS({
|
|
5979
5941
|
const o = r2(17);
|
5980
5942
|
const c = r2(971);
|
5981
5943
|
const s = r2(95);
|
5982
|
-
const a = n(function emptyDir(e3) {
|
5983
|
-
|
5984
|
-
|
5985
|
-
|
5986
|
-
|
5987
|
-
|
5988
|
-
|
5989
|
-
|
5990
|
-
return Promise.all(t3.map((t4) => s.remove(o.join(e3, t4))));
|
5991
|
-
});
|
5944
|
+
const a = n(async function emptyDir(e3) {
|
5945
|
+
let t3;
|
5946
|
+
try {
|
5947
|
+
t3 = await i.readdir(e3);
|
5948
|
+
} catch {
|
5949
|
+
return c.mkdirs(e3);
|
5950
|
+
}
|
5951
|
+
return Promise.all(t3.map((t4) => s.remove(o.join(e3, t4))));
|
5992
5952
|
});
|
5993
5953
|
function emptyDirSync(e3) {
|
5994
5954
|
let t3;
|
5995
5955
|
try {
|
5996
5956
|
t3 = i.readdirSync(e3);
|
5997
|
-
} catch
|
5957
|
+
} catch {
|
5998
5958
|
return c.mkdirsSync(e3);
|
5999
5959
|
}
|
6000
5960
|
t3.forEach((t4) => {
|
@@ -6047,7 +6007,7 @@ var require_fs_extra = __commonJS({
|
|
6047
6007
|
let t3;
|
6048
6008
|
try {
|
6049
6009
|
t3 = o.statSync(e3);
|
6050
|
-
} catch
|
6010
|
+
} catch {
|
6051
6011
|
}
|
6052
6012
|
if (t3 && t3.isFile())
|
6053
6013
|
return;
|
@@ -6114,7 +6074,7 @@ var require_fs_extra = __commonJS({
|
|
6114
6074
|
let r3;
|
6115
6075
|
try {
|
6116
6076
|
r3 = o.lstatSync(t3);
|
6117
|
-
} catch
|
6077
|
+
} catch {
|
6118
6078
|
}
|
6119
6079
|
try {
|
6120
6080
|
const t4 = o.lstatSync(e3);
|
@@ -6209,7 +6169,7 @@ var require_fs_extra = __commonJS({
|
|
6209
6169
|
return t3;
|
6210
6170
|
try {
|
6211
6171
|
r3 = n.lstatSync(e3);
|
6212
|
-
} catch
|
6172
|
+
} catch {
|
6213
6173
|
return "file";
|
6214
6174
|
}
|
6215
6175
|
return r3 && r3.isDirectory() ? "dir" : "file";
|
@@ -6272,7 +6232,7 @@ var require_fs_extra = __commonJS({
|
|
6272
6232
|
let n2;
|
6273
6233
|
try {
|
6274
6234
|
n2 = o.lstatSync(t3);
|
6275
|
-
} catch
|
6235
|
+
} catch {
|
6276
6236
|
}
|
6277
6237
|
if (n2 && n2.isSymbolicLink()) {
|
6278
6238
|
const r4 = o.statSync(e3);
|
@@ -6347,7 +6307,7 @@ var require_fs_extra = __commonJS({
|
|
6347
6307
|
}
|
6348
6308
|
}, 81: (e2, t2, r2) => {
|
6349
6309
|
"use strict";
|
6350
|
-
e2.exports =
|
6310
|
+
e2.exports = { ...r2(812), ...r2(2), ...r2(708), ...r2(726), ...r2(779), ...r2(971), ...r2(511), ...r2(701), ...r2(725), ...r2(95) };
|
6351
6311
|
}, 779: (e2, t2, r2) => {
|
6352
6312
|
"use strict";
|
6353
6313
|
const n = r2(5).fromPromise;
|
@@ -6378,11 +6338,9 @@ var require_fs_extra = __commonJS({
|
|
6378
6338
|
"use strict";
|
6379
6339
|
const { stringify: n } = r2(208);
|
6380
6340
|
const { outputFile: i } = r2(701);
|
6381
|
-
function outputJson(
|
6382
|
-
|
6383
|
-
|
6384
|
-
yield i(e3, o, r3);
|
6385
|
-
});
|
6341
|
+
async function outputJson(e3, t3, r3 = {}) {
|
6342
|
+
const o = n(t3, r3);
|
6343
|
+
await i(e3, o, r3);
|
6386
6344
|
}
|
6387
6345
|
e2.exports = outputJson;
|
6388
6346
|
}, 971: (e2, t2, r2) => {
|
@@ -6399,12 +6357,12 @@ var require_fs_extra = __commonJS({
|
|
6399
6357
|
const t3 = { mode: 511 };
|
6400
6358
|
if (typeof e3 === "number")
|
6401
6359
|
return e3;
|
6402
|
-
return
|
6360
|
+
return { ...t3, ...e3 }.mode;
|
6403
6361
|
};
|
6404
|
-
e2.exports.makeDir = (e3, t3) =>
|
6362
|
+
e2.exports.makeDir = async (e3, t3) => {
|
6405
6363
|
i(e3);
|
6406
6364
|
return n.mkdir(e3, { mode: getMode(t3), recursive: true });
|
6407
|
-
}
|
6365
|
+
};
|
6408
6366
|
e2.exports.makeDirSync = (e3, t3) => {
|
6409
6367
|
i(e3);
|
6410
6368
|
return n.mkdirSync(e3, { mode: getMode(t3), recursive: true });
|
@@ -6822,7 +6780,7 @@ var require_fs_extra = __commonJS({
|
|
6822
6780
|
try {
|
6823
6781
|
const r4 = t3.rmdirSync(e3, t3);
|
6824
6782
|
return r4;
|
6825
|
-
} catch
|
6783
|
+
} catch {
|
6826
6784
|
}
|
6827
6785
|
} while (Date.now() - r3 < 500);
|
6828
6786
|
} else {
|
@@ -7721,28 +7679,26 @@ var require_fs_extra = __commonJS({
|
|
7721
7679
|
}
|
7722
7680
|
const i = r2(5);
|
7723
7681
|
const { stringify: o, stripBom: c } = r2(208);
|
7724
|
-
function _readFile(
|
7725
|
-
|
7726
|
-
|
7727
|
-
|
7728
|
-
|
7729
|
-
|
7730
|
-
|
7731
|
-
|
7732
|
-
|
7733
|
-
|
7734
|
-
|
7735
|
-
|
7736
|
-
|
7737
|
-
|
7738
|
-
|
7739
|
-
|
7740
|
-
|
7741
|
-
return null;
|
7742
|
-
}
|
7682
|
+
async function _readFile(e3, t3 = {}) {
|
7683
|
+
if (typeof t3 === "string") {
|
7684
|
+
t3 = { encoding: t3 };
|
7685
|
+
}
|
7686
|
+
const r3 = t3.fs || n;
|
7687
|
+
const o2 = "throws" in t3 ? t3.throws : true;
|
7688
|
+
let s2 = await i.fromCallback(r3.readFile)(e3, t3);
|
7689
|
+
s2 = c(s2);
|
7690
|
+
let a2;
|
7691
|
+
try {
|
7692
|
+
a2 = JSON.parse(s2, t3 ? t3.reviver : null);
|
7693
|
+
} catch (t4) {
|
7694
|
+
if (o2) {
|
7695
|
+
t4.message = `${e3}: ${t4.message}`;
|
7696
|
+
throw t4;
|
7697
|
+
} else {
|
7698
|
+
return null;
|
7743
7699
|
}
|
7744
|
-
|
7745
|
-
|
7700
|
+
}
|
7701
|
+
return a2;
|
7746
7702
|
}
|
7747
7703
|
const s = i.fromPromise(_readFile);
|
7748
7704
|
function readFileSync(e3, t3 = {}) {
|
@@ -7764,12 +7720,10 @@ var require_fs_extra = __commonJS({
|
|
7764
7720
|
}
|
7765
7721
|
}
|
7766
7722
|
}
|
7767
|
-
function _writeFile(
|
7768
|
-
|
7769
|
-
|
7770
|
-
|
7771
|
-
yield i.fromCallback(c2.writeFile)(e3, s2, r3);
|
7772
|
-
});
|
7723
|
+
async function _writeFile(e3, t3, r3 = {}) {
|
7724
|
+
const c2 = r3.fs || n;
|
7725
|
+
const s2 = o(t3, r3);
|
7726
|
+
await i.fromCallback(c2.writeFile)(e3, s2, r3);
|
7773
7727
|
}
|
7774
7728
|
const a = i.fromPromise(_writeFile);
|
7775
7729
|
function writeFileSync(e3, t3, r3 = {}) {
|
@@ -7997,11 +7951,11 @@ var require_chalk = __commonJS({
|
|
7997
7951
|
} };
|
7998
7952
|
}
|
7999
7953
|
const f = Object.defineProperties(() => {
|
8000
|
-
},
|
7954
|
+
}, { ...u, level: { enumerable: true, get() {
|
8001
7955
|
return this._generator.level;
|
8002
7956
|
}, set(e3) {
|
8003
7957
|
this._generator.level = e3;
|
8004
|
-
} } })
|
7958
|
+
} } });
|
8005
7959
|
const createStyler = (e3, t3, n3) => {
|
8006
7960
|
let r2;
|
8007
7961
|
let s2;
|
@@ -8312,7 +8266,7 @@ var require_chalk = __commonJS({
|
|
8312
8266
|
return [o2 * 100, l * 100, c * 100, s2 * 100];
|
8313
8267
|
};
|
8314
8268
|
function comparativeDistance(e3, t3) {
|
8315
|
-
return
|
8269
|
+
return (e3[0] - t3[0]) ** 2 + (e3[1] - t3[1]) ** 2 + (e3[2] - t3[2]) ** 2;
|
8316
8270
|
}
|
8317
8271
|
o.rgb.keyword = function(e3) {
|
8318
8272
|
const t3 = s[e3];
|
@@ -8338,9 +8292,9 @@ var require_chalk = __commonJS({
|
|
8338
8292
|
let t3 = e3[0] / 255;
|
8339
8293
|
let n3 = e3[1] / 255;
|
8340
8294
|
let r2 = e3[2] / 255;
|
8341
|
-
t3 = t3 > 0.04045 ?
|
8342
|
-
n3 = n3 > 0.04045 ?
|
8343
|
-
r2 = r2 > 0.04045 ?
|
8295
|
+
t3 = t3 > 0.04045 ? ((t3 + 0.055) / 1.055) ** 2.4 : t3 / 12.92;
|
8296
|
+
n3 = n3 > 0.04045 ? ((n3 + 0.055) / 1.055) ** 2.4 : n3 / 12.92;
|
8297
|
+
r2 = r2 > 0.04045 ? ((r2 + 0.055) / 1.055) ** 2.4 : r2 / 12.92;
|
8344
8298
|
const s2 = t3 * 0.4124 + n3 * 0.3576 + r2 * 0.1805;
|
8345
8299
|
const o2 = t3 * 0.2126 + n3 * 0.7152 + r2 * 0.0722;
|
8346
8300
|
const l = t3 * 0.0193 + n3 * 0.1192 + r2 * 0.9505;
|
@@ -8354,9 +8308,9 @@ var require_chalk = __commonJS({
|
|
8354
8308
|
n3 /= 95.047;
|
8355
8309
|
r2 /= 100;
|
8356
8310
|
s2 /= 108.883;
|
8357
|
-
n3 = n3 > 8856e-6 ?
|
8358
|
-
r2 = r2 > 8856e-6 ?
|
8359
|
-
s2 = s2 > 8856e-6 ?
|
8311
|
+
n3 = n3 > 8856e-6 ? n3 ** (1 / 3) : 7.787 * n3 + 16 / 116;
|
8312
|
+
r2 = r2 > 8856e-6 ? r2 ** (1 / 3) : 7.787 * r2 + 16 / 116;
|
8313
|
+
s2 = s2 > 8856e-6 ? s2 ** (1 / 3) : 7.787 * s2 + 16 / 116;
|
8360
8314
|
const l = 116 * r2 - 16;
|
8361
8315
|
const c = 500 * (n3 - r2);
|
8362
8316
|
const i = 200 * (r2 - s2);
|
@@ -8530,9 +8484,9 @@ var require_chalk = __commonJS({
|
|
8530
8484
|
s2 = t3 * 3.2406 + n3 * -1.5372 + r2 * -0.4986;
|
8531
8485
|
o2 = t3 * -0.9689 + n3 * 1.8758 + r2 * 0.0415;
|
8532
8486
|
l = t3 * 0.0557 + n3 * -0.204 + r2 * 1.057;
|
8533
|
-
s2 = s2 > 31308e-7 ? 1.055 *
|
8534
|
-
o2 = o2 > 31308e-7 ? 1.055 *
|
8535
|
-
l = l > 31308e-7 ? 1.055 *
|
8487
|
+
s2 = s2 > 31308e-7 ? 1.055 * s2 ** (1 / 2.4) - 0.055 : s2 * 12.92;
|
8488
|
+
o2 = o2 > 31308e-7 ? 1.055 * o2 ** (1 / 2.4) - 0.055 : o2 * 12.92;
|
8489
|
+
l = l > 31308e-7 ? 1.055 * l ** (1 / 2.4) - 0.055 : l * 12.92;
|
8536
8490
|
s2 = Math.min(Math.max(0, s2), 1);
|
8537
8491
|
o2 = Math.min(Math.max(0, o2), 1);
|
8538
8492
|
l = Math.min(Math.max(0, l), 1);
|
@@ -8545,9 +8499,9 @@ var require_chalk = __commonJS({
|
|
8545
8499
|
t3 /= 95.047;
|
8546
8500
|
n3 /= 100;
|
8547
8501
|
r2 /= 108.883;
|
8548
|
-
t3 = t3 > 8856e-6 ?
|
8549
|
-
n3 = n3 > 8856e-6 ?
|
8550
|
-
r2 = r2 > 8856e-6 ?
|
8502
|
+
t3 = t3 > 8856e-6 ? t3 ** (1 / 3) : 7.787 * t3 + 16 / 116;
|
8503
|
+
n3 = n3 > 8856e-6 ? n3 ** (1 / 3) : 7.787 * n3 + 16 / 116;
|
8504
|
+
r2 = r2 > 8856e-6 ? r2 ** (1 / 3) : 7.787 * r2 + 16 / 116;
|
8551
8505
|
const s2 = 116 * n3 - 16;
|
8552
8506
|
const o2 = 500 * (t3 - n3);
|
8553
8507
|
const l = 200 * (n3 - r2);
|
@@ -8563,9 +8517,9 @@ var require_chalk = __commonJS({
|
|
8563
8517
|
o2 = (t3 + 16) / 116;
|
8564
8518
|
s2 = n3 / 500 + o2;
|
8565
8519
|
l = o2 - r2 / 200;
|
8566
|
-
const c =
|
8567
|
-
const i =
|
8568
|
-
const a =
|
8520
|
+
const c = o2 ** 3;
|
8521
|
+
const i = s2 ** 3;
|
8522
|
+
const a = l ** 3;
|
8569
8523
|
o2 = c > 8856e-6 ? c : (o2 - 16 / 116) / 7.787;
|
8570
8524
|
s2 = i > 8856e-6 ? i : (s2 - 16 / 116) / 7.787;
|
8571
8525
|
l = a > 8856e-6 ? a : (l - 16 / 116) / 7.787;
|
@@ -9821,7 +9775,7 @@ var require_ora = __commonJS({
|
|
9821
9775
|
if (typeof e3 === "string") {
|
9822
9776
|
e3 = { text: e3 };
|
9823
9777
|
}
|
9824
|
-
this.options =
|
9778
|
+
this.options = { text: "", color: "cyan", stream: process.stderr, discardStdin: true, ...e3 };
|
9825
9779
|
this.spinner = this.options.spinner;
|
9826
9780
|
this.color = this.options.color;
|
9827
9781
|
this.hideCursor = this.options.hideCursor !== false;
|
@@ -10038,14 +9992,14 @@ var require_ora = __commonJS({
|
|
10038
9992
|
}
|
10039
9993
|
const r3 = new Ora(t3);
|
10040
9994
|
r3.start();
|
10041
|
-
(() =>
|
9995
|
+
(async () => {
|
10042
9996
|
try {
|
10043
|
-
|
9997
|
+
await e3;
|
10044
9998
|
r3.succeed();
|
10045
|
-
} catch
|
9999
|
+
} catch {
|
10046
10000
|
r3.fail();
|
10047
10001
|
}
|
10048
|
-
})
|
10002
|
+
})();
|
10049
10003
|
return r3;
|
10050
10004
|
};
|
10051
10005
|
}, 959: (e2) => {
|
@@ -18465,7 +18419,7 @@ var require_execa = __commonJS({
|
|
18465
18419
|
const { joinCommand: w, parseCommand: E, getEscapedCommand: I } = n2(192);
|
18466
18420
|
const T = 1e3 * 1e3 * 100;
|
18467
18421
|
const getEnv = ({ env: e3, extendEnv: t3, preferLocal: n3, localDir: r2, execPath: o2 }) => {
|
18468
|
-
const s2 = t3 ?
|
18422
|
+
const s2 = t3 ? { ...process.env, ...e3 } : e3;
|
18469
18423
|
if (n3) {
|
18470
18424
|
return a.env({ env: s2, cwd: r2, execPath: o2 });
|
18471
18425
|
}
|
@@ -18476,7 +18430,7 @@ var require_execa = __commonJS({
|
|
18476
18430
|
e3 = o2.command;
|
18477
18431
|
t3 = o2.args;
|
18478
18432
|
n3 = o2.options;
|
18479
|
-
n3 =
|
18433
|
+
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 };
|
18480
18434
|
n3.env = getEnv(n3);
|
18481
18435
|
n3.stdio = u(n3);
|
18482
18436
|
if (process.platform === "win32" && r.basename(e3, ".exe") === "cmd") {
|
@@ -18512,8 +18466,8 @@ var require_execa = __commonJS({
|
|
18512
18466
|
const T2 = { isCanceled: false };
|
18513
18467
|
a2.kill = l.bind(null, a2.kill.bind(a2));
|
18514
18468
|
a2.cancel = f.bind(null, a2, T2);
|
18515
|
-
const handlePromise = () =>
|
18516
|
-
const [{ error: e4, exitCode: t4, signal: n4, timedOut: o2 }, c2, u3, l2] =
|
18469
|
+
const handlePromise = async () => {
|
18470
|
+
const [{ error: e4, exitCode: t4, signal: n4, timedOut: o2 }, c2, u3, l2] = await h(a2, r2.options, E2);
|
18517
18471
|
const f2 = handleOutput(r2.options, c2);
|
18518
18472
|
const p2 = handleOutput(r2.options, u3);
|
18519
18473
|
const m2 = handleOutput(r2.options, l2);
|
@@ -18525,7 +18479,7 @@ var require_execa = __commonJS({
|
|
18525
18479
|
throw c3;
|
18526
18480
|
}
|
18527
18481
|
return { command: s2, escapedCommand: i2, exitCode: 0, stdout: f2, stderr: p2, all: m2, failed: false, timedOut: false, isCanceled: false, killed: false };
|
18528
|
-
}
|
18482
|
+
};
|
18529
18483
|
const C = c(handlePromise);
|
18530
18484
|
x(a2, r2.options.input);
|
18531
18485
|
a2.all = y(a2, r2.options);
|
@@ -18570,7 +18524,7 @@ var require_execa = __commonJS({
|
|
18570
18524
|
const r2 = u.node(n3);
|
18571
18525
|
const o2 = process.execArgv.filter((e4) => !e4.startsWith("--inspect"));
|
18572
18526
|
const { nodePath: s2 = process.execPath, nodeOptions: i2 = o2 } = n3;
|
18573
|
-
return execa4(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []],
|
18527
|
+
return execa4(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []], { ...n3, stdin: void 0, stdout: void 0, stderr: void 0, stdio: r2, shell: false });
|
18574
18528
|
};
|
18575
18529
|
}, 192: (e2) => {
|
18576
18530
|
"use strict";
|
@@ -18726,7 +18680,7 @@ ${o.message}` : x;
|
|
18726
18680
|
throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e3}\` (${typeof e3})`);
|
18727
18681
|
}
|
18728
18682
|
};
|
18729
|
-
const setExitHandler =
|
18683
|
+
const setExitHandler = async (e3, { cleanup: t3, detached: n3 }, r2) => {
|
18730
18684
|
if (!t3 || n3) {
|
18731
18685
|
return r2;
|
18732
18686
|
}
|
@@ -18736,17 +18690,17 @@ ${o.message}` : x;
|
|
18736
18690
|
return r2.finally(() => {
|
18737
18691
|
s2();
|
18738
18692
|
});
|
18739
|
-
}
|
18693
|
+
};
|
18740
18694
|
e2.exports = { spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler };
|
18741
18695
|
}, 210: (e2) => {
|
18742
18696
|
"use strict";
|
18743
|
-
const t2 = (() =>
|
18744
|
-
})
|
18697
|
+
const t2 = (async () => {
|
18698
|
+
})().constructor.prototype;
|
18745
18699
|
const n2 = ["then", "catch", "finally"].map((e3) => [e3, Reflect.getOwnPropertyDescriptor(t2, e3)]);
|
18746
18700
|
const mergePromise = (e3, t3) => {
|
18747
18701
|
for (const [r, o] of n2) {
|
18748
18702
|
const n3 = typeof t3 === "function" ? (...e4) => Reflect.apply(o.value, t3(), e4) : o.value.bind(t3);
|
18749
|
-
Reflect.defineProperty(e3, r,
|
18703
|
+
Reflect.defineProperty(e3, r, { ...o, value: n3 });
|
18750
18704
|
}
|
18751
18705
|
return e3;
|
18752
18706
|
};
|
@@ -18830,17 +18784,17 @@ ${o.message}` : x;
|
|
18830
18784
|
}
|
18831
18785
|
return n3;
|
18832
18786
|
};
|
18833
|
-
const getBufferedData = (e3, t3) =>
|
18787
|
+
const getBufferedData = async (e3, t3) => {
|
18834
18788
|
if (!e3) {
|
18835
18789
|
return;
|
18836
18790
|
}
|
18837
18791
|
e3.destroy();
|
18838
18792
|
try {
|
18839
|
-
return
|
18793
|
+
return await t3;
|
18840
18794
|
} catch (e4) {
|
18841
18795
|
return e4.bufferedData;
|
18842
18796
|
}
|
18843
|
-
}
|
18797
|
+
};
|
18844
18798
|
const getStreamPromise = (e3, { encoding: t3, buffer: n3, maxBuffer: r2 }) => {
|
18845
18799
|
if (!e3 || !n3) {
|
18846
18800
|
return;
|
@@ -18850,16 +18804,16 @@ ${o.message}` : x;
|
|
18850
18804
|
}
|
18851
18805
|
return o.buffer(e3, { maxBuffer: r2 });
|
18852
18806
|
};
|
18853
|
-
const getSpawnedResult =
|
18807
|
+
const getSpawnedResult = async ({ stdout: e3, stderr: t3, all: n3 }, { encoding: r2, buffer: o2, maxBuffer: s2 }, i) => {
|
18854
18808
|
const a = getStreamPromise(e3, { encoding: r2, buffer: o2, maxBuffer: s2 });
|
18855
18809
|
const c = getStreamPromise(t3, { encoding: r2, buffer: o2, maxBuffer: s2 });
|
18856
18810
|
const d = getStreamPromise(n3, { encoding: r2, buffer: o2, maxBuffer: s2 * 2 });
|
18857
18811
|
try {
|
18858
|
-
return
|
18812
|
+
return await Promise.all([i, a, c, d]);
|
18859
18813
|
} catch (r3) {
|
18860
18814
|
return Promise.all([{ error: r3, signal: r3.signal, timedOut: r3.timedOut }, getBufferedData(e3, a), getBufferedData(t3, c), getBufferedData(n3, d)]);
|
18861
18815
|
}
|
18862
|
-
}
|
18816
|
+
};
|
18863
18817
|
const validateInputSync = ({ input: e3 }) => {
|
18864
18818
|
if (r(e3)) {
|
18865
18819
|
throw new TypeError("The `input` option cannot be a stream in sync mode");
|
@@ -18870,7 +18824,7 @@ ${o.message}` : x;
|
|
18870
18824
|
"use strict";
|
18871
18825
|
const { PassThrough: r } = n2(781);
|
18872
18826
|
e2.exports = (e3) => {
|
18873
|
-
e3 =
|
18827
|
+
e3 = { ...e3 };
|
18874
18828
|
const { array: t3 } = e3;
|
18875
18829
|
let { encoding: n3 } = e3;
|
18876
18830
|
const o = n3 === "buffer";
|
@@ -18919,41 +18873,39 @@ ${o.message}` : x;
|
|
18919
18873
|
this.name = "MaxBufferError";
|
18920
18874
|
}
|
18921
18875
|
}
|
18922
|
-
function getStream(e3, t3) {
|
18923
|
-
|
18924
|
-
|
18925
|
-
|
18926
|
-
|
18927
|
-
|
18928
|
-
|
18929
|
-
|
18930
|
-
|
18931
|
-
|
18932
|
-
|
18933
|
-
|
18934
|
-
|
18935
|
-
|
18936
|
-
|
18937
|
-
|
18938
|
-
|
18939
|
-
|
18940
|
-
|
18941
|
-
|
18942
|
-
|
18943
|
-
|
18944
|
-
|
18945
|
-
o2.
|
18946
|
-
|
18947
|
-
|
18948
|
-
}
|
18949
|
-
});
|
18876
|
+
async function getStream(e3, t3) {
|
18877
|
+
if (!e3) {
|
18878
|
+
throw new Error("Expected a stream");
|
18879
|
+
}
|
18880
|
+
t3 = { maxBuffer: Infinity, ...t3 };
|
18881
|
+
const { maxBuffer: n3 } = t3;
|
18882
|
+
const o2 = i(t3);
|
18883
|
+
await new Promise((t4, s2) => {
|
18884
|
+
const rejectPromise = (e4) => {
|
18885
|
+
if (e4 && o2.getBufferedLength() <= r.MAX_LENGTH) {
|
18886
|
+
e4.bufferedData = o2.getBufferedValue();
|
18887
|
+
}
|
18888
|
+
s2(e4);
|
18889
|
+
};
|
18890
|
+
(async () => {
|
18891
|
+
try {
|
18892
|
+
await a(e3, o2);
|
18893
|
+
t4();
|
18894
|
+
} catch (e4) {
|
18895
|
+
rejectPromise(e4);
|
18896
|
+
}
|
18897
|
+
})();
|
18898
|
+
o2.on("data", () => {
|
18899
|
+
if (o2.getBufferedLength() > n3) {
|
18900
|
+
rejectPromise(new MaxBufferError());
|
18901
|
+
}
|
18950
18902
|
});
|
18951
|
-
return o2.getBufferedValue();
|
18952
18903
|
});
|
18904
|
+
return o2.getBufferedValue();
|
18953
18905
|
}
|
18954
18906
|
e2.exports = getStream;
|
18955
|
-
e2.exports.buffer = (e3, t3) => getStream(e3,
|
18956
|
-
e2.exports.array = (e3, t3) => getStream(e3,
|
18907
|
+
e2.exports.buffer = (e3, t3) => getStream(e3, { ...t3, encoding: "buffer" });
|
18908
|
+
e2.exports.array = (e3, t3) => getStream(e3, { ...t3, array: true });
|
18957
18909
|
e2.exports.MaxBufferError = MaxBufferError;
|
18958
18910
|
}, 221: (e2, t2) => {
|
18959
18911
|
"use strict";
|
@@ -18973,7 +18925,7 @@ ${o.message}` : x;
|
|
18973
18925
|
return e3.reduce(getSignalByName, {});
|
18974
18926
|
};
|
18975
18927
|
const getSignalByName = function(e3, { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 }) {
|
18976
|
-
return
|
18928
|
+
return { ...e3, [t3]: { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 } };
|
18977
18929
|
};
|
18978
18930
|
const i = getSignalsByName();
|
18979
18931
|
t2.signalsByName = i;
|
@@ -19205,7 +19157,7 @@ ${o.message}` : x;
|
|
19205
19157
|
const r = n2(17);
|
19206
19158
|
const o = n2(460);
|
19207
19159
|
const npmRunPath = (e3) => {
|
19208
|
-
e3 =
|
19160
|
+
e3 = { cwd: process.cwd(), path: process.env[o()], execPath: process.execPath, ...e3 };
|
19209
19161
|
let t3;
|
19210
19162
|
let n3 = r.resolve(e3.cwd);
|
19211
19163
|
const s = [];
|
@@ -19221,8 +19173,8 @@ ${o.message}` : x;
|
|
19221
19173
|
e2.exports = npmRunPath;
|
19222
19174
|
e2.exports["default"] = npmRunPath;
|
19223
19175
|
e2.exports.env = (t3) => {
|
19224
|
-
t3 =
|
19225
|
-
const n3 =
|
19176
|
+
t3 = { env: process.env, ...t3 };
|
19177
|
+
const n3 = { ...t3.env };
|
19226
19178
|
const r2 = o({ env: n3 });
|
19227
19179
|
t3.path = n3[r2];
|
19228
19180
|
n3[r2] = e2.exports(t3);
|
@@ -20631,7 +20583,7 @@ var require_upath = __commonJS({
|
|
20631
20583
|
_.VERSION = typeof n !== "undefined" && n !== null ? n : "NO-VERSION";
|
20632
20584
|
p = function(e3) {
|
20633
20585
|
e3 = e3.replace(/\\/g, "/");
|
20634
|
-
e3 = e3.replace(
|
20586
|
+
e3 = e3.replace(/(?<!^)\/+/g, "/");
|
20635
20587
|
return e3;
|
20636
20588
|
};
|
20637
20589
|
for (c in o) {
|
@@ -20927,9 +20879,7 @@ var require_pkg_up = __commonJS({
|
|
20927
20879
|
};
|
20928
20880
|
}, 800: (e2, r2, n2) => {
|
20929
20881
|
const t = n2(485);
|
20930
|
-
e2.exports =
|
20931
|
-
return t("package.json", { cwd: e3 });
|
20932
|
-
});
|
20882
|
+
e2.exports = async ({ cwd: e3 } = {}) => t("package.json", { cwd: e3 });
|
20933
20883
|
e2.exports.sync = ({ cwd: e3 } = {}) => t.sync("package.json", { cwd: e3 });
|
20934
20884
|
}, 147: (e2) => {
|
20935
20885
|
e2.exports = require("fs");
|
@@ -23980,7 +23930,7 @@ var require_fast_glob = __commonJS({
|
|
23980
23930
|
}
|
23981
23931
|
if (t4.nodes && t4.ranges > 0) {
|
23982
23932
|
let r4 = s.reduce(t4.nodes);
|
23983
|
-
let i2 = n(...r4,
|
23933
|
+
let i2 = n(...r4, { ...e3, wrap: false, toRegex: true });
|
23984
23934
|
if (i2.length !== 0) {
|
23985
23935
|
return r4.length > 1 && i2.length > 1 ? `(${i2})` : i2;
|
23986
23936
|
}
|
@@ -24406,13 +24356,11 @@ var require_fast_glob = __commonJS({
|
|
24406
24356
|
const a = r2(1066);
|
24407
24357
|
const u = r2(7190);
|
24408
24358
|
const c = r2(3828);
|
24409
|
-
function FastGlob(t3, e3) {
|
24410
|
-
|
24411
|
-
|
24412
|
-
|
24413
|
-
|
24414
|
-
return c.array.flatten(n2);
|
24415
|
-
});
|
24359
|
+
async function FastGlob(t3, e3) {
|
24360
|
+
assertPatternsInput(t3);
|
24361
|
+
const r3 = getWorks(t3, i.default, e3);
|
24362
|
+
const n2 = await Promise.all(r3);
|
24363
|
+
return c.array.flatten(n2);
|
24416
24364
|
}
|
24417
24365
|
(function(t3) {
|
24418
24366
|
function sync(t4, e3) {
|
@@ -25583,7 +25531,7 @@ var require_fast_glob = __commonJS({
|
|
25583
25531
|
};
|
25584
25532
|
const toRange = (t3, e3, r3, n2) => {
|
25585
25533
|
if (r3) {
|
25586
|
-
return s(t3, e3,
|
25534
|
+
return s(t3, e3, { wrap: false, ...n2 });
|
25587
25535
|
}
|
25588
25536
|
let i = String.fromCharCode(t3);
|
25589
25537
|
if (t3 === e3)
|
@@ -25649,7 +25597,7 @@ var require_fast_glob = __commonJS({
|
|
25649
25597
|
g++;
|
25650
25598
|
}
|
25651
25599
|
if (n2.toRegex === true) {
|
25652
|
-
return r3 > 1 ? toSequence(d, n2) : toRegex(_, null,
|
25600
|
+
return r3 > 1 ? toSequence(d, n2) : toRegex(_, null, { wrap: false, ...n2 });
|
25653
25601
|
}
|
25654
25602
|
return _;
|
25655
25603
|
};
|
@@ -25691,7 +25639,7 @@ var require_fast_glob = __commonJS({
|
|
25691
25639
|
if (isObject4(r3)) {
|
25692
25640
|
return fill(t3, e3, 0, r3);
|
25693
25641
|
}
|
25694
|
-
let s2 =
|
25642
|
+
let s2 = { ...n2 };
|
25695
25643
|
if (s2.capture === true)
|
25696
25644
|
s2.wrap = true;
|
25697
25645
|
r3 = r3 || s2.step || 1;
|
@@ -26015,7 +25963,7 @@ var require_fast_glob = __commonJS({
|
|
26015
25963
|
}
|
26016
25964
|
};
|
26017
25965
|
for (let o3 = 0; o3 < e3.length; o3++) {
|
26018
|
-
let u2 = i(String(e3[o3]),
|
25966
|
+
let u2 = i(String(e3[o3]), { ...r3, onResult }, true);
|
26019
25967
|
let c2 = u2.state.negated || u2.state.negatedExtglob;
|
26020
25968
|
if (c2)
|
26021
25969
|
a++;
|
@@ -26057,7 +26005,7 @@ var require_fast_glob = __commonJS({
|
|
26057
26005
|
r3.onResult(t4);
|
26058
26006
|
s2.push(t4.output);
|
26059
26007
|
};
|
26060
|
-
let i2 = new Set(micromatch(t3, e3,
|
26008
|
+
let i2 = new Set(micromatch(t3, e3, { ...r3, onResult }));
|
26061
26009
|
for (let t4 of s2) {
|
26062
26010
|
if (!i2.has(t4)) {
|
26063
26011
|
n2.add(t4);
|
@@ -26080,7 +26028,7 @@ var require_fast_glob = __commonJS({
|
|
26080
26028
|
return true;
|
26081
26029
|
}
|
26082
26030
|
}
|
26083
|
-
return micromatch.isMatch(t3, e3,
|
26031
|
+
return micromatch.isMatch(t3, e3, { ...r3, contains: true });
|
26084
26032
|
};
|
26085
26033
|
micromatch.matchKeys = (t3, e3, r3) => {
|
26086
26034
|
if (!o.isObject(t3)) {
|
@@ -26120,7 +26068,7 @@ var require_fast_glob = __commonJS({
|
|
26120
26068
|
};
|
26121
26069
|
micromatch.capture = (t3, e3, r3) => {
|
26122
26070
|
let n2 = o.isWindows(r3);
|
26123
|
-
let s2 = i.makeRe(String(t3),
|
26071
|
+
let s2 = i.makeRe(String(t3), { ...r3, capture: true });
|
26124
26072
|
let a = s2.exec(n2 ? o.toPosixSlashes(e3) : e3);
|
26125
26073
|
if (a) {
|
26126
26074
|
return a.slice(1).map((t4) => t4 === void 0 ? "" : t4);
|
@@ -26148,7 +26096,7 @@ var require_fast_glob = __commonJS({
|
|
26148
26096
|
micromatch.braceExpand = (t3, e3) => {
|
26149
26097
|
if (typeof t3 !== "string")
|
26150
26098
|
throw new TypeError("Expected a string");
|
26151
|
-
return micromatch.braces(t3,
|
26099
|
+
return micromatch.braces(t3, { ...e3, expand: true });
|
26152
26100
|
};
|
26153
26101
|
t2.exports = micromatch;
|
26154
26102
|
}, 376: (t2, e2, r2) => {
|
@@ -26175,7 +26123,7 @@ var require_fast_glob = __commonJS({
|
|
26175
26123
|
const m = `[^.${c}]`;
|
26176
26124
|
const v = `${f}*?`;
|
26177
26125
|
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 };
|
26178
|
-
const A =
|
26126
|
+
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}]|$)` };
|
26179
26127
|
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" };
|
26180
26128
|
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) {
|
26181
26129
|
return { "!": { type: "negate", open: "(?:(?!(?:", close: `))${t3.STAR})` }, "?": { type: "qmark", open: "(?:", close: ")?" }, "+": { type: "plus", open: "(?:", close: ")+" }, "*": { type: "star", open: "(?:", close: ")*" }, "@": { type: "at", open: "(?:", close: ")" } };
|
@@ -26206,7 +26154,7 @@ var require_fast_glob = __commonJS({
|
|
26206
26154
|
throw new TypeError("Expected a string");
|
26207
26155
|
}
|
26208
26156
|
t3 = c[t3] || t3;
|
26209
|
-
const r3 =
|
26157
|
+
const r3 = { ...e3 };
|
26210
26158
|
const l = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
|
26211
26159
|
let f = t3.length;
|
26212
26160
|
if (f > l) {
|
@@ -26298,7 +26246,7 @@ var require_fast_glob = __commonJS({
|
|
26298
26246
|
M = t4;
|
26299
26247
|
};
|
26300
26248
|
const extglobOpen = (t4, e4) => {
|
26301
|
-
const n2 =
|
26249
|
+
const n2 = { ...y[e4], conditions: 1, inner: "" };
|
26302
26250
|
n2.prev = M;
|
26303
26251
|
n2.parens = H.parens;
|
26304
26252
|
n2.output = H.output;
|
@@ -26320,7 +26268,7 @@ var require_fast_glob = __commonJS({
|
|
26320
26268
|
n2 = t4.close = `)$))${i2}`;
|
26321
26269
|
}
|
26322
26270
|
if (t4.inner.includes("*") && (s2 = remaining()) && /^\.[^\\/.]+$/.test(s2)) {
|
26323
|
-
const r4 = parse3(s2,
|
26271
|
+
const r4 = parse3(s2, { ...e3, fastpaths: false }).output;
|
26324
26272
|
n2 = t4.close = `)${r4})${i2})`;
|
26325
26273
|
}
|
26326
26274
|
if (t4.prev.type === "bos") {
|
@@ -26842,7 +26790,7 @@ var require_fast_glob = __commonJS({
|
|
26842
26790
|
return H;
|
26843
26791
|
};
|
26844
26792
|
parse3.fastpaths = (t3, e3) => {
|
26845
|
-
const r3 =
|
26793
|
+
const r3 = { ...e3 };
|
26846
26794
|
const o2 = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
|
26847
26795
|
const a2 = t3.length;
|
26848
26796
|
if (a2 > o2) {
|
@@ -26933,7 +26881,7 @@ var require_fast_glob = __commonJS({
|
|
26933
26881
|
delete a2.state;
|
26934
26882
|
let isIgnored = () => false;
|
26935
26883
|
if (s2.ignore) {
|
26936
|
-
const t4 =
|
26884
|
+
const t4 = { ...e3, ignore: null, onMatch: null, onResult: null };
|
26937
26885
|
isIgnored = picomatch(s2.ignore, t4, r3);
|
26938
26886
|
}
|
26939
26887
|
const matcher = (r4, n3 = false) => {
|
@@ -26995,7 +26943,7 @@ var require_fast_glob = __commonJS({
|
|
26995
26943
|
picomatch.parse = (t3, e3) => {
|
26996
26944
|
if (Array.isArray(t3))
|
26997
26945
|
return t3.map((t4) => picomatch.parse(t4, e3));
|
26998
|
-
return i(t3,
|
26946
|
+
return i(t3, { ...e3, fastpaths: false });
|
26999
26947
|
};
|
27000
26948
|
picomatch.scan = (t3, e3) => s(t3, e3);
|
27001
26949
|
picomatch.compileRe = (t3, e3, r3 = false, n2 = false) => {
|
@@ -27460,7 +27408,7 @@ var require_fast_glob = __commonJS({
|
|
27460
27408
|
if (n(e3) === false) {
|
27461
27409
|
throw new TypeError("toRegexRange: expected the second argument to be a number.");
|
27462
27410
|
}
|
27463
|
-
let s =
|
27411
|
+
let s = { relaxZeros: true, ...r3 };
|
27464
27412
|
if (typeof s.strictZeros === "boolean") {
|
27465
27413
|
s.relaxZeros = s.strictZeros === false;
|
27466
27414
|
}
|
@@ -27738,19 +27686,19 @@ var require_globby = __commonJS({
|
|
27738
27686
|
}
|
27739
27687
|
return [n.posix.join(t3, "**")];
|
27740
27688
|
};
|
27741
|
-
t2.exports = (t3, e3) =>
|
27742
|
-
e3 =
|
27689
|
+
t2.exports = async (t3, e3) => {
|
27690
|
+
e3 = { cwd: process.cwd(), ...e3 };
|
27743
27691
|
if (typeof e3.cwd !== "string") {
|
27744
27692
|
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
|
27745
27693
|
}
|
27746
|
-
const r3 =
|
27747
|
-
const r4 =
|
27694
|
+
const r3 = await Promise.all([].concat(t3).map(async (t4) => {
|
27695
|
+
const r4 = await s.isDirectory(getPath(t4, e3.cwd));
|
27748
27696
|
return r4 ? getGlob(t4, e3) : t4;
|
27749
|
-
}))
|
27697
|
+
}));
|
27750
27698
|
return [].concat.apply([], r3);
|
27751
|
-
}
|
27699
|
+
};
|
27752
27700
|
t2.exports.sync = (t3, e3) => {
|
27753
|
-
e3 =
|
27701
|
+
e3 = { cwd: process.cwd(), ...e3 };
|
27754
27702
|
if (typeof e3.cwd !== "string") {
|
27755
27703
|
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
|
27756
27704
|
}
|
@@ -27795,24 +27743,24 @@ var require_globby = __commonJS({
|
|
27795
27743
|
return o.join(t3, e3);
|
27796
27744
|
};
|
27797
27745
|
const getIsIgnoredPredecate = (t3, e3) => (r3) => t3.ignores(a(o.relative(e3, ensureAbsolutePathForCwd(e3, r3.path || r3))));
|
27798
|
-
const getFile = (t3, e3) =>
|
27746
|
+
const getFile = async (t3, e3) => {
|
27799
27747
|
const r3 = o.join(e3, t3);
|
27800
|
-
const n2 =
|
27748
|
+
const n2 = await u(r3, "utf8");
|
27801
27749
|
return { cwd: e3, filePath: r3, content: n2 };
|
27802
|
-
}
|
27750
|
+
};
|
27803
27751
|
const getFileSync = (t3, e3) => {
|
27804
27752
|
const r3 = o.join(e3, t3);
|
27805
27753
|
const n2 = s.readFileSync(r3, "utf8");
|
27806
27754
|
return { cwd: e3, filePath: r3, content: n2 };
|
27807
27755
|
};
|
27808
27756
|
const normalizeOptions = ({ ignore: t3 = [], cwd: e3 = a(process.cwd()) } = {}) => ({ ignore: t3, cwd: e3 });
|
27809
|
-
t2.exports = (t3) =>
|
27757
|
+
t2.exports = async (t3) => {
|
27810
27758
|
t3 = normalizeOptions(t3);
|
27811
|
-
const e3 =
|
27812
|
-
const r3 =
|
27759
|
+
const e3 = await i("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
|
27760
|
+
const r3 = await Promise.all(e3.map((e4) => getFile(e4, t3.cwd)));
|
27813
27761
|
const n2 = reduceIgnore(r3);
|
27814
27762
|
return getIsIgnoredPredecate(n2, t3.cwd);
|
27815
|
-
}
|
27763
|
+
};
|
27816
27764
|
t2.exports.sync = (t3) => {
|
27817
27765
|
t3 = normalizeOptions(t3);
|
27818
27766
|
const e3 = i.sync("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
|
@@ -27843,7 +27791,7 @@ var require_globby = __commonJS({
|
|
27843
27791
|
let e3;
|
27844
27792
|
try {
|
27845
27793
|
e3 = n.statSync(t3.cwd);
|
27846
|
-
} catch
|
27794
|
+
} catch {
|
27847
27795
|
return;
|
27848
27796
|
}
|
27849
27797
|
if (!e3.isDirectory()) {
|
@@ -27856,13 +27804,13 @@ var require_globby = __commonJS({
|
|
27856
27804
|
assertPatternsInput(t3);
|
27857
27805
|
checkCwdOption(e3);
|
27858
27806
|
const r3 = [];
|
27859
|
-
e3 =
|
27807
|
+
e3 = { ignore: [], expandDirectories: true, ...e3 };
|
27860
27808
|
for (const [n2, s2] of t3.entries()) {
|
27861
27809
|
if (isNegative(s2)) {
|
27862
27810
|
continue;
|
27863
27811
|
}
|
27864
27812
|
const o2 = t3.slice(n2).filter((t4) => isNegative(t4)).map((t4) => t4.slice(1));
|
27865
|
-
const i2 =
|
27813
|
+
const i2 = { ...e3, ignore: e3.ignore.concat(o2) };
|
27866
27814
|
r3.push({ pattern: s2, options: i2 });
|
27867
27815
|
}
|
27868
27816
|
return r3;
|
@@ -27873,9 +27821,9 @@ var require_globby = __commonJS({
|
|
27873
27821
|
r3.cwd = t3.options.cwd;
|
27874
27822
|
}
|
27875
27823
|
if (Array.isArray(t3.options.expandDirectories)) {
|
27876
|
-
r3 =
|
27824
|
+
r3 = { ...r3, files: t3.options.expandDirectories };
|
27877
27825
|
} else if (typeof t3.options.expandDirectories === "object") {
|
27878
|
-
r3 =
|
27826
|
+
r3 = { ...r3, ...t3.options.expandDirectories };
|
27879
27827
|
}
|
27880
27828
|
return e3(t3.pattern, r3);
|
27881
27829
|
};
|
@@ -27888,22 +27836,20 @@ var require_globby = __commonJS({
|
|
27888
27836
|
}
|
27889
27837
|
return { pattern: e3, options: r3 };
|
27890
27838
|
};
|
27891
|
-
t2.exports = (t3, e3) =>
|
27839
|
+
t2.exports = async (t3, e3) => {
|
27892
27840
|
const r3 = generateGlobTasks(t3, e3);
|
27893
|
-
const getFilter = () =>
|
27894
|
-
|
27895
|
-
|
27896
|
-
|
27897
|
-
const t4 = yield Promise.all(r3.map((t5) => __async(exports, null, function* () {
|
27898
|
-
const e4 = yield getPattern(t5, c);
|
27841
|
+
const getFilter = async () => e3 && e3.gitignore ? a({ cwd: e3.cwd, ignore: e3.ignore }) : DEFAULT_FILTER;
|
27842
|
+
const getTasks = async () => {
|
27843
|
+
const t4 = await Promise.all(r3.map(async (t5) => {
|
27844
|
+
const e4 = await getPattern(t5, c);
|
27899
27845
|
return Promise.all(e4.map(globToTask(t5)));
|
27900
|
-
}))
|
27846
|
+
}));
|
27901
27847
|
return s(...t4);
|
27902
|
-
}
|
27903
|
-
const [n2, o2] =
|
27904
|
-
const p2 =
|
27848
|
+
};
|
27849
|
+
const [n2, o2] = await Promise.all([getFilter(), getTasks()]);
|
27850
|
+
const p2 = await Promise.all(o2.map((t4) => i(t4.pattern, t4.options)));
|
27905
27851
|
return s(...p2).filter((t4) => !n2(getPathString(t4)));
|
27906
|
-
}
|
27852
|
+
};
|
27907
27853
|
t2.exports.sync = (t3, e3) => {
|
27908
27854
|
const r3 = generateGlobTasks(t3, e3);
|
27909
27855
|
const n2 = [];
|
@@ -28257,21 +28203,19 @@ var require_globby = __commonJS({
|
|
28257
28203
|
"use strict";
|
28258
28204
|
const { promisify: n } = r2(837);
|
28259
28205
|
const s = r2(147);
|
28260
|
-
function isType4(t3, e3, r3) {
|
28261
|
-
|
28262
|
-
|
28263
|
-
|
28264
|
-
|
28265
|
-
|
28266
|
-
|
28267
|
-
|
28268
|
-
|
28269
|
-
|
28270
|
-
return false;
|
28271
|
-
}
|
28272
|
-
throw t4;
|
28206
|
+
async function isType4(t3, e3, r3) {
|
28207
|
+
if (typeof r3 !== "string") {
|
28208
|
+
throw new TypeError(`Expected a string, got ${typeof r3}`);
|
28209
|
+
}
|
28210
|
+
try {
|
28211
|
+
const o = await n(s[t3])(r3);
|
28212
|
+
return o[e3]();
|
28213
|
+
} catch (t4) {
|
28214
|
+
if (t4.code === "ENOENT") {
|
28215
|
+
return false;
|
28273
28216
|
}
|
28274
|
-
|
28217
|
+
throw t4;
|
28218
|
+
}
|
28275
28219
|
}
|
28276
28220
|
function isTypeSync(t3, e3, r3) {
|
28277
28221
|
if (typeof r3 !== "string") {
|
@@ -30646,15 +30590,15 @@ var require_gzip_size = __commonJS({
|
|
30646
30590
|
const i = t2(796);
|
30647
30591
|
const { promisify: a } = t2(837);
|
30648
30592
|
const s = t2(325);
|
30649
|
-
const getOptions = (e3) =>
|
30593
|
+
const getOptions = (e3) => ({ level: 9, ...e3 });
|
30650
30594
|
const p = a(i.gzip);
|
30651
|
-
e2.exports = (e3, r3) =>
|
30595
|
+
e2.exports = async (e3, r3) => {
|
30652
30596
|
if (!e3) {
|
30653
30597
|
return 0;
|
30654
30598
|
}
|
30655
|
-
const t3 =
|
30599
|
+
const t3 = await p(e3, getOptions(r3));
|
30656
30600
|
return t3.length;
|
30657
|
-
}
|
30601
|
+
};
|
30658
30602
|
e2.exports.sync = (e3, r3) => i.gzipSync(e3, getOptions(r3)).length;
|
30659
30603
|
e2.exports.stream = (e3) => {
|
30660
30604
|
const r3 = new o.PassThrough();
|
@@ -33616,12 +33560,10 @@ Expecting one of '${i3.join("', '")}'`);
|
|
33616
33560
|
this._parseCommand([], i3);
|
33617
33561
|
return this;
|
33618
33562
|
}
|
33619
|
-
parseAsync(t3, e3) {
|
33620
|
-
|
33621
|
-
|
33622
|
-
|
33623
|
-
return this;
|
33624
|
-
});
|
33563
|
+
async parseAsync(t3, e3) {
|
33564
|
+
const i3 = this._prepareUserArgs(t3, e3);
|
33565
|
+
await this._parseCommand([], i3);
|
33566
|
+
return this;
|
33625
33567
|
}
|
33626
33568
|
_executeSubCommand(t3, e3) {
|
33627
33569
|
e3 = e3.slice();
|
@@ -42292,9 +42234,10 @@ var require_parse = __commonJS({
|
|
42292
42234
|
var parse_comments = (prefix) => {
|
42293
42235
|
const comments = [];
|
42294
42236
|
while (current && (is("LineComment") || is("BlockComment"))) {
|
42295
|
-
const comment =
|
42237
|
+
const comment = {
|
42238
|
+
...current,
|
42296
42239
|
inline
|
42297
|
-
}
|
42240
|
+
};
|
42298
42241
|
comments.push(comment);
|
42299
42242
|
next();
|
42300
42243
|
}
|
@@ -50159,7 +50102,7 @@ var require_opts_arg = __commonJS({
|
|
50159
50102
|
if (!opts)
|
50160
50103
|
opts = { mode: 511, fs: fs3 };
|
50161
50104
|
else if (typeof opts === "object")
|
50162
|
-
opts =
|
50105
|
+
opts = { mode: 511, fs: fs3, ...opts };
|
50163
50106
|
else if (typeof opts === "number")
|
50164
50107
|
opts = { mode: opts, fs: fs3 };
|
50165
50108
|
else if (typeof opts === "string")
|
@@ -58673,12 +58616,12 @@ var require_baseUI = __commonJS({
|
|
58673
58616
|
const ms = new MuteStream();
|
58674
58617
|
ms.pipe(opt.output || process.stdout);
|
58675
58618
|
const output2 = ms;
|
58676
|
-
return
|
58677
|
-
terminal: true
|
58678
|
-
|
58619
|
+
return {
|
58620
|
+
terminal: true,
|
58621
|
+
...opt,
|
58679
58622
|
input,
|
58680
58623
|
output: output2
|
58681
|
-
}
|
58624
|
+
};
|
58682
58625
|
}
|
58683
58626
|
module2.exports = UI;
|
58684
58627
|
}
|
@@ -70136,14 +70079,14 @@ var require_prompt = __commonJS({
|
|
70136
70079
|
}
|
70137
70080
|
run(questions, answers) {
|
70138
70081
|
if (_.isPlainObject(answers)) {
|
70139
|
-
this.answers =
|
70082
|
+
this.answers = { ...answers };
|
70140
70083
|
} else {
|
70141
70084
|
this.answers = {};
|
70142
70085
|
}
|
70143
70086
|
if (_.isPlainObject(questions)) {
|
70144
70087
|
questions = Object.values(questions).every(
|
70145
70088
|
(v) => _.isPlainObject(v) && v.name === void 0
|
70146
|
-
) ? Object.entries(questions).map(([name, question]) =>
|
70089
|
+
) ? Object.entries(questions).map(([name, question]) => ({ name, ...question })) : [questions];
|
70147
70090
|
}
|
70148
70091
|
const obs = Array.isArray(questions) ? from(questions) : questions;
|
70149
70092
|
this.process = obs.pipe(
|
@@ -70171,7 +70114,7 @@ var require_prompt = __commonJS({
|
|
70171
70114
|
return Promise.reject(error);
|
70172
70115
|
}
|
70173
70116
|
processQuestion(question) {
|
70174
|
-
question =
|
70117
|
+
question = { ...question };
|
70175
70118
|
return defer(() => {
|
70176
70119
|
const obs = of(question);
|
70177
70120
|
return obs.pipe(
|
@@ -73129,7 +73072,7 @@ var require_conversions = __commonJS({
|
|
73129
73072
|
return [c * 100, m * 100, y * 100, k * 100];
|
73130
73073
|
};
|
73131
73074
|
function comparativeDistance(x, y) {
|
73132
|
-
return
|
73075
|
+
return (x[0] - y[0]) ** 2 + (x[1] - y[1]) ** 2 + (x[2] - y[2]) ** 2;
|
73133
73076
|
}
|
73134
73077
|
convert.rgb.keyword = function(rgb) {
|
73135
73078
|
const reversed = reverseKeywords[rgb];
|
@@ -73155,9 +73098,9 @@ var require_conversions = __commonJS({
|
|
73155
73098
|
let r = rgb[0] / 255;
|
73156
73099
|
let g = rgb[1] / 255;
|
73157
73100
|
let b = rgb[2] / 255;
|
73158
|
-
r = r > 0.04045 ?
|
73159
|
-
g = g > 0.04045 ?
|
73160
|
-
b = b > 0.04045 ?
|
73101
|
+
r = r > 0.04045 ? ((r + 0.055) / 1.055) ** 2.4 : r / 12.92;
|
73102
|
+
g = g > 0.04045 ? ((g + 0.055) / 1.055) ** 2.4 : g / 12.92;
|
73103
|
+
b = b > 0.04045 ? ((b + 0.055) / 1.055) ** 2.4 : b / 12.92;
|
73161
73104
|
const x = r * 0.4124 + g * 0.3576 + b * 0.1805;
|
73162
73105
|
const y = r * 0.2126 + g * 0.7152 + b * 0.0722;
|
73163
73106
|
const z = r * 0.0193 + g * 0.1192 + b * 0.9505;
|
@@ -73171,9 +73114,9 @@ var require_conversions = __commonJS({
|
|
73171
73114
|
x /= 95.047;
|
73172
73115
|
y /= 100;
|
73173
73116
|
z /= 108.883;
|
73174
|
-
x = x > 8856e-6 ?
|
73175
|
-
y = y > 8856e-6 ?
|
73176
|
-
z = z > 8856e-6 ?
|
73117
|
+
x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
|
73118
|
+
y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
|
73119
|
+
z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
|
73177
73120
|
const l = 116 * y - 16;
|
73178
73121
|
const a = 500 * (x - y);
|
73179
73122
|
const b = 200 * (y - z);
|
@@ -73347,9 +73290,9 @@ var require_conversions = __commonJS({
|
|
73347
73290
|
r = x * 3.2406 + y * -1.5372 + z * -0.4986;
|
73348
73291
|
g = x * -0.9689 + y * 1.8758 + z * 0.0415;
|
73349
73292
|
b = x * 0.0557 + y * -0.204 + z * 1.057;
|
73350
|
-
r = r > 31308e-7 ? 1.055 *
|
73351
|
-
g = g > 31308e-7 ? 1.055 *
|
73352
|
-
b = b > 31308e-7 ? 1.055 *
|
73293
|
+
r = r > 31308e-7 ? 1.055 * r ** (1 / 2.4) - 0.055 : r * 12.92;
|
73294
|
+
g = g > 31308e-7 ? 1.055 * g ** (1 / 2.4) - 0.055 : g * 12.92;
|
73295
|
+
b = b > 31308e-7 ? 1.055 * b ** (1 / 2.4) - 0.055 : b * 12.92;
|
73353
73296
|
r = Math.min(Math.max(0, r), 1);
|
73354
73297
|
g = Math.min(Math.max(0, g), 1);
|
73355
73298
|
b = Math.min(Math.max(0, b), 1);
|
@@ -73362,9 +73305,9 @@ var require_conversions = __commonJS({
|
|
73362
73305
|
x /= 95.047;
|
73363
73306
|
y /= 100;
|
73364
73307
|
z /= 108.883;
|
73365
|
-
x = x > 8856e-6 ?
|
73366
|
-
y = y > 8856e-6 ?
|
73367
|
-
z = z > 8856e-6 ?
|
73308
|
+
x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
|
73309
|
+
y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
|
73310
|
+
z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
|
73368
73311
|
const l = 116 * y - 16;
|
73369
73312
|
const a = 500 * (x - y);
|
73370
73313
|
const b = 200 * (y - z);
|
@@ -73380,9 +73323,9 @@ var require_conversions = __commonJS({
|
|
73380
73323
|
y = (l + 16) / 116;
|
73381
73324
|
x = a / 500 + y;
|
73382
73325
|
z = y - b / 200;
|
73383
|
-
const y2 =
|
73384
|
-
const x2 =
|
73385
|
-
const z2 =
|
73326
|
+
const y2 = y ** 3;
|
73327
|
+
const x2 = x ** 3;
|
73328
|
+
const z2 = z ** 3;
|
73386
73329
|
y = y2 > 8856e-6 ? y2 : (y - 16 / 116) / 7.787;
|
73387
73330
|
x = x2 > 8856e-6 ? x2 : (x - 16 / 116) / 7.787;
|
73388
73331
|
z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787;
|
@@ -79286,12 +79229,13 @@ var require_ora2 = __commonJS({
|
|
79286
79229
|
text: options
|
79287
79230
|
};
|
79288
79231
|
}
|
79289
|
-
this.options =
|
79232
|
+
this.options = {
|
79290
79233
|
text: "",
|
79291
79234
|
color: "cyan",
|
79292
79235
|
stream: process.stderr,
|
79293
|
-
discardStdin: true
|
79294
|
-
|
79236
|
+
discardStdin: true,
|
79237
|
+
...options
|
79238
|
+
};
|
79295
79239
|
this.spinner = this.options.spinner;
|
79296
79240
|
this.color = this.options.color;
|
79297
79241
|
this.hideCursor = this.options.hideCursor !== false;
|
@@ -79508,14 +79452,14 @@ var require_ora2 = __commonJS({
|
|
79508
79452
|
}
|
79509
79453
|
const spinner = new Ora(options);
|
79510
79454
|
spinner.start();
|
79511
|
-
(() =>
|
79455
|
+
(async () => {
|
79512
79456
|
try {
|
79513
|
-
|
79457
|
+
await action2;
|
79514
79458
|
spinner.succeed();
|
79515
|
-
} catch
|
79459
|
+
} catch {
|
79516
79460
|
spinner.fail();
|
79517
79461
|
}
|
79518
|
-
})
|
79462
|
+
})();
|
79519
79463
|
return spinner;
|
79520
79464
|
};
|
79521
79465
|
}
|
@@ -91095,7 +91039,7 @@ var require_prompt2 = __commonJS({
|
|
91095
91039
|
if (_.isPlainObject(questions)) {
|
91096
91040
|
questions = Object.values(questions).every(
|
91097
91041
|
(v) => _.isPlainObject(v) && v.name === void 0
|
91098
|
-
) ? Object.entries(questions).map(([name, question]) =>
|
91042
|
+
) ? Object.entries(questions).map(([name, question]) => ({ name, ...question })) : [questions];
|
91099
91043
|
}
|
91100
91044
|
const obs = _.isArray(questions) ? from(questions) : questions;
|
91101
91045
|
this.process = obs.pipe(
|
@@ -93797,22 +93741,20 @@ var require_fs_extra2 = __commonJS({
|
|
93797
93741
|
const o = r2(17);
|
93798
93742
|
const c = r2(971);
|
93799
93743
|
const s = r2(95);
|
93800
|
-
const a = n(function emptyDir(e3) {
|
93801
|
-
|
93802
|
-
|
93803
|
-
|
93804
|
-
|
93805
|
-
|
93806
|
-
|
93807
|
-
|
93808
|
-
return Promise.all(t3.map((t4) => s.remove(o.join(e3, t4))));
|
93809
|
-
});
|
93744
|
+
const a = n(async function emptyDir(e3) {
|
93745
|
+
let t3;
|
93746
|
+
try {
|
93747
|
+
t3 = await i.readdir(e3);
|
93748
|
+
} catch {
|
93749
|
+
return c.mkdirs(e3);
|
93750
|
+
}
|
93751
|
+
return Promise.all(t3.map((t4) => s.remove(o.join(e3, t4))));
|
93810
93752
|
});
|
93811
93753
|
function emptyDirSync(e3) {
|
93812
93754
|
let t3;
|
93813
93755
|
try {
|
93814
93756
|
t3 = i.readdirSync(e3);
|
93815
|
-
} catch
|
93757
|
+
} catch {
|
93816
93758
|
return c.mkdirsSync(e3);
|
93817
93759
|
}
|
93818
93760
|
t3.forEach((t4) => {
|
@@ -93865,7 +93807,7 @@ var require_fs_extra2 = __commonJS({
|
|
93865
93807
|
let t3;
|
93866
93808
|
try {
|
93867
93809
|
t3 = o.statSync(e3);
|
93868
|
-
} catch
|
93810
|
+
} catch {
|
93869
93811
|
}
|
93870
93812
|
if (t3 && t3.isFile())
|
93871
93813
|
return;
|
@@ -93932,7 +93874,7 @@ var require_fs_extra2 = __commonJS({
|
|
93932
93874
|
let r3;
|
93933
93875
|
try {
|
93934
93876
|
r3 = o.lstatSync(t3);
|
93935
|
-
} catch
|
93877
|
+
} catch {
|
93936
93878
|
}
|
93937
93879
|
try {
|
93938
93880
|
const t4 = o.lstatSync(e3);
|
@@ -94027,7 +93969,7 @@ var require_fs_extra2 = __commonJS({
|
|
94027
93969
|
return t3;
|
94028
93970
|
try {
|
94029
93971
|
r3 = n.lstatSync(e3);
|
94030
|
-
} catch
|
93972
|
+
} catch {
|
94031
93973
|
return "file";
|
94032
93974
|
}
|
94033
93975
|
return r3 && r3.isDirectory() ? "dir" : "file";
|
@@ -94090,7 +94032,7 @@ var require_fs_extra2 = __commonJS({
|
|
94090
94032
|
let n2;
|
94091
94033
|
try {
|
94092
94034
|
n2 = o.lstatSync(t3);
|
94093
|
-
} catch
|
94035
|
+
} catch {
|
94094
94036
|
}
|
94095
94037
|
if (n2 && n2.isSymbolicLink()) {
|
94096
94038
|
const r4 = o.statSync(e3);
|
@@ -94165,7 +94107,7 @@ var require_fs_extra2 = __commonJS({
|
|
94165
94107
|
}
|
94166
94108
|
}, 81: (e2, t2, r2) => {
|
94167
94109
|
"use strict";
|
94168
|
-
e2.exports =
|
94110
|
+
e2.exports = { ...r2(812), ...r2(2), ...r2(708), ...r2(726), ...r2(779), ...r2(971), ...r2(511), ...r2(701), ...r2(725), ...r2(95) };
|
94169
94111
|
}, 779: (e2, t2, r2) => {
|
94170
94112
|
"use strict";
|
94171
94113
|
const n = r2(5).fromPromise;
|
@@ -94196,11 +94138,9 @@ var require_fs_extra2 = __commonJS({
|
|
94196
94138
|
"use strict";
|
94197
94139
|
const { stringify: n } = r2(208);
|
94198
94140
|
const { outputFile: i } = r2(701);
|
94199
|
-
function outputJson(
|
94200
|
-
|
94201
|
-
|
94202
|
-
yield i(e3, o, r3);
|
94203
|
-
});
|
94141
|
+
async function outputJson(e3, t3, r3 = {}) {
|
94142
|
+
const o = n(t3, r3);
|
94143
|
+
await i(e3, o, r3);
|
94204
94144
|
}
|
94205
94145
|
e2.exports = outputJson;
|
94206
94146
|
}, 971: (e2, t2, r2) => {
|
@@ -94217,12 +94157,12 @@ var require_fs_extra2 = __commonJS({
|
|
94217
94157
|
const t3 = { mode: 511 };
|
94218
94158
|
if (typeof e3 === "number")
|
94219
94159
|
return e3;
|
94220
|
-
return
|
94160
|
+
return { ...t3, ...e3 }.mode;
|
94221
94161
|
};
|
94222
|
-
e2.exports.makeDir = (e3, t3) =>
|
94162
|
+
e2.exports.makeDir = async (e3, t3) => {
|
94223
94163
|
i(e3);
|
94224
94164
|
return n.mkdir(e3, { mode: getMode(t3), recursive: true });
|
94225
|
-
}
|
94165
|
+
};
|
94226
94166
|
e2.exports.makeDirSync = (e3, t3) => {
|
94227
94167
|
i(e3);
|
94228
94168
|
return n.mkdirSync(e3, { mode: getMode(t3), recursive: true });
|
@@ -94640,7 +94580,7 @@ var require_fs_extra2 = __commonJS({
|
|
94640
94580
|
try {
|
94641
94581
|
const r4 = t3.rmdirSync(e3, t3);
|
94642
94582
|
return r4;
|
94643
|
-
} catch
|
94583
|
+
} catch {
|
94644
94584
|
}
|
94645
94585
|
} while (Date.now() - r3 < 500);
|
94646
94586
|
} else {
|
@@ -95539,28 +95479,26 @@ var require_fs_extra2 = __commonJS({
|
|
95539
95479
|
}
|
95540
95480
|
const i = r2(5);
|
95541
95481
|
const { stringify: o, stripBom: c } = r2(208);
|
95542
|
-
function _readFile(
|
95543
|
-
|
95544
|
-
|
95545
|
-
|
95546
|
-
|
95547
|
-
|
95548
|
-
|
95549
|
-
|
95550
|
-
|
95551
|
-
|
95552
|
-
|
95553
|
-
|
95554
|
-
|
95555
|
-
|
95556
|
-
|
95557
|
-
|
95558
|
-
|
95559
|
-
return null;
|
95560
|
-
}
|
95482
|
+
async function _readFile(e3, t3 = {}) {
|
95483
|
+
if (typeof t3 === "string") {
|
95484
|
+
t3 = { encoding: t3 };
|
95485
|
+
}
|
95486
|
+
const r3 = t3.fs || n;
|
95487
|
+
const o2 = "throws" in t3 ? t3.throws : true;
|
95488
|
+
let s2 = await i.fromCallback(r3.readFile)(e3, t3);
|
95489
|
+
s2 = c(s2);
|
95490
|
+
let a2;
|
95491
|
+
try {
|
95492
|
+
a2 = JSON.parse(s2, t3 ? t3.reviver : null);
|
95493
|
+
} catch (t4) {
|
95494
|
+
if (o2) {
|
95495
|
+
t4.message = `${e3}: ${t4.message}`;
|
95496
|
+
throw t4;
|
95497
|
+
} else {
|
95498
|
+
return null;
|
95561
95499
|
}
|
95562
|
-
|
95563
|
-
|
95500
|
+
}
|
95501
|
+
return a2;
|
95564
95502
|
}
|
95565
95503
|
const s = i.fromPromise(_readFile);
|
95566
95504
|
function readFileSync(e3, t3 = {}) {
|
@@ -95582,12 +95520,10 @@ var require_fs_extra2 = __commonJS({
|
|
95582
95520
|
}
|
95583
95521
|
}
|
95584
95522
|
}
|
95585
|
-
function _writeFile(
|
95586
|
-
|
95587
|
-
|
95588
|
-
|
95589
|
-
yield i.fromCallback(c2.writeFile)(e3, s2, r3);
|
95590
|
-
});
|
95523
|
+
async function _writeFile(e3, t3, r3 = {}) {
|
95524
|
+
const c2 = r3.fs || n;
|
95525
|
+
const s2 = o(t3, r3);
|
95526
|
+
await i.fromCallback(c2.writeFile)(e3, s2, r3);
|
95591
95527
|
}
|
95592
95528
|
const a = i.fromPromise(_writeFile);
|
95593
95529
|
function writeFileSync(e3, t3, r3 = {}) {
|
@@ -95815,11 +95751,11 @@ var require_chalk2 = __commonJS({
|
|
95815
95751
|
} };
|
95816
95752
|
}
|
95817
95753
|
const f = Object.defineProperties(() => {
|
95818
|
-
},
|
95754
|
+
}, { ...u, level: { enumerable: true, get() {
|
95819
95755
|
return this._generator.level;
|
95820
95756
|
}, set(e3) {
|
95821
95757
|
this._generator.level = e3;
|
95822
|
-
} } })
|
95758
|
+
} } });
|
95823
95759
|
const createStyler = (e3, t3, n3) => {
|
95824
95760
|
let r2;
|
95825
95761
|
let s2;
|
@@ -96130,7 +96066,7 @@ var require_chalk2 = __commonJS({
|
|
96130
96066
|
return [o2 * 100, l * 100, c * 100, s2 * 100];
|
96131
96067
|
};
|
96132
96068
|
function comparativeDistance(e3, t3) {
|
96133
|
-
return
|
96069
|
+
return (e3[0] - t3[0]) ** 2 + (e3[1] - t3[1]) ** 2 + (e3[2] - t3[2]) ** 2;
|
96134
96070
|
}
|
96135
96071
|
o.rgb.keyword = function(e3) {
|
96136
96072
|
const t3 = s[e3];
|
@@ -96156,9 +96092,9 @@ var require_chalk2 = __commonJS({
|
|
96156
96092
|
let t3 = e3[0] / 255;
|
96157
96093
|
let n3 = e3[1] / 255;
|
96158
96094
|
let r2 = e3[2] / 255;
|
96159
|
-
t3 = t3 > 0.04045 ?
|
96160
|
-
n3 = n3 > 0.04045 ?
|
96161
|
-
r2 = r2 > 0.04045 ?
|
96095
|
+
t3 = t3 > 0.04045 ? ((t3 + 0.055) / 1.055) ** 2.4 : t3 / 12.92;
|
96096
|
+
n3 = n3 > 0.04045 ? ((n3 + 0.055) / 1.055) ** 2.4 : n3 / 12.92;
|
96097
|
+
r2 = r2 > 0.04045 ? ((r2 + 0.055) / 1.055) ** 2.4 : r2 / 12.92;
|
96162
96098
|
const s2 = t3 * 0.4124 + n3 * 0.3576 + r2 * 0.1805;
|
96163
96099
|
const o2 = t3 * 0.2126 + n3 * 0.7152 + r2 * 0.0722;
|
96164
96100
|
const l = t3 * 0.0193 + n3 * 0.1192 + r2 * 0.9505;
|
@@ -96172,9 +96108,9 @@ var require_chalk2 = __commonJS({
|
|
96172
96108
|
n3 /= 95.047;
|
96173
96109
|
r2 /= 100;
|
96174
96110
|
s2 /= 108.883;
|
96175
|
-
n3 = n3 > 8856e-6 ?
|
96176
|
-
r2 = r2 > 8856e-6 ?
|
96177
|
-
s2 = s2 > 8856e-6 ?
|
96111
|
+
n3 = n3 > 8856e-6 ? n3 ** (1 / 3) : 7.787 * n3 + 16 / 116;
|
96112
|
+
r2 = r2 > 8856e-6 ? r2 ** (1 / 3) : 7.787 * r2 + 16 / 116;
|
96113
|
+
s2 = s2 > 8856e-6 ? s2 ** (1 / 3) : 7.787 * s2 + 16 / 116;
|
96178
96114
|
const l = 116 * r2 - 16;
|
96179
96115
|
const c = 500 * (n3 - r2);
|
96180
96116
|
const i = 200 * (r2 - s2);
|
@@ -96348,9 +96284,9 @@ var require_chalk2 = __commonJS({
|
|
96348
96284
|
s2 = t3 * 3.2406 + n3 * -1.5372 + r2 * -0.4986;
|
96349
96285
|
o2 = t3 * -0.9689 + n3 * 1.8758 + r2 * 0.0415;
|
96350
96286
|
l = t3 * 0.0557 + n3 * -0.204 + r2 * 1.057;
|
96351
|
-
s2 = s2 > 31308e-7 ? 1.055 *
|
96352
|
-
o2 = o2 > 31308e-7 ? 1.055 *
|
96353
|
-
l = l > 31308e-7 ? 1.055 *
|
96287
|
+
s2 = s2 > 31308e-7 ? 1.055 * s2 ** (1 / 2.4) - 0.055 : s2 * 12.92;
|
96288
|
+
o2 = o2 > 31308e-7 ? 1.055 * o2 ** (1 / 2.4) - 0.055 : o2 * 12.92;
|
96289
|
+
l = l > 31308e-7 ? 1.055 * l ** (1 / 2.4) - 0.055 : l * 12.92;
|
96354
96290
|
s2 = Math.min(Math.max(0, s2), 1);
|
96355
96291
|
o2 = Math.min(Math.max(0, o2), 1);
|
96356
96292
|
l = Math.min(Math.max(0, l), 1);
|
@@ -96363,9 +96299,9 @@ var require_chalk2 = __commonJS({
|
|
96363
96299
|
t3 /= 95.047;
|
96364
96300
|
n3 /= 100;
|
96365
96301
|
r2 /= 108.883;
|
96366
|
-
t3 = t3 > 8856e-6 ?
|
96367
|
-
n3 = n3 > 8856e-6 ?
|
96368
|
-
r2 = r2 > 8856e-6 ?
|
96302
|
+
t3 = t3 > 8856e-6 ? t3 ** (1 / 3) : 7.787 * t3 + 16 / 116;
|
96303
|
+
n3 = n3 > 8856e-6 ? n3 ** (1 / 3) : 7.787 * n3 + 16 / 116;
|
96304
|
+
r2 = r2 > 8856e-6 ? r2 ** (1 / 3) : 7.787 * r2 + 16 / 116;
|
96369
96305
|
const s2 = 116 * n3 - 16;
|
96370
96306
|
const o2 = 500 * (t3 - n3);
|
96371
96307
|
const l = 200 * (n3 - r2);
|
@@ -96381,9 +96317,9 @@ var require_chalk2 = __commonJS({
|
|
96381
96317
|
o2 = (t3 + 16) / 116;
|
96382
96318
|
s2 = n3 / 500 + o2;
|
96383
96319
|
l = o2 - r2 / 200;
|
96384
|
-
const c =
|
96385
|
-
const i =
|
96386
|
-
const a =
|
96320
|
+
const c = o2 ** 3;
|
96321
|
+
const i = s2 ** 3;
|
96322
|
+
const a = l ** 3;
|
96387
96323
|
o2 = c > 8856e-6 ? c : (o2 - 16 / 116) / 7.787;
|
96388
96324
|
s2 = i > 8856e-6 ? i : (s2 - 16 / 116) / 7.787;
|
96389
96325
|
l = a > 8856e-6 ? a : (l - 16 / 116) / 7.787;
|
@@ -97639,7 +97575,7 @@ var require_ora3 = __commonJS({
|
|
97639
97575
|
if (typeof e3 === "string") {
|
97640
97576
|
e3 = { text: e3 };
|
97641
97577
|
}
|
97642
|
-
this.options =
|
97578
|
+
this.options = { text: "", color: "cyan", stream: process.stderr, discardStdin: true, ...e3 };
|
97643
97579
|
this.spinner = this.options.spinner;
|
97644
97580
|
this.color = this.options.color;
|
97645
97581
|
this.hideCursor = this.options.hideCursor !== false;
|
@@ -97856,14 +97792,14 @@ var require_ora3 = __commonJS({
|
|
97856
97792
|
}
|
97857
97793
|
const r3 = new Ora(t3);
|
97858
97794
|
r3.start();
|
97859
|
-
(() =>
|
97795
|
+
(async () => {
|
97860
97796
|
try {
|
97861
|
-
|
97797
|
+
await e3;
|
97862
97798
|
r3.succeed();
|
97863
|
-
} catch
|
97799
|
+
} catch {
|
97864
97800
|
r3.fail();
|
97865
97801
|
}
|
97866
|
-
})
|
97802
|
+
})();
|
97867
97803
|
return r3;
|
97868
97804
|
};
|
97869
97805
|
}, 959: (e2) => {
|
@@ -106283,7 +106219,7 @@ var require_execa2 = __commonJS({
|
|
106283
106219
|
const { joinCommand: w, parseCommand: E, getEscapedCommand: I } = n2(192);
|
106284
106220
|
const T = 1e3 * 1e3 * 100;
|
106285
106221
|
const getEnv = ({ env: e3, extendEnv: t3, preferLocal: n3, localDir: r2, execPath: o2 }) => {
|
106286
|
-
const s2 = t3 ?
|
106222
|
+
const s2 = t3 ? { ...process.env, ...e3 } : e3;
|
106287
106223
|
if (n3) {
|
106288
106224
|
return a.env({ env: s2, cwd: r2, execPath: o2 });
|
106289
106225
|
}
|
@@ -106294,7 +106230,7 @@ var require_execa2 = __commonJS({
|
|
106294
106230
|
e3 = o2.command;
|
106295
106231
|
t3 = o2.args;
|
106296
106232
|
n3 = o2.options;
|
106297
|
-
n3 =
|
106233
|
+
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 };
|
106298
106234
|
n3.env = getEnv(n3);
|
106299
106235
|
n3.stdio = u(n3);
|
106300
106236
|
if (process.platform === "win32" && r.basename(e3, ".exe") === "cmd") {
|
@@ -106330,8 +106266,8 @@ var require_execa2 = __commonJS({
|
|
106330
106266
|
const T2 = { isCanceled: false };
|
106331
106267
|
a2.kill = l.bind(null, a2.kill.bind(a2));
|
106332
106268
|
a2.cancel = f.bind(null, a2, T2);
|
106333
|
-
const handlePromise = () =>
|
106334
|
-
const [{ error: e4, exitCode: t4, signal: n4, timedOut: o2 }, c2, u3, l2] =
|
106269
|
+
const handlePromise = async () => {
|
106270
|
+
const [{ error: e4, exitCode: t4, signal: n4, timedOut: o2 }, c2, u3, l2] = await h(a2, r2.options, E2);
|
106335
106271
|
const f2 = handleOutput(r2.options, c2);
|
106336
106272
|
const p2 = handleOutput(r2.options, u3);
|
106337
106273
|
const m2 = handleOutput(r2.options, l2);
|
@@ -106343,7 +106279,7 @@ var require_execa2 = __commonJS({
|
|
106343
106279
|
throw c3;
|
106344
106280
|
}
|
106345
106281
|
return { command: s2, escapedCommand: i2, exitCode: 0, stdout: f2, stderr: p2, all: m2, failed: false, timedOut: false, isCanceled: false, killed: false };
|
106346
|
-
}
|
106282
|
+
};
|
106347
106283
|
const C = c(handlePromise);
|
106348
106284
|
x(a2, r2.options.input);
|
106349
106285
|
a2.all = y(a2, r2.options);
|
@@ -106388,7 +106324,7 @@ var require_execa2 = __commonJS({
|
|
106388
106324
|
const r2 = u.node(n3);
|
106389
106325
|
const o2 = process.execArgv.filter((e4) => !e4.startsWith("--inspect"));
|
106390
106326
|
const { nodePath: s2 = process.execPath, nodeOptions: i2 = o2 } = n3;
|
106391
|
-
return execa4(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []],
|
106327
|
+
return execa4(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []], { ...n3, stdin: void 0, stdout: void 0, stderr: void 0, stdio: r2, shell: false });
|
106392
106328
|
};
|
106393
106329
|
}, 192: (e2) => {
|
106394
106330
|
"use strict";
|
@@ -106544,7 +106480,7 @@ ${o.message}` : x;
|
|
106544
106480
|
throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e3}\` (${typeof e3})`);
|
106545
106481
|
}
|
106546
106482
|
};
|
106547
|
-
const setExitHandler =
|
106483
|
+
const setExitHandler = async (e3, { cleanup: t3, detached: n3 }, r2) => {
|
106548
106484
|
if (!t3 || n3) {
|
106549
106485
|
return r2;
|
106550
106486
|
}
|
@@ -106554,17 +106490,17 @@ ${o.message}` : x;
|
|
106554
106490
|
return r2.finally(() => {
|
106555
106491
|
s2();
|
106556
106492
|
});
|
106557
|
-
}
|
106493
|
+
};
|
106558
106494
|
e2.exports = { spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler };
|
106559
106495
|
}, 210: (e2) => {
|
106560
106496
|
"use strict";
|
106561
|
-
const t2 = (() =>
|
106562
|
-
})
|
106497
|
+
const t2 = (async () => {
|
106498
|
+
})().constructor.prototype;
|
106563
106499
|
const n2 = ["then", "catch", "finally"].map((e3) => [e3, Reflect.getOwnPropertyDescriptor(t2, e3)]);
|
106564
106500
|
const mergePromise = (e3, t3) => {
|
106565
106501
|
for (const [r, o] of n2) {
|
106566
106502
|
const n3 = typeof t3 === "function" ? (...e4) => Reflect.apply(o.value, t3(), e4) : o.value.bind(t3);
|
106567
|
-
Reflect.defineProperty(e3, r,
|
106503
|
+
Reflect.defineProperty(e3, r, { ...o, value: n3 });
|
106568
106504
|
}
|
106569
106505
|
return e3;
|
106570
106506
|
};
|
@@ -106648,17 +106584,17 @@ ${o.message}` : x;
|
|
106648
106584
|
}
|
106649
106585
|
return n3;
|
106650
106586
|
};
|
106651
|
-
const getBufferedData = (e3, t3) =>
|
106587
|
+
const getBufferedData = async (e3, t3) => {
|
106652
106588
|
if (!e3) {
|
106653
106589
|
return;
|
106654
106590
|
}
|
106655
106591
|
e3.destroy();
|
106656
106592
|
try {
|
106657
|
-
return
|
106593
|
+
return await t3;
|
106658
106594
|
} catch (e4) {
|
106659
106595
|
return e4.bufferedData;
|
106660
106596
|
}
|
106661
|
-
}
|
106597
|
+
};
|
106662
106598
|
const getStreamPromise = (e3, { encoding: t3, buffer: n3, maxBuffer: r2 }) => {
|
106663
106599
|
if (!e3 || !n3) {
|
106664
106600
|
return;
|
@@ -106668,16 +106604,16 @@ ${o.message}` : x;
|
|
106668
106604
|
}
|
106669
106605
|
return o.buffer(e3, { maxBuffer: r2 });
|
106670
106606
|
};
|
106671
|
-
const getSpawnedResult =
|
106607
|
+
const getSpawnedResult = async ({ stdout: e3, stderr: t3, all: n3 }, { encoding: r2, buffer: o2, maxBuffer: s2 }, i) => {
|
106672
106608
|
const a = getStreamPromise(e3, { encoding: r2, buffer: o2, maxBuffer: s2 });
|
106673
106609
|
const c = getStreamPromise(t3, { encoding: r2, buffer: o2, maxBuffer: s2 });
|
106674
106610
|
const d = getStreamPromise(n3, { encoding: r2, buffer: o2, maxBuffer: s2 * 2 });
|
106675
106611
|
try {
|
106676
|
-
return
|
106612
|
+
return await Promise.all([i, a, c, d]);
|
106677
106613
|
} catch (r3) {
|
106678
106614
|
return Promise.all([{ error: r3, signal: r3.signal, timedOut: r3.timedOut }, getBufferedData(e3, a), getBufferedData(t3, c), getBufferedData(n3, d)]);
|
106679
106615
|
}
|
106680
|
-
}
|
106616
|
+
};
|
106681
106617
|
const validateInputSync = ({ input: e3 }) => {
|
106682
106618
|
if (r(e3)) {
|
106683
106619
|
throw new TypeError("The `input` option cannot be a stream in sync mode");
|
@@ -106688,7 +106624,7 @@ ${o.message}` : x;
|
|
106688
106624
|
"use strict";
|
106689
106625
|
const { PassThrough: r } = n2(781);
|
106690
106626
|
e2.exports = (e3) => {
|
106691
|
-
e3 =
|
106627
|
+
e3 = { ...e3 };
|
106692
106628
|
const { array: t3 } = e3;
|
106693
106629
|
let { encoding: n3 } = e3;
|
106694
106630
|
const o = n3 === "buffer";
|
@@ -106737,41 +106673,39 @@ ${o.message}` : x;
|
|
106737
106673
|
this.name = "MaxBufferError";
|
106738
106674
|
}
|
106739
106675
|
}
|
106740
|
-
function getStream(e3, t3) {
|
106741
|
-
|
106742
|
-
|
106743
|
-
|
106744
|
-
|
106745
|
-
|
106746
|
-
|
106747
|
-
|
106748
|
-
|
106749
|
-
|
106750
|
-
|
106751
|
-
|
106752
|
-
|
106753
|
-
|
106754
|
-
|
106755
|
-
|
106756
|
-
|
106757
|
-
|
106758
|
-
|
106759
|
-
|
106760
|
-
|
106761
|
-
|
106762
|
-
|
106763
|
-
o2.
|
106764
|
-
|
106765
|
-
|
106766
|
-
}
|
106767
|
-
});
|
106676
|
+
async function getStream(e3, t3) {
|
106677
|
+
if (!e3) {
|
106678
|
+
throw new Error("Expected a stream");
|
106679
|
+
}
|
106680
|
+
t3 = { maxBuffer: Infinity, ...t3 };
|
106681
|
+
const { maxBuffer: n3 } = t3;
|
106682
|
+
const o2 = i(t3);
|
106683
|
+
await new Promise((t4, s2) => {
|
106684
|
+
const rejectPromise = (e4) => {
|
106685
|
+
if (e4 && o2.getBufferedLength() <= r.MAX_LENGTH) {
|
106686
|
+
e4.bufferedData = o2.getBufferedValue();
|
106687
|
+
}
|
106688
|
+
s2(e4);
|
106689
|
+
};
|
106690
|
+
(async () => {
|
106691
|
+
try {
|
106692
|
+
await a(e3, o2);
|
106693
|
+
t4();
|
106694
|
+
} catch (e4) {
|
106695
|
+
rejectPromise(e4);
|
106696
|
+
}
|
106697
|
+
})();
|
106698
|
+
o2.on("data", () => {
|
106699
|
+
if (o2.getBufferedLength() > n3) {
|
106700
|
+
rejectPromise(new MaxBufferError());
|
106701
|
+
}
|
106768
106702
|
});
|
106769
|
-
return o2.getBufferedValue();
|
106770
106703
|
});
|
106704
|
+
return o2.getBufferedValue();
|
106771
106705
|
}
|
106772
106706
|
e2.exports = getStream;
|
106773
|
-
e2.exports.buffer = (e3, t3) => getStream(e3,
|
106774
|
-
e2.exports.array = (e3, t3) => getStream(e3,
|
106707
|
+
e2.exports.buffer = (e3, t3) => getStream(e3, { ...t3, encoding: "buffer" });
|
106708
|
+
e2.exports.array = (e3, t3) => getStream(e3, { ...t3, array: true });
|
106775
106709
|
e2.exports.MaxBufferError = MaxBufferError;
|
106776
106710
|
}, 221: (e2, t2) => {
|
106777
106711
|
"use strict";
|
@@ -106791,7 +106725,7 @@ ${o.message}` : x;
|
|
106791
106725
|
return e3.reduce(getSignalByName, {});
|
106792
106726
|
};
|
106793
106727
|
const getSignalByName = function(e3, { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 }) {
|
106794
|
-
return
|
106728
|
+
return { ...e3, [t3]: { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 } };
|
106795
106729
|
};
|
106796
106730
|
const i = getSignalsByName();
|
106797
106731
|
t2.signalsByName = i;
|
@@ -107023,7 +106957,7 @@ ${o.message}` : x;
|
|
107023
106957
|
const r = n2(17);
|
107024
106958
|
const o = n2(460);
|
107025
106959
|
const npmRunPath = (e3) => {
|
107026
|
-
e3 =
|
106960
|
+
e3 = { cwd: process.cwd(), path: process.env[o()], execPath: process.execPath, ...e3 };
|
107027
106961
|
let t3;
|
107028
106962
|
let n3 = r.resolve(e3.cwd);
|
107029
106963
|
const s = [];
|
@@ -107039,8 +106973,8 @@ ${o.message}` : x;
|
|
107039
106973
|
e2.exports = npmRunPath;
|
107040
106974
|
e2.exports["default"] = npmRunPath;
|
107041
106975
|
e2.exports.env = (t3) => {
|
107042
|
-
t3 =
|
107043
|
-
const n3 =
|
106976
|
+
t3 = { env: process.env, ...t3 };
|
106977
|
+
const n3 = { ...t3.env };
|
107044
106978
|
const r2 = o({ env: n3 });
|
107045
106979
|
t3.path = n3[r2];
|
107046
106980
|
n3[r2] = e2.exports(t3);
|
@@ -108449,7 +108383,7 @@ var require_upath2 = __commonJS({
|
|
108449
108383
|
_.VERSION = typeof n !== "undefined" && n !== null ? n : "NO-VERSION";
|
108450
108384
|
p = function(e3) {
|
108451
108385
|
e3 = e3.replace(/\\/g, "/");
|
108452
|
-
e3 = e3.replace(
|
108386
|
+
e3 = e3.replace(/(?<!^)\/+/g, "/");
|
108453
108387
|
return e3;
|
108454
108388
|
};
|
108455
108389
|
for (c in o) {
|
@@ -108745,9 +108679,7 @@ var require_pkg_up2 = __commonJS({
|
|
108745
108679
|
};
|
108746
108680
|
}, 800: (e2, r2, n2) => {
|
108747
108681
|
const t = n2(485);
|
108748
|
-
e2.exports =
|
108749
|
-
return t("package.json", { cwd: e3 });
|
108750
|
-
});
|
108682
|
+
e2.exports = async ({ cwd: e3 } = {}) => t("package.json", { cwd: e3 });
|
108751
108683
|
e2.exports.sync = ({ cwd: e3 } = {}) => t.sync("package.json", { cwd: e3 });
|
108752
108684
|
}, 147: (e2) => {
|
108753
108685
|
e2.exports = require("fs");
|
@@ -111798,7 +111730,7 @@ var require_fast_glob2 = __commonJS({
|
|
111798
111730
|
}
|
111799
111731
|
if (t4.nodes && t4.ranges > 0) {
|
111800
111732
|
let r4 = s.reduce(t4.nodes);
|
111801
|
-
let i2 = n(...r4,
|
111733
|
+
let i2 = n(...r4, { ...e3, wrap: false, toRegex: true });
|
111802
111734
|
if (i2.length !== 0) {
|
111803
111735
|
return r4.length > 1 && i2.length > 1 ? `(${i2})` : i2;
|
111804
111736
|
}
|
@@ -112224,13 +112156,11 @@ var require_fast_glob2 = __commonJS({
|
|
112224
112156
|
const a = r2(1066);
|
112225
112157
|
const u = r2(7190);
|
112226
112158
|
const c = r2(3828);
|
112227
|
-
function FastGlob(t3, e3) {
|
112228
|
-
|
112229
|
-
|
112230
|
-
|
112231
|
-
|
112232
|
-
return c.array.flatten(n2);
|
112233
|
-
});
|
112159
|
+
async function FastGlob(t3, e3) {
|
112160
|
+
assertPatternsInput(t3);
|
112161
|
+
const r3 = getWorks(t3, i.default, e3);
|
112162
|
+
const n2 = await Promise.all(r3);
|
112163
|
+
return c.array.flatten(n2);
|
112234
112164
|
}
|
112235
112165
|
(function(t3) {
|
112236
112166
|
function sync(t4, e3) {
|
@@ -113401,7 +113331,7 @@ var require_fast_glob2 = __commonJS({
|
|
113401
113331
|
};
|
113402
113332
|
const toRange = (t3, e3, r3, n2) => {
|
113403
113333
|
if (r3) {
|
113404
|
-
return s(t3, e3,
|
113334
|
+
return s(t3, e3, { wrap: false, ...n2 });
|
113405
113335
|
}
|
113406
113336
|
let i = String.fromCharCode(t3);
|
113407
113337
|
if (t3 === e3)
|
@@ -113467,7 +113397,7 @@ var require_fast_glob2 = __commonJS({
|
|
113467
113397
|
g++;
|
113468
113398
|
}
|
113469
113399
|
if (n2.toRegex === true) {
|
113470
|
-
return r3 > 1 ? toSequence(d, n2) : toRegex(_, null,
|
113400
|
+
return r3 > 1 ? toSequence(d, n2) : toRegex(_, null, { wrap: false, ...n2 });
|
113471
113401
|
}
|
113472
113402
|
return _;
|
113473
113403
|
};
|
@@ -113509,7 +113439,7 @@ var require_fast_glob2 = __commonJS({
|
|
113509
113439
|
if (isObject4(r3)) {
|
113510
113440
|
return fill(t3, e3, 0, r3);
|
113511
113441
|
}
|
113512
|
-
let s2 =
|
113442
|
+
let s2 = { ...n2 };
|
113513
113443
|
if (s2.capture === true)
|
113514
113444
|
s2.wrap = true;
|
113515
113445
|
r3 = r3 || s2.step || 1;
|
@@ -113833,7 +113763,7 @@ var require_fast_glob2 = __commonJS({
|
|
113833
113763
|
}
|
113834
113764
|
};
|
113835
113765
|
for (let o3 = 0; o3 < e3.length; o3++) {
|
113836
|
-
let u2 = i(String(e3[o3]),
|
113766
|
+
let u2 = i(String(e3[o3]), { ...r3, onResult }, true);
|
113837
113767
|
let c2 = u2.state.negated || u2.state.negatedExtglob;
|
113838
113768
|
if (c2)
|
113839
113769
|
a++;
|
@@ -113875,7 +113805,7 @@ var require_fast_glob2 = __commonJS({
|
|
113875
113805
|
r3.onResult(t4);
|
113876
113806
|
s2.push(t4.output);
|
113877
113807
|
};
|
113878
|
-
let i2 = new Set(micromatch(t3, e3,
|
113808
|
+
let i2 = new Set(micromatch(t3, e3, { ...r3, onResult }));
|
113879
113809
|
for (let t4 of s2) {
|
113880
113810
|
if (!i2.has(t4)) {
|
113881
113811
|
n2.add(t4);
|
@@ -113898,7 +113828,7 @@ var require_fast_glob2 = __commonJS({
|
|
113898
113828
|
return true;
|
113899
113829
|
}
|
113900
113830
|
}
|
113901
|
-
return micromatch.isMatch(t3, e3,
|
113831
|
+
return micromatch.isMatch(t3, e3, { ...r3, contains: true });
|
113902
113832
|
};
|
113903
113833
|
micromatch.matchKeys = (t3, e3, r3) => {
|
113904
113834
|
if (!o.isObject(t3)) {
|
@@ -113938,7 +113868,7 @@ var require_fast_glob2 = __commonJS({
|
|
113938
113868
|
};
|
113939
113869
|
micromatch.capture = (t3, e3, r3) => {
|
113940
113870
|
let n2 = o.isWindows(r3);
|
113941
|
-
let s2 = i.makeRe(String(t3),
|
113871
|
+
let s2 = i.makeRe(String(t3), { ...r3, capture: true });
|
113942
113872
|
let a = s2.exec(n2 ? o.toPosixSlashes(e3) : e3);
|
113943
113873
|
if (a) {
|
113944
113874
|
return a.slice(1).map((t4) => t4 === void 0 ? "" : t4);
|
@@ -113966,7 +113896,7 @@ var require_fast_glob2 = __commonJS({
|
|
113966
113896
|
micromatch.braceExpand = (t3, e3) => {
|
113967
113897
|
if (typeof t3 !== "string")
|
113968
113898
|
throw new TypeError("Expected a string");
|
113969
|
-
return micromatch.braces(t3,
|
113899
|
+
return micromatch.braces(t3, { ...e3, expand: true });
|
113970
113900
|
};
|
113971
113901
|
t2.exports = micromatch;
|
113972
113902
|
}, 376: (t2, e2, r2) => {
|
@@ -113993,7 +113923,7 @@ var require_fast_glob2 = __commonJS({
|
|
113993
113923
|
const m = `[^.${c}]`;
|
113994
113924
|
const v = `${f}*?`;
|
113995
113925
|
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 };
|
113996
|
-
const A =
|
113926
|
+
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}]|$)` };
|
113997
113927
|
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" };
|
113998
113928
|
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) {
|
113999
113929
|
return { "!": { type: "negate", open: "(?:(?!(?:", close: `))${t3.STAR})` }, "?": { type: "qmark", open: "(?:", close: ")?" }, "+": { type: "plus", open: "(?:", close: ")+" }, "*": { type: "star", open: "(?:", close: ")*" }, "@": { type: "at", open: "(?:", close: ")" } };
|
@@ -114024,7 +113954,7 @@ var require_fast_glob2 = __commonJS({
|
|
114024
113954
|
throw new TypeError("Expected a string");
|
114025
113955
|
}
|
114026
113956
|
t3 = c[t3] || t3;
|
114027
|
-
const r3 =
|
113957
|
+
const r3 = { ...e3 };
|
114028
113958
|
const l = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
|
114029
113959
|
let f = t3.length;
|
114030
113960
|
if (f > l) {
|
@@ -114116,7 +114046,7 @@ var require_fast_glob2 = __commonJS({
|
|
114116
114046
|
M = t4;
|
114117
114047
|
};
|
114118
114048
|
const extglobOpen = (t4, e4) => {
|
114119
|
-
const n2 =
|
114049
|
+
const n2 = { ...y[e4], conditions: 1, inner: "" };
|
114120
114050
|
n2.prev = M;
|
114121
114051
|
n2.parens = H.parens;
|
114122
114052
|
n2.output = H.output;
|
@@ -114138,7 +114068,7 @@ var require_fast_glob2 = __commonJS({
|
|
114138
114068
|
n2 = t4.close = `)$))${i2}`;
|
114139
114069
|
}
|
114140
114070
|
if (t4.inner.includes("*") && (s2 = remaining()) && /^\.[^\\/.]+$/.test(s2)) {
|
114141
|
-
const r4 = parse3(s2,
|
114071
|
+
const r4 = parse3(s2, { ...e3, fastpaths: false }).output;
|
114142
114072
|
n2 = t4.close = `)${r4})${i2})`;
|
114143
114073
|
}
|
114144
114074
|
if (t4.prev.type === "bos") {
|
@@ -114660,7 +114590,7 @@ var require_fast_glob2 = __commonJS({
|
|
114660
114590
|
return H;
|
114661
114591
|
};
|
114662
114592
|
parse3.fastpaths = (t3, e3) => {
|
114663
|
-
const r3 =
|
114593
|
+
const r3 = { ...e3 };
|
114664
114594
|
const o2 = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
|
114665
114595
|
const a2 = t3.length;
|
114666
114596
|
if (a2 > o2) {
|
@@ -114751,7 +114681,7 @@ var require_fast_glob2 = __commonJS({
|
|
114751
114681
|
delete a2.state;
|
114752
114682
|
let isIgnored = () => false;
|
114753
114683
|
if (s2.ignore) {
|
114754
|
-
const t4 =
|
114684
|
+
const t4 = { ...e3, ignore: null, onMatch: null, onResult: null };
|
114755
114685
|
isIgnored = picomatch(s2.ignore, t4, r3);
|
114756
114686
|
}
|
114757
114687
|
const matcher = (r4, n3 = false) => {
|
@@ -114813,7 +114743,7 @@ var require_fast_glob2 = __commonJS({
|
|
114813
114743
|
picomatch.parse = (t3, e3) => {
|
114814
114744
|
if (Array.isArray(t3))
|
114815
114745
|
return t3.map((t4) => picomatch.parse(t4, e3));
|
114816
|
-
return i(t3,
|
114746
|
+
return i(t3, { ...e3, fastpaths: false });
|
114817
114747
|
};
|
114818
114748
|
picomatch.scan = (t3, e3) => s(t3, e3);
|
114819
114749
|
picomatch.compileRe = (t3, e3, r3 = false, n2 = false) => {
|
@@ -115278,7 +115208,7 @@ var require_fast_glob2 = __commonJS({
|
|
115278
115208
|
if (n(e3) === false) {
|
115279
115209
|
throw new TypeError("toRegexRange: expected the second argument to be a number.");
|
115280
115210
|
}
|
115281
|
-
let s =
|
115211
|
+
let s = { relaxZeros: true, ...r3 };
|
115282
115212
|
if (typeof s.strictZeros === "boolean") {
|
115283
115213
|
s.relaxZeros = s.strictZeros === false;
|
115284
115214
|
}
|
@@ -115556,19 +115486,19 @@ var require_globby2 = __commonJS({
|
|
115556
115486
|
}
|
115557
115487
|
return [n.posix.join(t3, "**")];
|
115558
115488
|
};
|
115559
|
-
t2.exports = (t3, e3) =>
|
115560
|
-
e3 =
|
115489
|
+
t2.exports = async (t3, e3) => {
|
115490
|
+
e3 = { cwd: process.cwd(), ...e3 };
|
115561
115491
|
if (typeof e3.cwd !== "string") {
|
115562
115492
|
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
|
115563
115493
|
}
|
115564
|
-
const r3 =
|
115565
|
-
const r4 =
|
115494
|
+
const r3 = await Promise.all([].concat(t3).map(async (t4) => {
|
115495
|
+
const r4 = await s.isDirectory(getPath(t4, e3.cwd));
|
115566
115496
|
return r4 ? getGlob(t4, e3) : t4;
|
115567
|
-
}))
|
115497
|
+
}));
|
115568
115498
|
return [].concat.apply([], r3);
|
115569
|
-
}
|
115499
|
+
};
|
115570
115500
|
t2.exports.sync = (t3, e3) => {
|
115571
|
-
e3 =
|
115501
|
+
e3 = { cwd: process.cwd(), ...e3 };
|
115572
115502
|
if (typeof e3.cwd !== "string") {
|
115573
115503
|
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
|
115574
115504
|
}
|
@@ -115613,24 +115543,24 @@ var require_globby2 = __commonJS({
|
|
115613
115543
|
return o.join(t3, e3);
|
115614
115544
|
};
|
115615
115545
|
const getIsIgnoredPredecate = (t3, e3) => (r3) => t3.ignores(a(o.relative(e3, ensureAbsolutePathForCwd(e3, r3.path || r3))));
|
115616
|
-
const getFile = (t3, e3) =>
|
115546
|
+
const getFile = async (t3, e3) => {
|
115617
115547
|
const r3 = o.join(e3, t3);
|
115618
|
-
const n2 =
|
115548
|
+
const n2 = await u(r3, "utf8");
|
115619
115549
|
return { cwd: e3, filePath: r3, content: n2 };
|
115620
|
-
}
|
115550
|
+
};
|
115621
115551
|
const getFileSync = (t3, e3) => {
|
115622
115552
|
const r3 = o.join(e3, t3);
|
115623
115553
|
const n2 = s.readFileSync(r3, "utf8");
|
115624
115554
|
return { cwd: e3, filePath: r3, content: n2 };
|
115625
115555
|
};
|
115626
115556
|
const normalizeOptions = ({ ignore: t3 = [], cwd: e3 = a(process.cwd()) } = {}) => ({ ignore: t3, cwd: e3 });
|
115627
|
-
t2.exports = (t3) =>
|
115557
|
+
t2.exports = async (t3) => {
|
115628
115558
|
t3 = normalizeOptions(t3);
|
115629
|
-
const e3 =
|
115630
|
-
const r3 =
|
115559
|
+
const e3 = await i("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
|
115560
|
+
const r3 = await Promise.all(e3.map((e4) => getFile(e4, t3.cwd)));
|
115631
115561
|
const n2 = reduceIgnore(r3);
|
115632
115562
|
return getIsIgnoredPredecate(n2, t3.cwd);
|
115633
|
-
}
|
115563
|
+
};
|
115634
115564
|
t2.exports.sync = (t3) => {
|
115635
115565
|
t3 = normalizeOptions(t3);
|
115636
115566
|
const e3 = i.sync("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
|
@@ -115661,7 +115591,7 @@ var require_globby2 = __commonJS({
|
|
115661
115591
|
let e3;
|
115662
115592
|
try {
|
115663
115593
|
e3 = n.statSync(t3.cwd);
|
115664
|
-
} catch
|
115594
|
+
} catch {
|
115665
115595
|
return;
|
115666
115596
|
}
|
115667
115597
|
if (!e3.isDirectory()) {
|
@@ -115674,13 +115604,13 @@ var require_globby2 = __commonJS({
|
|
115674
115604
|
assertPatternsInput(t3);
|
115675
115605
|
checkCwdOption(e3);
|
115676
115606
|
const r3 = [];
|
115677
|
-
e3 =
|
115607
|
+
e3 = { ignore: [], expandDirectories: true, ...e3 };
|
115678
115608
|
for (const [n2, s2] of t3.entries()) {
|
115679
115609
|
if (isNegative(s2)) {
|
115680
115610
|
continue;
|
115681
115611
|
}
|
115682
115612
|
const o2 = t3.slice(n2).filter((t4) => isNegative(t4)).map((t4) => t4.slice(1));
|
115683
|
-
const i2 =
|
115613
|
+
const i2 = { ...e3, ignore: e3.ignore.concat(o2) };
|
115684
115614
|
r3.push({ pattern: s2, options: i2 });
|
115685
115615
|
}
|
115686
115616
|
return r3;
|
@@ -115691,9 +115621,9 @@ var require_globby2 = __commonJS({
|
|
115691
115621
|
r3.cwd = t3.options.cwd;
|
115692
115622
|
}
|
115693
115623
|
if (Array.isArray(t3.options.expandDirectories)) {
|
115694
|
-
r3 =
|
115624
|
+
r3 = { ...r3, files: t3.options.expandDirectories };
|
115695
115625
|
} else if (typeof t3.options.expandDirectories === "object") {
|
115696
|
-
r3 =
|
115626
|
+
r3 = { ...r3, ...t3.options.expandDirectories };
|
115697
115627
|
}
|
115698
115628
|
return e3(t3.pattern, r3);
|
115699
115629
|
};
|
@@ -115706,22 +115636,20 @@ var require_globby2 = __commonJS({
|
|
115706
115636
|
}
|
115707
115637
|
return { pattern: e3, options: r3 };
|
115708
115638
|
};
|
115709
|
-
t2.exports = (t3, e3) =>
|
115639
|
+
t2.exports = async (t3, e3) => {
|
115710
115640
|
const r3 = generateGlobTasks(t3, e3);
|
115711
|
-
const getFilter = () =>
|
115712
|
-
|
115713
|
-
|
115714
|
-
|
115715
|
-
const t4 = yield Promise.all(r3.map((t5) => __async(exports, null, function* () {
|
115716
|
-
const e4 = yield getPattern(t5, c);
|
115641
|
+
const getFilter = async () => e3 && e3.gitignore ? a({ cwd: e3.cwd, ignore: e3.ignore }) : DEFAULT_FILTER;
|
115642
|
+
const getTasks = async () => {
|
115643
|
+
const t4 = await Promise.all(r3.map(async (t5) => {
|
115644
|
+
const e4 = await getPattern(t5, c);
|
115717
115645
|
return Promise.all(e4.map(globToTask(t5)));
|
115718
|
-
}))
|
115646
|
+
}));
|
115719
115647
|
return s(...t4);
|
115720
|
-
}
|
115721
|
-
const [n2, o2] =
|
115722
|
-
const p2 =
|
115648
|
+
};
|
115649
|
+
const [n2, o2] = await Promise.all([getFilter(), getTasks()]);
|
115650
|
+
const p2 = await Promise.all(o2.map((t4) => i(t4.pattern, t4.options)));
|
115723
115651
|
return s(...p2).filter((t4) => !n2(getPathString(t4)));
|
115724
|
-
}
|
115652
|
+
};
|
115725
115653
|
t2.exports.sync = (t3, e3) => {
|
115726
115654
|
const r3 = generateGlobTasks(t3, e3);
|
115727
115655
|
const n2 = [];
|
@@ -116075,21 +116003,19 @@ var require_globby2 = __commonJS({
|
|
116075
116003
|
"use strict";
|
116076
116004
|
const { promisify: n } = r2(837);
|
116077
116005
|
const s = r2(147);
|
116078
|
-
function isType4(t3, e3, r3) {
|
116079
|
-
|
116080
|
-
|
116081
|
-
|
116082
|
-
|
116083
|
-
|
116084
|
-
|
116085
|
-
|
116086
|
-
|
116087
|
-
|
116088
|
-
return false;
|
116089
|
-
}
|
116090
|
-
throw t4;
|
116006
|
+
async function isType4(t3, e3, r3) {
|
116007
|
+
if (typeof r3 !== "string") {
|
116008
|
+
throw new TypeError(`Expected a string, got ${typeof r3}`);
|
116009
|
+
}
|
116010
|
+
try {
|
116011
|
+
const o = await n(s[t3])(r3);
|
116012
|
+
return o[e3]();
|
116013
|
+
} catch (t4) {
|
116014
|
+
if (t4.code === "ENOENT") {
|
116015
|
+
return false;
|
116091
116016
|
}
|
116092
|
-
|
116017
|
+
throw t4;
|
116018
|
+
}
|
116093
116019
|
}
|
116094
116020
|
function isTypeSync(t3, e3, r3) {
|
116095
116021
|
if (typeof r3 !== "string") {
|
@@ -118464,15 +118390,15 @@ var require_gzip_size2 = __commonJS({
|
|
118464
118390
|
const i = t2(796);
|
118465
118391
|
const { promisify: a } = t2(837);
|
118466
118392
|
const s = t2(325);
|
118467
|
-
const getOptions = (e3) =>
|
118393
|
+
const getOptions = (e3) => ({ level: 9, ...e3 });
|
118468
118394
|
const p = a(i.gzip);
|
118469
|
-
e2.exports = (e3, r3) =>
|
118395
|
+
e2.exports = async (e3, r3) => {
|
118470
118396
|
if (!e3) {
|
118471
118397
|
return 0;
|
118472
118398
|
}
|
118473
|
-
const t3 =
|
118399
|
+
const t3 = await p(e3, getOptions(r3));
|
118474
118400
|
return t3.length;
|
118475
|
-
}
|
118401
|
+
};
|
118476
118402
|
e2.exports.sync = (e3, r3) => i.gzipSync(e3, getOptions(r3)).length;
|
118477
118403
|
e2.exports.stream = (e3) => {
|
118478
118404
|
const r3 = new o.PassThrough();
|
@@ -121242,12 +121168,10 @@ Expecting one of '${i3.join("', '")}'`);
|
|
121242
121168
|
this._parseCommand([], i3);
|
121243
121169
|
return this;
|
121244
121170
|
}
|
121245
|
-
parseAsync(t3, e3) {
|
121246
|
-
|
121247
|
-
|
121248
|
-
|
121249
|
-
return this;
|
121250
|
-
});
|
121171
|
+
async parseAsync(t3, e3) {
|
121172
|
+
const i3 = this._prepareUserArgs(t3, e3);
|
121173
|
+
await this._parseCommand([], i3);
|
121174
|
+
return this;
|
121251
121175
|
}
|
121252
121176
|
_executeSubCommand(t3, e3) {
|
121253
121177
|
e3 = e3.slice();
|
@@ -123054,11 +122978,11 @@ var require_fs = __commonJS({
|
|
123054
122978
|
}
|
123055
122979
|
return false;
|
123056
122980
|
};
|
123057
|
-
var emptyDir = (dir) =>
|
123058
|
-
if (
|
123059
|
-
|
122981
|
+
var emptyDir = async (dir) => {
|
122982
|
+
if (await _compiled.fs.pathExists(dir)) {
|
122983
|
+
await _compiled.fs.emptyDir(dir);
|
123060
122984
|
}
|
123061
|
-
}
|
122985
|
+
};
|
123062
122986
|
}
|
123063
122987
|
});
|
123064
122988
|
|
@@ -123470,19 +123394,19 @@ var require_project = __commonJS({
|
|
123470
123394
|
return false;
|
123471
123395
|
}
|
123472
123396
|
};
|
123473
|
-
var isApiOnly = (appDirectory, entryDir, apiDir) =>
|
123474
|
-
const existApi =
|
123475
|
-
const existSrc =
|
123397
|
+
var isApiOnly = async (appDirectory, entryDir, apiDir) => {
|
123398
|
+
const existApi = await _compiled.fs.pathExists(apiDir !== null && apiDir !== void 0 ? apiDir : _path.default.join(appDirectory, "api"));
|
123399
|
+
const existSrc = await _compiled.fs.pathExists(_path.default.join(appDirectory, entryDir !== null && entryDir !== void 0 ? entryDir : "src"));
|
123476
123400
|
const options = (0, _compiled.minimist)((0, _commands.getArgv)());
|
123477
123401
|
if (options["api-only"]) {
|
123478
123402
|
return true;
|
123479
123403
|
}
|
123480
123404
|
return existApi && !existSrc;
|
123481
|
-
}
|
123482
|
-
var isWebOnly = () =>
|
123405
|
+
};
|
123406
|
+
var isWebOnly = async () => {
|
123483
123407
|
const options = (0, _compiled.minimist)((0, _commands.getArgv)());
|
123484
123408
|
return Boolean(options["web-only"]);
|
123485
|
-
}
|
123409
|
+
};
|
123486
123410
|
var isBeyondReact17 = (cwd) => {
|
123487
123411
|
const pkgPath = _pkgup.default.sync({
|
123488
123412
|
cwd
|
@@ -123491,7 +123415,10 @@ var require_project = __commonJS({
|
|
123491
123415
|
return false;
|
123492
123416
|
}
|
123493
123417
|
const pkgInfo = JSON.parse(_compiled.fs.readFileSync(pkgPath, "utf8"));
|
123494
|
-
const deps =
|
123418
|
+
const deps = {
|
123419
|
+
...pkgInfo.devDependencies,
|
123420
|
+
...pkgInfo.dependencies
|
123421
|
+
};
|
123495
123422
|
if (typeof deps.react !== "string") {
|
123496
123423
|
return false;
|
123497
123424
|
}
|
@@ -123503,7 +123430,10 @@ var require_project = __commonJS({
|
|
123503
123430
|
return false;
|
123504
123431
|
}
|
123505
123432
|
const pkgInfo = JSON.parse(_compiled.fs.readFileSync(pkgPath, "utf8"));
|
123506
|
-
const deps =
|
123433
|
+
const deps = {
|
123434
|
+
...pkgInfo.devDependencies,
|
123435
|
+
...pkgInfo.dependencies
|
123436
|
+
};
|
123507
123437
|
if (typeof deps.react !== "string") {
|
123508
123438
|
return false;
|
123509
123439
|
}
|
@@ -123558,55 +123488,47 @@ var require_package5 = __commonJS({
|
|
123558
123488
|
}
|
123559
123489
|
});
|
123560
123490
|
var _compiled = require_compiled();
|
123561
|
-
function getPnpmVersion() {
|
123562
|
-
|
123563
|
-
|
123564
|
-
|
123565
|
-
|
123566
|
-
return stdout;
|
123567
|
-
});
|
123491
|
+
async function getPnpmVersion() {
|
123492
|
+
const { stdout } = await (0, _compiled.execa)("pnpm", [
|
123493
|
+
"--version"
|
123494
|
+
]);
|
123495
|
+
return stdout;
|
123568
123496
|
}
|
123569
|
-
function canUseNpm5() {
|
123570
|
-
|
123571
|
-
|
123572
|
-
|
123573
|
-
|
123574
|
-
|
123575
|
-
|
123576
|
-
|
123577
|
-
|
123578
|
-
|
123579
|
-
|
123580
|
-
}
|
123581
|
-
});
|
123497
|
+
async function canUseNpm5() {
|
123498
|
+
try {
|
123499
|
+
await (0, _compiled.execa)("npm", [
|
123500
|
+
"--version"
|
123501
|
+
], {
|
123502
|
+
env: process.env
|
123503
|
+
});
|
123504
|
+
return true;
|
123505
|
+
} catch (e) {
|
123506
|
+
return false;
|
123507
|
+
}
|
123582
123508
|
}
|
123583
|
-
function canUseYarn4() {
|
123584
|
-
|
123585
|
-
|
123586
|
-
|
123587
|
-
|
123588
|
-
|
123589
|
-
|
123590
|
-
|
123591
|
-
|
123592
|
-
|
123593
|
-
|
123594
|
-
}
|
123595
|
-
});
|
123509
|
+
async function canUseYarn4() {
|
123510
|
+
try {
|
123511
|
+
await (0, _compiled.execa)("yarn", [
|
123512
|
+
"--version"
|
123513
|
+
], {
|
123514
|
+
env: process.env
|
123515
|
+
});
|
123516
|
+
return true;
|
123517
|
+
} catch (e) {
|
123518
|
+
return false;
|
123519
|
+
}
|
123596
123520
|
}
|
123597
|
-
function canUsePnpm5() {
|
123598
|
-
|
123599
|
-
|
123600
|
-
|
123601
|
-
|
123602
|
-
|
123603
|
-
|
123604
|
-
|
123605
|
-
|
123606
|
-
|
123607
|
-
|
123608
|
-
}
|
123609
|
-
});
|
123521
|
+
async function canUsePnpm5() {
|
123522
|
+
try {
|
123523
|
+
await (0, _compiled.execa)("pnpm", [
|
123524
|
+
"--version"
|
123525
|
+
], {
|
123526
|
+
env: process.env
|
123527
|
+
});
|
123528
|
+
return true;
|
123529
|
+
} catch (e) {
|
123530
|
+
return false;
|
123531
|
+
}
|
123610
123532
|
}
|
123611
123533
|
}
|
123612
123534
|
});
|
@@ -123659,31 +123581,29 @@ var require_data = __commonJS({
|
|
123659
123581
|
var _is = require_is();
|
123660
123582
|
var _package = require_package5();
|
123661
123583
|
var MAX_TIMES = 5;
|
123662
|
-
function getPackageManager2() {
|
123663
|
-
|
123664
|
-
|
123665
|
-
|
123666
|
-
|
123667
|
-
|
123668
|
-
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "pnpm-lock.yaml"))) {
|
123669
|
-
return "pnpm";
|
123670
|
-
}
|
123671
|
-
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "yarn.lock"))) {
|
123672
|
-
return "yarn";
|
123673
|
-
}
|
123674
|
-
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "package-lock.json"))) {
|
123675
|
-
return "npm";
|
123676
|
-
}
|
123677
|
-
appDirectory = _path.default.join(appDirectory, "..");
|
123678
|
-
}
|
123679
|
-
if (yield (0, _package.canUsePnpm)()) {
|
123584
|
+
async function getPackageManager2(cwd = process.cwd()) {
|
123585
|
+
let appDirectory = cwd;
|
123586
|
+
let times = 0;
|
123587
|
+
while (_os.default.homedir() !== appDirectory && times < MAX_TIMES) {
|
123588
|
+
times++;
|
123589
|
+
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "pnpm-lock.yaml"))) {
|
123680
123590
|
return "pnpm";
|
123681
123591
|
}
|
123682
|
-
if (
|
123592
|
+
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "yarn.lock"))) {
|
123683
123593
|
return "yarn";
|
123684
123594
|
}
|
123685
|
-
|
123686
|
-
|
123595
|
+
if (_compiled.fs.existsSync(_path.default.resolve(appDirectory, "package-lock.json"))) {
|
123596
|
+
return "npm";
|
123597
|
+
}
|
123598
|
+
appDirectory = _path.default.join(appDirectory, "..");
|
123599
|
+
}
|
123600
|
+
if (await (0, _package.canUsePnpm)()) {
|
123601
|
+
return "pnpm";
|
123602
|
+
}
|
123603
|
+
if (await (0, _package.canUseYarn)()) {
|
123604
|
+
return "yarn";
|
123605
|
+
}
|
123606
|
+
return "npm";
|
123687
123607
|
}
|
123688
123608
|
var getCoreJsVersion = (corejsPkgPath) => {
|
123689
123609
|
try {
|
@@ -123763,7 +123683,10 @@ var require_config3 = __commonJS({
|
|
123763
123683
|
if (optionsByEntry === void 0 && isMainEntry && packageName) {
|
123764
123684
|
optionsByEntry = getOptionsByEntryName(packageName, optionsByEntries);
|
123765
123685
|
}
|
123766
|
-
return optionsByEntry !== void 0 ? (0, _is.isPlainObject)(optionsByEntry) && (0, _is.isPlainObject)(baseOptions) ?
|
123686
|
+
return optionsByEntry !== void 0 ? (0, _is.isPlainObject)(optionsByEntry) && (0, _is.isPlainObject)(baseOptions) ? {
|
123687
|
+
...baseOptions,
|
123688
|
+
...optionsByEntry
|
123689
|
+
} : optionsByEntry : baseOptions;
|
123767
123690
|
} else {
|
123768
123691
|
return baseOptions;
|
123769
123692
|
}
|
@@ -123801,10 +123724,10 @@ var require_get2 = __commonJS({
|
|
123801
123724
|
var _fs = require_fs();
|
123802
123725
|
_export_star._(require_data(), exports);
|
123803
123726
|
_export_star._(require_config3(), exports);
|
123804
|
-
var getServerConfig = (appDirectory, configFile) =>
|
123727
|
+
var getServerConfig = async (appDirectory, configFile) => {
|
123805
123728
|
const configFilePath = (0, _fs.findExists)(_constants.CONFIG_FILE_EXTENSIONS.map((extension) => _path.default.resolve(appDirectory, `${configFile}${extension}`)));
|
123806
123729
|
return configFilePath;
|
123807
|
-
}
|
123730
|
+
};
|
123808
123731
|
var getTargetDir = (from, baseDir, targetBaseDir) => {
|
123809
123732
|
const relativePath = _path.default.relative(baseDir, from);
|
123810
123733
|
return _path.default.resolve(targetBaseDir, relativePath);
|
@@ -123929,8 +123852,14 @@ ${_chalk.default.grey(rest.join("\n"))}`;
|
|
123929
123852
|
}
|
123930
123853
|
constructor(options = {}) {
|
123931
123854
|
this.level = options.level || LOG_TYPES.log.level;
|
123932
|
-
this.config =
|
123933
|
-
|
123855
|
+
this.config = {
|
123856
|
+
...DEFAULT_CONFIG,
|
123857
|
+
...options.config || {}
|
123858
|
+
};
|
123859
|
+
this.types = {
|
123860
|
+
...LOG_TYPES,
|
123861
|
+
...options.types || {}
|
123862
|
+
};
|
123934
123863
|
this.longestLabel = this.getLongestLabel();
|
123935
123864
|
Object.keys(this.types).forEach((type) => {
|
123936
123865
|
this[type] = this._log.bind(this, type);
|
@@ -124048,7 +123977,10 @@ var require_alias = __commonJS({
|
|
124048
123977
|
const baseUrl = (_tsconfig = tsconfig) === null || _tsconfig === void 0 ? void 0 : (_tsconfig_compilerOptions = _tsconfig.compilerOptions) === null || _tsconfig_compilerOptions === void 0 ? void 0 : _tsconfig_compilerOptions.baseUrl;
|
124049
123978
|
return {
|
124050
123979
|
absoluteBaseUrl: baseUrl ? _path.default.join(option.appDirectory, baseUrl) : option.appDirectory,
|
124051
|
-
paths:
|
123980
|
+
paths: {
|
123981
|
+
...alias,
|
123982
|
+
...(_tsconfig1 = tsconfig) === null || _tsconfig1 === void 0 ? void 0 : (_tsconfig_compilerOptions1 = _tsconfig1.compilerOptions) === null || _tsconfig_compilerOptions1 === void 0 ? void 0 : _tsconfig_compilerOptions1.paths
|
123983
|
+
},
|
124052
123984
|
isTsPath: true,
|
124053
123985
|
isTsProject
|
124054
123986
|
};
|
@@ -124134,7 +124066,7 @@ var require_path = __commonJS({
|
|
124134
124066
|
try {
|
124135
124067
|
ret = _os.default.tmpdir();
|
124136
124068
|
ret = _fs.default.realpathSync(ret);
|
124137
|
-
} catch
|
124069
|
+
} catch {
|
124138
124070
|
}
|
124139
124071
|
return ret;
|
124140
124072
|
}
|
@@ -124235,7 +124167,10 @@ var require_babel = __commonJS({
|
|
124235
124167
|
presets.forEach((preset, index) => {
|
124236
124168
|
if (Array.isArray(preset)) {
|
124237
124169
|
if (typeof preset[0] === "string" && (0, _path1.normalizeToPosixPath)(preset[0]).includes(presetName)) {
|
124238
|
-
preset[1] =
|
124170
|
+
preset[1] = {
|
124171
|
+
...preset[1] || {},
|
124172
|
+
...options
|
124173
|
+
};
|
124239
124174
|
}
|
124240
124175
|
} else if (typeof preset === "string" && (0, _path1.normalizeToPosixPath)(preset).includes(presetName)) {
|
124241
124176
|
presets[index] = [
|
@@ -124264,7 +124199,10 @@ var require_babel = __commonJS({
|
|
124264
124199
|
};
|
124265
124200
|
var applyUserBabelConfig = (defaultOptions, userBabelConfig, extraBabelUtils) => {
|
124266
124201
|
if (userBabelConfig) {
|
124267
|
-
const babelUtils =
|
124202
|
+
const babelUtils = {
|
124203
|
+
...getBabelUtils(defaultOptions),
|
124204
|
+
...extraBabelUtils
|
124205
|
+
};
|
124268
124206
|
return (0, _applyOptionsChain.applyOptionsChain)(defaultOptions, userBabelConfig || {}, babelUtils);
|
124269
124207
|
}
|
124270
124208
|
return defaultOptions;
|
@@ -124337,7 +124275,10 @@ var require_monorepo = __commonJS({
|
|
124337
124275
|
return false;
|
124338
124276
|
}
|
124339
124277
|
const json = JSON.parse(_fs.default.readFileSync(pkgJsonPath, "utf8"));
|
124340
|
-
const deps =
|
124278
|
+
const deps = {
|
124279
|
+
...json.dependencies || {},
|
124280
|
+
...json.devDependencies || {}
|
124281
|
+
};
|
124341
124282
|
return Boolean(deps["@modern-js/monorepo-tools"]);
|
124342
124283
|
};
|
124343
124284
|
var findMonorepoRoot = (appDirectory, maxDepth = PACKAGE_MAX_DEPTH) => {
|
@@ -124397,7 +124338,7 @@ var require_port = __commonJS({
|
|
124397
124338
|
var _net = /* @__PURE__ */ _interop_require_default._(require("net"));
|
124398
124339
|
var _compiled = require_compiled();
|
124399
124340
|
var _logger = require_logger2();
|
124400
|
-
var getPort =
|
124341
|
+
var getPort = async (port, { tryLimits = 20, strictPort = false } = {}) => {
|
124401
124342
|
if (typeof port === "string") {
|
124402
124343
|
port = parseInt(port, 10);
|
124403
124344
|
}
|
@@ -124409,7 +124350,7 @@ var require_port = __commonJS({
|
|
124409
124350
|
let attempts = 0;
|
124410
124351
|
while (!found && attempts <= tryLimits) {
|
124411
124352
|
try {
|
124412
|
-
|
124353
|
+
await new Promise((resolve, reject) => {
|
124413
124354
|
const server = _net.default.createServer();
|
124414
124355
|
server.unref();
|
124415
124356
|
server.on("error", reject);
|
@@ -124437,7 +124378,7 @@ var require_port = __commonJS({
|
|
124437
124378
|
}
|
124438
124379
|
}
|
124439
124380
|
return port;
|
124440
|
-
}
|
124381
|
+
};
|
124441
124382
|
}
|
124442
124383
|
});
|
124443
124384
|
|
@@ -124588,13 +124529,14 @@ var require_require = __commonJS({
|
|
124588
124529
|
};
|
124589
124530
|
var dynamicImport = new Function("modulePath", "return import(modulePath)");
|
124590
124531
|
var requireExistModule = (filename, opt) => {
|
124591
|
-
const final =
|
124532
|
+
const final = {
|
124592
124533
|
extensions: [
|
124593
124534
|
".ts",
|
124594
124535
|
".js"
|
124595
124536
|
],
|
124596
|
-
interop: true
|
124597
|
-
|
124537
|
+
interop: true,
|
124538
|
+
...opt
|
124539
|
+
};
|
124598
124540
|
const exist = (0, _fs.findExists)(final.extensions.map((ext) => `${filename}${ext}`));
|
124599
124541
|
if (!exist) {
|
124600
124542
|
return null;
|
@@ -124674,7 +124616,7 @@ var require_runtimeExports = __commonJS({
|
|
124674
124616
|
_compiled.fs.appendFileSync(entryExportFile, `${statement}
|
124675
124617
|
`);
|
124676
124618
|
}
|
124677
|
-
} catch
|
124619
|
+
} catch {
|
124678
124620
|
}
|
124679
124621
|
};
|
124680
124622
|
const getPath = () => entryExportFile;
|
@@ -124722,29 +124664,29 @@ var require_watch = __commonJS({
|
|
124722
124664
|
ignored
|
124723
124665
|
});
|
124724
124666
|
watcher.on("ready", () => ready = true);
|
124725
|
-
watcher.on("change", (filePath) =>
|
124667
|
+
watcher.on("change", async (filePath) => {
|
124726
124668
|
const changedFilePath = _path.default.resolve(filePath);
|
124727
|
-
|
124669
|
+
await runTask({
|
124728
124670
|
changedFilePath,
|
124729
124671
|
changeType: WatchChangeType.CHANGE
|
124730
124672
|
});
|
124731
|
-
})
|
124732
|
-
watcher.on("add", (filePath) =>
|
124673
|
+
});
|
124674
|
+
watcher.on("add", async (filePath) => {
|
124733
124675
|
const changedFilePath = _path.default.resolve(filePath);
|
124734
124676
|
if (ready) {
|
124735
|
-
|
124677
|
+
await runTask({
|
124736
124678
|
changedFilePath,
|
124737
124679
|
changeType: WatchChangeType.ADD
|
124738
124680
|
});
|
124739
124681
|
}
|
124740
|
-
})
|
124741
|
-
watcher.on("unlink", (filePath) =>
|
124682
|
+
});
|
124683
|
+
watcher.on("unlink", async (filePath) => {
|
124742
124684
|
const changedFilePath = _path.default.resolve(filePath);
|
124743
|
-
|
124685
|
+
await runTask({
|
124744
124686
|
changedFilePath,
|
124745
124687
|
changeType: WatchChangeType.UNLINK
|
124746
124688
|
});
|
124747
|
-
})
|
124689
|
+
});
|
124748
124690
|
watcher.on("error", (err) => {
|
124749
124691
|
throw err;
|
124750
124692
|
});
|
@@ -145338,43 +145280,39 @@ var localeKeys3 = i18n3.init("en", {
|
|
145338
145280
|
|
145339
145281
|
// ../../generator-utils/dist/esm/utils/package.js
|
145340
145282
|
var import_utils25 = __toESM(require_cjs2());
|
145341
|
-
function isPackageExist(packageName, registry2) {
|
145342
|
-
|
145343
|
-
|
145344
|
-
try {
|
145345
|
-
const args = [
|
145346
|
-
"view",
|
145347
|
-
packageName,
|
145348
|
-
"version"
|
145349
|
-
];
|
145350
|
-
if (registry2) {
|
145351
|
-
args.push(`--registry=${registry2}`);
|
145352
|
-
}
|
145353
|
-
const result = yield (0, import_utils25.execa)("npm", args);
|
145354
|
-
return (0, import_utils25.stripAnsi)(result.stdout);
|
145355
|
-
} catch (e) {
|
145356
|
-
return false;
|
145357
|
-
}
|
145358
|
-
}
|
145359
|
-
throw new Error("not found npm, please install npm before");
|
145360
|
-
});
|
145361
|
-
}
|
145362
|
-
function isPackageDeprecated(packageName, registry2) {
|
145363
|
-
return __async(this, null, function* () {
|
145364
|
-
if (yield (0, import_utils25.canUseNpm)()) {
|
145283
|
+
async function isPackageExist(packageName, registry2) {
|
145284
|
+
if (await (0, import_utils25.canUseNpm)()) {
|
145285
|
+
try {
|
145365
145286
|
const args = [
|
145366
145287
|
"view",
|
145367
145288
|
packageName,
|
145368
|
-
"
|
145289
|
+
"version"
|
145369
145290
|
];
|
145370
145291
|
if (registry2) {
|
145371
145292
|
args.push(`--registry=${registry2}`);
|
145372
145293
|
}
|
145373
|
-
const result =
|
145294
|
+
const result = await (0, import_utils25.execa)("npm", args);
|
145374
145295
|
return (0, import_utils25.stripAnsi)(result.stdout);
|
145296
|
+
} catch (e) {
|
145297
|
+
return false;
|
145375
145298
|
}
|
145376
|
-
|
145377
|
-
|
145299
|
+
}
|
145300
|
+
throw new Error("not found npm, please install npm before");
|
145301
|
+
}
|
145302
|
+
async function isPackageDeprecated(packageName, registry2) {
|
145303
|
+
if (await (0, import_utils25.canUseNpm)()) {
|
145304
|
+
const args = [
|
145305
|
+
"view",
|
145306
|
+
packageName,
|
145307
|
+
"deprecated"
|
145308
|
+
];
|
145309
|
+
if (registry2) {
|
145310
|
+
args.push(`--registry=${registry2}`);
|
145311
|
+
}
|
145312
|
+
const result = await (0, import_utils25.execa)("npm", args);
|
145313
|
+
return (0, import_utils25.stripAnsi)(result.stdout);
|
145314
|
+
}
|
145315
|
+
throw new Error("not found npm, please install npm before");
|
145378
145316
|
}
|
145379
145317
|
function semverDecrease(version) {
|
145380
145318
|
const versionObj = import_utils25.semver.parse(version, {
|
@@ -145393,103 +145331,97 @@ function semverDecrease(version) {
|
|
145393
145331
|
}
|
145394
145332
|
return result;
|
145395
145333
|
}
|
145396
|
-
function getAvailableVersion(packageName, currentVersion, registry2) {
|
145397
|
-
|
145398
|
-
|
145399
|
-
|
145400
|
-
|
145401
|
-
|
145402
|
-
|
145403
|
-
|
145404
|
-
continue;
|
145405
|
-
}
|
145406
|
-
return version;
|
145334
|
+
async function getAvailableVersion(packageName, currentVersion, registry2) {
|
145335
|
+
let times = 5;
|
145336
|
+
let version = currentVersion;
|
145337
|
+
while (times) {
|
145338
|
+
if (!await isPackageExist(`${packageName}@${version}`, registry2) || await isPackageDeprecated(`${packageName}@${version}`, registry2)) {
|
145339
|
+
version = import_utils25.semver.inc(version, "patch");
|
145340
|
+
times--;
|
145341
|
+
continue;
|
145407
145342
|
}
|
145408
|
-
|
145409
|
-
|
145410
|
-
|
145411
|
-
|
145412
|
-
|
145413
|
-
|
145414
|
-
|
145415
|
-
|
145343
|
+
return version;
|
145344
|
+
}
|
145345
|
+
times = 5;
|
145346
|
+
while (times) {
|
145347
|
+
version = semverDecrease(version);
|
145348
|
+
if (!await isPackageExist(`${packageName}@${version}`, registry2) || await isPackageDeprecated(`${packageName}@${version}`, registry2)) {
|
145349
|
+
times--;
|
145350
|
+
continue;
|
145416
145351
|
}
|
145417
|
-
return
|
145418
|
-
}
|
145352
|
+
return version;
|
145353
|
+
}
|
145354
|
+
return currentVersion;
|
145419
145355
|
}
|
145420
145356
|
|
145421
145357
|
// ../../generator-utils/dist/esm/index.js
|
145422
145358
|
var import_utils27 = __toESM(require_cjs2());
|
145423
|
-
function getPackageVersion(packageName, registry2) {
|
145424
|
-
|
145425
|
-
|
145426
|
-
|
145427
|
-
|
145428
|
-
|
145429
|
-
|
145430
|
-
|
145431
|
-
|
145432
|
-
|
145433
|
-
|
145434
|
-
|
145435
|
-
|
145436
|
-
args.push(`--registry=${registry2}`);
|
145437
|
-
}
|
145438
|
-
const result = yield (0, import_utils26.execa)("pnpm", args);
|
145439
|
-
spinner.stop();
|
145440
|
-
return stripAnsi2(result.stdout);
|
145359
|
+
async function getPackageVersion(packageName, registry2) {
|
145360
|
+
const spinner = (0, import_utils26.ora)({
|
145361
|
+
text: "Load Generator...",
|
145362
|
+
spinner: "runner"
|
145363
|
+
}).start();
|
145364
|
+
if (await (0, import_utils26.canUsePnpm)()) {
|
145365
|
+
const args = [
|
145366
|
+
"info",
|
145367
|
+
packageName,
|
145368
|
+
"version"
|
145369
|
+
];
|
145370
|
+
if (registry2) {
|
145371
|
+
args.push(`--registry=${registry2}`);
|
145441
145372
|
}
|
145442
|
-
|
145443
|
-
|
145444
|
-
|
145445
|
-
|
145446
|
-
|
145447
|
-
|
145448
|
-
|
145449
|
-
|
145450
|
-
|
145451
|
-
|
145452
|
-
|
145453
|
-
|
145373
|
+
const result = await (0, import_utils26.execa)("pnpm", args);
|
145374
|
+
spinner.stop();
|
145375
|
+
return stripAnsi2(result.stdout);
|
145376
|
+
}
|
145377
|
+
if (await (0, import_utils26.canUseNpm)()) {
|
145378
|
+
const args = [
|
145379
|
+
"view",
|
145380
|
+
packageName,
|
145381
|
+
"version"
|
145382
|
+
];
|
145383
|
+
if (registry2) {
|
145384
|
+
args.push(`--registry=${registry2}`);
|
145454
145385
|
}
|
145386
|
+
const result = await (0, import_utils26.execa)("npm", args);
|
145455
145387
|
spinner.stop();
|
145456
|
-
|
145457
|
-
}
|
145388
|
+
return stripAnsi2(result.stdout);
|
145389
|
+
}
|
145390
|
+
spinner.stop();
|
145391
|
+
throw new Error("not found npm, please install npm before");
|
145458
145392
|
}
|
145459
|
-
function getModernPluginVersion(
|
145460
|
-
|
145461
|
-
|
145462
|
-
|
145463
|
-
|
145464
|
-
const
|
145465
|
-
|
145466
|
-
|
145467
|
-
|
145468
|
-
|
145469
|
-
|
145470
|
-
|
145471
|
-
|
145393
|
+
async function getModernPluginVersion(solution, packageName, options = {
|
145394
|
+
distTag: "latest"
|
145395
|
+
}) {
|
145396
|
+
const { cwd = process.cwd(), registry: registry2, distTag } = options;
|
145397
|
+
const getLatetPluginVersion = async (tag) => {
|
145398
|
+
const version = await getPackageVersion(`${packageName}@${tag || distTag || "latest"}`, registry2);
|
145399
|
+
return version;
|
145400
|
+
};
|
145401
|
+
if (!packageName.startsWith("@modern-js") || packageName.includes("electron") || packageName.includes("codesmith") || packageName.includes("easy-form") || packageName.startsWith("@modern-js-reduck")) {
|
145402
|
+
return getLatetPluginVersion("latest");
|
145403
|
+
}
|
145404
|
+
let pkgPath = import_path11.default.join(require.resolve(SolutionToolsMap[solution], {
|
145405
|
+
paths: [
|
145406
|
+
cwd
|
145407
|
+
]
|
145408
|
+
}), "../../..", "package.json");
|
145409
|
+
if (solution === Solution.Module) {
|
145410
|
+
pkgPath = import_path11.default.join(require.resolve(SolutionToolsMap[solution], {
|
145472
145411
|
paths: [
|
145473
145412
|
cwd
|
145474
145413
|
]
|
145475
|
-
}), "
|
145476
|
-
|
145477
|
-
|
145478
|
-
|
145479
|
-
|
145480
|
-
|
145481
|
-
|
145482
|
-
}
|
145483
|
-
if (import_utils26.fs.existsSync(pkgPath)) {
|
145484
|
-
const pkgInfo = import_utils26.fs.readJSONSync(pkgPath);
|
145485
|
-
const modernVersion = pkgInfo.version;
|
145486
|
-
if (typeof modernVersion !== "string") {
|
145487
|
-
return getLatetPluginVersion();
|
145488
|
-
}
|
145489
|
-
return getAvailableVersion(packageName, modernVersion, registry2);
|
145414
|
+
}), "../..", "package.json");
|
145415
|
+
}
|
145416
|
+
if (import_utils26.fs.existsSync(pkgPath)) {
|
145417
|
+
const pkgInfo = import_utils26.fs.readJSONSync(pkgPath);
|
145418
|
+
const modernVersion = pkgInfo.version;
|
145419
|
+
if (typeof modernVersion !== "string") {
|
145420
|
+
return getLatetPluginVersion();
|
145490
145421
|
}
|
145491
|
-
return
|
145492
|
-
}
|
145422
|
+
return getAvailableVersion(packageName, modernVersion, registry2);
|
145423
|
+
}
|
145424
|
+
return getLatetPluginVersion();
|
145493
145425
|
}
|
145494
145426
|
|
145495
145427
|
// ../../generator-plugin/dist/esm/index.js
|
@@ -147052,19 +146984,17 @@ function getGeneratorPath(generator, distTag) {
|
|
147052
146984
|
}
|
147053
146985
|
return generator;
|
147054
146986
|
}
|
147055
|
-
function usePluginNameExport(solution, options) {
|
147056
|
-
|
147057
|
-
|
147058
|
-
|
147059
|
-
|
147060
|
-
|
147061
|
-
return true;
|
147062
|
-
});
|
146987
|
+
async function usePluginNameExport(solution, options) {
|
146988
|
+
const solutionVersion = await getModernPluginVersion(solution, SolutionToolsMap[Solution.MWA], options);
|
146989
|
+
if (import_utils30.semver.valid(solutionVersion) && import_utils30.semver.gte(solutionVersion, "2.0.0")) {
|
146990
|
+
return import_utils30.semver.gt(solutionVersion, "2.24.0");
|
146991
|
+
}
|
146992
|
+
return true;
|
147063
146993
|
}
|
147064
146994
|
|
147065
146995
|
// ../../new-action/dist/esm/mwa.js
|
147066
146996
|
var import_lodash11 = __toESM(require_lodash2());
|
147067
|
-
var MWANewAction = (options) =>
|
146997
|
+
var MWANewAction = async (options) => {
|
147068
146998
|
const { locale = "zh", distTag = "", debug = false, registry: registry2 = "", config = "{}", cwd = process.cwd() } = options;
|
147069
146999
|
let UserConfig = {};
|
147070
147000
|
try {
|
@@ -147098,10 +147028,11 @@ var MWANewAction = (options) => __async(void 0, null, function* () {
|
|
147098
147028
|
const enable = hasEnabledFunction(refactor, MWAActionRefactorDependencies, {}, {}, cwd);
|
147099
147029
|
refactorMap[refactor] = enable;
|
147100
147030
|
});
|
147101
|
-
const ans =
|
147031
|
+
const ans = await formilyAPI.getInputBySchemaFunc(getMWANewActionSchema, {
|
147032
|
+
...UserConfig,
|
147102
147033
|
funcMap,
|
147103
147034
|
refactorMap
|
147104
|
-
})
|
147035
|
+
});
|
147105
147036
|
const actionType = ans.actionType;
|
147106
147037
|
const action2 = ans[actionType];
|
147107
147038
|
const generator = getGeneratorPath(MWANewActionGenerators[actionType][action2], distTag);
|
@@ -147117,21 +147048,21 @@ var MWANewAction = (options) => __async(void 0, null, function* () {
|
|
147117
147048
|
};
|
147118
147049
|
const devDependency = MWAActionFunctionsDevDependencies[action2];
|
147119
147050
|
const dependency = MWAActionFunctionsDependencies[action2] || MWAActionRefactorDependencies[action2];
|
147120
|
-
const shouldUsePluginNameExport =
|
147051
|
+
const shouldUsePluginNameExport = await usePluginNameExport(Solution.MWA, {
|
147121
147052
|
registry: registry2,
|
147122
147053
|
distTag,
|
147123
147054
|
cwd
|
147124
147055
|
});
|
147125
147056
|
const finalConfig = (0, import_lodash11.merge)(UserConfig, ans, {
|
147126
147057
|
locale: UserConfig.locale || locale,
|
147127
|
-
packageManager: UserConfig.packageManager ||
|
147058
|
+
packageManager: UserConfig.packageManager || await (0, import_utils27.getPackageManager)(cwd),
|
147128
147059
|
distTag
|
147129
147060
|
}, {
|
147130
147061
|
devDependencies: devDependency ? {
|
147131
|
-
[devDependency]: `${
|
147062
|
+
[devDependency]: `${await getMwaPluginVersion(devDependency)}`
|
147132
147063
|
} : {},
|
147133
147064
|
dependencies: dependency ? {
|
147134
|
-
[dependency]: `${
|
147065
|
+
[dependency]: `${await getMwaPluginVersion(dependency)}`
|
147135
147066
|
} : {},
|
147136
147067
|
appendTypeContent: MWAActionFunctionsAppendTypeContent[action2] || MWAActionReactorAppendTypeContent[action2],
|
147137
147068
|
pluginName: MWANewActionPluginName[actionType][action2],
|
@@ -147144,18 +147075,18 @@ var MWANewAction = (options) => __async(void 0, null, function* () {
|
|
147144
147075
|
config: finalConfig
|
147145
147076
|
}
|
147146
147077
|
];
|
147147
|
-
|
147078
|
+
await smith.forge({
|
147148
147079
|
tasks: task.map((runner) => ({
|
147149
147080
|
generator: runner.name,
|
147150
147081
|
config: runner.config
|
147151
147082
|
})),
|
147152
147083
|
pwd: cwd
|
147153
147084
|
});
|
147154
|
-
}
|
147085
|
+
};
|
147155
147086
|
|
147156
147087
|
// ../../new-action/dist/esm/module.js
|
147157
147088
|
var import_lodash12 = __toESM(require_lodash2());
|
147158
|
-
var ModuleNewAction = (options) =>
|
147089
|
+
var ModuleNewAction = async (options) => {
|
147159
147090
|
const { locale = "zh", distTag = "", debug = false, registry: registry2 = "", config = "{}", cwd = process.cwd() } = options;
|
147160
147091
|
let UserConfig = {};
|
147161
147092
|
try {
|
@@ -147192,9 +147123,10 @@ var ModuleNewAction = (options) => __async(void 0, null, function* () {
|
|
147192
147123
|
smith.logger.warn("no option can be enabled");
|
147193
147124
|
process.exit(1);
|
147194
147125
|
}
|
147195
|
-
const ans =
|
147126
|
+
const ans = await formilyAPI.getInputBySchemaFunc(getModuleNewActionSchema, {
|
147127
|
+
...UserConfig,
|
147196
147128
|
funcMap
|
147197
|
-
})
|
147129
|
+
});
|
147198
147130
|
const actionType = ans.actionType;
|
147199
147131
|
const action2 = ans[actionType];
|
147200
147132
|
const generator = getGeneratorPath(ModuleNewActionGenerators[actionType][action2], distTag);
|
@@ -147211,24 +147143,24 @@ var ModuleNewAction = (options) => __async(void 0, null, function* () {
|
|
147211
147143
|
cwd
|
147212
147144
|
});
|
147213
147145
|
};
|
147214
|
-
const shouldUsePluginNameExport =
|
147146
|
+
const shouldUsePluginNameExport = await usePluginNameExport(Solution.Module, {
|
147215
147147
|
registry: registry2,
|
147216
147148
|
distTag,
|
147217
147149
|
cwd
|
147218
147150
|
});
|
147219
147151
|
const finalConfig = (0, import_lodash12.merge)(UserConfig, ans, {
|
147220
147152
|
locale: UserConfig.locale || locale,
|
147221
|
-
packageManager: UserConfig.packageManager ||
|
147153
|
+
packageManager: UserConfig.packageManager || await (0, import_utils27.getPackageManager)(cwd),
|
147222
147154
|
distTag
|
147223
147155
|
}, {
|
147224
147156
|
devDependencies: devDependency ? {
|
147225
|
-
[devDependency]: `${
|
147157
|
+
[devDependency]: `${await getModulePluginVersion(devDependency)}`
|
147226
147158
|
} : {},
|
147227
147159
|
dependencies: dependency ? {
|
147228
|
-
[dependency]: `${
|
147160
|
+
[dependency]: `${await getModulePluginVersion(dependency)}`
|
147229
147161
|
} : {},
|
147230
147162
|
peerDependencies: peerDependency ? {
|
147231
|
-
[peerDependency]: `${
|
147163
|
+
[peerDependency]: `${await getModulePluginVersion(peerDependency)}`
|
147232
147164
|
} : {},
|
147233
147165
|
pluginName: ModuleNewActionPluginName[actionType][action2],
|
147234
147166
|
pluginDependence: ModuleNewActionPluginDependence[actionType][action2],
|
@@ -147240,20 +147172,20 @@ var ModuleNewAction = (options) => __async(void 0, null, function* () {
|
|
147240
147172
|
config: finalConfig
|
147241
147173
|
}
|
147242
147174
|
];
|
147243
|
-
|
147175
|
+
await smith.forge({
|
147244
147176
|
tasks: task.map((runner) => ({
|
147245
147177
|
generator: runner.name,
|
147246
147178
|
config: runner.config
|
147247
147179
|
})),
|
147248
147180
|
pwd: cwd
|
147249
147181
|
});
|
147250
|
-
}
|
147182
|
+
};
|
147251
147183
|
|
147252
147184
|
// ../../new-action/dist/esm/monorepo.js
|
147253
147185
|
var import_path15 = __toESM(require("path"));
|
147254
147186
|
var import_lodash13 = __toESM(require_lodash2());
|
147255
147187
|
var REPO_GENERATOR = "@modern-js/repo-generator";
|
147256
|
-
var MonorepoNewAction = (options) =>
|
147188
|
+
var MonorepoNewAction = async (options) => {
|
147257
147189
|
const { locale = "zh", distTag = "", debug = false, registry: registry2 = "", config = "{}", plugin = [], cwd = process.cwd() } = options;
|
147258
147190
|
let UserConfig = {};
|
147259
147191
|
try {
|
@@ -147284,7 +147216,7 @@ var MonorepoNewAction = (options) => __async(void 0, null, function* () {
|
|
147284
147216
|
});
|
147285
147217
|
const finalConfig = (0, import_lodash13.merge)(UserConfig, {
|
147286
147218
|
locale: UserConfig.locale || locale,
|
147287
|
-
packageManager: UserConfig.packageManager ||
|
147219
|
+
packageManager: UserConfig.packageManager || await (0, import_utils27.getPackageManager)(cwd),
|
147288
147220
|
isMonorepo: true,
|
147289
147221
|
distTag,
|
147290
147222
|
plugins
|
@@ -147301,14 +147233,14 @@ var MonorepoNewAction = (options) => __async(void 0, null, function* () {
|
|
147301
147233
|
config: finalConfig
|
147302
147234
|
}
|
147303
147235
|
];
|
147304
|
-
|
147236
|
+
await smith.forge({
|
147305
147237
|
tasks: task.map((runner) => ({
|
147306
147238
|
generator: runner.name,
|
147307
147239
|
config: runner.config
|
147308
147240
|
})),
|
147309
147241
|
pwd: cwd
|
147310
147242
|
});
|
147311
|
-
}
|
147243
|
+
};
|
147312
147244
|
|
147313
147245
|
// ../../generator-plugin/dist/esm/context/new.js
|
147314
147246
|
var PluginNewAPI = /* @__PURE__ */ function() {
|
@@ -148204,15 +148136,16 @@ var getNeedRunPlugin = (context, generatorPlugin) => {
|
|
148204
148136
|
(_a2 = customPlugin[pluginSolution]) == null ? void 0 : _a2.find((plugin) => plugin.key === scenes)
|
148205
148137
|
);
|
148206
148138
|
};
|
148207
|
-
var handleTemplateFile = (context, generator, appApi, generatorPlugin) =>
|
148139
|
+
var handleTemplateFile = async (context, generator, appApi, generatorPlugin) => {
|
148208
148140
|
const { isMonorepo } = context.config;
|
148209
|
-
const { solution } =
|
148141
|
+
const { solution } = await appApi.getInputBySchemaFunc(
|
148210
148142
|
isMonorepo ? getMonorepoNewActionSchema : getSolutionSchema,
|
148211
|
-
|
148143
|
+
{
|
148144
|
+
...context.config,
|
148212
148145
|
customPlugin: generatorPlugin == null ? void 0 : generatorPlugin.customPlugin
|
148213
|
-
}
|
148146
|
+
}
|
148214
148147
|
);
|
148215
|
-
|
148148
|
+
await appApi.getInputBySchemaFunc(getScenesSchema, context.config);
|
148216
148149
|
const solutionGenerator = (
|
148217
148150
|
// eslint-disable-next-line no-nested-ternary
|
148218
148151
|
solution === "custom" ? BaseGenerator : isMonorepo ? SubSolutionGenerator[solution] : SolutionGenerator[solution]
|
@@ -148220,33 +148153,35 @@ var handleTemplateFile = (context, generator, appApi, generatorPlugin) => __asyn
|
|
148220
148153
|
if (!solution || !solutionGenerator) {
|
148221
148154
|
generator.logger.error("solution is not valid ");
|
148222
148155
|
}
|
148223
|
-
|
148156
|
+
await appApi.runSubGenerator(
|
148224
148157
|
getGeneratorPath2(solutionGenerator, context.config.distTag),
|
148225
148158
|
void 0,
|
148226
|
-
|
148159
|
+
{
|
148160
|
+
...isMonorepo ? MonorepoNewActionConfig[solution] || {} : {},
|
148161
|
+
...context.config,
|
148227
148162
|
hasPlugin: getNeedRunPlugin(context, generatorPlugin),
|
148228
148163
|
generatorPlugin
|
148229
|
-
}
|
148164
|
+
}
|
148230
148165
|
);
|
148231
|
-
}
|
148232
|
-
var handlePlugin = (context, generator) =>
|
148166
|
+
};
|
148167
|
+
var handlePlugin = async (context, generator) => {
|
148233
148168
|
const { plugins, registry: registry2, locale } = context.config;
|
148234
148169
|
const generatorPlugin = new GeneratorPlugin(
|
148235
148170
|
generator.logger,
|
148236
148171
|
generator.event,
|
148237
148172
|
locale
|
148238
148173
|
);
|
148239
|
-
|
148174
|
+
await generatorPlugin.setupPlugin(plugins, registry2);
|
148240
148175
|
return generatorPlugin;
|
148241
|
-
}
|
148242
|
-
var src_default = (context, generator) =>
|
148176
|
+
};
|
148177
|
+
var src_default = async (context, generator) => {
|
148243
148178
|
var _a2;
|
148244
148179
|
process.setMaxListeners(20);
|
148245
148180
|
const appApi = new AppAPI(context, generator);
|
148246
148181
|
const { locale } = context.config;
|
148247
148182
|
i18n2.changeLanguage({ locale });
|
148248
148183
|
appApi.i18n.changeLanguage({ locale });
|
148249
|
-
if (!
|
148184
|
+
if (!await appApi.checkEnvironment()) {
|
148250
148185
|
process.exit(1);
|
148251
148186
|
}
|
148252
148187
|
generator.logger.debug(`start run @modern-js/repo-generator`);
|
@@ -148255,16 +148190,16 @@ var src_default = (context, generator) => __async(void 0, null, function* () {
|
|
148255
148190
|
mergeDefaultConfig(context);
|
148256
148191
|
let generatorPlugin;
|
148257
148192
|
if (((_a2 = context.config.plugins) == null ? void 0 : _a2.length) > 0) {
|
148258
|
-
generatorPlugin =
|
148193
|
+
generatorPlugin = await handlePlugin(context, generator);
|
148259
148194
|
}
|
148260
148195
|
try {
|
148261
|
-
|
148196
|
+
await handleTemplateFile(context, generator, appApi, generatorPlugin);
|
148262
148197
|
} catch (e) {
|
148263
148198
|
generator.logger.error(e);
|
148264
148199
|
process.exit(1);
|
148265
148200
|
}
|
148266
148201
|
generator.logger.debug(`forge @modern-js/repo-generator succeed `);
|
148267
|
-
}
|
148202
|
+
};
|
148268
148203
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
148269
148204
|
/*!
|
148270
148205
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|