@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
|
@@ -1591,7 +1591,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
1591
1591
|
}
|
|
1592
1592
|
}
|
|
1593
1593
|
getRemainingTTL(t) {
|
|
1594
|
-
return this.#f.has(t) ?
|
|
1594
|
+
return this.#f.has(t) ? 1 / 0 : 0;
|
|
1595
1595
|
}
|
|
1596
1596
|
#M() {
|
|
1597
1597
|
let t = new Tt(this.#t), e = new Tt(this.#t);
|
|
@@ -1627,7 +1627,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
1627
1627
|
let h = this.#f.get(o);
|
|
1628
1628
|
if (h === void 0) return 0;
|
|
1629
1629
|
let a = t[h], l = e[h];
|
|
1630
|
-
if (!a || !l) return
|
|
1630
|
+
if (!a || !l) return 1 / 0;
|
|
1631
1631
|
return a - ((i || r()) - l);
|
|
1632
1632
|
}, this.#v = (o) => {
|
|
1633
1633
|
let h = e[o], a = t[o];
|
|
@@ -2415,14 +2415,14 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2415
2415
|
Ie = yt | j | Lt;
|
|
2416
2416
|
Fi = 1023;
|
|
2417
2417
|
ie = (n) => n.isFile() ? Ke : n.isDirectory() ? U : n.isSymbolicLink() ? X : n.isCharacterDevice() ? He : n.isBlockDevice() ? qe : n.isSocket() ? Ve : n.isFIFO() ? Ge : L;
|
|
2418
|
-
ze = new ft({ max:
|
|
2418
|
+
ze = new ft({ max: 4096 });
|
|
2419
2419
|
bt = (n) => {
|
|
2420
2420
|
let t = ze.get(n);
|
|
2421
2421
|
if (t) return t;
|
|
2422
2422
|
let e = n.normalize("NFKD");
|
|
2423
2423
|
return ze.set(n, e), e;
|
|
2424
2424
|
};
|
|
2425
|
-
Be = new ft({ max:
|
|
2425
|
+
Be = new ft({ max: 4096 });
|
|
2426
2426
|
_t = (n) => {
|
|
2427
2427
|
let t = Be.get(n);
|
|
2428
2428
|
if (t) return t;
|
|
@@ -3472,7 +3472,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3472
3472
|
includeChildMatches;
|
|
3473
3473
|
constructor(t, e, s) {
|
|
3474
3474
|
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.");
|
|
3475
|
-
this.maxDepth = s.maxDepth ||
|
|
3475
|
+
this.maxDepth = s.maxDepth || 1 / 0, s.signal && (this.signal = s.signal, this.signal.addEventListener("abort", () => {
|
|
3476
3476
|
this.#t.length = 0;
|
|
3477
3477
|
}));
|
|
3478
3478
|
}
|
|
@@ -3509,7 +3509,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3509
3509
|
return this.matchCheckTest(r, e);
|
|
3510
3510
|
}
|
|
3511
3511
|
matchCheckTest(t, e) {
|
|
3512
|
-
return t && (this.maxDepth ===
|
|
3512
|
+
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;
|
|
3513
3513
|
}
|
|
3514
3514
|
matchCheckSync(t, e) {
|
|
3515
3515
|
if (e && this.opts.nodir) return;
|
|
@@ -3566,7 +3566,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3566
3566
|
};
|
|
3567
3567
|
for (let [h, a, l] of s.matches.entries()) this.#r(h) || (r++, this.match(h, a, l).then(() => o()));
|
|
3568
3568
|
for (let h of s.subwalkTargets()) {
|
|
3569
|
-
if (this.maxDepth !==
|
|
3569
|
+
if (this.maxDepth !== 1 / 0 && h.depth() >= this.maxDepth) continue;
|
|
3570
3570
|
r++;
|
|
3571
3571
|
let a = h.readdirCached();
|
|
3572
3572
|
h.calledReaddir() ? this.walkCB3(h, a, s, o) : h.readdirCB((l, u) => this.walkCB3(h, u, s, o), !0);
|
|
@@ -3597,7 +3597,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3597
3597
|
};
|
|
3598
3598
|
for (let [h, a, l] of s.matches.entries()) this.#r(h) || this.matchSync(h, a, l);
|
|
3599
3599
|
for (let h of s.subwalkTargets()) {
|
|
3600
|
-
if (this.maxDepth !==
|
|
3600
|
+
if (this.maxDepth !== 1 / 0 && h.depth() >= this.maxDepth) continue;
|
|
3601
3601
|
r++;
|
|
3602
3602
|
let a = h.readdirSync();
|
|
3603
3603
|
this.walkCB3Sync(h, a, s, o);
|
|
@@ -3689,7 +3689,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3689
3689
|
patterns;
|
|
3690
3690
|
constructor(t, e) {
|
|
3691
3691
|
if (!e) throw new TypeError("glob options required");
|
|
3692
|
-
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 :
|
|
3692
|
+
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");
|
|
3693
3693
|
if (typeof t == "string" && (t = [t]), this.windowsPathsNoEscape = !!e.windowsPathsNoEscape || e.allowWindowsEscape === !1, this.windowsPathsNoEscape && (t = t.map((a) => a.replace(/\\/g, "/"))), this.matchBase) {
|
|
3694
3694
|
if (e.noglobstar) throw new TypeError("base matching requires globstar");
|
|
3695
3695
|
t = t.map((a) => a.includes("/") ? a : `./**/${a}`);
|
|
@@ -3732,7 +3732,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3732
3732
|
async walk() {
|
|
3733
3733
|
return [...await new xt(this.patterns, this.scurry.cwd, {
|
|
3734
3734
|
...this.opts,
|
|
3735
|
-
maxDepth: this.maxDepth !==
|
|
3735
|
+
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
3736
3736
|
platform: this.platform,
|
|
3737
3737
|
nocase: this.nocase,
|
|
3738
3738
|
includeChildMatches: this.includeChildMatches
|
|
@@ -3741,7 +3741,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3741
3741
|
walkSync() {
|
|
3742
3742
|
return [...new xt(this.patterns, this.scurry.cwd, {
|
|
3743
3743
|
...this.opts,
|
|
3744
|
-
maxDepth: this.maxDepth !==
|
|
3744
|
+
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
3745
3745
|
platform: this.platform,
|
|
3746
3746
|
nocase: this.nocase,
|
|
3747
3747
|
includeChildMatches: this.includeChildMatches
|
|
@@ -3750,7 +3750,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3750
3750
|
stream() {
|
|
3751
3751
|
return new vt(this.patterns, this.scurry.cwd, {
|
|
3752
3752
|
...this.opts,
|
|
3753
|
-
maxDepth: this.maxDepth !==
|
|
3753
|
+
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
3754
3754
|
platform: this.platform,
|
|
3755
3755
|
nocase: this.nocase,
|
|
3756
3756
|
includeChildMatches: this.includeChildMatches
|
|
@@ -3759,7 +3759,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3759
3759
|
streamSync() {
|
|
3760
3760
|
return new vt(this.patterns, this.scurry.cwd, {
|
|
3761
3761
|
...this.opts,
|
|
3762
|
-
maxDepth: this.maxDepth !==
|
|
3762
|
+
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
3763
3763
|
platform: this.platform,
|
|
3764
3764
|
nocase: this.nocase,
|
|
3765
3765
|
includeChildMatches: this.includeChildMatches
|
|
@@ -3955,8 +3955,10 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3955
3955
|
if (ii === pathExt.length) return resolve(step(i + 1));
|
|
3956
3956
|
const ext = pathExt[ii];
|
|
3957
3957
|
isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
|
|
3958
|
-
if (!er && is)
|
|
3959
|
-
|
|
3958
|
+
if (!er && is) {
|
|
3959
|
+
if (opt.all) found.push(p + ext);
|
|
3960
|
+
else return resolve(p + ext);
|
|
3961
|
+
}
|
|
3960
3962
|
return resolve(subStep(p, i, ii + 1));
|
|
3961
3963
|
});
|
|
3962
3964
|
});
|
|
@@ -3974,8 +3976,10 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3974
3976
|
for (let j = 0; j < pathExt.length; j++) {
|
|
3975
3977
|
const cur = p + pathExt[j];
|
|
3976
3978
|
try {
|
|
3977
|
-
if (isexe.sync(cur, { pathExt: pathExtExe }))
|
|
3978
|
-
|
|
3979
|
+
if (isexe.sync(cur, { pathExt: pathExtExe })) {
|
|
3980
|
+
if (opt.all) found.push(cur);
|
|
3981
|
+
else return cur;
|
|
3982
|
+
}
|
|
3979
3983
|
} catch (ex) {}
|
|
3980
3984
|
}
|
|
3981
3985
|
}
|
|
@@ -5032,8 +5036,10 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5032
5036
|
let pairHasKey = false;
|
|
5033
5037
|
if (_toString.call(pair) !== "[object Object]") return false;
|
|
5034
5038
|
let pairKey;
|
|
5035
|
-
for (pairKey in pair) if (_hasOwnProperty.call(pair, pairKey))
|
|
5036
|
-
|
|
5039
|
+
for (pairKey in pair) if (_hasOwnProperty.call(pair, pairKey)) {
|
|
5040
|
+
if (!pairHasKey) pairHasKey = true;
|
|
5041
|
+
else return false;
|
|
5042
|
+
}
|
|
5037
5043
|
if (!pairHasKey) return false;
|
|
5038
5044
|
if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);
|
|
5039
5045
|
else return false;
|
|
@@ -5373,9 +5379,10 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5373
5379
|
if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") keyNode = "[object Object]";
|
|
5374
5380
|
keyNode = String(keyNode);
|
|
5375
5381
|
if (_result === null) _result = {};
|
|
5376
|
-
if (keyTag === "tag:yaml.org,2002:merge")
|
|
5377
|
-
|
|
5378
|
-
|
|
5382
|
+
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
5383
|
+
if (Array.isArray(valueNode)) for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
5384
|
+
else mergeMappings(state, _result, valueNode, overridableKeys);
|
|
5385
|
+
} else {
|
|
5379
5386
|
if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
|
|
5380
5387
|
state.line = startLine || state.line;
|
|
5381
5388
|
state.lineStart = startLineStart || state.lineStart;
|
|
@@ -5660,14 +5667,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5660
5667
|
state.result = "";
|
|
5661
5668
|
while (ch !== 0) {
|
|
5662
5669
|
ch = state.input.charCodeAt(++state.position);
|
|
5663
|
-
if (ch === 43 || ch === 45)
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
else if (
|
|
5667
|
-
|
|
5668
|
-
detectedIndent
|
|
5669
|
-
|
|
5670
|
-
|
|
5670
|
+
if (ch === 43 || ch === 45) {
|
|
5671
|
+
if (CHOMPING_CLIP === chomping) chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
|
|
5672
|
+
else throwError(state, "repeat of a chomping mode identifier");
|
|
5673
|
+
} else if ((tmp = fromDecimalCode(ch)) >= 0) {
|
|
5674
|
+
if (tmp === 0) throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
|
|
5675
|
+
else if (!detectedIndent) {
|
|
5676
|
+
textIndent = nodeIndent + tmp - 1;
|
|
5677
|
+
detectedIndent = true;
|
|
5678
|
+
} else throwError(state, "repeat of an indentation width identifier");
|
|
5679
|
+
} else break;
|
|
5671
5680
|
}
|
|
5672
5681
|
if (isWhiteSpace(ch)) {
|
|
5673
5682
|
do
|
|
@@ -5698,16 +5707,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5698
5707
|
}
|
|
5699
5708
|
break;
|
|
5700
5709
|
}
|
|
5701
|
-
if (folding)
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
atMoreIndented
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
if (
|
|
5709
|
-
|
|
5710
|
-
|
|
5710
|
+
if (folding) {
|
|
5711
|
+
if (isWhiteSpace(ch)) {
|
|
5712
|
+
atMoreIndented = true;
|
|
5713
|
+
state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
5714
|
+
} else if (atMoreIndented) {
|
|
5715
|
+
atMoreIndented = false;
|
|
5716
|
+
state.result += common.repeat("\n", emptyLines + 1);
|
|
5717
|
+
} else if (emptyLines === 0) {
|
|
5718
|
+
if (didReadContent) state.result += " ";
|
|
5719
|
+
} else state.result += common.repeat("\n", emptyLines);
|
|
5720
|
+
} else state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
5711
5721
|
didReadContent = true;
|
|
5712
5722
|
detectedIndent = true;
|
|
5713
5723
|
emptyLines = 0;
|
|
@@ -5836,8 +5846,10 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5836
5846
|
_keyLineStart = state.lineStart;
|
|
5837
5847
|
_keyPos = state.position;
|
|
5838
5848
|
}
|
|
5839
|
-
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact))
|
|
5840
|
-
|
|
5849
|
+
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
|
|
5850
|
+
if (atExplicitKey) keyNode = state.result;
|
|
5851
|
+
else valueNode = state.result;
|
|
5852
|
+
}
|
|
5841
5853
|
if (!atExplicitKey) {
|
|
5842
5854
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
|
|
5843
5855
|
keyTag = keyNode = valueNode = null;
|
|
@@ -5885,12 +5897,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5885
5897
|
} else throwError(state, "unexpected end of the stream within a verbatim tag");
|
|
5886
5898
|
} else {
|
|
5887
5899
|
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
5888
|
-
if (ch === 33)
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5900
|
+
if (ch === 33) {
|
|
5901
|
+
if (!isNamed) {
|
|
5902
|
+
tagHandle = state.input.slice(_position - 1, state.position + 1);
|
|
5903
|
+
if (!PATTERN_TAG_HANDLE.test(tagHandle)) throwError(state, "named tag handle cannot contain such characters");
|
|
5904
|
+
isNamed = true;
|
|
5905
|
+
_position = state.position + 1;
|
|
5906
|
+
} else throwError(state, "tag suffix cannot contain exclamation marks");
|
|
5907
|
+
}
|
|
5894
5908
|
ch = state.input.charCodeAt(++state.position);
|
|
5895
5909
|
}
|
|
5896
5910
|
tagName = state.input.slice(_position, state.position);
|
|
@@ -5994,21 +6008,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5994
6008
|
if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) flowIndent = parentIndent;
|
|
5995
6009
|
else flowIndent = parentIndent + 1;
|
|
5996
6010
|
blockIndent = state.position - state.lineStart;
|
|
5997
|
-
if (indentStatus === 1)
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6011
|
+
if (indentStatus === 1) {
|
|
6012
|
+
if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) hasContent = true;
|
|
6013
|
+
else {
|
|
6014
|
+
const ch = state.input.charCodeAt(state.position);
|
|
6015
|
+
if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) hasContent = true;
|
|
6016
|
+
else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) hasContent = true;
|
|
6017
|
+
else if (readAlias(state)) {
|
|
6018
|
+
hasContent = true;
|
|
6019
|
+
if (state.tag !== null || state.anchor !== null) throwError(state, "alias node should not have any properties");
|
|
6020
|
+
} else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
|
|
6021
|
+
hasContent = true;
|
|
6022
|
+
if (state.tag === null) state.tag = "?";
|
|
6023
|
+
}
|
|
6024
|
+
if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
|
|
6008
6025
|
}
|
|
6009
|
-
|
|
6010
|
-
}
|
|
6011
|
-
else if (indentStatus === 0) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
|
|
6026
|
+
} else if (indentStatus === 0) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
|
|
6012
6027
|
}
|
|
6013
6028
|
if (state.tag === null) {
|
|
6014
6029
|
if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
|
|
@@ -6514,8 +6529,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6514
6529
|
if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
6515
6530
|
if (!writeNode(state, level + 1, objectKey, true, true, true)) continue;
|
|
6516
6531
|
const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
|
|
6517
|
-
if (explicitPair)
|
|
6518
|
-
|
|
6532
|
+
if (explicitPair) {
|
|
6533
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += "?";
|
|
6534
|
+
else pairBuffer += "? ";
|
|
6535
|
+
}
|
|
6519
6536
|
pairBuffer += state.dump;
|
|
6520
6537
|
if (explicitPair) pairBuffer += generateNextLine(state, level);
|
|
6521
6538
|
if (!writeNode(state, level + 1, objectValue, true, explicitPair)) continue;
|
|
@@ -6532,9 +6549,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6532
6549
|
for (let index = 0, length = typeList.length; index < length; index += 1) {
|
|
6533
6550
|
const type = typeList[index];
|
|
6534
6551
|
if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object === "object" && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
|
|
6535
|
-
if (explicit)
|
|
6536
|
-
|
|
6537
|
-
|
|
6552
|
+
if (explicit) {
|
|
6553
|
+
if (type.multi && type.representName) state.tag = type.representName(object);
|
|
6554
|
+
else state.tag = type.tag;
|
|
6555
|
+
} else state.tag = "?";
|
|
6538
6556
|
if (type.represent) {
|
|
6539
6557
|
const style = state.styleMap[type.tag] || type.defaultStyle;
|
|
6540
6558
|
let _result;
|
|
@@ -6566,22 +6584,24 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6566
6584
|
if (duplicate && state.usedDuplicates[duplicateIndex]) state.dump = "*ref_" + duplicateIndex;
|
|
6567
6585
|
else {
|
|
6568
6586
|
if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) state.usedDuplicates[duplicateIndex] = true;
|
|
6569
|
-
if (type === "[object Object]")
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
|
|
6573
|
-
|
|
6574
|
-
|
|
6575
|
-
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
|
|
6587
|
+
if (type === "[object Object]") {
|
|
6588
|
+
if (block && Object.keys(state.dump).length !== 0) {
|
|
6589
|
+
writeBlockMapping(state, level, state.dump, compact);
|
|
6590
|
+
if (duplicate) state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
6591
|
+
} else {
|
|
6592
|
+
writeFlowMapping(state, level, state.dump);
|
|
6593
|
+
if (duplicate) state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
6594
|
+
}
|
|
6595
|
+
} else if (type === "[object Array]") {
|
|
6596
|
+
if (block && state.dump.length !== 0) {
|
|
6597
|
+
if (state.noArrayIndent && !isblockseq && level > 0) writeBlockSequence(state, level - 1, state.dump, compact);
|
|
6598
|
+
else writeBlockSequence(state, level, state.dump, compact);
|
|
6599
|
+
if (duplicate) state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
6600
|
+
} else {
|
|
6601
|
+
writeFlowSequence(state, level, state.dump);
|
|
6602
|
+
if (duplicate) state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
6603
|
+
}
|
|
6604
|
+
} else if (type === "[object String]") {
|
|
6585
6605
|
if (state.tag !== "?") writeScalar(state, state.dump, level, iskey, inblock);
|
|
6586
6606
|
} else if (type === "[object Undefined]") return false;
|
|
6587
6607
|
else {
|
|
@@ -7691,12 +7711,16 @@ function deprecatedRuleConfigAliases(configKey) {
|
|
|
7691
7711
|
var import_dist = require_dist();
|
|
7692
7712
|
const configState = {
|
|
7693
7713
|
config: void 0,
|
|
7694
|
-
/**
|
|
7714
|
+
/**
|
|
7715
|
+
In-flight root load so concurrent callers share one cosmiconfig search.
|
|
7716
|
+
*/
|
|
7695
7717
|
loadPromise: void 0,
|
|
7696
7718
|
rootConfigPath: void 0
|
|
7697
7719
|
};
|
|
7698
7720
|
const workspaceConfigCache = /* @__PURE__ */ new Map();
|
|
7699
|
-
/**
|
|
7721
|
+
/**
|
|
7722
|
+
In-flight workspace loads — concurrent jobs for the same dir share one search.
|
|
7723
|
+
*/
|
|
7700
7724
|
const workspaceConfigLoadPromises = /* @__PURE__ */ new Map();
|
|
7701
7725
|
const deprecationWarned = /* @__PURE__ */ new Set();
|
|
7702
7726
|
function isRecord(value) {
|
|
@@ -7764,7 +7788,9 @@ async function loadWorkspaceConfig(workspaceDir) {
|
|
|
7764
7788
|
workspaceConfigLoadPromises.delete(workspaceDir);
|
|
7765
7789
|
}
|
|
7766
7790
|
}
|
|
7767
|
-
/**
|
|
7791
|
+
/**
|
|
7792
|
+
Deprecated top-level fields that should be under `commands`.
|
|
7793
|
+
*/
|
|
7768
7794
|
const DEPRECATED_COMMAND_FIELDS = /* @__PURE__ */ new Set(["deplint", "publint"]);
|
|
7769
7795
|
function warnOnce(key, message) {
|
|
7770
7796
|
if (deprecationWarned.has(key)) return;
|
|
@@ -9299,9 +9325,10 @@ var Minimatch = class {
|
|
|
9299
9325
|
const next = pp[i + 1];
|
|
9300
9326
|
const prev = pp[i - 1];
|
|
9301
9327
|
if (p !== GLOBSTAR || prev === GLOBSTAR) return;
|
|
9302
|
-
if (prev === void 0)
|
|
9303
|
-
|
|
9304
|
-
|
|
9328
|
+
if (prev === void 0) {
|
|
9329
|
+
if (next !== void 0 && next !== GLOBSTAR) pp[i + 1] = "(?:\\/|" + twoStar + "\\/)?" + next;
|
|
9330
|
+
else pp[i] = twoStar;
|
|
9331
|
+
} else if (next === void 0) pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + ")?";
|
|
9305
9332
|
else if (next !== GLOBSTAR) {
|
|
9306
9333
|
pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
|
|
9307
9334
|
pp[i + 1] = GLOBSTAR;
|
|
@@ -9375,7 +9402,9 @@ function makeMatcher(pattern, options = {}) {
|
|
|
9375
9402
|
const patterns = Array.isArray(pattern) ? pattern : [pattern];
|
|
9376
9403
|
return (input) => patterns.some((p) => minimatch(input, p, options));
|
|
9377
9404
|
}
|
|
9378
|
-
/**
|
|
9405
|
+
/**
|
|
9406
|
+
Convenience one-shot test: `isMatch(input, pattern)`.
|
|
9407
|
+
*/
|
|
9379
9408
|
function isMatch(input, pattern, options = {}) {
|
|
9380
9409
|
return makeMatcher(pattern, options)(input);
|
|
9381
9410
|
}
|
|
@@ -9466,7 +9495,9 @@ const gitCleanGitignoreBackend = {
|
|
|
9466
9495
|
return paths;
|
|
9467
9496
|
}
|
|
9468
9497
|
};
|
|
9469
|
-
/**
|
|
9498
|
+
/**
|
|
9499
|
+
Batch-check which absolute paths are gitignored.
|
|
9500
|
+
*/
|
|
9470
9501
|
function filterGitIgnoredPaths(rootDir, absPaths, backend = gitCleanGitignoreBackend) {
|
|
9471
9502
|
const ignored = [];
|
|
9472
9503
|
const notIgnored = [];
|
|
@@ -9546,7 +9577,9 @@ function parseCleanRuleLevel(location, setting, defaultLevel) {
|
|
|
9546
9577
|
if (typeof setting === "object" && setting !== null && !Array.isArray(setting)) return levelFromObject(location, setting, defaultLevel);
|
|
9547
9578
|
throw new TypeError(`${location} must be a rule level, boolean, [level, options], or { level?, enabled? } object`);
|
|
9548
9579
|
}
|
|
9549
|
-
/**
|
|
9580
|
+
/**
|
|
9581
|
+
Hard safety rules — always enforced; cannot be disabled via config.
|
|
9582
|
+
*/
|
|
9550
9583
|
const CLEAN_HARD_RULES = [{
|
|
9551
9584
|
description: "Patterns must resolve strictly inside the monorepo root (never the root itself or outside it)",
|
|
9552
9585
|
id: "clean.inside-root"
|
|
@@ -9568,7 +9601,9 @@ const CLEAN_CONFIGURABLE_RULES = [{
|
|
|
9568
9601
|
}];
|
|
9569
9602
|
const CONFIGURABLE_RULE_IDS = new Set(CLEAN_CONFIGURABLE_RULES.map((rule) => rule.id));
|
|
9570
9603
|
const HARD_RULE_IDS = new Set(CLEAN_HARD_RULES.map((rule) => rule.id));
|
|
9571
|
-
/**
|
|
9604
|
+
/**
|
|
9605
|
+
Immutable exclude entries — always skipped by clean, cannot be overridden.
|
|
9606
|
+
*/
|
|
9572
9607
|
const CLEAN_IMMUTABLE_EXCLUDE = [
|
|
9573
9608
|
".git",
|
|
9574
9609
|
"**/.git",
|
|
@@ -9607,7 +9642,9 @@ function resolveCleanRules(config) {
|
|
|
9607
9642
|
gitignoredOnly: level("clean.gitignored-only", rules["clean.gitignored-only"])
|
|
9608
9643
|
};
|
|
9609
9644
|
}
|
|
9610
|
-
/**
|
|
9645
|
+
/**
|
|
9646
|
+
Merge exclude patterns (deduped, order preserved).
|
|
9647
|
+
*/
|
|
9611
9648
|
function resolveCleanExclude(config, mode = "normal") {
|
|
9612
9649
|
if (mode === "immutable-only") return [...CLEAN_IMMUTABLE_EXCLUDE];
|
|
9613
9650
|
const merged = [
|
|
@@ -9630,7 +9667,9 @@ function resolveCleanPatterns(config) {
|
|
|
9630
9667
|
//#endregion
|
|
9631
9668
|
//#region src/actions/package/cleanPlan.ts
|
|
9632
9669
|
init_index_min();
|
|
9633
|
-
/**
|
|
9670
|
+
/**
|
|
9671
|
+
Built-in clean targets — always cleaned (bypass gitignored-only).
|
|
9672
|
+
*/
|
|
9634
9673
|
const BUILTIN_CLEAN_PATTERNS = ["dist", "build"];
|
|
9635
9674
|
function excludeModeForFull(fullMode) {
|
|
9636
9675
|
return fullMode === "full-all" ? "immutable-only" : "normal";
|
|
@@ -9810,7 +9849,9 @@ const packageCleanOutputs = async (options = {}) => {
|
|
|
9810
9849
|
};
|
|
9811
9850
|
//#endregion
|
|
9812
9851
|
//#region src/actions/package/clean-typescript.ts
|
|
9813
|
-
/**
|
|
9852
|
+
/**
|
|
9853
|
+
Cleans TypeScript build info and local lint caches for a package.
|
|
9854
|
+
*/
|
|
9814
9855
|
const packageCleanTypescript = (options = {}) => {
|
|
9815
9856
|
const pkg = options.pkg ?? INIT_CWD();
|
|
9816
9857
|
const pkgName = options.pkgName ?? packageName();
|