@ariestools/toolchain 8.7.27 → 8.7.29
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 +27 -0
- package/dist/actions/analyze.d.ts +27 -9
- package/dist/actions/analyze.d.ts.map +1 -1
- package/dist/actions/api-exposure/analyzer/analyzePackage.d.ts +6 -2
- package/dist/actions/api-exposure/analyzer/analyzePackage.d.ts.map +1 -1
- package/dist/actions/api-exposure/analyzer/couplingWalk.d.ts.map +1 -1
- package/dist/actions/api-exposure/analyzer/depSignals.d.ts +12 -4
- package/dist/actions/api-exposure/analyzer/depSignals.d.ts.map +1 -1
- package/dist/actions/api-exposure/analyzer/exposureWalk.d.ts +9 -3
- package/dist/actions/api-exposure/analyzer/exposureWalk.d.ts.map +1 -1
- package/dist/actions/api-exposure/analyzer/importedPackages.d.ts +6 -2
- package/dist/actions/api-exposure/analyzer/importedPackages.d.ts.map +1 -1
- package/dist/actions/api-exposure/apiExposure.d.ts +9 -3
- package/dist/actions/api-exposure/apiExposure.d.ts.map +1 -1
- package/dist/actions/api-exposure/config.d.ts +12 -4
- package/dist/actions/api-exposure/config.d.ts.map +1 -1
- package/dist/actions/api-exposure/installStrategy.d.ts +6 -2
- package/dist/actions/api-exposure/installStrategy.d.ts.map +1 -1
- package/dist/actions/api-exposure/reporters.d.ts +3 -1
- package/dist/actions/api-exposure/reporters.d.ts.map +1 -1
- package/dist/actions/api-exposure/scoring.d.ts +3 -1
- package/dist/actions/api-exposure/scoring.d.ts.map +1 -1
- package/dist/actions/api-exposure/types.d.ts +48 -16
- package/dist/actions/api-exposure/types.d.ts.map +1 -1
- package/dist/actions/barrel/index.d.ts +0 -1
- package/dist/actions/barrel/index.d.ts.map +1 -1
- package/dist/actions/barrel/restrictionHelpers.d.ts +0 -19
- package/dist/actions/barrel/restrictionHelpers.d.ts.map +1 -1
- package/dist/actions/compile.d.ts +9 -3
- package/dist/actions/compile.d.ts.map +1 -1
- package/dist/actions/dead/analyzePackage.d.ts +18 -6
- package/dist/actions/dead/analyzePackage.d.ts.map +1 -1
- package/dist/actions/dead/collectSymbols.d.ts +12 -4
- package/dist/actions/dead/collectSymbols.d.ts.map +1 -1
- package/dist/actions/dead/evaluateRules.d.ts +3 -1
- package/dist/actions/dead/evaluateRules.d.ts.map +1 -1
- package/dist/actions/dead/findWorkspaceFile.d.ts +3 -1
- package/dist/actions/dead/findWorkspaceFile.d.ts.map +1 -1
- package/dist/actions/dead/ruleNames.d.ts +3 -1
- package/dist/actions/dead/ruleNames.d.ts.map +1 -1
- package/dist/actions/dead/runDeadAnalysis.d.ts +3 -1
- package/dist/actions/dead/runDeadAnalysis.d.ts.map +1 -1
- package/dist/actions/dead/sourceEdits.d.ts +3 -1
- package/dist/actions/dead/sourceEdits.d.ts.map +1 -1
- package/dist/actions/deplint/checkPackage/checkPackage.d.ts +3 -1
- package/dist/actions/deplint/checkPackage/checkPackage.d.ts.map +1 -1
- package/dist/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts +6 -2
- package/dist/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts.map +1 -1
- package/dist/actions/deplint/collectPickRows.d.ts +24 -8
- package/dist/actions/deplint/collectPickRows.d.ts.map +1 -1
- package/dist/actions/deplint/deplint.d.ts +9 -3
- package/dist/actions/deplint/deplint.d.ts.map +1 -1
- package/dist/actions/deplint/deplintPick.d.ts +3 -1
- package/dist/actions/deplint/deplintPick.d.ts.map +1 -1
- package/dist/actions/deplint/editXyConfigPackages.d.ts +9 -3
- package/dist/actions/deplint/editXyConfigPackages.d.ts.map +1 -1
- package/dist/actions/deplint/fetchPackageManifest.d.ts +6 -2
- package/dist/actions/deplint/fetchPackageManifest.d.ts.map +1 -1
- package/dist/actions/deplint/findFiles.d.ts +6 -2
- package/dist/actions/deplint/findFiles.d.ts.map +1 -1
- package/dist/actions/deplint/getExternalImportsFromFiles.d.ts.map +1 -1
- package/dist/actions/deplint/interactivePick.d.ts +3 -1
- package/dist/actions/deplint/interactivePick.d.ts.map +1 -1
- package/dist/actions/deplint/isTerminalPackage.d.ts +12 -4
- package/dist/actions/deplint/isTerminalPackage.d.ts.map +1 -1
- package/dist/actions/deplint/resolvePeerBumpFixes.d.ts +3 -1
- package/dist/actions/deplint/resolvePeerBumpFixes.d.ts.map +1 -1
- package/dist/actions/deplint/snapshot.d.ts +24 -8
- package/dist/actions/deplint/snapshot.d.ts.map +1 -1
- package/dist/actions/deplint/sourceFileCache.d.ts +3 -1
- package/dist/actions/deplint/sourceFileCache.d.ts.map +1 -1
- package/dist/actions/deplint/types.d.ts +66 -22
- package/dist/actions/deplint/types.d.ts.map +1 -1
- package/dist/actions/gitignore.d.ts +3 -1
- package/dist/actions/gitignore.d.ts.map +1 -1
- package/dist/actions/lint.d.ts +15 -5
- package/dist/actions/lint.d.ts.map +1 -1
- package/dist/actions/lintNext.d.ts +6 -2
- package/dist/actions/lintNext.d.ts.map +1 -1
- package/dist/actions/lintNextWorker.d.ts +36 -12
- package/dist/actions/lintNextWorker.d.ts.map +1 -1
- package/dist/actions/lintPackageFilter.d.ts +15 -5
- package/dist/actions/lintPackageFilter.d.ts.map +1 -1
- package/dist/actions/package/clean-outputs.d.ts +3 -1
- package/dist/actions/package/clean-outputs.d.ts.map +1 -1
- package/dist/actions/package/clean-typescript.d.ts +3 -1
- package/dist/actions/package/clean-typescript.d.ts.map +1 -1
- package/dist/actions/package/cleanGitignore.d.ts +6 -2
- package/dist/actions/package/cleanGitignore.d.ts.map +1 -1
- package/dist/actions/package/cleanPlan.d.ts +6 -2
- package/dist/actions/package/cleanPlan.d.ts.map +1 -1
- package/dist/actions/package/cleanRules.d.ts +15 -5
- package/dist/actions/package/cleanRules.d.ts.map +1 -1
- package/dist/actions/package/compile/ApiExposureConfig.d.ts +24 -8
- package/dist/actions/package/compile/ApiExposureConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/CleanConfig.d.ts +3 -1
- package/dist/actions/package/compile/CleanConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/MonolithConfig.d.ts +39 -13
- package/dist/actions/package/compile/MonolithConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/PublintConfig.d.ts +6 -2
- package/dist/actions/package/compile/PublintConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/XyConfig.d.ts +162 -54
- package/dist/actions/package/compile/XyConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/createProgramFromConfig.d.ts +18 -6
- package/dist/actions/package/compile/createProgramFromConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/inputs.d.ts.map +1 -1
- package/dist/actions/package/compile/monolithCompileDeclarations.d.ts +3 -1
- package/dist/actions/package/compile/monolithCompileDeclarations.d.ts.map +1 -1
- package/dist/actions/package/compile/monolithCompileEntries.d.ts.map +1 -1
- package/dist/actions/package/compile/monolithCompileLayout.d.ts +15 -5
- package/dist/actions/package/compile/monolithCompileLayout.d.ts.map +1 -1
- package/dist/actions/package/compile/monolithCopyEntries.d.ts +6 -2
- package/dist/actions/package/compile/monolithCopyEntries.d.ts.map +1 -1
- package/dist/actions/package/compile/monolithReexport.d.ts +12 -4
- package/dist/actions/package/compile/monolithReexport.d.ts.map +1 -1
- package/dist/actions/package/compile/packageCompileMonolith.d.ts.map +1 -1
- package/dist/actions/recompile.d.ts +3 -1
- package/dist/actions/recompile.d.ts.map +1 -1
- package/dist/actions/repo-init/index.d.ts +7 -0
- package/dist/actions/repo-init/index.d.ts.map +1 -0
- package/dist/actions/repo-init/prompts.d.ts +4 -0
- package/dist/actions/repo-init/prompts.d.ts.map +1 -0
- package/dist/actions/repo-init/resolvePlan.d.ts +7 -0
- package/dist/actions/repo-init/resolvePlan.d.ts.map +1 -0
- package/dist/actions/repo-init/scaffold.d.ts +10 -0
- package/dist/actions/repo-init/scaffold.d.ts.map +1 -0
- package/dist/actions/repo-init/skillsInstall.d.ts +12 -0
- package/dist/actions/repo-init/skillsInstall.d.ts.map +1 -0
- package/dist/actions/repo-init/templateVars.d.ts +5 -0
- package/dist/actions/repo-init/templateVars.d.ts.map +1 -0
- package/dist/actions/repo-init/types.d.ts +40 -0
- package/dist/actions/repo-init/types.d.ts.map +1 -0
- package/dist/actions/repo-init.d.ts +1 -13
- package/dist/actions/repo-init.d.ts.map +1 -1
- package/dist/actions/skills/defaults.d.ts +14 -6
- package/dist/actions/skills/defaults.d.ts.map +1 -1
- package/dist/actions/skills/passthrough.d.ts +4 -0
- package/dist/actions/skills/passthrough.d.ts.map +1 -1
- package/dist/actions/skills/skillRules.d.ts +4 -2
- package/dist/actions/skills/skillRules.d.ts.map +1 -1
- package/dist/actions/tsc-validate/sharedValidate.d.ts +6 -2
- package/dist/actions/tsc-validate/sharedValidate.d.ts.map +1 -1
- package/dist/actions/tsc-validate/tscValidate.d.ts.map +1 -1
- package/dist/actions/work/github.d.ts +9 -3
- package/dist/actions/work/github.d.ts.map +1 -1
- package/dist/actions/work/helpers.d.ts +3 -1
- package/dist/actions/work/helpers.d.ts.map +1 -1
- package/dist/actions/work/index.d.ts +6 -2
- package/dist/actions/work/index.d.ts.map +1 -1
- package/dist/actions/work/list.d.ts +6 -2
- package/dist/actions/work/list.d.ts.map +1 -1
- package/dist/actions/work/move.d.ts +3 -1
- package/dist/actions/work/move.d.ts.map +1 -1
- package/dist/actions/work/store.d.ts +3 -1
- package/dist/actions/work/store.d.ts.map +1 -1
- package/dist/actions/work/sync.d.ts +15 -5
- package/dist/actions/work/sync.d.ts.map +1 -1
- package/dist/actions/work/workspace.d.ts +15 -5
- package/dist/actions/work/workspace.d.ts.map +1 -1
- package/dist/bin/package/build.mjs +269 -185
- package/dist/bin/package/build.mjs.map +1 -1
- package/dist/bin/package/clean.mjs +137 -96
- package/dist/bin/package/clean.mjs.map +1 -1
- package/dist/bin/package/compile.mjs +149 -100
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/copy-assets-cjs.mjs +16 -14
- package/dist/bin/package/copy-assets-cjs.mjs.map +1 -1
- package/dist/bin/package/copy-assets-esm.mjs +16 -14
- package/dist/bin/package/copy-assets-esm.mjs.map +1 -1
- package/dist/bin/package/fix.mjs +4 -3
- package/dist/bin/package/fix.mjs.map +1 -1
- package/dist/bin/package/lint-verbose.mjs +4 -3
- package/dist/bin/package/lint-verbose.mjs.map +1 -1
- package/dist/bin/package/lint.mjs +4 -3
- package/dist/bin/package/lint.mjs.map +1 -1
- package/dist/bin/package/publint.mjs +220 -165
- package/dist/bin/package/publint.mjs.map +1 -1
- package/dist/bin/package/recompile.mjs +173 -108
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/bin/package/relint.mjs +4 -3
- package/dist/bin/package/relint.mjs.map +1 -1
- package/dist/bin/package/sync-layout.mjs +97 -71
- package/dist/bin/package/sync-layout.mjs.map +1 -1
- package/dist/bin/run-or-exec.mjs +8 -4
- package/dist/bin/run-or-exec.mjs.map +1 -1
- package/dist/bin/skills.mjs +494 -222
- package/dist/bin/skills.mjs.map +1 -1
- package/dist/bin/xy.mjs +2962 -2549
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/lib/copyAssetFiles.d.ts +3 -1
- package/dist/lib/copyAssetFiles.d.ts.map +1 -1
- package/dist/lib/licenseCheck/checkLicenses.d.ts +18 -6
- package/dist/lib/licenseCheck/checkLicenses.d.ts.map +1 -1
- package/dist/lib/licenseCheck/collectProductionLicenses.d.ts +9 -3
- package/dist/lib/licenseCheck/collectProductionLicenses.d.ts.map +1 -1
- package/dist/lib/licenseCheck/readPackageLicense.d.ts +6 -2
- package/dist/lib/licenseCheck/readPackageLicense.d.ts.map +1 -1
- package/dist/lib/loadConfig.d.ts.map +1 -1
- package/dist/lib/match.d.ts +6 -2
- package/dist/lib/match.d.ts.map +1 -1
- package/dist/lib/pnpmConfig/readMinReleaseAge.d.ts +12 -4
- package/dist/lib/pnpmConfig/readMinReleaseAge.d.ts.map +1 -1
- package/dist/lib/safeExit.d.ts +3 -1
- package/dist/lib/safeExit.d.ts.map +1 -1
- package/dist/lib/updo/fetchRegistryInfo.d.ts.map +1 -1
- package/dist/lib/updo/interactiveSelect.d.ts +6 -2
- package/dist/lib/updo/interactiveSelect.d.ts.map +1 -1
- package/dist/lib/updo/interfaces.d.ts +15 -5
- package/dist/lib/updo/interfaces.d.ts.map +1 -1
- package/dist/lib/updo/resolveVersions.d.ts +15 -5
- package/dist/lib/updo/resolveVersions.d.ts.map +1 -1
- package/dist/lib/updo/runUpdo.d.ts +12 -4
- package/dist/lib/updo/runUpdo.d.ts.map +1 -1
- package/dist/pm/PackageManager.d.ts +45 -15
- package/dist/pm/PackageManager.d.ts.map +1 -1
- package/dist/xy/common/repo/initCommand.d.ts.map +1 -1
- package/dist/xy/common/work/options.d.ts +3 -1
- package/dist/xy/common/work/options.d.ts.map +1 -1
- package/package.json +19 -19
- package/templates/repo/cli/package/package.json.tmpl +5 -5
- package/templates/repo/cli/package/tsconfig.json.tmpl +4 -0
- package/templates/repo/cli/root/AGENTS.md.tmpl +34 -0
- package/templates/repo/cli/root/CLAUDE.md.tmpl +15 -15
- package/templates/repo/cli/root/eslint.config.ts.tmpl +16 -0
- package/templates/repo/cli/root/gitignore.tmpl +6 -9
- package/templates/repo/cli/root/package.json.tmpl +16 -14
- package/templates/repo/cli/root/tsconfig.json.tmpl +4 -0
- package/templates/repo/cli/root/{vitest.config.ts → vitest.config.ts.tmpl} +2 -2
- package/templates/repo/cli/package/tsconfig.json +0 -4
- package/templates/repo/cli/root/eslint.config.ts +0 -20
- package/templates/repo/cli/root/tsconfig.json +0 -4
|
@@ -1595,7 +1595,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
1595
1595
|
}
|
|
1596
1596
|
}
|
|
1597
1597
|
getRemainingTTL(t) {
|
|
1598
|
-
return this.#f.has(t) ?
|
|
1598
|
+
return this.#f.has(t) ? 1 / 0 : 0;
|
|
1599
1599
|
}
|
|
1600
1600
|
#M() {
|
|
1601
1601
|
let t = new Tt(this.#t), e = new Tt(this.#t);
|
|
@@ -1631,7 +1631,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
1631
1631
|
let h = this.#f.get(o);
|
|
1632
1632
|
if (h === void 0) return 0;
|
|
1633
1633
|
let a = t[h], l = e[h];
|
|
1634
|
-
if (!a || !l) return
|
|
1634
|
+
if (!a || !l) return 1 / 0;
|
|
1635
1635
|
return a - ((i || r()) - l);
|
|
1636
1636
|
}, this.#v = (o) => {
|
|
1637
1637
|
let h = e[o], a = t[o];
|
|
@@ -2419,14 +2419,14 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
2419
2419
|
Ie$1 = yt | j | Lt;
|
|
2420
2420
|
Fi = 1023;
|
|
2421
2421
|
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$1;
|
|
2422
|
-
ze$1 = new ft({ max:
|
|
2422
|
+
ze$1 = new ft({ max: 4096 });
|
|
2423
2423
|
bt = (n) => {
|
|
2424
2424
|
let t = ze$1.get(n);
|
|
2425
2425
|
if (t) return t;
|
|
2426
2426
|
let e = n.normalize("NFKD");
|
|
2427
2427
|
return ze$1.set(n, e), e;
|
|
2428
2428
|
};
|
|
2429
|
-
Be$1 = new ft({ max:
|
|
2429
|
+
Be$1 = new ft({ max: 4096 });
|
|
2430
2430
|
_t = (n) => {
|
|
2431
2431
|
let t = Be$1.get(n);
|
|
2432
2432
|
if (t) return t;
|
|
@@ -3476,7 +3476,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
3476
3476
|
includeChildMatches;
|
|
3477
3477
|
constructor(t, e, s) {
|
|
3478
3478
|
if (this.patterns = t, this.path = e, this.opts = s, this.#n = !s.posix && s.platform === "win32" ? "\\" : "/", this.includeChildMatches = s.includeChildMatches !== !1, (s.ignore || !this.includeChildMatches) && (this.#s = Li(s.ignore ?? [], s), !this.includeChildMatches && typeof this.#s.add != "function")) throw new Error("cannot ignore child matches, ignore lacks add() method.");
|
|
3479
|
-
this.maxDepth = s.maxDepth ||
|
|
3479
|
+
this.maxDepth = s.maxDepth || 1 / 0, s.signal && (this.signal = s.signal, this.signal.addEventListener("abort", () => {
|
|
3480
3480
|
this.#t.length = 0;
|
|
3481
3481
|
}));
|
|
3482
3482
|
}
|
|
@@ -3513,7 +3513,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
3513
3513
|
return this.matchCheckTest(r, e);
|
|
3514
3514
|
}
|
|
3515
3515
|
matchCheckTest(t, e) {
|
|
3516
|
-
return t && (this.maxDepth ===
|
|
3516
|
+
return t && (this.maxDepth === 1 / 0 || t.depth() <= this.maxDepth) && (!e || t.canReaddir()) && (!this.opts.nodir || !t.isDirectory()) && (!this.opts.nodir || !this.opts.follow || !t.isSymbolicLink() || !t.realpathCached()?.isDirectory()) && !this.#r(t) ? t : void 0;
|
|
3517
3517
|
}
|
|
3518
3518
|
matchCheckSync(t, e) {
|
|
3519
3519
|
if (e && this.opts.nodir) return;
|
|
@@ -3570,7 +3570,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
3570
3570
|
};
|
|
3571
3571
|
for (let [h, a, l] of s.matches.entries()) this.#r(h) || (r++, this.match(h, a, l).then(() => o()));
|
|
3572
3572
|
for (let h of s.subwalkTargets()) {
|
|
3573
|
-
if (this.maxDepth !==
|
|
3573
|
+
if (this.maxDepth !== 1 / 0 && h.depth() >= this.maxDepth) continue;
|
|
3574
3574
|
r++;
|
|
3575
3575
|
let a = h.readdirCached();
|
|
3576
3576
|
h.calledReaddir() ? this.walkCB3(h, a, s, o) : h.readdirCB((l, u) => this.walkCB3(h, u, s, o), !0);
|
|
@@ -3601,7 +3601,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
3601
3601
|
};
|
|
3602
3602
|
for (let [h, a, l] of s.matches.entries()) this.#r(h) || this.matchSync(h, a, l);
|
|
3603
3603
|
for (let h of s.subwalkTargets()) {
|
|
3604
|
-
if (this.maxDepth !==
|
|
3604
|
+
if (this.maxDepth !== 1 / 0 && h.depth() >= this.maxDepth) continue;
|
|
3605
3605
|
r++;
|
|
3606
3606
|
let a = h.readdirSync();
|
|
3607
3607
|
this.walkCB3Sync(h, a, s, o);
|
|
@@ -3693,7 +3693,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
3693
3693
|
patterns;
|
|
3694
3694
|
constructor(t, e) {
|
|
3695
3695
|
if (!e) throw new TypeError("glob options required");
|
|
3696
|
-
if (this.withFileTypes = !!e.withFileTypes, this.signal = e.signal, this.follow = !!e.follow, this.dot = !!e.dot, this.dotRelative = !!e.dotRelative, this.nodir = !!e.nodir, this.mark = !!e.mark, e.cwd ? (e.cwd instanceof URL || e.cwd.startsWith("file://")) && (e.cwd = fileURLToPath(e.cwd)) : this.cwd = "", this.cwd = e.cwd || "", this.root = e.root, this.magicalBraces = !!e.magicalBraces, this.nobrace = !!e.nobrace, this.noext = !!e.noext, this.realpath = !!e.realpath, this.absolute = e.absolute, this.includeChildMatches = e.includeChildMatches !== !1, this.noglobstar = !!e.noglobstar, this.matchBase = !!e.matchBase, this.maxDepth = typeof e.maxDepth == "number" ? e.maxDepth :
|
|
3696
|
+
if (this.withFileTypes = !!e.withFileTypes, this.signal = e.signal, this.follow = !!e.follow, this.dot = !!e.dot, this.dotRelative = !!e.dotRelative, this.nodir = !!e.nodir, this.mark = !!e.mark, e.cwd ? (e.cwd instanceof URL || e.cwd.startsWith("file://")) && (e.cwd = fileURLToPath(e.cwd)) : this.cwd = "", this.cwd = e.cwd || "", this.root = e.root, this.magicalBraces = !!e.magicalBraces, this.nobrace = !!e.nobrace, this.noext = !!e.noext, this.realpath = !!e.realpath, this.absolute = e.absolute, this.includeChildMatches = e.includeChildMatches !== !1, this.noglobstar = !!e.noglobstar, this.matchBase = !!e.matchBase, this.maxDepth = typeof e.maxDepth == "number" ? e.maxDepth : 1 / 0, this.stat = !!e.stat, this.ignore = e.ignore, this.withFileTypes && this.absolute !== void 0) throw new Error("cannot set absolute and withFileTypes:true");
|
|
3697
3697
|
if (typeof t == "string" && (t = [t]), this.windowsPathsNoEscape = !!e.windowsPathsNoEscape || e.allowWindowsEscape === !1, this.windowsPathsNoEscape && (t = t.map((a) => a.replace(/\\/g, "/"))), this.matchBase) {
|
|
3698
3698
|
if (e.noglobstar) throw new TypeError("base matching requires globstar");
|
|
3699
3699
|
t = t.map((a) => a.includes("/") ? a : `./**/${a}`);
|
|
@@ -3736,7 +3736,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
3736
3736
|
async walk() {
|
|
3737
3737
|
return [...await new xt(this.patterns, this.scurry.cwd, {
|
|
3738
3738
|
...this.opts,
|
|
3739
|
-
maxDepth: this.maxDepth !==
|
|
3739
|
+
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
3740
3740
|
platform: this.platform,
|
|
3741
3741
|
nocase: this.nocase,
|
|
3742
3742
|
includeChildMatches: this.includeChildMatches
|
|
@@ -3745,7 +3745,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
3745
3745
|
walkSync() {
|
|
3746
3746
|
return [...new xt(this.patterns, this.scurry.cwd, {
|
|
3747
3747
|
...this.opts,
|
|
3748
|
-
maxDepth: this.maxDepth !==
|
|
3748
|
+
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
3749
3749
|
platform: this.platform,
|
|
3750
3750
|
nocase: this.nocase,
|
|
3751
3751
|
includeChildMatches: this.includeChildMatches
|
|
@@ -3754,7 +3754,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
3754
3754
|
stream() {
|
|
3755
3755
|
return new vt(this.patterns, this.scurry.cwd, {
|
|
3756
3756
|
...this.opts,
|
|
3757
|
-
maxDepth: this.maxDepth !==
|
|
3757
|
+
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
3758
3758
|
platform: this.platform,
|
|
3759
3759
|
nocase: this.nocase,
|
|
3760
3760
|
includeChildMatches: this.includeChildMatches
|
|
@@ -3763,7 +3763,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
|
|
|
3763
3763
|
streamSync() {
|
|
3764
3764
|
return new vt(this.patterns, this.scurry.cwd, {
|
|
3765
3765
|
...this.opts,
|
|
3766
|
-
maxDepth: this.maxDepth !==
|
|
3766
|
+
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
3767
3767
|
platform: this.platform,
|
|
3768
3768
|
nocase: this.nocase,
|
|
3769
3769
|
includeChildMatches: this.includeChildMatches
|
|
@@ -3959,8 +3959,10 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3959
3959
|
if (ii === pathExt.length) return resolve(step(i + 1));
|
|
3960
3960
|
const ext = pathExt[ii];
|
|
3961
3961
|
isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
|
|
3962
|
-
if (!er && is)
|
|
3963
|
-
|
|
3962
|
+
if (!er && is) {
|
|
3963
|
+
if (opt.all) found.push(p + ext);
|
|
3964
|
+
else return resolve(p + ext);
|
|
3965
|
+
}
|
|
3964
3966
|
return resolve(subStep(p, i, ii + 1));
|
|
3965
3967
|
});
|
|
3966
3968
|
});
|
|
@@ -3978,8 +3980,10 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3978
3980
|
for (let j = 0; j < pathExt.length; j++) {
|
|
3979
3981
|
const cur = p + pathExt[j];
|
|
3980
3982
|
try {
|
|
3981
|
-
if (isexe.sync(cur, { pathExt: pathExtExe }))
|
|
3982
|
-
|
|
3983
|
+
if (isexe.sync(cur, { pathExt: pathExtExe })) {
|
|
3984
|
+
if (opt.all) found.push(cur);
|
|
3985
|
+
else return cur;
|
|
3986
|
+
}
|
|
3983
3987
|
} catch (ex) {}
|
|
3984
3988
|
}
|
|
3985
3989
|
}
|
|
@@ -5053,8 +5057,10 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5053
5057
|
let pairHasKey = false;
|
|
5054
5058
|
if (_toString.call(pair) !== "[object Object]") return false;
|
|
5055
5059
|
let pairKey;
|
|
5056
|
-
for (pairKey in pair) if (_hasOwnProperty.call(pair, pairKey))
|
|
5057
|
-
|
|
5060
|
+
for (pairKey in pair) if (_hasOwnProperty.call(pair, pairKey)) {
|
|
5061
|
+
if (!pairHasKey) pairHasKey = true;
|
|
5062
|
+
else return false;
|
|
5063
|
+
}
|
|
5058
5064
|
if (!pairHasKey) return false;
|
|
5059
5065
|
if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);
|
|
5060
5066
|
else return false;
|
|
@@ -5394,9 +5400,10 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5394
5400
|
if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") keyNode = "[object Object]";
|
|
5395
5401
|
keyNode = String(keyNode);
|
|
5396
5402
|
if (_result === null) _result = {};
|
|
5397
|
-
if (keyTag === "tag:yaml.org,2002:merge")
|
|
5398
|
-
|
|
5399
|
-
|
|
5403
|
+
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
5404
|
+
if (Array.isArray(valueNode)) for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
5405
|
+
else mergeMappings(state, _result, valueNode, overridableKeys);
|
|
5406
|
+
} else {
|
|
5400
5407
|
if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
|
|
5401
5408
|
state.line = startLine || state.line;
|
|
5402
5409
|
state.lineStart = startLineStart || state.lineStart;
|
|
@@ -5681,14 +5688,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5681
5688
|
state.result = "";
|
|
5682
5689
|
while (ch !== 0) {
|
|
5683
5690
|
ch = state.input.charCodeAt(++state.position);
|
|
5684
|
-
if (ch === 43 || ch === 45)
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
else if (
|
|
5688
|
-
|
|
5689
|
-
detectedIndent
|
|
5690
|
-
|
|
5691
|
-
|
|
5691
|
+
if (ch === 43 || ch === 45) {
|
|
5692
|
+
if (CHOMPING_CLIP === chomping) chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
|
|
5693
|
+
else throwError(state, "repeat of a chomping mode identifier");
|
|
5694
|
+
} else if ((tmp = fromDecimalCode(ch)) >= 0) {
|
|
5695
|
+
if (tmp === 0) throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
|
|
5696
|
+
else if (!detectedIndent) {
|
|
5697
|
+
textIndent = nodeIndent + tmp - 1;
|
|
5698
|
+
detectedIndent = true;
|
|
5699
|
+
} else throwError(state, "repeat of an indentation width identifier");
|
|
5700
|
+
} else break;
|
|
5692
5701
|
}
|
|
5693
5702
|
if (isWhiteSpace(ch)) {
|
|
5694
5703
|
do
|
|
@@ -5719,16 +5728,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5719
5728
|
}
|
|
5720
5729
|
break;
|
|
5721
5730
|
}
|
|
5722
|
-
if (folding)
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
atMoreIndented
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
if (
|
|
5730
|
-
|
|
5731
|
-
|
|
5731
|
+
if (folding) {
|
|
5732
|
+
if (isWhiteSpace(ch)) {
|
|
5733
|
+
atMoreIndented = true;
|
|
5734
|
+
state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
5735
|
+
} else if (atMoreIndented) {
|
|
5736
|
+
atMoreIndented = false;
|
|
5737
|
+
state.result += common.repeat("\n", emptyLines + 1);
|
|
5738
|
+
} else if (emptyLines === 0) {
|
|
5739
|
+
if (didReadContent) state.result += " ";
|
|
5740
|
+
} else state.result += common.repeat("\n", emptyLines);
|
|
5741
|
+
} else state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
5732
5742
|
didReadContent = true;
|
|
5733
5743
|
detectedIndent = true;
|
|
5734
5744
|
emptyLines = 0;
|
|
@@ -5857,8 +5867,10 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5857
5867
|
_keyLineStart = state.lineStart;
|
|
5858
5868
|
_keyPos = state.position;
|
|
5859
5869
|
}
|
|
5860
|
-
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact))
|
|
5861
|
-
|
|
5870
|
+
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
|
|
5871
|
+
if (atExplicitKey) keyNode = state.result;
|
|
5872
|
+
else valueNode = state.result;
|
|
5873
|
+
}
|
|
5862
5874
|
if (!atExplicitKey) {
|
|
5863
5875
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
|
|
5864
5876
|
keyTag = keyNode = valueNode = null;
|
|
@@ -5906,12 +5918,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5906
5918
|
} else throwError(state, "unexpected end of the stream within a verbatim tag");
|
|
5907
5919
|
} else {
|
|
5908
5920
|
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
5909
|
-
if (ch === 33)
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
|
-
|
|
5921
|
+
if (ch === 33) {
|
|
5922
|
+
if (!isNamed) {
|
|
5923
|
+
tagHandle = state.input.slice(_position - 1, state.position + 1);
|
|
5924
|
+
if (!PATTERN_TAG_HANDLE.test(tagHandle)) throwError(state, "named tag handle cannot contain such characters");
|
|
5925
|
+
isNamed = true;
|
|
5926
|
+
_position = state.position + 1;
|
|
5927
|
+
} else throwError(state, "tag suffix cannot contain exclamation marks");
|
|
5928
|
+
}
|
|
5915
5929
|
ch = state.input.charCodeAt(++state.position);
|
|
5916
5930
|
}
|
|
5917
5931
|
tagName = state.input.slice(_position, state.position);
|
|
@@ -6015,21 +6029,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6015
6029
|
if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) flowIndent = parentIndent;
|
|
6016
6030
|
else flowIndent = parentIndent + 1;
|
|
6017
6031
|
blockIndent = state.position - state.lineStart;
|
|
6018
|
-
if (indentStatus === 1)
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
|
|
6028
|
-
|
|
6032
|
+
if (indentStatus === 1) {
|
|
6033
|
+
if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) hasContent = true;
|
|
6034
|
+
else {
|
|
6035
|
+
const ch = state.input.charCodeAt(state.position);
|
|
6036
|
+
if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) hasContent = true;
|
|
6037
|
+
else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) hasContent = true;
|
|
6038
|
+
else if (readAlias(state)) {
|
|
6039
|
+
hasContent = true;
|
|
6040
|
+
if (state.tag !== null || state.anchor !== null) throwError(state, "alias node should not have any properties");
|
|
6041
|
+
} else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
|
|
6042
|
+
hasContent = true;
|
|
6043
|
+
if (state.tag === null) state.tag = "?";
|
|
6044
|
+
}
|
|
6045
|
+
if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
|
|
6029
6046
|
}
|
|
6030
|
-
|
|
6031
|
-
}
|
|
6032
|
-
else if (indentStatus === 0) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
|
|
6047
|
+
} else if (indentStatus === 0) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
|
|
6033
6048
|
}
|
|
6034
6049
|
if (state.tag === null) {
|
|
6035
6050
|
if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
|
|
@@ -6535,8 +6550,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6535
6550
|
if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
6536
6551
|
if (!writeNode(state, level + 1, objectKey, true, true, true)) continue;
|
|
6537
6552
|
const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
|
|
6538
|
-
if (explicitPair)
|
|
6539
|
-
|
|
6553
|
+
if (explicitPair) {
|
|
6554
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += "?";
|
|
6555
|
+
else pairBuffer += "? ";
|
|
6556
|
+
}
|
|
6540
6557
|
pairBuffer += state.dump;
|
|
6541
6558
|
if (explicitPair) pairBuffer += generateNextLine(state, level);
|
|
6542
6559
|
if (!writeNode(state, level + 1, objectValue, true, explicitPair)) continue;
|
|
@@ -6553,9 +6570,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6553
6570
|
for (let index = 0, length = typeList.length; index < length; index += 1) {
|
|
6554
6571
|
const type = typeList[index];
|
|
6555
6572
|
if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object === "object" && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
|
|
6556
|
-
if (explicit)
|
|
6557
|
-
|
|
6558
|
-
|
|
6573
|
+
if (explicit) {
|
|
6574
|
+
if (type.multi && type.representName) state.tag = type.representName(object);
|
|
6575
|
+
else state.tag = type.tag;
|
|
6576
|
+
} else state.tag = "?";
|
|
6559
6577
|
if (type.represent) {
|
|
6560
6578
|
const style = state.styleMap[type.tag] || type.defaultStyle;
|
|
6561
6579
|
let _result;
|
|
@@ -6587,22 +6605,24 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6587
6605
|
if (duplicate && state.usedDuplicates[duplicateIndex]) state.dump = "*ref_" + duplicateIndex;
|
|
6588
6606
|
else {
|
|
6589
6607
|
if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) state.usedDuplicates[duplicateIndex] = true;
|
|
6590
|
-
if (type === "[object Object]")
|
|
6591
|
-
|
|
6592
|
-
|
|
6593
|
-
|
|
6594
|
-
|
|
6595
|
-
|
|
6596
|
-
|
|
6597
|
-
|
|
6598
|
-
|
|
6599
|
-
|
|
6600
|
-
|
|
6601
|
-
|
|
6602
|
-
|
|
6603
|
-
|
|
6604
|
-
|
|
6605
|
-
|
|
6608
|
+
if (type === "[object Object]") {
|
|
6609
|
+
if (block && Object.keys(state.dump).length !== 0) {
|
|
6610
|
+
writeBlockMapping(state, level, state.dump, compact);
|
|
6611
|
+
if (duplicate) state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
6612
|
+
} else {
|
|
6613
|
+
writeFlowMapping(state, level, state.dump);
|
|
6614
|
+
if (duplicate) state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
6615
|
+
}
|
|
6616
|
+
} else if (type === "[object Array]") {
|
|
6617
|
+
if (block && state.dump.length !== 0) {
|
|
6618
|
+
if (state.noArrayIndent && !isblockseq && level > 0) writeBlockSequence(state, level - 1, state.dump, compact);
|
|
6619
|
+
else writeBlockSequence(state, level, state.dump, compact);
|
|
6620
|
+
if (duplicate) state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
6621
|
+
} else {
|
|
6622
|
+
writeFlowSequence(state, level, state.dump);
|
|
6623
|
+
if (duplicate) state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
6624
|
+
}
|
|
6625
|
+
} else if (type === "[object String]") {
|
|
6606
6626
|
if (state.tag !== "?") writeScalar(state, state.dump, level, iskey, inblock);
|
|
6607
6627
|
} else if (type === "[object Undefined]") return false;
|
|
6608
6628
|
else {
|
|
@@ -7596,7 +7616,9 @@ var import_dist = (/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
7596
7616
|
})))();
|
|
7597
7617
|
const configState = {
|
|
7598
7618
|
config: void 0,
|
|
7599
|
-
/**
|
|
7619
|
+
/**
|
|
7620
|
+
In-flight root load so concurrent callers share one cosmiconfig search.
|
|
7621
|
+
*/
|
|
7600
7622
|
loadPromise: void 0,
|
|
7601
7623
|
rootConfigPath: void 0
|
|
7602
7624
|
};
|
|
@@ -9103,9 +9125,10 @@ var Minimatch = class {
|
|
|
9103
9125
|
const next = pp[i + 1];
|
|
9104
9126
|
const prev = pp[i - 1];
|
|
9105
9127
|
if (p !== GLOBSTAR || prev === GLOBSTAR) return;
|
|
9106
|
-
if (prev === void 0)
|
|
9107
|
-
|
|
9108
|
-
|
|
9128
|
+
if (prev === void 0) {
|
|
9129
|
+
if (next !== void 0 && next !== GLOBSTAR) pp[i + 1] = "(?:\\/|" + twoStar + "\\/)?" + next;
|
|
9130
|
+
else pp[i] = twoStar;
|
|
9131
|
+
} else if (next === void 0) pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + ")?";
|
|
9109
9132
|
else if (next !== GLOBSTAR) {
|
|
9110
9133
|
pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
|
|
9111
9134
|
pp[i + 1] = GLOBSTAR;
|
|
@@ -9179,7 +9202,9 @@ function makeMatcher(pattern, options = {}) {
|
|
|
9179
9202
|
const patterns = Array.isArray(pattern) ? pattern : [pattern];
|
|
9180
9203
|
return (input) => patterns.some((p) => minimatch(input, p, options));
|
|
9181
9204
|
}
|
|
9182
|
-
/**
|
|
9205
|
+
/**
|
|
9206
|
+
Convenience one-shot test: `isMatch(input, pattern)`.
|
|
9207
|
+
*/
|
|
9183
9208
|
function isMatch(input, pattern, options = {}) {
|
|
9184
9209
|
return makeMatcher(pattern, options)(input);
|
|
9185
9210
|
}
|
|
@@ -10823,11 +10848,15 @@ function normalizeReexportTargets(value) {
|
|
|
10823
10848
|
if (value === void 0) return [];
|
|
10824
10849
|
return Array.isArray(value) ? value : [value];
|
|
10825
10850
|
}
|
|
10826
|
-
/**
|
|
10851
|
+
/**
|
|
10852
|
+
Package-like specifier: not a hash alias and not a relative/absolute path.
|
|
10853
|
+
*/
|
|
10827
10854
|
function isPackageLikeSpecifier(spec) {
|
|
10828
10855
|
return !spec.startsWith("#") && !spec.startsWith(".") && !spec.startsWith("/");
|
|
10829
10856
|
}
|
|
10830
|
-
/**
|
|
10857
|
+
/**
|
|
10858
|
+
Configured `reexport` targets for a module, if any.
|
|
10859
|
+
*/
|
|
10831
10860
|
function moduleReexportTargets(mod) {
|
|
10832
10861
|
return normalizeReexportTargets(mod.reexport);
|
|
10833
10862
|
}
|
|
@@ -10856,7 +10885,9 @@ function moduleShimTargets(mod) {
|
|
|
10856
10885
|
if (fromReexport.length > 0) return fromReexport;
|
|
10857
10886
|
return [`#${mod.name}`];
|
|
10858
10887
|
}
|
|
10859
|
-
/**
|
|
10888
|
+
/**
|
|
10889
|
+
Builds a pure star-reexport TypeScript (or mjs) source body (no header).
|
|
10890
|
+
*/
|
|
10860
10891
|
function buildStarReexportLines(targets, options = {}) {
|
|
10861
10892
|
const semi = options.semi === false ? "" : ";";
|
|
10862
10893
|
return `${targets.map((target) => `export * from '${target}'${semi}`).join("\n")}\n`;
|
|
@@ -11074,7 +11105,9 @@ function buildAliasDistPaths(aliasImports = {}) {
|
|
|
11074
11105
|
for (const [alias, srcPath] of Object.entries(aliasImports)) result[alias] = srcPathToDistPath(srcPath);
|
|
11075
11106
|
return result;
|
|
11076
11107
|
}
|
|
11077
|
-
/**
|
|
11108
|
+
/**
|
|
11109
|
+
Resolves a `#hash` import specifier to its dist path for a platform.
|
|
11110
|
+
*/
|
|
11078
11111
|
function hashToDistPath(spec, platform, config) {
|
|
11079
11112
|
const conditional = buildConditionalDistPaths(config.conditionalImports)[spec];
|
|
11080
11113
|
if (conditional?.[platform] !== void 0) return conditional[platform];
|
|
@@ -11160,7 +11193,9 @@ function buildModelTs(modules) {
|
|
|
11160
11193
|
function buildModuleShim(mod) {
|
|
11161
11194
|
return `${GENERATED_HEADER}${buildStarReexportLines(moduleShimTargets(mod), { semi: false })}`;
|
|
11162
11195
|
}
|
|
11163
|
-
/**
|
|
11196
|
+
/**
|
|
11197
|
+
Generated module body for facade modules with `reexport` targets.
|
|
11198
|
+
*/
|
|
11164
11199
|
function buildModuleReexportIndex(mod) {
|
|
11165
11200
|
return `${GENERATED_HEADER}${buildStarReexportLines(moduleReexportTargets(mod), { semi: false })}`;
|
|
11166
11201
|
}
|
|
@@ -11186,7 +11221,9 @@ function listDistPlatforms(config) {
|
|
|
11186
11221
|
...fromEntries
|
|
11187
11222
|
])];
|
|
11188
11223
|
}
|
|
11189
|
-
/**
|
|
11224
|
+
/**
|
|
11225
|
+
True when the package publishes a type-only model barrel (`src/model.ts`).
|
|
11226
|
+
*/
|
|
11190
11227
|
function monolithHasModelBarrel(config) {
|
|
11191
11228
|
return config.modules.some((mod) => mod.model ?? false);
|
|
11192
11229
|
}
|
|
@@ -11310,7 +11347,9 @@ function rewriteDtsFile(file, platform, platformDir, config) {
|
|
|
11310
11347
|
}
|
|
11311
11348
|
return false;
|
|
11312
11349
|
}
|
|
11313
|
-
/**
|
|
11350
|
+
/**
|
|
11351
|
+
Returns the number of declaration files rewritten.
|
|
11352
|
+
*/
|
|
11314
11353
|
function fixMonolithDeclarations(distDir, config) {
|
|
11315
11354
|
const platforms = listDistPlatforms(config).filter((platform) => fs.existsSync(PATH.join(distDir, platform)));
|
|
11316
11355
|
const platformShimDirs = buildPlatformShimDirs(config.platformEntries);
|
|
@@ -11412,7 +11451,9 @@ function modulesPlatformEntries(mod, config, isExternal, modulesPlatform) {
|
|
|
11412
11451
|
};
|
|
11413
11452
|
return shims;
|
|
11414
11453
|
}
|
|
11415
|
-
/**
|
|
11454
|
+
/**
|
|
11455
|
+
Master barrel entry for a platform (`index.entries` override or `./index.ts`).
|
|
11456
|
+
*/
|
|
11416
11457
|
function masterBarrelEntry(config, platform) {
|
|
11417
11458
|
return config.index?.entries?.[platform] ?? "./index.ts";
|
|
11418
11459
|
}
|
|
@@ -11475,7 +11516,9 @@ function isPathInside(parent, candidate) {
|
|
|
11475
11516
|
const relative = PATH.relative(parent, candidate);
|
|
11476
11517
|
return relative.length > 0 && relative !== ".." && !relative.startsWith(`..${PATH.sep}`) && !PATH.isAbsolute(relative);
|
|
11477
11518
|
}
|
|
11478
|
-
/**
|
|
11519
|
+
/**
|
|
11520
|
+
Resolves configured copy destinations without requiring their sources to exist.
|
|
11521
|
+
*/
|
|
11479
11522
|
function listMonolithCopyEntries(packageDir, config) {
|
|
11480
11523
|
const distDir = PATH.resolve(packageDir, "dist");
|
|
11481
11524
|
const entries = [];
|
|
@@ -11513,7 +11556,9 @@ function resolveCopySource(packageDir, source) {
|
|
|
11513
11556
|
if (!fs.existsSync(resolved) || !fs.statSync(resolved).isFile()) throw new Error(`Monolith copy entry source is not a file: "${source}" (${resolved})`);
|
|
11514
11557
|
return resolved;
|
|
11515
11558
|
}
|
|
11516
|
-
/**
|
|
11559
|
+
/**
|
|
11560
|
+
Copies configured opaque entries into their exact dist destinations.
|
|
11561
|
+
*/
|
|
11517
11562
|
function copyMonolithEntries(packageDir, config) {
|
|
11518
11563
|
const entries = listMonolithCopyEntries(packageDir, config);
|
|
11519
11564
|
for (const entry of entries) {
|
|
@@ -11537,7 +11582,9 @@ function assertNoManualEntries(compile) {
|
|
|
11537
11582
|
for (const options of Object.values(target)) if (options?.entry !== void 0) throw new Error(`monolith mode computes entries; remove compile.${platform} entry`);
|
|
11538
11583
|
}
|
|
11539
11584
|
}
|
|
11540
|
-
/**
|
|
11585
|
+
/**
|
|
11586
|
+
Merges computed entries into a platform target, preserving other options.
|
|
11587
|
+
*/
|
|
11541
11588
|
function platformTarget(existing, entry, isExternalLinkage) {
|
|
11542
11589
|
const base = typeof existing === "object" && existing !== null ? existing : {};
|
|
11543
11590
|
const src = typeof base.src === "object" && base.src !== null ? base.src : {};
|
|
@@ -11572,7 +11619,9 @@ function resolveMonolithCompile(config, mode) {
|
|
|
11572
11619
|
shouldRunFullValidation: !(mode.emitOnly ?? false) && (compile.validate ?? true)
|
|
11573
11620
|
};
|
|
11574
11621
|
}
|
|
11575
|
-
/**
|
|
11622
|
+
/**
|
|
11623
|
+
Builds the library-mode config carrying the computed monolith entries.
|
|
11624
|
+
*/
|
|
11576
11625
|
function deriveEsbuildConfig(config, compile, monolith) {
|
|
11577
11626
|
const entries = buildMonolithEntries(monolith);
|
|
11578
11627
|
const isExternalLinkage = (monolith.moduleLinkage ?? "bundle") === "external";
|