@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
|
@@ -1606,7 +1606,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
1606
1606
|
}
|
|
1607
1607
|
}
|
|
1608
1608
|
getRemainingTTL(t) {
|
|
1609
|
-
return this.#f.has(t) ?
|
|
1609
|
+
return this.#f.has(t) ? 1 / 0 : 0;
|
|
1610
1610
|
}
|
|
1611
1611
|
#M() {
|
|
1612
1612
|
let t = new Tt(this.#t), e = new Tt(this.#t);
|
|
@@ -1642,7 +1642,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
1642
1642
|
let h = this.#f.get(o);
|
|
1643
1643
|
if (h === void 0) return 0;
|
|
1644
1644
|
let a = t[h], l = e[h];
|
|
1645
|
-
if (!a || !l) return
|
|
1645
|
+
if (!a || !l) return 1 / 0;
|
|
1646
1646
|
return a - ((i || r()) - l);
|
|
1647
1647
|
}, this.#v = (o) => {
|
|
1648
1648
|
let h = e[o], a = t[o];
|
|
@@ -2430,14 +2430,14 @@ while (this[Le](this[Ft]()) && this[C$1].length);
|
|
|
2430
2430
|
Ie = yt | j$1 | Lt;
|
|
2431
2431
|
Fi = 1023;
|
|
2432
2432
|
ie = (n) => n.isFile() ? Ke : n.isDirectory() ? U : n.isSymbolicLink() ? X : n.isCharacterDevice() ? He : n.isBlockDevice() ? qe : n.isSocket() ? Ve : n.isFIFO() ? Ge : L;
|
|
2433
|
-
ze = new ft({ max:
|
|
2433
|
+
ze = new ft({ max: 4096 });
|
|
2434
2434
|
bt = (n) => {
|
|
2435
2435
|
let t = ze.get(n);
|
|
2436
2436
|
if (t) return t;
|
|
2437
2437
|
let e = n.normalize("NFKD");
|
|
2438
2438
|
return ze.set(n, e), e;
|
|
2439
2439
|
};
|
|
2440
|
-
Be = new ft({ max:
|
|
2440
|
+
Be = new ft({ max: 4096 });
|
|
2441
2441
|
_t = (n) => {
|
|
2442
2442
|
let t = Be.get(n);
|
|
2443
2443
|
if (t) return t;
|
|
@@ -3487,7 +3487,7 @@ while (this[Le](this[Ft]()) && this[C$1].length);
|
|
|
3487
3487
|
includeChildMatches;
|
|
3488
3488
|
constructor(t, e, s) {
|
|
3489
3489
|
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.");
|
|
3490
|
-
this.maxDepth = s.maxDepth ||
|
|
3490
|
+
this.maxDepth = s.maxDepth || 1 / 0, s.signal && (this.signal = s.signal, this.signal.addEventListener("abort", () => {
|
|
3491
3491
|
this.#t.length = 0;
|
|
3492
3492
|
}));
|
|
3493
3493
|
}
|
|
@@ -3524,7 +3524,7 @@ while (this[Le](this[Ft]()) && this[C$1].length);
|
|
|
3524
3524
|
return this.matchCheckTest(r, e);
|
|
3525
3525
|
}
|
|
3526
3526
|
matchCheckTest(t, e) {
|
|
3527
|
-
return t && (this.maxDepth ===
|
|
3527
|
+
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;
|
|
3528
3528
|
}
|
|
3529
3529
|
matchCheckSync(t, e) {
|
|
3530
3530
|
if (e && this.opts.nodir) return;
|
|
@@ -3581,7 +3581,7 @@ while (this[Le](this[Ft]()) && this[C$1].length);
|
|
|
3581
3581
|
};
|
|
3582
3582
|
for (let [h, a, l] of s.matches.entries()) this.#r(h) || (r++, this.match(h, a, l).then(() => o()));
|
|
3583
3583
|
for (let h of s.subwalkTargets()) {
|
|
3584
|
-
if (this.maxDepth !==
|
|
3584
|
+
if (this.maxDepth !== 1 / 0 && h.depth() >= this.maxDepth) continue;
|
|
3585
3585
|
r++;
|
|
3586
3586
|
let a = h.readdirCached();
|
|
3587
3587
|
h.calledReaddir() ? this.walkCB3(h, a, s, o) : h.readdirCB((l, u) => this.walkCB3(h, u, s, o), !0);
|
|
@@ -3612,7 +3612,7 @@ while (this[Le](this[Ft]()) && this[C$1].length);
|
|
|
3612
3612
|
};
|
|
3613
3613
|
for (let [h, a, l] of s.matches.entries()) this.#r(h) || this.matchSync(h, a, l);
|
|
3614
3614
|
for (let h of s.subwalkTargets()) {
|
|
3615
|
-
if (this.maxDepth !==
|
|
3615
|
+
if (this.maxDepth !== 1 / 0 && h.depth() >= this.maxDepth) continue;
|
|
3616
3616
|
r++;
|
|
3617
3617
|
let a = h.readdirSync();
|
|
3618
3618
|
this.walkCB3Sync(h, a, s, o);
|
|
@@ -3704,7 +3704,7 @@ while (this[Le](this[Ft]()) && this[C$1].length);
|
|
|
3704
3704
|
patterns;
|
|
3705
3705
|
constructor(t, e) {
|
|
3706
3706
|
if (!e) throw new TypeError("glob options required");
|
|
3707
|
-
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 :
|
|
3707
|
+
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");
|
|
3708
3708
|
if (typeof t == "string" && (t = [t]), this.windowsPathsNoEscape = !!e.windowsPathsNoEscape || e.allowWindowsEscape === !1, this.windowsPathsNoEscape && (t = t.map((a) => a.replace(/\\/g, "/"))), this.matchBase) {
|
|
3709
3709
|
if (e.noglobstar) throw new TypeError("base matching requires globstar");
|
|
3710
3710
|
t = t.map((a) => a.includes("/") ? a : `./**/${a}`);
|
|
@@ -3747,7 +3747,7 @@ while (this[Le](this[Ft]()) && this[C$1].length);
|
|
|
3747
3747
|
async walk() {
|
|
3748
3748
|
return [...await new xt(this.patterns, this.scurry.cwd, {
|
|
3749
3749
|
...this.opts,
|
|
3750
|
-
maxDepth: this.maxDepth !==
|
|
3750
|
+
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
3751
3751
|
platform: this.platform,
|
|
3752
3752
|
nocase: this.nocase,
|
|
3753
3753
|
includeChildMatches: this.includeChildMatches
|
|
@@ -3756,7 +3756,7 @@ while (this[Le](this[Ft]()) && this[C$1].length);
|
|
|
3756
3756
|
walkSync() {
|
|
3757
3757
|
return [...new xt(this.patterns, this.scurry.cwd, {
|
|
3758
3758
|
...this.opts,
|
|
3759
|
-
maxDepth: this.maxDepth !==
|
|
3759
|
+
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
3760
3760
|
platform: this.platform,
|
|
3761
3761
|
nocase: this.nocase,
|
|
3762
3762
|
includeChildMatches: this.includeChildMatches
|
|
@@ -3765,7 +3765,7 @@ while (this[Le](this[Ft]()) && this[C$1].length);
|
|
|
3765
3765
|
stream() {
|
|
3766
3766
|
return new vt(this.patterns, this.scurry.cwd, {
|
|
3767
3767
|
...this.opts,
|
|
3768
|
-
maxDepth: this.maxDepth !==
|
|
3768
|
+
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
3769
3769
|
platform: this.platform,
|
|
3770
3770
|
nocase: this.nocase,
|
|
3771
3771
|
includeChildMatches: this.includeChildMatches
|
|
@@ -3774,7 +3774,7 @@ while (this[Le](this[Ft]()) && this[C$1].length);
|
|
|
3774
3774
|
streamSync() {
|
|
3775
3775
|
return new vt(this.patterns, this.scurry.cwd, {
|
|
3776
3776
|
...this.opts,
|
|
3777
|
-
maxDepth: this.maxDepth !==
|
|
3777
|
+
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
3778
3778
|
platform: this.platform,
|
|
3779
3779
|
nocase: this.nocase,
|
|
3780
3780
|
includeChildMatches: this.includeChildMatches
|
|
@@ -4027,9 +4027,10 @@ var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4027
4027
|
module.exports = class SemVer {
|
|
4028
4028
|
constructor(version, options) {
|
|
4029
4029
|
options = parseOptions(options);
|
|
4030
|
-
if (version instanceof SemVer)
|
|
4031
|
-
|
|
4032
|
-
|
|
4030
|
+
if (version instanceof SemVer) {
|
|
4031
|
+
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
|
|
4032
|
+
else version = version.version;
|
|
4033
|
+
} else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
4033
4034
|
if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
4034
4035
|
debug("SemVer", version, options);
|
|
4035
4036
|
this.options = options;
|
|
@@ -4316,8 +4317,10 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4316
4317
|
module.exports = class Range {
|
|
4317
4318
|
constructor(range, options) {
|
|
4318
4319
|
options = parseOptions(options);
|
|
4319
|
-
if (range instanceof Range)
|
|
4320
|
-
|
|
4320
|
+
if (range instanceof Range) {
|
|
4321
|
+
if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
|
|
4322
|
+
else return new Range(range.raw, options);
|
|
4323
|
+
}
|
|
4321
4324
|
if (range instanceof Comparator) {
|
|
4322
4325
|
this.raw = range.value;
|
|
4323
4326
|
this.set = [[range]];
|
|
@@ -4487,18 +4490,21 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4487
4490
|
let ret;
|
|
4488
4491
|
if (isX(M)) ret = "";
|
|
4489
4492
|
else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
4490
|
-
else if (isX(p))
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
+
else if (isX(p)) {
|
|
4494
|
+
if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
4495
|
+
else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
4496
|
+
} else if (pr) {
|
|
4493
4497
|
debug("replaceCaret pr", pr);
|
|
4494
|
-
if (M === "0")
|
|
4495
|
-
|
|
4496
|
-
|
|
4498
|
+
if (M === "0") {
|
|
4499
|
+
if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
4500
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
4501
|
+
} else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
4497
4502
|
} else {
|
|
4498
4503
|
debug("no pr");
|
|
4499
|
-
if (M === "0")
|
|
4500
|
-
|
|
4501
|
-
|
|
4504
|
+
if (M === "0") {
|
|
4505
|
+
if (m === "0") ret = `>=${M}.${m}.${p} <${M}.${m}.${+p + 1}-0`;
|
|
4506
|
+
else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
4507
|
+
} else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
4502
4508
|
}
|
|
4503
4509
|
debug("caret return", ret);
|
|
4504
4510
|
return ret;
|
|
@@ -4520,9 +4526,10 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4520
4526
|
const anyX = xp;
|
|
4521
4527
|
if (gtlt === "=" && anyX) gtlt = "";
|
|
4522
4528
|
pr = options.includePrerelease ? "-0" : "";
|
|
4523
|
-
if (xM)
|
|
4524
|
-
|
|
4525
|
-
|
|
4529
|
+
if (xM) {
|
|
4530
|
+
if (gtlt === ">" || gtlt === "<") ret = "<0.0.0-0";
|
|
4531
|
+
else ret = "*";
|
|
4532
|
+
} else if (gtlt && anyX) {
|
|
4526
4533
|
if (xm) m = 0;
|
|
4527
4534
|
p = 0;
|
|
4528
4535
|
if (gtlt === ">") {
|
|
@@ -4596,8 +4603,10 @@ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4596
4603
|
}
|
|
4597
4604
|
constructor(comp, options) {
|
|
4598
4605
|
options = parseOptions(options);
|
|
4599
|
-
if (comp instanceof Comparator)
|
|
4600
|
-
|
|
4606
|
+
if (comp instanceof Comparator) {
|
|
4607
|
+
if (comp.loose === !!options.loose) return comp;
|
|
4608
|
+
else comp = comp.value;
|
|
4609
|
+
}
|
|
4601
4610
|
comp = comp.trim().split(/\s+/).join(" ");
|
|
4602
4611
|
debug("comparator", comp, options);
|
|
4603
4612
|
this.options = options;
|
|
@@ -5409,8 +5418,10 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5409
5418
|
let pairHasKey = false;
|
|
5410
5419
|
if (_toString.call(pair) !== "[object Object]") return false;
|
|
5411
5420
|
let pairKey;
|
|
5412
|
-
for (pairKey in pair) if (_hasOwnProperty.call(pair, pairKey))
|
|
5413
|
-
|
|
5421
|
+
for (pairKey in pair) if (_hasOwnProperty.call(pair, pairKey)) {
|
|
5422
|
+
if (!pairHasKey) pairHasKey = true;
|
|
5423
|
+
else return false;
|
|
5424
|
+
}
|
|
5414
5425
|
if (!pairHasKey) return false;
|
|
5415
5426
|
if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);
|
|
5416
5427
|
else return false;
|
|
@@ -5750,9 +5761,10 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5750
5761
|
if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") keyNode = "[object Object]";
|
|
5751
5762
|
keyNode = String(keyNode);
|
|
5752
5763
|
if (_result === null) _result = {};
|
|
5753
|
-
if (keyTag === "tag:yaml.org,2002:merge")
|
|
5754
|
-
|
|
5755
|
-
|
|
5764
|
+
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
5765
|
+
if (Array.isArray(valueNode)) for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
5766
|
+
else mergeMappings(state, _result, valueNode, overridableKeys);
|
|
5767
|
+
} else {
|
|
5756
5768
|
if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
|
|
5757
5769
|
state.line = startLine || state.line;
|
|
5758
5770
|
state.lineStart = startLineStart || state.lineStart;
|
|
@@ -6037,14 +6049,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6037
6049
|
state.result = "";
|
|
6038
6050
|
while (ch !== 0) {
|
|
6039
6051
|
ch = state.input.charCodeAt(++state.position);
|
|
6040
|
-
if (ch === 43 || ch === 45)
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
else if (
|
|
6044
|
-
|
|
6045
|
-
detectedIndent
|
|
6046
|
-
|
|
6047
|
-
|
|
6052
|
+
if (ch === 43 || ch === 45) {
|
|
6053
|
+
if (CHOMPING_CLIP === chomping) chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
|
|
6054
|
+
else throwError(state, "repeat of a chomping mode identifier");
|
|
6055
|
+
} else if ((tmp = fromDecimalCode(ch)) >= 0) {
|
|
6056
|
+
if (tmp === 0) throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
|
|
6057
|
+
else if (!detectedIndent) {
|
|
6058
|
+
textIndent = nodeIndent + tmp - 1;
|
|
6059
|
+
detectedIndent = true;
|
|
6060
|
+
} else throwError(state, "repeat of an indentation width identifier");
|
|
6061
|
+
} else break;
|
|
6048
6062
|
}
|
|
6049
6063
|
if (isWhiteSpace(ch)) {
|
|
6050
6064
|
do
|
|
@@ -6075,16 +6089,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6075
6089
|
}
|
|
6076
6090
|
break;
|
|
6077
6091
|
}
|
|
6078
|
-
if (folding)
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
atMoreIndented
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
if (
|
|
6086
|
-
|
|
6087
|
-
|
|
6092
|
+
if (folding) {
|
|
6093
|
+
if (isWhiteSpace(ch)) {
|
|
6094
|
+
atMoreIndented = true;
|
|
6095
|
+
state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
6096
|
+
} else if (atMoreIndented) {
|
|
6097
|
+
atMoreIndented = false;
|
|
6098
|
+
state.result += common.repeat("\n", emptyLines + 1);
|
|
6099
|
+
} else if (emptyLines === 0) {
|
|
6100
|
+
if (didReadContent) state.result += " ";
|
|
6101
|
+
} else state.result += common.repeat("\n", emptyLines);
|
|
6102
|
+
} else state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
6088
6103
|
didReadContent = true;
|
|
6089
6104
|
detectedIndent = true;
|
|
6090
6105
|
emptyLines = 0;
|
|
@@ -6213,8 +6228,10 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6213
6228
|
_keyLineStart = state.lineStart;
|
|
6214
6229
|
_keyPos = state.position;
|
|
6215
6230
|
}
|
|
6216
|
-
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact))
|
|
6217
|
-
|
|
6231
|
+
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
|
|
6232
|
+
if (atExplicitKey) keyNode = state.result;
|
|
6233
|
+
else valueNode = state.result;
|
|
6234
|
+
}
|
|
6218
6235
|
if (!atExplicitKey) {
|
|
6219
6236
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
|
|
6220
6237
|
keyTag = keyNode = valueNode = null;
|
|
@@ -6262,12 +6279,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6262
6279
|
} else throwError(state, "unexpected end of the stream within a verbatim tag");
|
|
6263
6280
|
} else {
|
|
6264
6281
|
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
6265
|
-
if (ch === 33)
|
|
6266
|
-
|
|
6267
|
-
|
|
6268
|
-
|
|
6269
|
-
|
|
6270
|
-
|
|
6282
|
+
if (ch === 33) {
|
|
6283
|
+
if (!isNamed) {
|
|
6284
|
+
tagHandle = state.input.slice(_position - 1, state.position + 1);
|
|
6285
|
+
if (!PATTERN_TAG_HANDLE.test(tagHandle)) throwError(state, "named tag handle cannot contain such characters");
|
|
6286
|
+
isNamed = true;
|
|
6287
|
+
_position = state.position + 1;
|
|
6288
|
+
} else throwError(state, "tag suffix cannot contain exclamation marks");
|
|
6289
|
+
}
|
|
6271
6290
|
ch = state.input.charCodeAt(++state.position);
|
|
6272
6291
|
}
|
|
6273
6292
|
tagName = state.input.slice(_position, state.position);
|
|
@@ -6371,21 +6390,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6371
6390
|
if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) flowIndent = parentIndent;
|
|
6372
6391
|
else flowIndent = parentIndent + 1;
|
|
6373
6392
|
blockIndent = state.position - state.lineStart;
|
|
6374
|
-
if (indentStatus === 1)
|
|
6375
|
-
|
|
6376
|
-
|
|
6377
|
-
|
|
6378
|
-
|
|
6379
|
-
|
|
6380
|
-
|
|
6381
|
-
|
|
6382
|
-
|
|
6383
|
-
|
|
6384
|
-
|
|
6393
|
+
if (indentStatus === 1) {
|
|
6394
|
+
if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) hasContent = true;
|
|
6395
|
+
else {
|
|
6396
|
+
const ch = state.input.charCodeAt(state.position);
|
|
6397
|
+
if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) hasContent = true;
|
|
6398
|
+
else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) hasContent = true;
|
|
6399
|
+
else if (readAlias(state)) {
|
|
6400
|
+
hasContent = true;
|
|
6401
|
+
if (state.tag !== null || state.anchor !== null) throwError(state, "alias node should not have any properties");
|
|
6402
|
+
} else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
|
|
6403
|
+
hasContent = true;
|
|
6404
|
+
if (state.tag === null) state.tag = "?";
|
|
6405
|
+
}
|
|
6406
|
+
if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
|
|
6385
6407
|
}
|
|
6386
|
-
|
|
6387
|
-
}
|
|
6388
|
-
else if (indentStatus === 0) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
|
|
6408
|
+
} else if (indentStatus === 0) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
|
|
6389
6409
|
}
|
|
6390
6410
|
if (state.tag === null) {
|
|
6391
6411
|
if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
|
|
@@ -6891,8 +6911,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6891
6911
|
if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
6892
6912
|
if (!writeNode(state, level + 1, objectKey, true, true, true)) continue;
|
|
6893
6913
|
const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
|
|
6894
|
-
if (explicitPair)
|
|
6895
|
-
|
|
6914
|
+
if (explicitPair) {
|
|
6915
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += "?";
|
|
6916
|
+
else pairBuffer += "? ";
|
|
6917
|
+
}
|
|
6896
6918
|
pairBuffer += state.dump;
|
|
6897
6919
|
if (explicitPair) pairBuffer += generateNextLine(state, level);
|
|
6898
6920
|
if (!writeNode(state, level + 1, objectValue, true, explicitPair)) continue;
|
|
@@ -6909,9 +6931,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6909
6931
|
for (let index = 0, length = typeList.length; index < length; index += 1) {
|
|
6910
6932
|
const type = typeList[index];
|
|
6911
6933
|
if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object === "object" && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
|
|
6912
|
-
if (explicit)
|
|
6913
|
-
|
|
6914
|
-
|
|
6934
|
+
if (explicit) {
|
|
6935
|
+
if (type.multi && type.representName) state.tag = type.representName(object);
|
|
6936
|
+
else state.tag = type.tag;
|
|
6937
|
+
} else state.tag = "?";
|
|
6915
6938
|
if (type.represent) {
|
|
6916
6939
|
const style = state.styleMap[type.tag] || type.defaultStyle;
|
|
6917
6940
|
let _result;
|
|
@@ -6943,22 +6966,24 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6943
6966
|
if (duplicate && state.usedDuplicates[duplicateIndex]) state.dump = "*ref_" + duplicateIndex;
|
|
6944
6967
|
else {
|
|
6945
6968
|
if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) state.usedDuplicates[duplicateIndex] = true;
|
|
6946
|
-
if (type === "[object Object]")
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
|
|
6961
|
-
|
|
6969
|
+
if (type === "[object Object]") {
|
|
6970
|
+
if (block && Object.keys(state.dump).length !== 0) {
|
|
6971
|
+
writeBlockMapping(state, level, state.dump, compact);
|
|
6972
|
+
if (duplicate) state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
6973
|
+
} else {
|
|
6974
|
+
writeFlowMapping(state, level, state.dump);
|
|
6975
|
+
if (duplicate) state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
6976
|
+
}
|
|
6977
|
+
} else if (type === "[object Array]") {
|
|
6978
|
+
if (block && state.dump.length !== 0) {
|
|
6979
|
+
if (state.noArrayIndent && !isblockseq && level > 0) writeBlockSequence(state, level - 1, state.dump, compact);
|
|
6980
|
+
else writeBlockSequence(state, level, state.dump, compact);
|
|
6981
|
+
if (duplicate) state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
6982
|
+
} else {
|
|
6983
|
+
writeFlowSequence(state, level, state.dump);
|
|
6984
|
+
if (duplicate) state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
6985
|
+
}
|
|
6986
|
+
} else if (type === "[object String]") {
|
|
6962
6987
|
if (state.tag !== "?") writeScalar(state, state.dump, level, iskey, inblock);
|
|
6963
6988
|
} else if (type === "[object Undefined]") return false;
|
|
6964
6989
|
else {
|
|
@@ -8068,12 +8093,16 @@ function deprecatedRuleConfigAliases(configKey) {
|
|
|
8068
8093
|
var import_dist = require_dist();
|
|
8069
8094
|
const configState = {
|
|
8070
8095
|
config: void 0,
|
|
8071
|
-
/**
|
|
8096
|
+
/**
|
|
8097
|
+
In-flight root load so concurrent callers share one cosmiconfig search.
|
|
8098
|
+
*/
|
|
8072
8099
|
loadPromise: void 0,
|
|
8073
8100
|
rootConfigPath: void 0
|
|
8074
8101
|
};
|
|
8075
8102
|
const workspaceConfigCache = /* @__PURE__ */ new Map();
|
|
8076
|
-
/**
|
|
8103
|
+
/**
|
|
8104
|
+
In-flight workspace loads — concurrent jobs for the same dir share one search.
|
|
8105
|
+
*/
|
|
8077
8106
|
const workspaceConfigLoadPromises = /* @__PURE__ */ new Map();
|
|
8078
8107
|
const deprecationWarned = /* @__PURE__ */ new Set();
|
|
8079
8108
|
function isRecord$1(value) {
|
|
@@ -8141,7 +8170,9 @@ async function loadWorkspaceConfig(workspaceDir) {
|
|
|
8141
8170
|
workspaceConfigLoadPromises.delete(workspaceDir);
|
|
8142
8171
|
}
|
|
8143
8172
|
}
|
|
8144
|
-
/**
|
|
8173
|
+
/**
|
|
8174
|
+
Deprecated top-level fields that should be under `commands`.
|
|
8175
|
+
*/
|
|
8145
8176
|
const DEPRECATED_COMMAND_FIELDS = /* @__PURE__ */ new Set(["deplint", "publint"]);
|
|
8146
8177
|
function warnOnce(key, message) {
|
|
8147
8178
|
if (deprecationWarned.has(key)) return;
|
|
@@ -9098,7 +9129,9 @@ function isPathInside(parent, candidate) {
|
|
|
9098
9129
|
const relative = PATH.relative(parent, candidate);
|
|
9099
9130
|
return relative.length > 0 && relative !== ".." && !relative.startsWith(`..${PATH.sep}`) && !PATH.isAbsolute(relative);
|
|
9100
9131
|
}
|
|
9101
|
-
/**
|
|
9132
|
+
/**
|
|
9133
|
+
Resolves configured copy destinations without requiring their sources to exist.
|
|
9134
|
+
*/
|
|
9102
9135
|
function listMonolithCopyEntries(packageDir, config) {
|
|
9103
9136
|
const distDir = PATH.resolve(packageDir, "dist");
|
|
9104
9137
|
const entries = [];
|
|
@@ -9149,7 +9182,9 @@ function publintRuleId$1(check) {
|
|
|
9149
9182
|
return `pub.${check}`;
|
|
9150
9183
|
}
|
|
9151
9184
|
ALL_PUBLINT_CHECKS.map(publintRuleId$1);
|
|
9152
|
-
/**
|
|
9185
|
+
/**
|
|
9186
|
+
Checks that only apply to published (non-private) packages
|
|
9187
|
+
*/
|
|
9153
9188
|
const PUBLISH_ONLY_CHECKS = [
|
|
9154
9189
|
"defaultExportOrder",
|
|
9155
9190
|
"files",
|
|
@@ -10537,8 +10572,10 @@ async function pack(dir, opts) {
|
|
|
10537
10572
|
const tarballFile = await fs$1.readdir(packDestination).then((files) => {
|
|
10538
10573
|
return files.find((file) => file.endsWith(".tgz") && output.stdout.includes(file));
|
|
10539
10574
|
});
|
|
10540
|
-
if (!tarballFile)
|
|
10541
|
-
|
|
10575
|
+
if (!tarballFile) {
|
|
10576
|
+
if (output.stdout.startsWith("yarn pack v1")) throw new Error(`Yarn 1 is not supported to pack files. Command output:\n${JSON.stringify(output, null, 2)}`);
|
|
10577
|
+
else throw new Error(`Failed to find packed tarball file in ${packDestination}. Command output:\n${JSON.stringify(output, null, 2)}`);
|
|
10578
|
+
}
|
|
10542
10579
|
return PATH.join(packDestination, tarballFile);
|
|
10543
10580
|
}
|
|
10544
10581
|
var init_pack = __esmMin((() => {
|
|
@@ -10797,7 +10834,7 @@ var init_index_node$1 = __esmMin((() => {
|
|
|
10797
10834
|
init_constants$2();
|
|
10798
10835
|
}));
|
|
10799
10836
|
//#endregion
|
|
10800
|
-
//#region ../../node_modules/.pnpm/publint@0.3.
|
|
10837
|
+
//#region ../../node_modules/.pnpm/publint@0.3.23/node_modules/publint/src/node/vfs-node.js
|
|
10801
10838
|
/**
|
|
10802
10839
|
* Creates a node-compatible Vfs object
|
|
10803
10840
|
* @returns {import('../shared/core.js').Vfs}
|
|
@@ -10824,7 +10861,7 @@ function createNodeVfs() {
|
|
|
10824
10861
|
return PATH.join(...parts);
|
|
10825
10862
|
},
|
|
10826
10863
|
pathRelative(from, to) {
|
|
10827
|
-
return PATH.relative(from, to);
|
|
10864
|
+
return PATH.relative(from, to).replaceAll(PATH.sep, "/");
|
|
10828
10865
|
},
|
|
10829
10866
|
getDirName(path) {
|
|
10830
10867
|
return PATH.dirname(path);
|
|
@@ -10836,8 +10873,8 @@ function createNodeVfs() {
|
|
|
10836
10873
|
}
|
|
10837
10874
|
var init_vfs_node = __esmMin((() => {}));
|
|
10838
10875
|
//#endregion
|
|
10839
|
-
//#region ../../node_modules/.pnpm/publint@0.3.
|
|
10840
|
-
var lintableFileExtensions, invalidJsxExtensions, knownBrowserishConditions, commonInternalPaths, licenseFiles;
|
|
10876
|
+
//#region ../../node_modules/.pnpm/publint@0.3.23/node_modules/publint/src/shared/constants.js
|
|
10877
|
+
var lintableFileExtensions, invalidJsxExtensions, knownBrowserishConditions, commonInternalPaths, commonInternalTestFileRegex, licenseFiles;
|
|
10841
10878
|
var init_constants$1 = __esmMin((() => {
|
|
10842
10879
|
lintableFileExtensions = [
|
|
10843
10880
|
".js",
|
|
@@ -10889,6 +10926,7 @@ var init_constants$1 = __esmMin((() => {
|
|
|
10889
10926
|
"Dockerfile",
|
|
10890
10927
|
"tsconfig.tsbuildinfo"
|
|
10891
10928
|
];
|
|
10929
|
+
commonInternalTestFileRegex = /\.(test|spec)\.[cm]?[jt]sx?$/;
|
|
10892
10930
|
licenseFiles = [
|
|
10893
10931
|
/^copying/i,
|
|
10894
10932
|
/^licence/i,
|
|
@@ -10896,7 +10934,7 @@ var init_constants$1 = __esmMin((() => {
|
|
|
10896
10934
|
];
|
|
10897
10935
|
}));
|
|
10898
10936
|
//#endregion
|
|
10899
|
-
//#region ../../node_modules/.pnpm/publint@0.3.
|
|
10937
|
+
//#region ../../node_modules/.pnpm/publint@0.3.23/node_modules/publint/src/shared/utils.js
|
|
10900
10938
|
/**
|
|
10901
10939
|
* @param {string} code
|
|
10902
10940
|
*/
|
|
@@ -11007,23 +11045,25 @@ async function exportsGlob(globStr, vfs, packedFiles, exportsKey, exports) {
|
|
|
11007
11045
|
const items = await vfs.readDir(dirPath);
|
|
11008
11046
|
for (const item of items) {
|
|
11009
11047
|
const itemPath = vfs.pathJoin(dirPath, item);
|
|
11010
|
-
if (!packedFiles || packedFiles.some((file) => file.startsWith(itemPath)))
|
|
11011
|
-
|
|
11012
|
-
|
|
11013
|
-
|
|
11014
|
-
if (matched
|
|
11015
|
-
|
|
11016
|
-
|
|
11017
|
-
|
|
11018
|
-
|
|
11048
|
+
if (!packedFiles || packedFiles.some((file) => file.startsWith(itemPath))) {
|
|
11049
|
+
if (await vfs.isPathDir(itemPath)) await scanDir(itemPath);
|
|
11050
|
+
else {
|
|
11051
|
+
const matched = slash(itemPath).match(globStrRe);
|
|
11052
|
+
if (matched) {
|
|
11053
|
+
if (matched.length > 2) {
|
|
11054
|
+
let allGlobSame = true;
|
|
11055
|
+
for (let i = 2; i < matched.length; i++) if (matched[i] !== matched[1]) {
|
|
11056
|
+
allGlobSame = false;
|
|
11057
|
+
break;
|
|
11058
|
+
}
|
|
11059
|
+
if (!allGlobSame) continue;
|
|
11019
11060
|
}
|
|
11020
|
-
if (
|
|
11021
|
-
|
|
11022
|
-
|
|
11023
|
-
|
|
11024
|
-
|
|
11061
|
+
if (exportsKey && exports && excludedExportKeys.length) {
|
|
11062
|
+
const replacedExportsKey = exportsKey.replace("*", matched[1]);
|
|
11063
|
+
if (excludedExportKeys.some((re) => re.test(replacedExportsKey))) continue;
|
|
11064
|
+
}
|
|
11065
|
+
filePaths.push(itemPath);
|
|
11025
11066
|
}
|
|
11026
|
-
filePaths.push(itemPath);
|
|
11027
11067
|
}
|
|
11028
11068
|
}
|
|
11029
11069
|
}
|
|
@@ -11310,7 +11350,7 @@ var init_utils$1 = __esmMin((() => {
|
|
|
11310
11350
|
DTS_RE = /\.d\.[mc]?ts$/;
|
|
11311
11351
|
}));
|
|
11312
11352
|
//#endregion
|
|
11313
|
-
//#region ../../node_modules/.pnpm/publint@0.3.
|
|
11353
|
+
//#region ../../node_modules/.pnpm/publint@0.3.23/node_modules/publint/src/shared/core.js
|
|
11314
11354
|
/**
|
|
11315
11355
|
* @typedef Vfs
|
|
11316
11356
|
* @property {(path: string) => Promise<string>} readFile
|
|
@@ -11318,7 +11358,7 @@ var init_utils$1 = __esmMin((() => {
|
|
|
11318
11358
|
* @property {(path: string) => Promise<boolean>} isPathDir
|
|
11319
11359
|
* @property {(path: string) => Promise<boolean>} isPathExist
|
|
11320
11360
|
* @property {(...paths: string[]) => string} pathJoin
|
|
11321
|
-
* @property {(from: string, to: string) => string} pathRelative
|
|
11361
|
+
* @property {(from: string, to: string) => string} pathRelative Returned path uses `/` separators
|
|
11322
11362
|
* @property {(path: string) => string} getDirName
|
|
11323
11363
|
* @property {(path: string) => string} getExtName
|
|
11324
11364
|
*/
|
|
@@ -11350,20 +11390,29 @@ async function core({ pkgDir, vfs, level, strict, _packedFiles }) {
|
|
|
11350
11390
|
const [browser, browserPkgPath] = getPublishedField(rootPkg, "browser");
|
|
11351
11391
|
const [exports, exportsPkgPath] = getPublishedField(rootPkg, "exports");
|
|
11352
11392
|
const [imports, importsPkgPath] = getPublishedField(rootPkg, "imports");
|
|
11393
|
+
/** @type {string[]} */
|
|
11394
|
+
const internalTestFilePaths = [];
|
|
11395
|
+
const crawlNestedPackageJsonPromise = crawlNestedPackageJson(pkgDir);
|
|
11396
|
+
promiseQueue.push(() => crawlNestedPackageJsonPromise);
|
|
11353
11397
|
if (rootPkg.files == null) promiseQueue.push(async () => {
|
|
11398
|
+
/** @type {string[]} */
|
|
11399
|
+
const internalFilePaths = [];
|
|
11354
11400
|
for (const p of commonInternalPaths) {
|
|
11355
11401
|
const internalPath = vfs.pathJoin(pkgDir, p);
|
|
11356
|
-
if (_packedFiles
|
|
11357
|
-
|
|
11358
|
-
messages.push({
|
|
11359
|
-
code: "USE_FILES",
|
|
11360
|
-
args: {},
|
|
11361
|
-
path: ["name"],
|
|
11362
|
-
type: "suggestion"
|
|
11363
|
-
});
|
|
11364
|
-
break;
|
|
11402
|
+
if (_packedFiles) {
|
|
11403
|
+
if (!(p.endsWith("/") ? _packedFiles.some((f) => f.startsWith(internalPath)) : _packedFiles.includes(internalPath))) continue;
|
|
11365
11404
|
}
|
|
11405
|
+
if (await vfs.isPathExist(internalPath)) internalFilePaths.push("/" + p);
|
|
11366
11406
|
}
|
|
11407
|
+
await crawlNestedPackageJsonPromise;
|
|
11408
|
+
const matchedDirs = internalFilePaths.filter((p) => p.endsWith("/"));
|
|
11409
|
+
internalFilePaths.push(...internalTestFilePaths.filter((p) => !matchedDirs.some((d) => p.startsWith(d))));
|
|
11410
|
+
if (internalFilePaths.length > 0) messages.push({
|
|
11411
|
+
code: "USE_FILES",
|
|
11412
|
+
args: { internalFilePaths },
|
|
11413
|
+
path: ["name"],
|
|
11414
|
+
type: "suggestion"
|
|
11415
|
+
});
|
|
11367
11416
|
});
|
|
11368
11417
|
if (rootPkg.license == null) promiseQueue.push(async () => {
|
|
11369
11418
|
const topFiles = await vfs.readDir(pkgDir);
|
|
@@ -11601,9 +11650,6 @@ async function core({ pkgDir, vfs, level, strict, _packedFiles }) {
|
|
|
11601
11650
|
const [bin, binPkgPath] = getPublishedField(rootPkg, "bin");
|
|
11602
11651
|
if (bin) crawlBin(bin, binPkgPath);
|
|
11603
11652
|
if (imports && ensureTypeOfField(imports, ["object"], importsPkgPath)) crawlExportsOrImports(imports, importsPkgPath, true);
|
|
11604
|
-
promiseQueue.push(async () => {
|
|
11605
|
-
await crawlNestedPackageJson(pkgDir);
|
|
11606
|
-
});
|
|
11607
11653
|
await promiseQueue.wait();
|
|
11608
11654
|
if (strict) {
|
|
11609
11655
|
for (const message of messages) if (message.type === "warning") message.type = "error";
|
|
@@ -11769,18 +11815,20 @@ async function core({ pkgDir, vfs, level, strict, _packedFiles }) {
|
|
|
11769
11815
|
await readFile(vfs.pathJoin(pkgDir, fieldValue[key]), currentPath.concat(key), [".js", "/index.js"]);
|
|
11770
11816
|
});
|
|
11771
11817
|
}
|
|
11772
|
-
if (hasExports)
|
|
11773
|
-
|
|
11774
|
-
|
|
11775
|
-
|
|
11776
|
-
|
|
11777
|
-
|
|
11778
|
-
|
|
11779
|
-
|
|
11780
|
-
|
|
11781
|
-
|
|
11782
|
-
|
|
11783
|
-
|
|
11818
|
+
if (hasExports) {
|
|
11819
|
+
if (typeof fieldValue === "string") messages.push({
|
|
11820
|
+
code: "USE_EXPORTS_BROWSER",
|
|
11821
|
+
args: {},
|
|
11822
|
+
path: currentPath,
|
|
11823
|
+
type: "suggestion"
|
|
11824
|
+
});
|
|
11825
|
+
else messages.push({
|
|
11826
|
+
code: "USE_EXPORTS_OR_IMPORTS_BROWSER",
|
|
11827
|
+
args: {},
|
|
11828
|
+
path: currentPath,
|
|
11829
|
+
type: "suggestion"
|
|
11830
|
+
});
|
|
11831
|
+
}
|
|
11784
11832
|
}
|
|
11785
11833
|
/**
|
|
11786
11834
|
* @param {string} exportsValue
|
|
@@ -12104,6 +12152,7 @@ async function core({ pkgDir, vfs, level, strict, _packedFiles }) {
|
|
|
12104
12152
|
await crawlNestedPackageJson(itemPath);
|
|
12105
12153
|
continue;
|
|
12106
12154
|
}
|
|
12155
|
+
if (rootPkg.files == null && commonInternalTestFileRegex.test(item) && (!_packedFiles || _packedFiles.includes(itemPath))) internalTestFilePaths.push("/" + vfs.pathRelative(pkgDir, itemPath));
|
|
12107
12156
|
if (item !== "package.json" || itemPath === rootPkgPath) continue;
|
|
12108
12157
|
if (_packedFiles && !_packedFiles.includes(itemPath)) continue;
|
|
12109
12158
|
let nestedPkg;
|
|
@@ -12177,7 +12226,7 @@ var init_core = __esmMin((() => {
|
|
|
12177
12226
|
init_utils$1();
|
|
12178
12227
|
}));
|
|
12179
12228
|
//#endregion
|
|
12180
|
-
//#region ../../node_modules/.pnpm/publint@0.3.
|
|
12229
|
+
//#region ../../node_modules/.pnpm/publint@0.3.23/node_modules/publint/src/shared/vfs-tarball.js
|
|
12181
12230
|
/**
|
|
12182
12231
|
* @param {import("../index.d.ts").PackFile[]} files
|
|
12183
12232
|
* @return {import("./core.js").Vfs}
|
|
@@ -12395,7 +12444,7 @@ var init_detect = __esmMin((() => {
|
|
|
12395
12444
|
init_constants();
|
|
12396
12445
|
}));
|
|
12397
12446
|
//#endregion
|
|
12398
|
-
//#region ../../node_modules/.pnpm/publint@0.3.
|
|
12447
|
+
//#region ../../node_modules/.pnpm/publint@0.3.23/node_modules/publint/src/index-node.js
|
|
12399
12448
|
var index_node_exports = /* @__PURE__ */ __exportAll({ publint: () => publint });
|
|
12400
12449
|
/**
|
|
12401
12450
|
* @typedef {T extends string ? T : never} ExtractStringLiteral
|
|
@@ -12413,16 +12462,17 @@ async function publint(options) {
|
|
|
12413
12462
|
let resolvedPkgDir;
|
|
12414
12463
|
/** @type {string[] | undefined} */
|
|
12415
12464
|
let packedFiles;
|
|
12416
|
-
if (typeof pack === "object")
|
|
12417
|
-
if (
|
|
12418
|
-
|
|
12419
|
-
|
|
12420
|
-
|
|
12465
|
+
if (typeof pack === "object") {
|
|
12466
|
+
if ("tarball" in pack) {
|
|
12467
|
+
if (log) console.log("Unpacking tarball...");
|
|
12468
|
+
const result = await unpack(pack.tarball);
|
|
12469
|
+
vfs = createTarballVfs(result.files);
|
|
12470
|
+
resolvedPkgDir = options?.pkgDir ?? result.rootDir;
|
|
12471
|
+
} else {
|
|
12472
|
+
vfs = createTarballVfs(pack.files);
|
|
12473
|
+
resolvedPkgDir = options?.pkgDir ?? process.cwd();
|
|
12474
|
+
}
|
|
12421
12475
|
} else {
|
|
12422
|
-
vfs = createTarballVfs(pack.files);
|
|
12423
|
-
resolvedPkgDir = options?.pkgDir ?? process.cwd();
|
|
12424
|
-
}
|
|
12425
|
-
else {
|
|
12426
12476
|
if (pack !== false) {
|
|
12427
12477
|
const pkgDir = options?.pkgDir ?? process.cwd();
|
|
12428
12478
|
const packageManager = await detectPackageManager(pkgDir, pack);
|
|
@@ -12546,7 +12596,7 @@ var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
12546
12596
|
module.exports.createColors = createColors;
|
|
12547
12597
|
}));
|
|
12548
12598
|
//#endregion
|
|
12549
|
-
//#region ../../node_modules/.pnpm/publint@0.3.
|
|
12599
|
+
//#region ../../node_modules/.pnpm/publint@0.3.23/node_modules/publint/src/shared/message.js
|
|
12550
12600
|
/** @type {import('../utils.d.ts').formatMessage} */
|
|
12551
12601
|
function formatMessage(m, pkg, opts = {}) {
|
|
12552
12602
|
const h = getHighlighter(opts.color);
|
|
@@ -12623,7 +12673,12 @@ function formatMessage(m, pkg, opts = {}) {
|
|
|
12623
12673
|
}
|
|
12624
12674
|
case "USE_EXPORTS_BROWSER": return `${h.bold("pkg.browser")} with a string value can be refactored to use ${h.bold("pkg.exports")} and the ${h.bold("\"browser\"")} condition to declare browser-specific exports. e.g. ${h.bold("pkg.exports[\".\"].browser")}: "${h.bold(pv(m.path))}". (This may be a breaking change)`;
|
|
12625
12675
|
case "USE_EXPORTS_OR_IMPORTS_BROWSER": return `${h.bold("pkg.browser")} with an object value can be refactored to use ${h.bold("pkg.exports")}/${h.bold("pkg.imports")} and the ${h.bold("\"browser\"")} condition to declare browser-specific exports. (This may be a breaking change)`;
|
|
12626
|
-
case "USE_FILES":
|
|
12676
|
+
case "USE_FILES": {
|
|
12677
|
+
const paths = m.args.internalFilePaths;
|
|
12678
|
+
const shown = paths.slice(0, 5).map((p) => h.bold(p)).join(", ");
|
|
12679
|
+
const rest = paths.length > 5 ? ` and ${paths.length - 5} more` : "";
|
|
12680
|
+
return `The package ${h.bold("publishes internal tests or config files")} (${shown}${rest}). You can use ${h.bold("pkg.files")} to only publish certain files and save user bandwidth.`;
|
|
12681
|
+
}
|
|
12627
12682
|
case "USE_SIDE_EFFECTS": return `The package appears to be consumed by bundlers but does not specify ${h.bold("\"sideEffects\"")}. Consider adding ${h.bold("\"sideEffects\"")}: ${h.bold("false")} so bundlers can optimize tree-shaking if your package has no side effects.`;
|
|
12628
12683
|
case "USE_TYPE": return `The package does not specify the ${h.bold("\"type\"")} field. Node.js may attempt to detect the package type causing a small performance hit. Consider adding ${h.bold("\"type\"")}: "${h.bold("commonjs")}".`;
|
|
12629
12684
|
case "USE_ENGINES_NODE": return `The package does not specify the ${h.bold("\"engines.node\"")} field. Consumers may install it on an unsupported Node.js version. Consider adding the field with your actual minimum supported Node.js version. (This may be a breaking change)`;
|
|
@@ -12710,7 +12765,7 @@ var init_message = __esmMin((() => {
|
|
|
12710
12765
|
EMPTY_MSG = "<empty>";
|
|
12711
12766
|
}));
|
|
12712
12767
|
//#endregion
|
|
12713
|
-
//#region ../../node_modules/.pnpm/publint@0.3.
|
|
12768
|
+
//#region ../../node_modules/.pnpm/publint@0.3.23/node_modules/publint/src/utils.js
|
|
12714
12769
|
var utils_exports = /* @__PURE__ */ __exportAll({
|
|
12715
12770
|
formatMessage: () => formatMessage,
|
|
12716
12771
|
formatMessagePath: () => formatMessagePath,
|