@ariestools/toolchain 8.7.0 → 8.7.2
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/README.md +44 -0
- package/dist/actions/deplint/deplint.d.ts +3 -1
- package/dist/actions/deplint/deplint.d.ts.map +1 -1
- package/dist/actions/deplint/engine.d.ts +2 -2
- package/dist/actions/deplint/engine.d.ts.map +1 -1
- package/dist/actions/deplint/findFiles.d.ts.map +1 -1
- package/dist/actions/deplint/getCliReferencedPackagesFromFiles.d.ts.map +1 -1
- package/dist/actions/deplint/getImportsFromFile.d.ts.map +1 -1
- package/dist/actions/deplint/getStorybookConfigImports.d.ts.map +1 -1
- package/dist/actions/deplint/index.d.ts +2 -0
- package/dist/actions/deplint/index.d.ts.map +1 -1
- package/dist/actions/deplint/reporters.d.ts +6 -1
- package/dist/actions/deplint/reporters.d.ts.map +1 -1
- package/dist/actions/deplint/runDeplint.d.ts +4 -0
- package/dist/actions/deplint/runDeplint.d.ts.map +1 -0
- package/dist/actions/deplint/snapshot.d.ts +7 -0
- package/dist/actions/deplint/snapshot.d.ts.map +1 -1
- package/dist/actions/deplint/sourceFileCache.d.ts +11 -0
- package/dist/actions/deplint/sourceFileCache.d.ts.map +1 -0
- package/dist/actions/deplint/types.d.ts +31 -0
- package/dist/actions/deplint/types.d.ts.map +1 -1
- package/dist/actions/license.d.ts +4 -0
- package/dist/actions/license.d.ts.map +1 -1
- package/dist/actions/lint.d.ts +11 -2
- package/dist/actions/lint.d.ts.map +1 -1
- package/dist/actions/lintNext.d.ts +22 -1
- package/dist/actions/lintNext.d.ts.map +1 -1
- package/dist/actions/lintNextRun.d.ts +36 -0
- package/dist/actions/lintNextRun.d.ts.map +1 -0
- package/dist/actions/lintNextWorker.d.ts +70 -3
- package/dist/actions/lintNextWorker.d.ts.map +1 -1
- package/dist/actions/lintPackageFilter.d.ts +44 -0
- package/dist/actions/lintPackageFilter.d.ts.map +1 -0
- package/dist/actions/package/compile/MonolithConfig.d.ts +10 -0
- package/dist/actions/package/compile/MonolithConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/index.d.ts +1 -0
- package/dist/actions/package/compile/index.d.ts.map +1 -1
- package/dist/actions/package/compile/monolithCopyEntries.d.ts +14 -0
- package/dist/actions/package/compile/monolithCopyEntries.d.ts.map +1 -0
- package/dist/actions/package/compile/packageCompileMonolith.d.ts.map +1 -1
- package/dist/actions/package/expectedCompileOutputs.d.ts +1 -0
- package/dist/actions/package/expectedCompileOutputs.d.ts.map +1 -1
- package/dist/actions/package/exportMapPublint.d.ts.map +1 -1
- package/dist/bin/package/build.mjs +414 -97
- package/dist/bin/package/build.mjs.map +1 -1
- package/dist/bin/package/clean.mjs +214 -47
- package/dist/bin/package/clean.mjs.map +1 -1
- package/dist/bin/package/compile.mjs +380 -89
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/copy-assets-cjs.mjs +214 -47
- package/dist/bin/package/copy-assets-cjs.mjs.map +1 -1
- package/dist/bin/package/copy-assets-esm.mjs +214 -47
- package/dist/bin/package/copy-assets-esm.mjs.map +1 -1
- package/dist/bin/package/publint.mjs +319 -64
- package/dist/bin/package/publint.mjs.map +1 -1
- package/dist/bin/package/recompile.mjs +380 -89
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/bin/package/sync-layout.mjs +33 -9
- package/dist/bin/package/sync-layout.mjs.map +1 -1
- package/dist/bin/skills.mjs +135 -91
- package/dist/bin/skills.mjs.map +1 -1
- package/dist/bin/source-map-explorer.mjs +7 -2
- package/dist/bin/source-map-explorer.mjs.map +1 -1
- package/dist/bin/xy.mjs +2634 -1653
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/licenseCheck/checkLicenses.d.ts +23 -0
- package/dist/lib/licenseCheck/checkLicenses.d.ts.map +1 -0
- package/dist/lib/licenseCheck/collectProductionLicenses.d.ts +21 -0
- package/dist/lib/licenseCheck/collectProductionLicenses.d.ts.map +1 -0
- package/dist/lib/licenseCheck/index.d.ts +4 -0
- package/dist/lib/licenseCheck/index.d.ts.map +1 -0
- package/dist/lib/licenseCheck/readPackageLicense.d.ts +25 -0
- package/dist/lib/licenseCheck/readPackageLicense.d.ts.map +1 -0
- package/dist/lib/loadConfig.d.ts.map +1 -1
- package/dist/xy/common/licenseCommand.d.ts.map +1 -1
- package/dist/xy/lint/cycleCommand.d.ts.map +1 -1
- package/dist/xy/lint/deplintCommand.d.ts.map +1 -1
- package/dist/xy/lint/lint/runCommand.d.ts.map +1 -1
- package/package.json +7 -8
|
@@ -560,7 +560,7 @@ function Ut(n, t = {}) {
|
|
|
560
560
|
function es(n, t = {}) {
|
|
561
561
|
return new I$1(n, t).iterate();
|
|
562
562
|
}
|
|
563
|
-
var Gt, ce, ss, fe$1, ue$1, qt, de$1, pe$1, is, rs, ns, os$2, hs, as, ls, cs, fs$6, us, ds, at, Ss, lt, Es, we$1, ye$1, W, xs, be$1, vs, Ct, Cs, Ts, As, ks, Kt, Se$1, Ee$1, Q$1, tt, O$2, Rs, Os, Fs, Ds, Ms, Ns, _s, Ls, Ws, Ps, js, Is, zs, Bs, Us, $s, Gs, Hs, Ce$1, Te$1, Ae$1, xe$1, A$1, Vs, Ys, Xs, Js, N$1, Zs, ke$1, Qs, ti, ve$1, ei, D, si, Oe, Vt, Fe$1, At, Re$1, ii, q$1, De$1, Tt, ri, ft, Ne$1, oi, hi, ai, G, H$1, K$1, kt, ut, Rt, _e$1, Ot, Le$1, P
|
|
563
|
+
var Gt, ce, ss, fe$1, ue$1, qt, de$1, pe$1, is, rs, ns, os$2, hs, as, ls, cs, fs$6, us, ds, at, Ss, lt, Es, we$1, ye$1, W, xs, be$1, vs, Ct, Cs, Ts, As, ks, Kt, Se$1, Ee$1, Q$1, tt, O$2, Rs, Os, Fs, Ds, Ms, Ns, _s, Ls, Ws, Ps, js, Is, zs, Bs, Us, $s, Gs, Hs, Ce$1, Te$1, Ae$1, xe$1, A$1, Vs, Ys, Xs, Js, N$1, Zs, ke$1, Qs, ti, ve$1, ei, D, si, Oe, Vt, Fe$1, At, Re$1, ii, q$1, De$1, Tt, ri, ft, Ne$1, oi, hi, ai, G, H$1, K$1, kt, ut, Rt, _e$1, Ot, Le$1, P, et, v$1, dt, st, C$1, F, T, Yt, Ft, k, x$1, Xt, Jt, We$1, Zt, B, Qt, Dt, pt, Y$1, M, mt, li, ci, fi, ui, Mt, te$1, di, pi, V, wt, Ue$1, $e$1, Ri, Oi, L, Ge$1, He$1, U, qe$1, Ke$1, X$1, Ve$1, _$1, gt, se$1, je$1, yt, j, Nt, Lt, Ie, Fi, ie$1, ze$1, bt, Be$1, _t, Wt, ne$1, Ye$1, R$2, Pt, jt, It, it, rt, St, Xe$1, Di, Mi, Ni, nt, _i, ot, oe$1, he$1, ae$1, Et, Li, zt, xt, vt, Pi, I$1, le$1, ji, Ii, zi, Bi, Ui, Ze$1;
|
|
564
564
|
var init_index_min = __esmMin((() => {
|
|
565
565
|
Gt = (n, t, e) => {
|
|
566
566
|
let s = n instanceof RegExp ? ce(n, e) : n, i = t instanceof RegExp ? ce(t, e) : t, r = s !== null && i != null && ss(s, i, e);
|
|
@@ -571,10 +571,12 @@ var init_index_min = __esmMin((() => {
|
|
|
571
571
|
body: e.slice(r[0] + s.length, r[1]),
|
|
572
572
|
post: e.slice(r[1] + i.length)
|
|
573
573
|
};
|
|
574
|
-
}
|
|
574
|
+
};
|
|
575
|
+
ce = (n, t) => {
|
|
575
576
|
let e = t.match(n);
|
|
576
577
|
return e ? e[0] : null;
|
|
577
|
-
}
|
|
578
|
+
};
|
|
579
|
+
ss = (n, t, e) => {
|
|
578
580
|
let s, i, r, o, h, a = e.indexOf(n), l = e.indexOf(t, a + 1), u = a;
|
|
579
581
|
if (a >= 0 && l > 0) {
|
|
580
582
|
if (n === t) return [a, l];
|
|
@@ -590,7 +592,22 @@ var init_index_min = __esmMin((() => {
|
|
|
590
592
|
}
|
|
591
593
|
return h;
|
|
592
594
|
};
|
|
593
|
-
fe$1 = "\0SLASH" + Math.random() + "\0"
|
|
595
|
+
fe$1 = "\0SLASH" + Math.random() + "\0";
|
|
596
|
+
ue$1 = "\0OPEN" + Math.random() + "\0";
|
|
597
|
+
qt = "\0CLOSE" + Math.random() + "\0";
|
|
598
|
+
de$1 = "\0COMMA" + Math.random() + "\0";
|
|
599
|
+
pe$1 = "\0PERIOD" + Math.random() + "\0";
|
|
600
|
+
is = new RegExp(fe$1, "g");
|
|
601
|
+
rs = new RegExp(ue$1, "g");
|
|
602
|
+
ns = new RegExp(qt, "g");
|
|
603
|
+
os$2 = new RegExp(de$1, "g");
|
|
604
|
+
hs = new RegExp(pe$1, "g");
|
|
605
|
+
as = /\\\\/g;
|
|
606
|
+
ls = /\\{/g;
|
|
607
|
+
cs = /\\}/g;
|
|
608
|
+
fs$6 = /\\,/g;
|
|
609
|
+
us = /\\./g;
|
|
610
|
+
ds = 1e5;
|
|
594
611
|
at = (n) => {
|
|
595
612
|
if (typeof n != "string") throw new TypeError("invalid pattern");
|
|
596
613
|
if (n.length > 65536) throw new TypeError("pattern is too long");
|
|
@@ -614,7 +631,11 @@ var init_index_min = __esmMin((() => {
|
|
|
614
631
|
"[:upper:]": ["\\p{Lu}", !0],
|
|
615
632
|
"[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}", !0],
|
|
616
633
|
"[:xdigit:]": ["A-Fa-f0-9", !1]
|
|
617
|
-
}
|
|
634
|
+
};
|
|
635
|
+
lt = (n) => n.replace(/[[\]\\-]/g, "\\$&");
|
|
636
|
+
Es = (n) => n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
637
|
+
we$1 = (n) => n.join("");
|
|
638
|
+
ye$1 = (n, t) => {
|
|
618
639
|
let e = t;
|
|
619
640
|
if (n.charAt(e) !== "[") throw new Error("not in a brace expression");
|
|
620
641
|
let s = [], i = [], r = e + 1, o = !1, h = !1, a = !1, l = !1, u = e, c = "";
|
|
@@ -691,7 +712,18 @@ var init_index_min = __esmMin((() => {
|
|
|
691
712
|
"+",
|
|
692
713
|
"*",
|
|
693
714
|
"@"
|
|
694
|
-
])
|
|
715
|
+
]);
|
|
716
|
+
be$1 = (n) => xs.has(n);
|
|
717
|
+
vs = "(?!(?:^|/)\\.\\.?(?:$|/))";
|
|
718
|
+
Ct = "(?!\\.)";
|
|
719
|
+
Cs = /* @__PURE__ */ new Set(["[", "."]);
|
|
720
|
+
Ts = /* @__PURE__ */ new Set(["..", "."]);
|
|
721
|
+
As = /* @__PURE__ */ new Set("().*{}+?[]^$\\!");
|
|
722
|
+
ks = (n) => n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
723
|
+
Kt = "[^/]";
|
|
724
|
+
Se$1 = Kt + "*?";
|
|
725
|
+
Ee$1 = Kt + "+?";
|
|
726
|
+
Q$1 = class n {
|
|
695
727
|
type;
|
|
696
728
|
#t;
|
|
697
729
|
#s;
|
|
@@ -932,34 +964,60 @@ var init_index_min = __esmMin((() => {
|
|
|
932
964
|
}
|
|
933
965
|
};
|
|
934
966
|
tt = (n, { windowsPathsNoEscape: t = !1, magicalBraces: e = !1 } = {}) => e ? t ? n.replace(/[?*()[\]{}]/g, "[$&]") : n.replace(/[?*()[\]\\{}]/g, "\\$&") : t ? n.replace(/[?*()[\]]/g, "[$&]") : n.replace(/[?*()[\]\\]/g, "\\$&");
|
|
935
|
-
O$2 = (n, t, e = {}) => (at(t), !e.nocomment && t.charAt(0) === "#" ? !1 : new D(t, e).match(n))
|
|
967
|
+
O$2 = (n, t, e = {}) => (at(t), !e.nocomment && t.charAt(0) === "#" ? !1 : new D(t, e).match(n));
|
|
968
|
+
Rs = /^\*+([^+@!?\*\[\(]*)$/;
|
|
969
|
+
Os = (n) => (t) => !t.startsWith(".") && t.endsWith(n);
|
|
970
|
+
Fs = (n) => (t) => t.endsWith(n);
|
|
971
|
+
Ds = (n) => (n = n.toLowerCase(), (t) => !t.startsWith(".") && t.toLowerCase().endsWith(n));
|
|
972
|
+
Ms = (n) => (n = n.toLowerCase(), (t) => t.toLowerCase().endsWith(n));
|
|
973
|
+
Ns = /^\*+\.\*+$/;
|
|
974
|
+
_s = (n) => !n.startsWith(".") && n.includes(".");
|
|
975
|
+
Ls = (n) => n !== "." && n !== ".." && n.includes(".");
|
|
976
|
+
Ws = /^\.\*+$/;
|
|
977
|
+
Ps = (n) => n !== "." && n !== ".." && n.startsWith(".");
|
|
978
|
+
js = /^\*+$/;
|
|
979
|
+
Is = (n) => n.length !== 0 && !n.startsWith(".");
|
|
980
|
+
zs = (n) => n.length !== 0 && n !== "." && n !== "..";
|
|
981
|
+
Bs = /^\?+([^+@!?\*\[\(]*)?$/;
|
|
982
|
+
Us = ([n, t = ""]) => {
|
|
936
983
|
let e = Ce$1([n]);
|
|
937
984
|
return t ? (t = t.toLowerCase(), (s) => e(s) && s.toLowerCase().endsWith(t)) : e;
|
|
938
|
-
}
|
|
985
|
+
};
|
|
986
|
+
$s = ([n, t = ""]) => {
|
|
939
987
|
let e = Te$1([n]);
|
|
940
988
|
return t ? (t = t.toLowerCase(), (s) => e(s) && s.toLowerCase().endsWith(t)) : e;
|
|
941
|
-
}
|
|
989
|
+
};
|
|
990
|
+
Gs = ([n, t = ""]) => {
|
|
942
991
|
let e = Te$1([n]);
|
|
943
992
|
return t ? (s) => e(s) && s.endsWith(t) : e;
|
|
944
|
-
}
|
|
993
|
+
};
|
|
994
|
+
Hs = ([n, t = ""]) => {
|
|
945
995
|
let e = Ce$1([n]);
|
|
946
996
|
return t ? (s) => e(s) && s.endsWith(t) : e;
|
|
947
|
-
}
|
|
997
|
+
};
|
|
998
|
+
Ce$1 = ([n]) => {
|
|
948
999
|
let t = n.length;
|
|
949
1000
|
return (e) => e.length === t && !e.startsWith(".");
|
|
950
|
-
}
|
|
1001
|
+
};
|
|
1002
|
+
Te$1 = ([n]) => {
|
|
951
1003
|
let t = n.length;
|
|
952
1004
|
return (e) => e.length === t && e !== "." && e !== "..";
|
|
953
|
-
}
|
|
1005
|
+
};
|
|
1006
|
+
Ae$1 = typeof process == "object" && process ? typeof process.env == "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
|
|
1007
|
+
xe$1 = {
|
|
954
1008
|
win32: { sep: "\\" },
|
|
955
1009
|
posix: { sep: "/" }
|
|
956
1010
|
};
|
|
957
1011
|
O$2.sep = Ae$1 === "win32" ? xe$1.win32.sep : xe$1.posix.sep;
|
|
958
1012
|
A$1 = Symbol("globstar **");
|
|
959
1013
|
O$2.GLOBSTAR = A$1;
|
|
960
|
-
Vs = "[^/]*?"
|
|
1014
|
+
Vs = "[^/]*?";
|
|
1015
|
+
Ys = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
|
|
1016
|
+
Xs = "(?:(?!(?:\\/|^)\\.).)*?";
|
|
1017
|
+
Js = (n, t = {}) => (e) => O$2(e, n, t);
|
|
961
1018
|
O$2.filter = Js;
|
|
962
|
-
N$1 = (n, t = {}) => Object.assign({}, n, t)
|
|
1019
|
+
N$1 = (n, t = {}) => Object.assign({}, n, t);
|
|
1020
|
+
Zs = (n) => {
|
|
963
1021
|
if (!n || typeof n != "object" || !Object.keys(n).length) return O$2;
|
|
964
1022
|
let t = O$2;
|
|
965
1023
|
return Object.assign((s, i, r = {}) => t(s, i, N$1(n, r)), {
|
|
@@ -1000,7 +1058,9 @@ var init_index_min = __esmMin((() => {
|
|
|
1000
1058
|
return n = n.filter((i) => s.match(i)), s.options.nonull && !n.length && n.push(t), n;
|
|
1001
1059
|
};
|
|
1002
1060
|
O$2.match = ti;
|
|
1003
|
-
ve$1 = /[?*]|[+@!]\(.*?\)|\[|\]
|
|
1061
|
+
ve$1 = /[?*]|[+@!]\(.*?\)|\[|\]/;
|
|
1062
|
+
ei = (n) => n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
1063
|
+
D = class {
|
|
1004
1064
|
options;
|
|
1005
1065
|
set;
|
|
1006
1066
|
pattern;
|
|
@@ -1284,9 +1344,14 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
1284
1344
|
O$2.Minimatch = D;
|
|
1285
1345
|
O$2.escape = tt;
|
|
1286
1346
|
O$2.unescape = W;
|
|
1287
|
-
si = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date
|
|
1347
|
+
si = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date;
|
|
1348
|
+
Oe = /* @__PURE__ */ new Set();
|
|
1349
|
+
Vt = typeof process == "object" && process ? process : {};
|
|
1350
|
+
Fe$1 = (n, t, e, s) => {
|
|
1288
1351
|
typeof Vt.emitWarning == "function" ? Vt.emitWarning(n, t, e, s) : console.error(`[${e}] ${t}: ${n}`);
|
|
1289
|
-
}
|
|
1352
|
+
};
|
|
1353
|
+
At = globalThis.AbortController;
|
|
1354
|
+
Re$1 = globalThis.AbortSignal;
|
|
1290
1355
|
if (typeof At > "u") {
|
|
1291
1356
|
Re$1 = class {
|
|
1292
1357
|
onabort;
|
|
@@ -1314,11 +1379,14 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
1314
1379
|
};
|
|
1315
1380
|
}
|
|
1316
1381
|
ii = (n) => !Oe.has(n);
|
|
1317
|
-
q$1 = (n) => n && n === Math.floor(n) && n > 0 && isFinite(n)
|
|
1382
|
+
q$1 = (n) => n && n === Math.floor(n) && n > 0 && isFinite(n);
|
|
1383
|
+
De$1 = (n) => q$1(n) ? n <= Math.pow(2, 8) ? Uint8Array : n <= Math.pow(2, 16) ? Uint16Array : n <= Math.pow(2, 32) ? Uint32Array : n <= Number.MAX_SAFE_INTEGER ? Tt : null : null;
|
|
1384
|
+
Tt = class extends Array {
|
|
1318
1385
|
constructor(n) {
|
|
1319
1386
|
super(n), this.fill(0);
|
|
1320
1387
|
}
|
|
1321
|
-
}
|
|
1388
|
+
};
|
|
1389
|
+
ri = class ct {
|
|
1322
1390
|
heap;
|
|
1323
1391
|
length;
|
|
1324
1392
|
static #t = !1;
|
|
@@ -1339,7 +1407,8 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
1339
1407
|
pop() {
|
|
1340
1408
|
return this.heap[--this.length];
|
|
1341
1409
|
}
|
|
1342
|
-
}
|
|
1410
|
+
};
|
|
1411
|
+
ft = class Me {
|
|
1343
1412
|
#t;
|
|
1344
1413
|
#s;
|
|
1345
1414
|
#n;
|
|
@@ -1882,7 +1951,47 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
1882
1951
|
Ne$1 = typeof process == "object" && process ? process : {
|
|
1883
1952
|
stdout: null,
|
|
1884
1953
|
stderr: null
|
|
1885
|
-
}
|
|
1954
|
+
};
|
|
1955
|
+
oi = (n) => !!n && typeof n == "object" && (n instanceof V || n instanceof Pe || hi(n) || ai(n));
|
|
1956
|
+
hi = (n) => !!n && typeof n == "object" && n instanceof EventEmitter && typeof n.pipe == "function" && n.pipe !== Pe.Writable.prototype.pipe;
|
|
1957
|
+
ai = (n) => !!n && typeof n == "object" && n instanceof EventEmitter && typeof n.write == "function" && typeof n.end == "function";
|
|
1958
|
+
G = Symbol("EOF");
|
|
1959
|
+
H$1 = Symbol("maybeEmitEnd");
|
|
1960
|
+
K$1 = Symbol("emittedEnd");
|
|
1961
|
+
kt = Symbol("emittingEnd");
|
|
1962
|
+
ut = Symbol("emittedError");
|
|
1963
|
+
Rt = Symbol("closed");
|
|
1964
|
+
_e$1 = Symbol("read");
|
|
1965
|
+
Ot = Symbol("flush");
|
|
1966
|
+
Le$1 = Symbol("flushChunk");
|
|
1967
|
+
P = Symbol("encoding");
|
|
1968
|
+
et = Symbol("decoder");
|
|
1969
|
+
v$1 = Symbol("flowing");
|
|
1970
|
+
dt = Symbol("paused");
|
|
1971
|
+
st = Symbol("resume");
|
|
1972
|
+
C$1 = Symbol("buffer");
|
|
1973
|
+
F = Symbol("pipes");
|
|
1974
|
+
T = Symbol("bufferLength");
|
|
1975
|
+
Yt = Symbol("bufferPush");
|
|
1976
|
+
Ft = Symbol("bufferShift");
|
|
1977
|
+
k = Symbol("objectMode");
|
|
1978
|
+
x$1 = Symbol("destroyed");
|
|
1979
|
+
Xt = Symbol("error");
|
|
1980
|
+
Jt = Symbol("emitData");
|
|
1981
|
+
We$1 = Symbol("emitEnd");
|
|
1982
|
+
Zt = Symbol("emitEnd2");
|
|
1983
|
+
B = Symbol("async");
|
|
1984
|
+
Qt = Symbol("abort");
|
|
1985
|
+
Dt = Symbol("aborted");
|
|
1986
|
+
pt = Symbol("signal");
|
|
1987
|
+
Y$1 = Symbol("dataListeners");
|
|
1988
|
+
M = Symbol("discarded");
|
|
1989
|
+
mt = (n) => Promise.resolve().then(n);
|
|
1990
|
+
li = (n) => n();
|
|
1991
|
+
ci = (n) => n === "end" || n === "finish" || n === "prefinish";
|
|
1992
|
+
fi = (n) => n instanceof ArrayBuffer || !!n && typeof n == "object" && n.constructor && n.constructor.name === "ArrayBuffer" && n.byteLength >= 0;
|
|
1993
|
+
ui = (n) => !Buffer.isBuffer(n) && ArrayBuffer.isView(n);
|
|
1994
|
+
Mt = class {
|
|
1886
1995
|
src;
|
|
1887
1996
|
dest;
|
|
1888
1997
|
opts;
|
|
@@ -1897,20 +2006,24 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
1897
2006
|
end() {
|
|
1898
2007
|
this.unpipe(), this.opts.end && this.dest.end();
|
|
1899
2008
|
}
|
|
1900
|
-
}
|
|
2009
|
+
};
|
|
2010
|
+
te$1 = class extends Mt {
|
|
1901
2011
|
unpipe() {
|
|
1902
2012
|
this.src.removeListener("error", this.proxyErrors), super.unpipe();
|
|
1903
2013
|
}
|
|
1904
2014
|
constructor(t, e, s) {
|
|
1905
2015
|
super(t, e, s), this.proxyErrors = (i) => this.dest.emit("error", i), t.on("error", this.proxyErrors);
|
|
1906
2016
|
}
|
|
1907
|
-
}
|
|
2017
|
+
};
|
|
2018
|
+
di = (n) => !!n.objectMode;
|
|
2019
|
+
pi = (n) => !n.objectMode && !!n.encoding && n.encoding !== "buffer";
|
|
2020
|
+
V = class extends EventEmitter {
|
|
1908
2021
|
[v$1] = !1;
|
|
1909
2022
|
[dt] = !1;
|
|
1910
2023
|
[F] = [];
|
|
1911
2024
|
[C$1] = [];
|
|
1912
2025
|
[k];
|
|
1913
|
-
[P
|
|
2026
|
+
[P];
|
|
1914
2027
|
[B];
|
|
1915
2028
|
[et];
|
|
1916
2029
|
[G] = !1;
|
|
@@ -1918,7 +2031,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
1918
2031
|
[kt] = !1;
|
|
1919
2032
|
[Rt] = !1;
|
|
1920
2033
|
[ut] = null;
|
|
1921
|
-
[T
|
|
2034
|
+
[T] = 0;
|
|
1922
2035
|
[x$1] = !1;
|
|
1923
2036
|
[pt];
|
|
1924
2037
|
[Dt] = !1;
|
|
@@ -1929,15 +2042,15 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
1929
2042
|
constructor(...t) {
|
|
1930
2043
|
let e = t[0] || {};
|
|
1931
2044
|
if (super(), e.objectMode && typeof e.encoding == "string") throw new TypeError("Encoding and objectMode may not be used together");
|
|
1932
|
-
di(e) ? (this[k] = !0, this[P
|
|
2045
|
+
di(e) ? (this[k] = !0, this[P] = null) : pi(e) ? (this[P] = e.encoding, this[k] = !1) : (this[k] = !1, this[P] = null), this[B] = !!e.async, this[et] = this[P] ? new StringDecoder(this[P]) : null, e && e.debugExposeBuffer === !0 && Object.defineProperty(this, "buffer", { get: () => this[C$1] }), e && e.debugExposePipes === !0 && Object.defineProperty(this, "pipes", { get: () => this[F] });
|
|
1933
2046
|
let { signal: s } = e;
|
|
1934
2047
|
s && (this[pt] = s, s.aborted ? this[Qt]() : s.addEventListener("abort", () => this[Qt]()));
|
|
1935
2048
|
}
|
|
1936
2049
|
get bufferLength() {
|
|
1937
|
-
return this[T
|
|
2050
|
+
return this[T];
|
|
1938
2051
|
}
|
|
1939
2052
|
get encoding() {
|
|
1940
|
-
return this[P
|
|
2053
|
+
return this[P];
|
|
1941
2054
|
}
|
|
1942
2055
|
set encoding(t) {
|
|
1943
2056
|
throw new Error("Encoding must be set at instantiation time");
|
|
@@ -1975,12 +2088,12 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
1975
2088
|
else if (fi(t)) t = Buffer.from(t);
|
|
1976
2089
|
else if (typeof t != "string") throw new Error("Non-contiguous data written to non-objectMode stream");
|
|
1977
2090
|
}
|
|
1978
|
-
return this[k] ? (this[v$1] && this[T
|
|
2091
|
+
return this[k] ? (this[v$1] && this[T] !== 0 && this[Ot](!0), this[v$1] ? this.emit("data", t) : this[Yt](t), this[T] !== 0 && this.emit("readable"), s && i(s), this[v$1]) : t.length ? (typeof t == "string" && !(e === this[P] && !this[et]?.lastNeed) && (t = Buffer.from(t, e)), Buffer.isBuffer(t) && this[P] && (t = this[et].write(t)), this[v$1] && this[T] !== 0 && this[Ot](!0), this[v$1] ? this.emit("data", t) : this[Yt](t), this[T] !== 0 && this.emit("readable"), s && i(s), this[v$1]) : (this[T] !== 0 && this.emit("readable"), s && i(s), this[v$1]);
|
|
1979
2092
|
}
|
|
1980
2093
|
read(t) {
|
|
1981
2094
|
if (this[x$1]) return null;
|
|
1982
|
-
if (this[M] = !1, this[T
|
|
1983
|
-
this[k] && (t = null), this[C$1].length > 1 && !this[k] && (this[C$1] = [this[P
|
|
2095
|
+
if (this[M] = !1, this[T] === 0 || t === 0 || t && t > this[T]) return this[H$1](), null;
|
|
2096
|
+
this[k] && (t = null), this[C$1].length > 1 && !this[k] && (this[C$1] = [this[P] ? this[C$1].join("") : Buffer.concat(this[C$1], this[T])]);
|
|
1984
2097
|
let e = this[_e$1](t || null, this[C$1][0]);
|
|
1985
2098
|
return this[H$1](), e;
|
|
1986
2099
|
}
|
|
@@ -1988,7 +2101,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
1988
2101
|
if (this[k]) this[Ft]();
|
|
1989
2102
|
else {
|
|
1990
2103
|
let s = e;
|
|
1991
|
-
t === s.length || t === null ? this[Ft]() : typeof s == "string" ? (this[C$1][0] = s.slice(t), e = s.slice(0, t), this[T
|
|
2104
|
+
t === s.length || t === null ? this[Ft]() : typeof s == "string" ? (this[C$1][0] = s.slice(t), e = s.slice(0, t), this[T] -= t) : (this[C$1][0] = s.subarray(t), e = s.subarray(0, t), this[T] -= t);
|
|
1992
2105
|
}
|
|
1993
2106
|
return this.emit("data", e), !this[C$1].length && !this[G] && this.emit("drain"), e;
|
|
1994
2107
|
}
|
|
@@ -2014,10 +2127,10 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
2014
2127
|
return this[dt];
|
|
2015
2128
|
}
|
|
2016
2129
|
[Yt](t) {
|
|
2017
|
-
this[k] ? this[T
|
|
2130
|
+
this[k] ? this[T] += 1 : this[T] += t.length, this[C$1].push(t);
|
|
2018
2131
|
}
|
|
2019
2132
|
[Ft]() {
|
|
2020
|
-
return this[k] ? this[T
|
|
2133
|
+
return this[k] ? this[T] -= 1 : this[T] -= this[C$1][0].length, this[C$1].shift();
|
|
2021
2134
|
}
|
|
2022
2135
|
[Ot](t = !1) {
|
|
2023
2136
|
do ;
|
|
@@ -2043,7 +2156,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
2043
2156
|
on(t, e) {
|
|
2044
2157
|
let s = super.on(t, e);
|
|
2045
2158
|
if (t === "data") this[M] = !1, this[Y$1]++, !this[F].length && !this[v$1] && this[st]();
|
|
2046
|
-
else if (t === "readable" && this[T
|
|
2159
|
+
else if (t === "readable" && this[T] !== 0) super.emit("readable");
|
|
2047
2160
|
else if (ci(t) && this[K$1]) super.emit(t), this.removeAllListeners(t);
|
|
2048
2161
|
else if (t === "error" && this[ut]) {
|
|
2049
2162
|
let i = e;
|
|
@@ -2122,7 +2235,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
2122
2235
|
async concat() {
|
|
2123
2236
|
if (this[k]) throw new Error("cannot concat in objectMode");
|
|
2124
2237
|
let t = await this.collect();
|
|
2125
|
-
return this[P
|
|
2238
|
+
return this[P] ? t.join("") : Buffer.concat(t, t.dataLength);
|
|
2126
2239
|
}
|
|
2127
2240
|
async promise() {
|
|
2128
2241
|
return new Promise((t, e) => {
|
|
@@ -2194,14 +2307,15 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
2194
2307
|
}
|
|
2195
2308
|
destroy(t) {
|
|
2196
2309
|
if (this[x$1]) return t ? this.emit("error", t) : this.emit(x$1), this;
|
|
2197
|
-
this[x$1] = !0, this[M] = !0, this[C$1].length = 0, this[T
|
|
2310
|
+
this[x$1] = !0, this[M] = !0, this[C$1].length = 0, this[T] = 0;
|
|
2198
2311
|
let e = this;
|
|
2199
2312
|
return typeof e.close == "function" && !this[Rt] && e.close(), t ? this.emit("error", t) : this.emit(x$1), this;
|
|
2200
2313
|
}
|
|
2201
2314
|
static get isStream() {
|
|
2202
2315
|
return oi;
|
|
2203
2316
|
}
|
|
2204
|
-
}
|
|
2317
|
+
};
|
|
2318
|
+
wt = {
|
|
2205
2319
|
lstatSync,
|
|
2206
2320
|
readdir,
|
|
2207
2321
|
readdirSync,
|
|
@@ -2213,35 +2327,66 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
2213
2327
|
readlink,
|
|
2214
2328
|
realpath
|
|
2215
2329
|
}
|
|
2216
|
-
}
|
|
2330
|
+
};
|
|
2331
|
+
Ue$1 = (n) => !n || n === wt || n === xi ? wt : {
|
|
2217
2332
|
...wt,
|
|
2218
2333
|
...n,
|
|
2219
2334
|
promises: {
|
|
2220
2335
|
...wt.promises,
|
|
2221
2336
|
...n.promises || {}
|
|
2222
2337
|
}
|
|
2223
|
-
}
|
|
2338
|
+
};
|
|
2339
|
+
$e$1 = /^\\\\\?\\([a-z]:)\\?$/i;
|
|
2340
|
+
Ri = (n) => n.replace(/\//g, "\\").replace($e$1, "$1\\");
|
|
2341
|
+
Oi = /[\\\/]/;
|
|
2342
|
+
L = 0;
|
|
2343
|
+
Ge$1 = 1;
|
|
2344
|
+
He$1 = 2;
|
|
2345
|
+
U = 4;
|
|
2346
|
+
qe$1 = 6;
|
|
2347
|
+
Ke$1 = 8;
|
|
2348
|
+
X$1 = 10;
|
|
2349
|
+
Ve$1 = 12;
|
|
2350
|
+
_$1 = 15;
|
|
2351
|
+
gt = ~_$1;
|
|
2352
|
+
se$1 = 16;
|
|
2353
|
+
je$1 = 32;
|
|
2354
|
+
yt = 64;
|
|
2355
|
+
j = 128;
|
|
2356
|
+
Nt = 256;
|
|
2357
|
+
Lt = 512;
|
|
2358
|
+
Ie = yt | j | Lt;
|
|
2359
|
+
Fi = 1023;
|
|
2360
|
+
ie$1 = (n) => n.isFile() ? Ke$1 : n.isDirectory() ? U : n.isSymbolicLink() ? X$1 : n.isCharacterDevice() ? He$1 : n.isBlockDevice() ? qe$1 : n.isSocket() ? Ve$1 : n.isFIFO() ? Ge$1 : L;
|
|
2361
|
+
ze$1 = new ft({ max: 2 ** 12 });
|
|
2362
|
+
bt = (n) => {
|
|
2224
2363
|
let t = ze$1.get(n);
|
|
2225
2364
|
if (t) return t;
|
|
2226
2365
|
let e = n.normalize("NFKD");
|
|
2227
2366
|
return ze$1.set(n, e), e;
|
|
2228
|
-
}
|
|
2367
|
+
};
|
|
2368
|
+
Be$1 = new ft({ max: 2 ** 12 });
|
|
2369
|
+
_t = (n) => {
|
|
2229
2370
|
let t = Be$1.get(n);
|
|
2230
2371
|
if (t) return t;
|
|
2231
2372
|
let e = bt(n.toLowerCase());
|
|
2232
2373
|
return Be$1.set(n, e), e;
|
|
2233
|
-
}
|
|
2374
|
+
};
|
|
2375
|
+
Wt = class extends ft {
|
|
2234
2376
|
constructor() {
|
|
2235
2377
|
super({ max: 256 });
|
|
2236
2378
|
}
|
|
2237
|
-
}
|
|
2379
|
+
};
|
|
2380
|
+
ne$1 = class extends ft {
|
|
2238
2381
|
constructor(t = 16 * 1024) {
|
|
2239
2382
|
super({
|
|
2240
2383
|
maxSize: t,
|
|
2241
2384
|
sizeCalculation: (e) => e.length + 1
|
|
2242
2385
|
});
|
|
2243
2386
|
}
|
|
2244
|
-
}
|
|
2387
|
+
};
|
|
2388
|
+
Ye$1 = Symbol("PathScurry setAsCwd");
|
|
2389
|
+
R$2 = class {
|
|
2245
2390
|
name;
|
|
2246
2391
|
root;
|
|
2247
2392
|
roots;
|
|
@@ -2654,7 +2799,8 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
2654
2799
|
for (; i && i.parent;) e.add(i), i.#x = s.join(this.sep), i.#A = s.join("/"), i = i.parent, s.push("..");
|
|
2655
2800
|
for (i = t; i && i.parent && !e.has(i);) i.#x = void 0, i.#A = void 0, i = i.parent;
|
|
2656
2801
|
}
|
|
2657
|
-
}
|
|
2802
|
+
};
|
|
2803
|
+
Pt = class n extends R$2 {
|
|
2658
2804
|
sep = "\\";
|
|
2659
2805
|
splitSep = Oi;
|
|
2660
2806
|
constructor(t, e = L, s, i, r, o, h) {
|
|
@@ -2674,7 +2820,8 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
2674
2820
|
sameRoot(t, e = this.root.name) {
|
|
2675
2821
|
return t = t.toUpperCase().replace(/\//g, "\\").replace($e$1, "$1\\"), t === e;
|
|
2676
2822
|
}
|
|
2677
|
-
}
|
|
2823
|
+
};
|
|
2824
|
+
jt = class n extends R$2 {
|
|
2678
2825
|
splitSep = "/";
|
|
2679
2826
|
sep = "/";
|
|
2680
2827
|
constructor(t, e = L, s, i, r, o, h) {
|
|
@@ -2689,7 +2836,8 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
2689
2836
|
newChild(t, e = L, s = {}) {
|
|
2690
2837
|
return new n(t, e, this.root, this.roots, this.nocase, this.childrenCache(), s);
|
|
2691
2838
|
}
|
|
2692
|
-
}
|
|
2839
|
+
};
|
|
2840
|
+
It = class {
|
|
2693
2841
|
root;
|
|
2694
2842
|
rootPath;
|
|
2695
2843
|
roots;
|
|
@@ -2933,7 +3081,8 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
2933
3081
|
let e = this.cwd;
|
|
2934
3082
|
this.cwd = typeof t == "string" ? this.cwd.resolve(t) : t, this.cwd[Ye$1](e);
|
|
2935
3083
|
}
|
|
2936
|
-
}
|
|
3084
|
+
};
|
|
3085
|
+
it = class extends It {
|
|
2937
3086
|
sep = "\\";
|
|
2938
3087
|
constructor(t = process.cwd(), e = {}) {
|
|
2939
3088
|
let { nocase: s = !0 } = e;
|
|
@@ -2952,7 +3101,8 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
2952
3101
|
isAbsolute(t) {
|
|
2953
3102
|
return t.startsWith("/") || t.startsWith("\\") || /^[a-z]:(\/|\\)/i.test(t);
|
|
2954
3103
|
}
|
|
2955
|
-
}
|
|
3104
|
+
};
|
|
3105
|
+
rt = class extends It {
|
|
2956
3106
|
sep = "/";
|
|
2957
3107
|
constructor(t = process.cwd(), e = {}) {
|
|
2958
3108
|
let { nocase: s = !1 } = e;
|
|
@@ -2970,7 +3120,8 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
2970
3120
|
isAbsolute(t) {
|
|
2971
3121
|
return t.startsWith("/");
|
|
2972
3122
|
}
|
|
2973
|
-
}
|
|
3123
|
+
};
|
|
3124
|
+
St = class extends rt {
|
|
2974
3125
|
constructor(t = process.cwd(), e = {}) {
|
|
2975
3126
|
let { nocase: s = !0 } = e;
|
|
2976
3127
|
super(t, {
|
|
@@ -2981,7 +3132,10 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
2981
3132
|
};
|
|
2982
3133
|
process.platform;
|
|
2983
3134
|
Xe$1 = process.platform === "win32" ? it : process.platform === "darwin" ? St : rt;
|
|
2984
|
-
Di = (n) => n.length >= 1
|
|
3135
|
+
Di = (n) => n.length >= 1;
|
|
3136
|
+
Mi = (n) => n.length >= 1;
|
|
3137
|
+
Ni = Symbol.for("nodejs.util.inspect.custom");
|
|
3138
|
+
nt = class n {
|
|
2985
3139
|
#t;
|
|
2986
3140
|
#s;
|
|
2987
3141
|
#n;
|
|
@@ -3071,7 +3225,8 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
3071
3225
|
return this.#n === 0 || !this.isGlobstar() || !this.#u ? !1 : (this.#u = !1, !0);
|
|
3072
3226
|
}
|
|
3073
3227
|
};
|
|
3074
|
-
_i = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux"
|
|
3228
|
+
_i = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux";
|
|
3229
|
+
ot = class {
|
|
3075
3230
|
relative;
|
|
3076
3231
|
relativeChildren;
|
|
3077
3232
|
absolute;
|
|
@@ -3130,7 +3285,8 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
3130
3285
|
let s = t.fullpath(), i = this.store.get(s);
|
|
3131
3286
|
i ? i.add(e.globString()) : this.store.set(s, /* @__PURE__ */ new Set([e.globString()]));
|
|
3132
3287
|
}
|
|
3133
|
-
}
|
|
3288
|
+
};
|
|
3289
|
+
he$1 = class {
|
|
3134
3290
|
store = /* @__PURE__ */ new Map();
|
|
3135
3291
|
add(t, e, s) {
|
|
3136
3292
|
let i = (e ? 2 : 0) | (s ? 1 : 0), r = this.store.get(t);
|
|
@@ -3143,7 +3299,8 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
3143
3299
|
!!(e & 1)
|
|
3144
3300
|
]);
|
|
3145
3301
|
}
|
|
3146
|
-
}
|
|
3302
|
+
};
|
|
3303
|
+
ae$1 = class {
|
|
3147
3304
|
store = /* @__PURE__ */ new Map();
|
|
3148
3305
|
add(t, e) {
|
|
3149
3306
|
if (!t.canReaddir()) return;
|
|
@@ -3161,7 +3318,8 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
3161
3318
|
keys() {
|
|
3162
3319
|
return [...this.store.keys()].filter((t) => t.canReaddir());
|
|
3163
3320
|
}
|
|
3164
|
-
}
|
|
3321
|
+
};
|
|
3322
|
+
Et = class n {
|
|
3165
3323
|
hasWalkedCache;
|
|
3166
3324
|
matches = new he$1();
|
|
3167
3325
|
subwalks = new ae$1();
|
|
@@ -3241,7 +3399,8 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
3241
3399
|
t.isNamed(e) && (s ? this.subwalks.add(t, s) : this.matches.add(t, i, !1));
|
|
3242
3400
|
}
|
|
3243
3401
|
};
|
|
3244
|
-
Li = (n, t) => typeof n == "string" ? new ot([n], t) : Array.isArray(n) ? new ot(n, t) : n
|
|
3402
|
+
Li = (n, t) => typeof n == "string" ? new ot([n], t) : Array.isArray(n) ? new ot(n, t) : n;
|
|
3403
|
+
zt = class {
|
|
3245
3404
|
path;
|
|
3246
3405
|
patterns;
|
|
3247
3406
|
opts;
|
|
@@ -3397,7 +3556,8 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
3397
3556
|
for (let [h, a] of s.subwalks.entries()) r++, this.walkCB2Sync(h, a, s.child(), o);
|
|
3398
3557
|
o();
|
|
3399
3558
|
}
|
|
3400
|
-
}
|
|
3559
|
+
};
|
|
3560
|
+
xt = class extends zt {
|
|
3401
3561
|
matches = /* @__PURE__ */ new Set();
|
|
3402
3562
|
constructor(t, e, s) {
|
|
3403
3563
|
super(t, e, s);
|
|
@@ -3419,7 +3579,8 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
3419
3579
|
if (this.signal?.aborted) throw this.signal.reason;
|
|
3420
3580
|
}), this.matches;
|
|
3421
3581
|
}
|
|
3422
|
-
}
|
|
3582
|
+
};
|
|
3583
|
+
vt = class extends zt {
|
|
3423
3584
|
results;
|
|
3424
3585
|
constructor(t, e, s) {
|
|
3425
3586
|
super(t, e, s), this.results = new V({
|
|
@@ -3440,7 +3601,8 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
3440
3601
|
return this.path.isUnknown() && this.path.lstatSync(), this.walkCBSync(this.path, this.patterns, () => this.results.end()), this.results;
|
|
3441
3602
|
}
|
|
3442
3603
|
};
|
|
3443
|
-
Pi = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux"
|
|
3604
|
+
Pi = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux";
|
|
3605
|
+
I$1 = class {
|
|
3444
3606
|
absolute;
|
|
3445
3607
|
cwd;
|
|
3446
3608
|
root;
|
|
@@ -3564,10 +3726,15 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
3564
3726
|
for (let e of n) if (new D(e, t).hasMagic()) return !0;
|
|
3565
3727
|
return !1;
|
|
3566
3728
|
};
|
|
3567
|
-
ji = Bt
|
|
3729
|
+
ji = Bt;
|
|
3730
|
+
Ii = Object.assign(Qe$1, { sync: Bt });
|
|
3731
|
+
zi = Ut;
|
|
3732
|
+
Bi = Object.assign(es, { sync: Ut });
|
|
3733
|
+
Ui = Object.assign(ts$1, {
|
|
3568
3734
|
stream: Bt,
|
|
3569
3735
|
iterate: Ut
|
|
3570
|
-
})
|
|
3736
|
+
});
|
|
3737
|
+
Ze$1 = Object.assign(Je$1, {
|
|
3571
3738
|
glob: Je$1,
|
|
3572
3739
|
globSync: ts$1,
|
|
3573
3740
|
sync: Ui,
|
|
@@ -5267,7 +5434,9 @@ var require_build = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5267
5434
|
//#endregion
|
|
5268
5435
|
//#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
|
|
5269
5436
|
var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5270
|
-
let p = process || {}
|
|
5437
|
+
let p = process || {};
|
|
5438
|
+
let argv = p.argv || [];
|
|
5439
|
+
let env = p.env || {};
|
|
5271
5440
|
let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
|
|
5272
5441
|
let formatter = (open, close, replace = open) => (input) => {
|
|
5273
5442
|
let string = "" + input, index = string.indexOf(close, open.length);
|
|
@@ -8437,7 +8606,8 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8437
8606
|
} else throw new YAMLException("code point within a string may not be greater than 0xFFFFFFFF");
|
|
8438
8607
|
return "\\" + handle + common.repeat("0", length - string.length) + string;
|
|
8439
8608
|
}
|
|
8440
|
-
var QUOTING_TYPE_SINGLE = 1
|
|
8609
|
+
var QUOTING_TYPE_SINGLE = 1;
|
|
8610
|
+
var QUOTING_TYPE_DOUBLE = 2;
|
|
8441
8611
|
function State(options) {
|
|
8442
8612
|
this.schema = options["schema"] || DEFAULT_SCHEMA;
|
|
8443
8613
|
this.indent = Math.max(1, options["indent"] || 2);
|
|
@@ -8518,7 +8688,11 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8518
8688
|
function needIndentIndicator(string) {
|
|
8519
8689
|
return /^\n* /.test(string);
|
|
8520
8690
|
}
|
|
8521
|
-
var STYLE_PLAIN = 1
|
|
8691
|
+
var STYLE_PLAIN = 1;
|
|
8692
|
+
var STYLE_SINGLE = 2;
|
|
8693
|
+
var STYLE_LITERAL = 3;
|
|
8694
|
+
var STYLE_FOLDED = 4;
|
|
8695
|
+
var STYLE_DOUBLE = 5;
|
|
8522
8696
|
function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
|
|
8523
8697
|
var i;
|
|
8524
8698
|
var char = 0;
|
|
@@ -9901,22 +10075,33 @@ function deprecatedRuleConfigAliases(configKey) {
|
|
|
9901
10075
|
var import_dist = require_dist();
|
|
9902
10076
|
const configState = {
|
|
9903
10077
|
config: void 0,
|
|
10078
|
+
/** In-flight root load so concurrent callers share one cosmiconfig search. */
|
|
10079
|
+
loadPromise: void 0,
|
|
9904
10080
|
rootConfigPath: void 0
|
|
9905
10081
|
};
|
|
9906
10082
|
const workspaceConfigCache = /* @__PURE__ */ new Map();
|
|
10083
|
+
/** In-flight workspace loads — concurrent jobs for the same dir share one search. */
|
|
10084
|
+
const workspaceConfigLoadPromises = /* @__PURE__ */ new Map();
|
|
9907
10085
|
const deprecationWarned = /* @__PURE__ */ new Set();
|
|
9908
10086
|
function isRecord$1(value) {
|
|
9909
10087
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
9910
10088
|
}
|
|
9911
|
-
|
|
9912
|
-
|
|
10089
|
+
const explorerState = {};
|
|
10090
|
+
function getExplorer() {
|
|
10091
|
+
explorerState.current ??= (0, import_dist.cosmiconfig)("xy", {
|
|
9913
10092
|
cache: true,
|
|
9914
10093
|
loaders: { ".ts": TypeScriptLoader() }
|
|
9915
10094
|
});
|
|
10095
|
+
return explorerState.current;
|
|
9916
10096
|
}
|
|
9917
|
-
|
|
9918
|
-
if (configState.config
|
|
9919
|
-
|
|
10097
|
+
async function ensureRootConfigLoaded() {
|
|
10098
|
+
if (configState.config !== void 0) return;
|
|
10099
|
+
if (configState.loadPromise !== void 0) {
|
|
10100
|
+
await configState.loadPromise;
|
|
10101
|
+
return;
|
|
10102
|
+
}
|
|
10103
|
+
configState.loadPromise = (async () => {
|
|
10104
|
+
const cosmicConfigResult = await getExplorer().search();
|
|
9920
10105
|
configState.config = cosmicConfigResult?.config ?? {};
|
|
9921
10106
|
configState.rootConfigPath = cosmicConfigResult?.filepath;
|
|
9922
10107
|
const configFilePath = cosmicConfigResult?.filepath;
|
|
@@ -9924,8 +10109,16 @@ const loadConfig = async (params) => {
|
|
|
9924
10109
|
console.log(chalk.green(`Loaded config from ${configFilePath}`));
|
|
9925
10110
|
if (Boolean(configState.config.verbose)) console.log(chalk.gray(JSON.stringify(configState.config, null, 2)));
|
|
9926
10111
|
}
|
|
10112
|
+
})();
|
|
10113
|
+
try {
|
|
10114
|
+
await configState.loadPromise;
|
|
10115
|
+
} finally {
|
|
10116
|
+
configState.loadPromise = void 0;
|
|
9927
10117
|
}
|
|
9928
|
-
|
|
10118
|
+
}
|
|
10119
|
+
const loadConfig = async (params) => {
|
|
10120
|
+
await ensureRootConfigLoaded();
|
|
10121
|
+
return deepMerge$1(configState.config ?? {}, params ?? {});
|
|
9929
10122
|
};
|
|
9930
10123
|
/**
|
|
9931
10124
|
* Loads the xy.config from a specific workspace directory.
|
|
@@ -9935,14 +10128,25 @@ const loadConfig = async (params) => {
|
|
|
9935
10128
|
async function loadWorkspaceConfig(workspaceDir) {
|
|
9936
10129
|
const cached = workspaceConfigCache.get(workspaceDir);
|
|
9937
10130
|
if (cached !== void 0) return cached;
|
|
9938
|
-
const
|
|
9939
|
-
if (
|
|
9940
|
-
|
|
9941
|
-
|
|
10131
|
+
const inFlight = workspaceConfigLoadPromises.get(workspaceDir);
|
|
10132
|
+
if (inFlight !== void 0) return inFlight;
|
|
10133
|
+
const loadPromise = (async () => {
|
|
10134
|
+
await ensureRootConfigLoaded();
|
|
10135
|
+
const result = await getExplorer().search(workspaceDir);
|
|
10136
|
+
if (!result || result.filepath === configState.rootConfigPath) {
|
|
10137
|
+
workspaceConfigCache.set(workspaceDir, {});
|
|
10138
|
+
return {};
|
|
10139
|
+
}
|
|
10140
|
+
const wsConfig = result.config ?? {};
|
|
10141
|
+
workspaceConfigCache.set(workspaceDir, wsConfig);
|
|
10142
|
+
return wsConfig;
|
|
10143
|
+
})();
|
|
10144
|
+
workspaceConfigLoadPromises.set(workspaceDir, loadPromise);
|
|
10145
|
+
try {
|
|
10146
|
+
return await loadPromise;
|
|
10147
|
+
} finally {
|
|
10148
|
+
workspaceConfigLoadPromises.delete(workspaceDir);
|
|
9942
10149
|
}
|
|
9943
|
-
const wsConfig = result.config ?? {};
|
|
9944
|
-
workspaceConfigCache.set(workspaceDir, wsConfig);
|
|
9945
|
-
return wsConfig;
|
|
9946
10150
|
}
|
|
9947
10151
|
/** Deprecated top-level fields that should be under `commands`. */
|
|
9948
10152
|
const DEPRECATED_COMMAND_FIELDS = /* @__PURE__ */ new Set(["deplint", "publint"]);
|
|
@@ -12360,7 +12564,17 @@ const customEntryOutputName = (entry) => {
|
|
|
12360
12564
|
const entryOutputBasename = (entry, entryMode) => {
|
|
12361
12565
|
if (entryMode === "custom") return customEntryOutputName(entry);
|
|
12362
12566
|
return PATH.posix.parse(normalizeEntryPath(entry)).name;
|
|
12363
|
-
}
|
|
12567
|
+
};
|
|
12568
|
+
//#endregion
|
|
12569
|
+
//#region ../../node_modules/.pnpm/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/dist/index.mjs
|
|
12570
|
+
const A = (r) => r !== null && typeof r == "object";
|
|
12571
|
+
const a = (r, t) => Object.assign(/* @__PURE__ */ new Error(`[${r}]: ${t}`), { code: r });
|
|
12572
|
+
const _ = "ERR_INVALID_PACKAGE_CONFIG";
|
|
12573
|
+
const E$1 = "ERR_INVALID_PACKAGE_TARGET";
|
|
12574
|
+
const I = "ERR_PACKAGE_PATH_NOT_EXPORTED";
|
|
12575
|
+
const R$1 = /^\d+$/;
|
|
12576
|
+
const O$1 = /^(\.{1,2}|node_modules)$/i;
|
|
12577
|
+
const w = /\/|\\/;
|
|
12364
12578
|
var h$1 = ((r) => (r.Export = "exports", r.Import = "imports", r))(h$1 || {});
|
|
12365
12579
|
const f = (r, t, e, o, c) => {
|
|
12366
12580
|
if (t == null) return [];
|
|
@@ -12378,7 +12592,9 @@ const f = (r, t, e, o, c) => {
|
|
|
12378
12592
|
return [];
|
|
12379
12593
|
}
|
|
12380
12594
|
throw a(E$1, `Invalid "${r}" target "${t}"`);
|
|
12381
|
-
}
|
|
12595
|
+
};
|
|
12596
|
+
const s = "*";
|
|
12597
|
+
const m = (r, t) => {
|
|
12382
12598
|
const e = r.indexOf(s), o = t.indexOf(s);
|
|
12383
12599
|
return e === o ? t.length > r.length : o > e;
|
|
12384
12600
|
};
|
|
@@ -12398,7 +12614,9 @@ const p = (r) => Object.keys(r).reduce((t, e) => {
|
|
|
12398
12614
|
const o = e === "" || e[0] !== ".";
|
|
12399
12615
|
if (t === void 0 || t === o) return o;
|
|
12400
12616
|
throw a(_, "\"exports\" cannot contain some keys starting with \".\" and some not");
|
|
12401
|
-
}, void 0)
|
|
12617
|
+
}, void 0);
|
|
12618
|
+
const u = /^\w+:/;
|
|
12619
|
+
const v = (r, t, e) => {
|
|
12402
12620
|
if (!r) throw new Error("\"exports\" is required");
|
|
12403
12621
|
t = t === "" ? "." : `./${t}`, (typeof r == "string" || Array.isArray(r) || A(r) && p(r)) && (r = { ".": r });
|
|
12404
12622
|
const [o, c] = d(r, t), n = f(h$1.Export, r[o], t, e, c);
|
|
@@ -12424,7 +12642,11 @@ const K = r((e) => {
|
|
|
12424
12642
|
let l = s == null ? void 0 : s.get(o);
|
|
12425
12643
|
return l === void 0 && (l = Reflect.apply(t, fs, n), s?.set(o, l)), l;
|
|
12426
12644
|
};
|
|
12427
|
-
}, "cacheFs")
|
|
12645
|
+
}, "cacheFs");
|
|
12646
|
+
const x = K("existsSync");
|
|
12647
|
+
const Se = K("readFileSync");
|
|
12648
|
+
const Q = K("statSync");
|
|
12649
|
+
const O = r((e, t, s) => {
|
|
12428
12650
|
for (;;) {
|
|
12429
12651
|
const n = PATH.posix.join(e, t);
|
|
12430
12652
|
if (x(s, n)) return n;
|
|
@@ -12432,7 +12654,9 @@ const K = r((e) => {
|
|
|
12432
12654
|
if (o === e) return;
|
|
12433
12655
|
e = o;
|
|
12434
12656
|
}
|
|
12435
|
-
}, "findUp")
|
|
12657
|
+
}, "findUp");
|
|
12658
|
+
const C = /^\.{1,2}(\/.*)?$/;
|
|
12659
|
+
const H = r((e) => {
|
|
12436
12660
|
const t = h(e);
|
|
12437
12661
|
return C.test(t) ? t : `./${t}`;
|
|
12438
12662
|
}, "normalizeRelativePath");
|
|
@@ -12850,10 +13074,14 @@ var de;
|
|
|
12850
13074
|
(function(e) {
|
|
12851
13075
|
e[e.InvalidSymbol = 1] = "InvalidSymbol", e[e.InvalidNumberFormat = 2] = "InvalidNumberFormat", e[e.PropertyNameExpected = 3] = "PropertyNameExpected", e[e.ValueExpected = 4] = "ValueExpected", e[e.ColonExpected = 5] = "ColonExpected", e[e.CommaExpected = 6] = "CommaExpected", e[e.CloseBraceExpected = 7] = "CloseBraceExpected", e[e.CloseBracketExpected = 8] = "CloseBracketExpected", e[e.EndOfFileExpected = 9] = "EndOfFileExpected", e[e.InvalidCommentToken = 10] = "InvalidCommentToken", e[e.UnexpectedEndOfComment = 11] = "UnexpectedEndOfComment", e[e.UnexpectedEndOfString = 12] = "UnexpectedEndOfString", e[e.UnexpectedEndOfNumber = 13] = "UnexpectedEndOfNumber", e[e.InvalidUnicode = 14] = "InvalidUnicode", e[e.InvalidEscapeCharacter = 15] = "InvalidEscapeCharacter", e[e.InvalidCharacter = 16] = "InvalidCharacter";
|
|
12852
13076
|
})(de || (de = {}));
|
|
12853
|
-
const we = r((e, t) => Je(Se(t, e, "utf8")), "readJsonc")
|
|
13077
|
+
const we = r((e, t) => Je(Se(t, e, "utf8")), "readJsonc");
|
|
13078
|
+
const ne = Symbol("implicitBaseUrl");
|
|
13079
|
+
const E = "${configDir}";
|
|
13080
|
+
const Me = r(() => {
|
|
12854
13081
|
const { findPnpApi: e } = Be;
|
|
12855
13082
|
return e && e(process.cwd());
|
|
12856
|
-
}, "getPnpApi")
|
|
13083
|
+
}, "getPnpApi");
|
|
13084
|
+
const te = r((e, t, s, n) => {
|
|
12857
13085
|
const o = `resolveFromPackageJsonPath:${e}:${t}:${s}`;
|
|
12858
13086
|
if (n != null && n.has(o)) return n.get(o);
|
|
12859
13087
|
const l = we(e, n);
|
|
@@ -12867,7 +13095,10 @@ const we = r((e, t) => Je(Se(t, e, "utf8")), "readJsonc"), ne = Symbol("implicit
|
|
|
12867
13095
|
}
|
|
12868
13096
|
else !t && l.tsconfig && (i = l.tsconfig);
|
|
12869
13097
|
return i = PATH.join(e, "..", i), n?.set(o, i), i;
|
|
12870
|
-
}, "resolveFromPackageJsonPath")
|
|
13098
|
+
}, "resolveFromPackageJsonPath");
|
|
13099
|
+
const se = "package.json";
|
|
13100
|
+
const le = "tsconfig.json";
|
|
13101
|
+
const Ve = r((e, t, s) => {
|
|
12871
13102
|
let n = e;
|
|
12872
13103
|
if (e === ".." && (n = PATH.join(n, le)), e[0] === "." && (n = PATH.resolve(t, n)), PATH.isAbsolute(n)) {
|
|
12873
13104
|
if (x(s, n)) {
|
|
@@ -12923,18 +13154,23 @@ const we = r((e, t) => Je(Se(t, e, "utf8")), "readJsonc"), ne = Symbol("implicit
|
|
|
12923
13154
|
if (x(s, p)) return p;
|
|
12924
13155
|
} else if (_) return d;
|
|
12925
13156
|
}
|
|
12926
|
-
}, "resolveExtendsPath")
|
|
13157
|
+
}, "resolveExtendsPath");
|
|
13158
|
+
const oe = r((e, t) => H(PATH.relative(e, t)), "pathRelative");
|
|
13159
|
+
const be = [
|
|
12927
13160
|
"files",
|
|
12928
13161
|
"include",
|
|
12929
13162
|
"exclude"
|
|
12930
|
-
]
|
|
13163
|
+
];
|
|
13164
|
+
const N = r((e, t, s) => {
|
|
12931
13165
|
const n = PATH.join(t, s);
|
|
12932
13166
|
return h(PATH.relative(e, n)) || "./";
|
|
12933
|
-
}, "resolveAndRelativize")
|
|
13167
|
+
}, "resolveAndRelativize");
|
|
13168
|
+
const ze = r((e, t, s) => {
|
|
12934
13169
|
const n = PATH.relative(e, t);
|
|
12935
13170
|
if (!n) return s;
|
|
12936
13171
|
return h(`${n}/${s.startsWith("./") ? s.slice(2) : s}`);
|
|
12937
|
-
}, "prefixPattern")
|
|
13172
|
+
}, "prefixPattern");
|
|
13173
|
+
const Ge = r((e, t, s, n) => {
|
|
12938
13174
|
const o = Ve(e, t, n);
|
|
12939
13175
|
if (!o) throw new Error(`File '${e}' not found.`);
|
|
12940
13176
|
if (s.has(o)) throw new Error(`Circularity detected while resolving configuration: ${o}`);
|
|
@@ -12961,7 +13197,9 @@ const we = r((e, t) => Je(Se(t, e, "utf8")), "readJsonc"), ne = Symbol("implicit
|
|
|
12961
13197
|
g && (i[u] = g.map((w) => w.startsWith(E) ? w : ze(t, l, w)));
|
|
12962
13198
|
}
|
|
12963
13199
|
return i;
|
|
12964
|
-
}, "resolveExtends")
|
|
13200
|
+
}, "resolveExtends");
|
|
13201
|
+
const ve = ["outDir", "declarationDir"];
|
|
13202
|
+
const pe = r((e, t, s = /* @__PURE__ */ new Set()) => {
|
|
12965
13203
|
let n;
|
|
12966
13204
|
try {
|
|
12967
13205
|
n = we(e, t) || {};
|
|
@@ -13011,16 +13249,19 @@ const we = r((e, t) => Je(Se(t, e, "utf8")), "readJsonc"), ne = Symbol("implicit
|
|
|
13011
13249
|
l.excludeDirectories && (l.excludeDirectories = l.excludeDirectories.map((i) => h(PATH.resolve(o, i)))), l.excludeFiles && (l.excludeFiles = l.excludeFiles.map((i) => h(PATH.resolve(o, i)))), l.watchFile && (l.watchFile = l.watchFile.toLowerCase()), l.watchDirectory && (l.watchDirectory = l.watchDirectory.toLowerCase()), l.fallbackPolling && (l.fallbackPolling = l.fallbackPolling.toLowerCase());
|
|
13012
13250
|
}
|
|
13013
13251
|
return n;
|
|
13014
|
-
}, "_parseTsconfig")
|
|
13252
|
+
}, "_parseTsconfig");
|
|
13253
|
+
const Y = r((e, t) => {
|
|
13015
13254
|
if (e.startsWith(E)) return h(PATH.join(t, e.slice(12)));
|
|
13016
|
-
}, "interpolateConfigDir")
|
|
13255
|
+
}, "interpolateConfigDir");
|
|
13256
|
+
const Qe = [
|
|
13017
13257
|
"outDir",
|
|
13018
13258
|
"declarationDir",
|
|
13019
13259
|
"outFile",
|
|
13020
13260
|
"rootDir",
|
|
13021
13261
|
"baseUrl",
|
|
13022
13262
|
"tsBuildInfoFile"
|
|
13023
|
-
]
|
|
13263
|
+
];
|
|
13264
|
+
const He = r((e) => {
|
|
13024
13265
|
if (e.strict) for (const I of [
|
|
13025
13266
|
"noImplicitAny",
|
|
13026
13267
|
"noImplicitThis",
|
|
@@ -13049,7 +13290,8 @@ const we = r((e, t) => Je(Se(t, e, "utf8")), "readJsonc"), ne = Symbol("implicit
|
|
|
13049
13290
|
a === "node" && (a = "node10"), e.moduleResolution = a, (a === "node16" || a === "nodenext" || a === "bundler") && (e.resolvePackageJsonExports ??= !0, e.resolvePackageJsonImports ??= !0), a === "bundler" && (e.allowSyntheticDefaultImports ??= !0, e.resolveJsonModule ??= !0);
|
|
13050
13291
|
}
|
|
13051
13292
|
e.jsx && (e.jsx = e.jsx.toLowerCase()), e.moduleDetection && (e.moduleDetection = e.moduleDetection.toLowerCase()), e.importsNotUsedAsValues && (e.importsNotUsedAsValues = e.importsNotUsedAsValues.toLowerCase()), e.newLine && (e.newLine = e.newLine.toLowerCase()), e.esModuleInterop && (e.allowSyntheticDefaultImports ??= !0), e.verbatimModuleSyntax && (e.isolatedModules ??= !0, e.preserveConstEnums ??= !0), e.isolatedModules && (e.preserveConstEnums ??= !0), e.rewriteRelativeImportExtensions && (e.allowImportingTsExtensions ??= !0), e.lib && (e.lib = e.lib.map((a) => a.toLowerCase())), e.checkJs && (e.allowJs ??= !0);
|
|
13052
|
-
}, "normalizeCompilerOptions")
|
|
13293
|
+
}, "normalizeCompilerOptions");
|
|
13294
|
+
const ie = r((e, t = /* @__PURE__ */ new Map()) => {
|
|
13053
13295
|
const s = PATH.resolve(e), n = pe(s, t), o = PATH.dirname(s), { compilerOptions: l } = n;
|
|
13054
13296
|
if (l) {
|
|
13055
13297
|
for (const f of Qe) {
|
|
@@ -13082,7 +13324,8 @@ const we = r((e, t) => Je(Se(t, e, "utf8")), "readJsonc"), ne = Symbol("implicit
|
|
|
13082
13324
|
}
|
|
13083
13325
|
return n;
|
|
13084
13326
|
}, "parseTsconfig");
|
|
13085
|
-
var Xe = Object.defineProperty
|
|
13327
|
+
var Xe = Object.defineProperty;
|
|
13328
|
+
var Z = r((e, t) => Xe(e, "name", {
|
|
13086
13329
|
value: t,
|
|
13087
13330
|
configurable: !0
|
|
13088
13331
|
}), "s");
|
|
@@ -14522,6 +14765,65 @@ function buildMonolithEntries(config) {
|
|
|
14522
14765
|
return entries;
|
|
14523
14766
|
}
|
|
14524
14767
|
//#endregion
|
|
14768
|
+
//#region src/actions/package/compile/monolithCopyEntries.ts
|
|
14769
|
+
const copyPlatforms = /* @__PURE__ */ new Set([
|
|
14770
|
+
"browser",
|
|
14771
|
+
"neutral",
|
|
14772
|
+
"node"
|
|
14773
|
+
]);
|
|
14774
|
+
function isPathInside(parent, candidate) {
|
|
14775
|
+
const relative = PATH.relative(parent, candidate);
|
|
14776
|
+
return relative.length > 0 && relative !== ".." && !relative.startsWith(`..${PATH.sep}`) && !PATH.isAbsolute(relative);
|
|
14777
|
+
}
|
|
14778
|
+
/** Resolves configured copy destinations without requiring their sources to exist. */
|
|
14779
|
+
function listMonolithCopyEntries(packageDir, config) {
|
|
14780
|
+
const distDir = PATH.resolve(packageDir, "dist");
|
|
14781
|
+
const entries = [];
|
|
14782
|
+
const configuredCopyEntries = Object.entries(config.copyEntries ?? {});
|
|
14783
|
+
for (const [platformName, configuredEntries] of configuredCopyEntries) {
|
|
14784
|
+
if (!copyPlatforms.has(platformName)) throw new Error(`Unsupported monolith copy entry platform "${platformName}"`);
|
|
14785
|
+
const platform = platformName;
|
|
14786
|
+
const platformDir = PATH.join(distDir, platform);
|
|
14787
|
+
for (const [output, source] of Object.entries(configuredEntries)) {
|
|
14788
|
+
if (output.length === 0) throw new Error(`Monolith copy entry for ${platform} has an empty output path`);
|
|
14789
|
+
if (source.length === 0) throw new Error(`Monolith copy entry "${output}" has an empty source`);
|
|
14790
|
+
if (PATH.isAbsolute(output)) throw new Error(`Monolith copy entry output must be relative: "${output}"`);
|
|
14791
|
+
const destination = PATH.resolve(platformDir, output);
|
|
14792
|
+
if (!isPathInside(platformDir, destination)) throw new Error(`Monolith copy entry output escapes dist/${platform}: "${output}"`);
|
|
14793
|
+
const normalizedOutput = PATH.relative(platformDir, destination).split(PATH.sep).join("/");
|
|
14794
|
+
entries.push({
|
|
14795
|
+
destination,
|
|
14796
|
+
output: normalizedOutput,
|
|
14797
|
+
platform,
|
|
14798
|
+
source,
|
|
14799
|
+
subpath: `./${normalizedOutput}`
|
|
14800
|
+
});
|
|
14801
|
+
}
|
|
14802
|
+
}
|
|
14803
|
+
return entries;
|
|
14804
|
+
}
|
|
14805
|
+
function resolveCopySource(packageDir, source) {
|
|
14806
|
+
let resolved;
|
|
14807
|
+
try {
|
|
14808
|
+
resolved = PATH.isAbsolute(source) || source.startsWith(".") ? PATH.resolve(packageDir, source) : createRequire(PATH.join(packageDir, "package.json")).resolve(source);
|
|
14809
|
+
} catch (reason) {
|
|
14810
|
+
const detail = reason instanceof Error ? reason.message : String(reason);
|
|
14811
|
+
throw new Error(`Unable to resolve monolith copy entry source "${source}": ${detail}`, { cause: reason });
|
|
14812
|
+
}
|
|
14813
|
+
if (!fs.existsSync(resolved) || !fs.statSync(resolved).isFile()) throw new Error(`Monolith copy entry source is not a file: "${source}" (${resolved})`);
|
|
14814
|
+
return resolved;
|
|
14815
|
+
}
|
|
14816
|
+
/** Copies configured opaque entries into their exact dist destinations. */
|
|
14817
|
+
function copyMonolithEntries(packageDir, config) {
|
|
14818
|
+
const entries = listMonolithCopyEntries(packageDir, config);
|
|
14819
|
+
for (const entry of entries) {
|
|
14820
|
+
const source = resolveCopySource(packageDir, entry.source);
|
|
14821
|
+
fs.mkdirSync(PATH.dirname(entry.destination), { recursive: true });
|
|
14822
|
+
fs.copyFileSync(source, entry.destination);
|
|
14823
|
+
}
|
|
14824
|
+
return entries.length;
|
|
14825
|
+
}
|
|
14826
|
+
//#endregion
|
|
14525
14827
|
//#region src/actions/package/compile/packageCompileMonolith.ts
|
|
14526
14828
|
function assertNoManualEntries(compile) {
|
|
14527
14829
|
if (compile.entryMode !== void 0) throw new Error("monolith mode computes entries; remove compile.entryMode");
|
|
@@ -14614,6 +14916,8 @@ const packageCompileMonolith = async (config, mode = {}) => {
|
|
|
14614
14916
|
if (isVerbose && flattened > 0) console.log(chalk.gray(`monolith pure reexport flatten: ${flattened} files`));
|
|
14615
14917
|
const rewritten = fixMonolithDeclarations(distDir, monolith);
|
|
14616
14918
|
if (isVerbose) console.log(chalk.gray(`monolith declaration fixups: ${rewritten} files`));
|
|
14919
|
+
const copied = copyMonolithEntries(packageDir, monolith);
|
|
14920
|
+
if (isVerbose && copied > 0) console.log(chalk.gray(`monolith copied entries: ${copied} files`));
|
|
14617
14921
|
const specifierProblems = verifyMonolithRuntimeSpecifiers(distDir, monolith);
|
|
14618
14922
|
if (specifierProblems.length > 0) {
|
|
14619
14923
|
for (const problem of specifierProblems) console.error(chalk.red(problem));
|
|
@@ -15509,10 +15813,22 @@ async function collectExpectedCompileOutputs(pkgDir) {
|
|
|
15509
15813
|
const compile = (await loadMergedWorkspaceConfig(pkgDir)).compile;
|
|
15510
15814
|
if (compile === void 0) return [];
|
|
15511
15815
|
const platforms = resolveCompilePlatforms(compile);
|
|
15816
|
+
const copiedOutputs = compile.mode === "monolith" && compile.monolith !== void 0 ? listMonolithCopyEntries(pkgDir, compile.monolith).filter((entry) => fs.existsSync(entry.destination) && fs.statSync(entry.destination).isFile()).map((entry) => {
|
|
15817
|
+
const declarationFile = pairedDeclarationFile(entry.destination);
|
|
15818
|
+
return {
|
|
15819
|
+
entry: entry.output,
|
|
15820
|
+
isPrimaryIndex: false,
|
|
15821
|
+
platform: entry.platform,
|
|
15822
|
+
runtime: relativeExportsTarget(pkgDir, entry.destination),
|
|
15823
|
+
suggestedSubpath: entry.subpath,
|
|
15824
|
+
types: declarationFile === void 0 ? void 0 : relativeExportsTarget(pkgDir, declarationFile)
|
|
15825
|
+
};
|
|
15826
|
+
}) : [];
|
|
15512
15827
|
return [
|
|
15513
15828
|
...collectOutputsForPlatform(pkgDir, "node", platforms.node, compile),
|
|
15514
15829
|
...collectOutputsForPlatform(pkgDir, "browser", platforms.browser, compile),
|
|
15515
|
-
...collectOutputsForPlatform(pkgDir, "neutral", platforms.neutral, compile)
|
|
15830
|
+
...collectOutputsForPlatform(pkgDir, "neutral", platforms.neutral, compile),
|
|
15831
|
+
...copiedOutputs
|
|
15516
15832
|
];
|
|
15517
15833
|
}
|
|
15518
15834
|
//#endregion
|
|
@@ -15715,6 +16031,7 @@ function setConditionExport(subpathExport, platform, kind, target) {
|
|
|
15715
16031
|
if (conditionExport[kind] === void 0) conditionExport[kind] = target;
|
|
15716
16032
|
}
|
|
15717
16033
|
function preferredSubpath(expected) {
|
|
16034
|
+
if (expected.suggestedSubpath !== void 0) return expected.suggestedSubpath;
|
|
15718
16035
|
if (expected.isPrimaryIndex) return ".";
|
|
15719
16036
|
return `./${PATH.posix.parse(expected.runtime).name}`;
|
|
15720
16037
|
}
|