@ariestools/toolchain 8.7.16 → 8.7.17
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/dist/actions/clean.d.ts.map +1 -1
- package/dist/actions/cleanRuleCatalog.d.ts +11 -0
- package/dist/actions/cleanRuleCatalog.d.ts.map +1 -0
- package/dist/actions/package/clean-outputs.d.ts +19 -1
- package/dist/actions/package/clean-outputs.d.ts.map +1 -1
- package/dist/actions/package/clean-typescript.d.ts +1 -0
- package/dist/actions/package/clean-typescript.d.ts.map +1 -1
- package/dist/actions/package/clean.d.ts +1 -1
- package/dist/actions/package/clean.d.ts.map +1 -1
- package/dist/actions/package/cleanGitignore.d.ts +25 -0
- package/dist/actions/package/cleanGitignore.d.ts.map +1 -0
- package/dist/actions/package/cleanPatterns.d.ts +18 -0
- package/dist/actions/package/cleanPatterns.d.ts.map +1 -0
- package/dist/actions/package/cleanPlan.d.ts +48 -0
- package/dist/actions/package/cleanPlan.d.ts.map +1 -0
- package/dist/actions/package/cleanRules.d.ts +44 -0
- package/dist/actions/package/cleanRules.d.ts.map +1 -0
- package/dist/actions/package/compile/CleanConfig.d.ts +61 -0
- package/dist/actions/package/compile/CleanConfig.d.ts.map +1 -0
- package/dist/actions/package/compile/XyConfig.d.ts +11 -37
- package/dist/actions/package/compile/XyConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/index.d.ts +1 -0
- package/dist/actions/package/compile/index.d.ts.map +1 -1
- package/dist/actions/package/index.d.ts +4 -0
- package/dist/actions/package/index.d.ts.map +1 -1
- package/dist/actions/ruleCatalog.d.ts +3 -22
- package/dist/actions/ruleCatalog.d.ts.map +1 -1
- package/dist/actions/ruleCatalogRender.d.ts +25 -0
- package/dist/actions/ruleCatalogRender.d.ts.map +1 -0
- package/dist/bin/package/build.mjs +11 -5
- package/dist/bin/package/build.mjs.map +1 -1
- package/dist/bin/package/clean.mjs +7565 -47
- package/dist/bin/package/clean.mjs.map +1 -1
- package/dist/bin/package/compile.mjs +3 -3
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/publint.mjs +8 -2
- package/dist/bin/package/publint.mjs.map +1 -1
- package/dist/bin/package/recompile.mjs +615 -18
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/bin/package/sync-layout.mjs.map +1 -1
- package/dist/bin/xy.mjs +622 -194
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/lib/ruleCommandRegistry.d.ts +6 -0
- package/dist/lib/ruleCommandRegistry.d.ts.map +1 -1
- package/package.json +4 -5
- package/dist/actions/claude-check.d.ts +0 -2
- package/dist/actions/claude-check.d.ts.map +0 -1
- package/dist/actions/claude-clean.d.ts +0 -2
- package/dist/actions/claude-clean.d.ts.map +0 -1
- package/dist/actions/claude-commands.d.ts +0 -2
- package/dist/actions/claude-commands.d.ts.map +0 -1
- package/dist/actions/claude-rules.d.ts +0 -4
- package/dist/actions/claude-rules.d.ts.map +0 -1
- package/dist/actions/claude-settings.d.ts +0 -5
- package/dist/actions/claude-settings.d.ts.map +0 -1
- package/dist/actions/claude-skills.d.ts +0 -2
- package/dist/actions/claude-skills.d.ts.map +0 -1
- package/dist/actions/deplint/getInternalSurfaceVouchedPeers.d.ts +0 -13
- package/dist/actions/deplint/getInternalSurfaceVouchedPeers.d.ts.map +0 -1
- package/dist/actions/package/compile/copyTypeFiles.d.ts +0 -2
- package/dist/actions/package/compile/copyTypeFiles.d.ts.map +0 -1
- package/dist/actions/skills/remove.d.ts +0 -9
- package/dist/actions/skills/remove.d.ts.map +0 -1
- package/dist/lib/claudeMdTemplate.d.ts +0 -12
- package/dist/lib/claudeMdTemplate.d.ts.map +0 -1
- package/dist/lib/parsedPackageJSON.d.ts +0 -2
- package/dist/lib/parsedPackageJSON.d.ts.map +0 -1
- package/dist/lib/runInstall.d.ts +0 -2
- package/dist/lib/runInstall.d.ts.map +0 -1
- package/dist/lib/yarn/yarnInitCwd.d.ts +0 -2
- package/dist/lib/yarn/yarnInitCwd.d.ts.map +0 -1
- package/dist/node/actions/analyze.d.ts +0 -2
- package/dist/node/actions/analyze.d.ts.map +0 -1
- package/dist/node/actions/api-exposure/analyzer/analyzePackage.d.ts +0 -28
- package/dist/node/actions/api-exposure/analyzer/analyzePackage.d.ts.map +0 -1
- package/dist/node/actions/api-exposure/analyzer/couplingWalk.d.ts +0 -11
- package/dist/node/actions/api-exposure/analyzer/couplingWalk.d.ts.map +0 -1
- package/dist/node/actions/api-exposure/analyzer/depSignals.d.ts +0 -19
- package/dist/node/actions/api-exposure/analyzer/depSignals.d.ts.map +0 -1
- package/dist/node/actions/api-exposure/analyzer/entryPoints.d.ts +0 -7
- package/dist/node/actions/api-exposure/analyzer/entryPoints.d.ts.map +0 -1
- package/dist/node/actions/api-exposure/analyzer/exposureWalk.d.ts +0 -21
- package/dist/node/actions/api-exposure/analyzer/exposureWalk.d.ts.map +0 -1
- package/dist/node/actions/api-exposure/analyzer/program.d.ts +0 -21
- package/dist/node/actions/api-exposure/analyzer/program.d.ts.map +0 -1
- package/dist/node/actions/api-exposure/apiExposure.d.ts +0 -17
- package/dist/node/actions/api-exposure/apiExposure.d.ts.map +0 -1
- package/dist/node/actions/api-exposure/config.d.ts +0 -21
- package/dist/node/actions/api-exposure/config.d.ts.map +0 -1
- package/dist/node/actions/api-exposure/index.d.ts +0 -9
- package/dist/node/actions/api-exposure/index.d.ts.map +0 -1
- package/dist/node/actions/api-exposure/reporters.d.ts +0 -16
- package/dist/node/actions/api-exposure/reporters.d.ts.map +0 -1
- package/dist/node/actions/api-exposure/rules.d.ts +0 -10
- package/dist/node/actions/api-exposure/rules.d.ts.map +0 -1
- package/dist/node/actions/api-exposure/scoring.d.ts +0 -28
- package/dist/node/actions/api-exposure/scoring.d.ts.map +0 -1
- package/dist/node/actions/api-exposure/types.d.ts +0 -86
- package/dist/node/actions/api-exposure/types.d.ts.map +0 -1
- package/dist/node/actions/barrel/analyzeBarrel.d.ts +0 -22
- package/dist/node/actions/barrel/analyzeBarrel.d.ts.map +0 -1
- package/dist/node/actions/barrel/checkBarrelImportRestrictions.d.ts +0 -12
- package/dist/node/actions/barrel/checkBarrelImportRestrictions.d.ts.map +0 -1
- package/dist/node/actions/barrel/getReExportSpecs.d.ts +0 -11
- package/dist/node/actions/barrel/getReExportSpecs.d.ts.map +0 -1
- package/dist/node/actions/barrel/index.d.ts +0 -6
- package/dist/node/actions/barrel/index.d.ts.map +0 -1
- package/dist/node/actions/barrel/resolveBarrel.d.ts +0 -9
- package/dist/node/actions/barrel/resolveBarrel.d.ts.map +0 -1
- package/dist/node/actions/barrel/restrictionHelpers.d.ts +0 -30
- package/dist/node/actions/barrel/restrictionHelpers.d.ts.map +0 -1
- package/dist/node/actions/build.d.ts +0 -9
- package/dist/node/actions/build.d.ts.map +0 -1
- package/dist/node/actions/clean-eslint.d.ts +0 -3
- package/dist/node/actions/clean-eslint.d.ts.map +0 -1
- package/dist/node/actions/clean.d.ts +0 -14
- package/dist/node/actions/clean.d.ts.map +0 -1
- package/dist/node/actions/compile.d.ts +0 -45
- package/dist/node/actions/compile.d.ts.map +0 -1
- package/dist/node/actions/copy-assets.d.ts +0 -6
- package/dist/node/actions/copy-assets.d.ts.map +0 -1
- package/dist/node/actions/dead/analyzePackage.d.ts +0 -43
- package/dist/node/actions/dead/analyzePackage.d.ts.map +0 -1
- package/dist/node/actions/dead/classifyPackageVisibility.d.ts +0 -4
- package/dist/node/actions/dead/classifyPackageVisibility.d.ts.map +0 -1
- package/dist/node/actions/dead/collectExternalUsage.d.ts +0 -38
- package/dist/node/actions/dead/collectExternalUsage.d.ts.map +0 -1
- package/dist/node/actions/dead/collectSymbols.d.ts +0 -40
- package/dist/node/actions/dead/collectSymbols.d.ts.map +0 -1
- package/dist/node/actions/dead/dead.d.ts +0 -4
- package/dist/node/actions/dead/dead.d.ts.map +0 -1
- package/dist/node/actions/dead/deprecation.d.ts +0 -3
- package/dist/node/actions/dead/deprecation.d.ts.map +0 -1
- package/dist/node/actions/dead/detectActiveCodeWorkspace.d.ts +0 -7
- package/dist/node/actions/dead/detectActiveCodeWorkspace.d.ts.map +0 -1
- package/dist/node/actions/dead/evaluateRules.d.ts +0 -8
- package/dist/node/actions/dead/evaluateRules.d.ts.map +0 -1
- package/dist/node/actions/dead/findWorkspaceFile.d.ts +0 -13
- package/dist/node/actions/dead/findWorkspaceFile.d.ts.map +0 -1
- package/dist/node/actions/dead/fixDeadCode.d.ts +0 -12
- package/dist/node/actions/dead/fixDeadCode.d.ts.map +0 -1
- package/dist/node/actions/dead/index.d.ts +0 -10
- package/dist/node/actions/dead/index.d.ts.map +0 -1
- package/dist/node/actions/dead/parseCodeWorkspace.d.ts +0 -7
- package/dist/node/actions/dead/parseCodeWorkspace.d.ts.map +0 -1
- package/dist/node/actions/dead/propagateExternalUsage.d.ts +0 -4
- package/dist/node/actions/dead/propagateExternalUsage.d.ts.map +0 -1
- package/dist/node/actions/dead/pruneDeadFiles.d.ts +0 -7
- package/dist/node/actions/dead/pruneDeadFiles.d.ts.map +0 -1
- package/dist/node/actions/dead/reporters.d.ts +0 -6
- package/dist/node/actions/dead/reporters.d.ts.map +0 -1
- package/dist/node/actions/dead/ruleConfig.d.ts +0 -5
- package/dist/node/actions/dead/ruleConfig.d.ts.map +0 -1
- package/dist/node/actions/dead/ruleNames.d.ts +0 -4
- package/dist/node/actions/dead/ruleNames.d.ts.map +0 -1
- package/dist/node/actions/dead/rules.d.ts +0 -7
- package/dist/node/actions/dead/rules.d.ts.map +0 -1
- package/dist/node/actions/dead/runDeadAnalysis.d.ts +0 -25
- package/dist/node/actions/dead/runDeadAnalysis.d.ts.map +0 -1
- package/dist/node/actions/dead/runtimeEntries.d.ts +0 -23
- package/dist/node/actions/dead/runtimeEntries.d.ts.map +0 -1
- package/dist/node/actions/dead/sourceEdits.d.ts +0 -7
- package/dist/node/actions/dead/sourceEdits.d.ts.map +0 -1
- package/dist/node/actions/dead/storybookConventions.d.ts +0 -6
- package/dist/node/actions/dead/storybookConventions.d.ts.map +0 -1
- package/dist/node/actions/dead/types.d.ts +0 -68
- package/dist/node/actions/dead/types.d.ts.map +0 -1
- package/dist/node/actions/deplint/checkPackage/checkPackage.d.ts +0 -17
- package/dist/node/actions/deplint/checkPackage/checkPackage.d.ts.map +0 -1
- package/dist/node/actions/deplint/checkPackage/checkPackageTypes.d.ts +0 -19
- package/dist/node/actions/deplint/checkPackage/checkPackageTypes.d.ts.map +0 -1
- package/dist/node/actions/deplint/checkPackage/getMismatchedPeerDevVersions.d.ts +0 -11
- package/dist/node/actions/deplint/checkPackage/getMismatchedPeerDevVersions.d.ts.map +0 -1
- package/dist/node/actions/deplint/checkPackage/getUnlistedDependencies.d.ts +0 -21
- package/dist/node/actions/deplint/checkPackage/getUnlistedDependencies.d.ts.map +0 -1
- package/dist/node/actions/deplint/checkPackage/getUnlistedDevDependencies.d.ts +0 -6
- package/dist/node/actions/deplint/checkPackage/getUnlistedDevDependencies.d.ts.map +0 -1
- package/dist/node/actions/deplint/checkPackage/getUnnecessaryPeerDependencies.d.ts +0 -24
- package/dist/node/actions/deplint/checkPackage/getUnnecessaryPeerDependencies.d.ts.map +0 -1
- package/dist/node/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts +0 -74
- package/dist/node/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts.map +0 -1
- package/dist/node/actions/deplint/checkPackage/getUnusedDependencies.d.ts +0 -12
- package/dist/node/actions/deplint/checkPackage/getUnusedDependencies.d.ts.map +0 -1
- package/dist/node/actions/deplint/checkPackage/getUnusedDevDependencies.d.ts +0 -7
- package/dist/node/actions/deplint/checkPackage/getUnusedDevDependencies.d.ts.map +0 -1
- package/dist/node/actions/deplint/checkPackage/getUnusedPeerDependencies.d.ts +0 -6
- package/dist/node/actions/deplint/checkPackage/getUnusedPeerDependencies.d.ts.map +0 -1
- package/dist/node/actions/deplint/checkPackage/getWorkspaceVersionProblems.d.ts +0 -21
- package/dist/node/actions/deplint/checkPackage/getWorkspaceVersionProblems.d.ts.map +0 -1
- package/dist/node/actions/deplint/checkPackage/index.d.ts +0 -13
- package/dist/node/actions/deplint/checkPackage/index.d.ts.map +0 -1
- package/dist/node/actions/deplint/checkPackage/legacyPeerCheck.d.ts +0 -13
- package/dist/node/actions/deplint/checkPackage/legacyPeerCheck.d.ts.map +0 -1
- package/dist/node/actions/deplint/deplint.d.ts +0 -20
- package/dist/node/actions/deplint/deplint.d.ts.map +0 -1
- package/dist/node/actions/deplint/engine.d.ts +0 -15
- package/dist/node/actions/deplint/engine.d.ts.map +0 -1
- package/dist/node/actions/deplint/fetchPackageManifest.d.ts +0 -25
- package/dist/node/actions/deplint/fetchPackageManifest.d.ts.map +0 -1
- package/dist/node/actions/deplint/findFiles.d.ts +0 -6
- package/dist/node/actions/deplint/findFiles.d.ts.map +0 -1
- package/dist/node/actions/deplint/findFilesByGlob.d.ts +0 -2
- package/dist/node/actions/deplint/findFilesByGlob.d.ts.map +0 -1
- package/dist/node/actions/deplint/fixer.d.ts +0 -3
- package/dist/node/actions/deplint/fixer.d.ts.map +0 -1
- package/dist/node/actions/deplint/getBasePackageName.d.ts +0 -2
- package/dist/node/actions/deplint/getBasePackageName.d.ts.map +0 -1
- package/dist/node/actions/deplint/getCliReferencedPackagesFromFiles.d.ts +0 -12
- package/dist/node/actions/deplint/getCliReferencedPackagesFromFiles.d.ts.map +0 -1
- package/dist/node/actions/deplint/getDependenciesFromPackageJson.d.ts +0 -9
- package/dist/node/actions/deplint/getDependenciesFromPackageJson.d.ts.map +0 -1
- package/dist/node/actions/deplint/getExtendsFromTsconfigs.d.ts +0 -10
- package/dist/node/actions/deplint/getExtendsFromTsconfigs.d.ts.map +0 -1
- package/dist/node/actions/deplint/getExternalImportsFromFiles.d.ts +0 -12
- package/dist/node/actions/deplint/getExternalImportsFromFiles.d.ts.map +0 -1
- package/dist/node/actions/deplint/getImportsFromFile.d.ts +0 -4
- package/dist/node/actions/deplint/getImportsFromFile.d.ts.map +0 -1
- package/dist/node/actions/deplint/getRequiredPeerDependencies.d.ts +0 -10
- package/dist/node/actions/deplint/getRequiredPeerDependencies.d.ts.map +0 -1
- package/dist/node/actions/deplint/getScriptReferencedPackages.d.ts +0 -8
- package/dist/node/actions/deplint/getScriptReferencedPackages.d.ts.map +0 -1
- package/dist/node/actions/deplint/getStorybookConfigImports.d.ts +0 -3
- package/dist/node/actions/deplint/getStorybookConfigImports.d.ts.map +0 -1
- package/dist/node/actions/deplint/implicitDevDependencies.d.ts +0 -15
- package/dist/node/actions/deplint/implicitDevDependencies.d.ts.map +0 -1
- package/dist/node/actions/deplint/index.d.ts +0 -11
- package/dist/node/actions/deplint/index.d.ts.map +0 -1
- package/dist/node/actions/deplint/isTerminalPackage.d.ts +0 -25
- package/dist/node/actions/deplint/isTerminalPackage.d.ts.map +0 -1
- package/dist/node/actions/deplint/loader.d.ts +0 -4
- package/dist/node/actions/deplint/loader.d.ts.map +0 -1
- package/dist/node/actions/deplint/packageEditor.d.ts +0 -11
- package/dist/node/actions/deplint/packageEditor.d.ts.map +0 -1
- package/dist/node/actions/deplint/packageJsonEditor.d.ts +0 -97
- package/dist/node/actions/deplint/packageJsonEditor.d.ts.map +0 -1
- package/dist/node/actions/deplint/peerRangeOptions.d.ts +0 -10
- package/dist/node/actions/deplint/peerRangeOptions.d.ts.map +0 -1
- package/dist/node/actions/deplint/reporters.d.ts +0 -8
- package/dist/node/actions/deplint/reporters.d.ts.map +0 -1
- package/dist/node/actions/deplint/resolvePeerBumpFixes.d.ts +0 -24
- package/dist/node/actions/deplint/resolvePeerBumpFixes.d.ts.map +0 -1
- package/dist/node/actions/deplint/ruleConfig.d.ts +0 -5
- package/dist/node/actions/deplint/ruleConfig.d.ts.map +0 -1
- package/dist/node/actions/deplint/rules.d.ts +0 -4
- package/dist/node/actions/deplint/rules.d.ts.map +0 -1
- package/dist/node/actions/deplint/rulesDiagnostic.d.ts +0 -4
- package/dist/node/actions/deplint/rulesDiagnostic.d.ts.map +0 -1
- package/dist/node/actions/deplint/rulesMisplaced.d.ts +0 -4
- package/dist/node/actions/deplint/rulesMisplaced.d.ts.map +0 -1
- package/dist/node/actions/deplint/snapshot.d.ts +0 -22
- package/dist/node/actions/deplint/snapshot.d.ts.map +0 -1
- package/dist/node/actions/deplint/tsScriptsAliases.d.ts +0 -11
- package/dist/node/actions/deplint/tsScriptsAliases.d.ts.map +0 -1
- package/dist/node/actions/deplint/types.d.ts +0 -295
- package/dist/node/actions/deplint/types.d.ts.map +0 -1
- package/dist/node/actions/deplint/versionMismatchFixes.d.ts +0 -4
- package/dist/node/actions/deplint/versionMismatchFixes.d.ts.map +0 -1
- package/dist/node/actions/deploy.d.ts +0 -3
- package/dist/node/actions/deploy.d.ts.map +0 -1
- package/dist/node/actions/eject.d.ts +0 -2
- package/dist/node/actions/eject.d.ts.map +0 -1
- package/dist/node/actions/fix.d.ts +0 -7
- package/dist/node/actions/fix.d.ts.map +0 -1
- package/dist/node/actions/gitignore.d.ts +0 -4
- package/dist/node/actions/gitignore.d.ts.map +0 -1
- package/dist/node/actions/gitlint-fix.d.ts +0 -2
- package/dist/node/actions/gitlint-fix.d.ts.map +0 -1
- package/dist/node/actions/gitlint.d.ts +0 -2
- package/dist/node/actions/gitlint.d.ts.map +0 -1
- package/dist/node/actions/incremental.d.ts +0 -46
- package/dist/node/actions/incremental.d.ts.map +0 -1
- package/dist/node/actions/index.d.ts +0 -54
- package/dist/node/actions/index.d.ts.map +0 -1
- package/dist/node/actions/install.d.ts +0 -2
- package/dist/node/actions/install.d.ts.map +0 -1
- package/dist/node/actions/license.d.ts +0 -2
- package/dist/node/actions/license.d.ts.map +0 -1
- package/dist/node/actions/lint-config.d.ts +0 -16
- package/dist/node/actions/lint-config.d.ts.map +0 -1
- package/dist/node/actions/lint-init.d.ts +0 -16
- package/dist/node/actions/lint-init.d.ts.map +0 -1
- package/dist/node/actions/lint.d.ts +0 -36
- package/dist/node/actions/lint.d.ts.map +0 -1
- package/dist/node/actions/lintNext.d.ts +0 -14
- package/dist/node/actions/lintNext.d.ts.map +0 -1
- package/dist/node/actions/lintNextWorker.d.ts +0 -21
- package/dist/node/actions/lintNextWorker.d.ts.map +0 -1
- package/dist/node/actions/lintTierAnalysis.d.ts +0 -59
- package/dist/node/actions/lintTierAnalysis.d.ts.map +0 -1
- package/dist/node/actions/lintlint.d.ts +0 -13
- package/dist/node/actions/lintlint.d.ts.map +0 -1
- package/dist/node/actions/node-lint.d.ts +0 -19
- package/dist/node/actions/node-lint.d.ts.map +0 -1
- package/dist/node/actions/npmignore-gen.d.ts +0 -2
- package/dist/node/actions/npmignore-gen.d.ts.map +0 -1
- package/dist/node/actions/orphan.d.ts +0 -6
- package/dist/node/actions/orphan.d.ts.map +0 -1
- package/dist/node/actions/package/clean-outputs.d.ts +0 -6
- package/dist/node/actions/package/clean-outputs.d.ts.map +0 -1
- package/dist/node/actions/package/clean-typescript.d.ts +0 -3
- package/dist/node/actions/package/clean-typescript.d.ts.map +0 -1
- package/dist/node/actions/package/clean.d.ts +0 -3
- package/dist/node/actions/package/clean.d.ts.map +0 -1
- package/dist/node/actions/package/compile/ApiExposureConfig.d.ts +0 -58
- package/dist/node/actions/package/compile/ApiExposureConfig.d.ts.map +0 -1
- package/dist/node/actions/package/compile/MonolithConfig.d.ts +0 -85
- package/dist/node/actions/package/compile/MonolithConfig.d.ts.map +0 -1
- package/dist/node/actions/package/compile/XyConfig.d.ts +0 -462
- package/dist/node/actions/package/compile/XyConfig.d.ts.map +0 -1
- package/dist/node/actions/package/compile/buildEntries.d.ts +0 -3
- package/dist/node/actions/package/compile/buildEntries.d.ts.map +0 -1
- package/dist/node/actions/package/compile/compile.d.ts +0 -7
- package/dist/node/actions/package/compile/compile.d.ts.map +0 -1
- package/dist/node/actions/package/compile/createProgramFromConfig.d.ts +0 -25
- package/dist/node/actions/package/compile/createProgramFromConfig.d.ts.map +0 -1
- package/dist/node/actions/package/compile/createTypescriptConfig.d.ts +0 -29
- package/dist/node/actions/package/compile/createTypescriptConfig.d.ts.map +0 -1
- package/dist/node/actions/package/compile/deepMerge.d.ts +0 -4
- package/dist/node/actions/package/compile/deepMerge.d.ts.map +0 -1
- package/dist/node/actions/package/compile/entryOutputName.d.ts +0 -5
- package/dist/node/actions/package/compile/entryOutputName.d.ts.map +0 -1
- package/dist/node/actions/package/compile/findWorkspaceRoot.d.ts +0 -5
- package/dist/node/actions/package/compile/findWorkspaceRoot.d.ts.map +0 -1
- package/dist/node/actions/package/compile/getCompilerOptions.d.ts +0 -3
- package/dist/node/actions/package/compile/getCompilerOptions.d.ts.map +0 -1
- package/dist/node/actions/package/compile/index.d.ts +0 -16
- package/dist/node/actions/package/compile/index.d.ts.map +0 -1
- package/dist/node/actions/package/compile/inputs.d.ts +0 -2
- package/dist/node/actions/package/compile/inputs.d.ts.map +0 -1
- package/dist/node/actions/package/compile/monolithCompileDeclarations.d.ts +0 -14
- package/dist/node/actions/package/compile/monolithCompileDeclarations.d.ts.map +0 -1
- package/dist/node/actions/package/compile/monolithCompileEntries.d.ts +0 -20
- package/dist/node/actions/package/compile/monolithCompileEntries.d.ts.map +0 -1
- package/dist/node/actions/package/compile/monolithCompileLayout.d.ts +0 -42
- package/dist/node/actions/package/compile/monolithCompileLayout.d.ts.map +0 -1
- package/dist/node/actions/package/compile/packageCompileEsbuild.d.ts +0 -18
- package/dist/node/actions/package/compile/packageCompileEsbuild.d.ts.map +0 -1
- package/dist/node/actions/package/compile/packageCompileMonolith.d.ts +0 -10
- package/dist/node/actions/package/compile/packageCompileMonolith.d.ts.map +0 -1
- package/dist/node/actions/package/compile/packageCompileTsc.d.ts +0 -3
- package/dist/node/actions/package/compile/packageCompileTsc.d.ts.map +0 -1
- package/dist/node/actions/package/compile/packageCompileTsup.d.ts +0 -6
- package/dist/node/actions/package/compile/packageCompileTsup.d.ts.map +0 -1
- package/dist/node/actions/package/compile/packageCompileVendor.d.ts +0 -4
- package/dist/node/actions/package/compile/packageCompileVendor.d.ts.map +0 -1
- package/dist/node/actions/package/compile/resolveCompileBundleOptions.d.ts +0 -13
- package/dist/node/actions/package/compile/resolveCompileBundleOptions.d.ts.map +0 -1
- package/dist/node/actions/package/compile/resolveCompilePlatforms.d.ts +0 -23
- package/dist/node/actions/package/compile/resolveCompilePlatforms.d.ts.map +0 -1
- package/dist/node/actions/package/compile/resolvePlatformTypes.d.ts +0 -5
- package/dist/node/actions/package/compile/resolvePlatformTypes.d.ts.map +0 -1
- package/dist/node/actions/package/compile/runTsc.d.ts +0 -2
- package/dist/node/actions/package/compile/runTsc.d.ts.map +0 -1
- package/dist/node/actions/package/compile/validateFullPackage.d.ts +0 -2
- package/dist/node/actions/package/compile/validateFullPackage.d.ts.map +0 -1
- package/dist/node/actions/package/compile/vendorCompile.d.ts +0 -6
- package/dist/node/actions/package/compile/vendorCompile.d.ts.map +0 -1
- package/dist/node/actions/package/compile/vendorCompileEmit.d.ts +0 -8
- package/dist/node/actions/package/compile/vendorCompileEmit.d.ts.map +0 -1
- package/dist/node/actions/package/compile/vendorCompileInternals.d.ts +0 -31
- package/dist/node/actions/package/compile/vendorCompileInternals.d.ts.map +0 -1
- package/dist/node/actions/package/compile/vendorCompileRewrite.d.ts +0 -3
- package/dist/node/actions/package/compile/vendorCompileRewrite.d.ts.map +0 -1
- package/dist/node/actions/package/compile/vendorCompileTypes.d.ts +0 -31
- package/dist/node/actions/package/compile/vendorCompileTypes.d.ts.map +0 -1
- package/dist/node/actions/package/compileTargetsPublint.d.ts +0 -13
- package/dist/node/actions/package/compileTargetsPublint.d.ts.map +0 -1
- package/dist/node/actions/package/copy-assets.d.ts +0 -5
- package/dist/node/actions/package/copy-assets.d.ts.map +0 -1
- package/dist/node/actions/package/expectedCompileOutputs.d.ts +0 -11
- package/dist/node/actions/package/expectedCompileOutputs.d.ts.map +0 -1
- package/dist/node/actions/package/exportConditionPublint.d.ts +0 -9
- package/dist/node/actions/package/exportConditionPublint.d.ts.map +0 -1
- package/dist/node/actions/package/exportMapPublint.d.ts +0 -7
- package/dist/node/actions/package/exportMapPublint.d.ts.map +0 -1
- package/dist/node/actions/package/index.d.ts +0 -9
- package/dist/node/actions/package/index.d.ts.map +0 -1
- package/dist/node/actions/package/lint.d.ts +0 -2
- package/dist/node/actions/package/lint.d.ts.map +0 -1
- package/dist/node/actions/package/platformPublint.d.ts +0 -7
- package/dist/node/actions/package/platformPublint.d.ts.map +0 -1
- package/dist/node/actions/package/publint.d.ts +0 -16
- package/dist/node/actions/package/publint.d.ts.map +0 -1
- package/dist/node/actions/package/recompile.d.ts +0 -3
- package/dist/node/actions/package/recompile.d.ts.map +0 -1
- package/dist/node/actions/package-lint-deps.d.ts +0 -47
- package/dist/node/actions/package-lint-deps.d.ts.map +0 -1
- package/dist/node/actions/package-lint-engines.d.ts +0 -22
- package/dist/node/actions/package-lint-engines.d.ts.map +0 -1
- package/dist/node/actions/package-lint-pnpm.d.ts +0 -11
- package/dist/node/actions/package-lint-pnpm.d.ts.map +0 -1
- package/dist/node/actions/package-lint-specs.d.ts +0 -9
- package/dist/node/actions/package-lint-specs.d.ts.map +0 -1
- package/dist/node/actions/package-lint.d.ts +0 -7
- package/dist/node/actions/package-lint.d.ts.map +0 -1
- package/dist/node/actions/packman/clean.d.ts +0 -5
- package/dist/node/actions/packman/clean.d.ts.map +0 -1
- package/dist/node/actions/packman/convert.d.ts +0 -10
- package/dist/node/actions/packman/convert.d.ts.map +0 -1
- package/dist/node/actions/packman/convertToBun.d.ts +0 -2
- package/dist/node/actions/packman/convertToBun.d.ts.map +0 -1
- package/dist/node/actions/packman/convertToNpm.d.ts +0 -2
- package/dist/node/actions/packman/convertToNpm.d.ts.map +0 -1
- package/dist/node/actions/packman/convertToPnpm.d.ts +0 -2
- package/dist/node/actions/packman/convertToPnpm.d.ts.map +0 -1
- package/dist/node/actions/packman/convertToYarn.d.ts +0 -2
- package/dist/node/actions/packman/convertToYarn.d.ts.map +0 -1
- package/dist/node/actions/packman/index.d.ts +0 -5
- package/dist/node/actions/packman/index.d.ts.map +0 -1
- package/dist/node/actions/packman/lint.d.ts +0 -6
- package/dist/node/actions/packman/lint.d.ts.map +0 -1
- package/dist/node/actions/packman/rewriteScripts.d.ts +0 -5
- package/dist/node/actions/packman/rewriteScripts.d.ts.map +0 -1
- package/dist/node/actions/packman/rewriteSourceImports.d.ts +0 -2
- package/dist/node/actions/packman/rewriteSourceImports.d.ts.map +0 -1
- package/dist/node/actions/packman/swapTsScriptsDependency.d.ts +0 -2
- package/dist/node/actions/packman/swapTsScriptsDependency.d.ts.map +0 -1
- package/dist/node/actions/publint.d.ts +0 -48
- package/dist/node/actions/publint.d.ts.map +0 -1
- package/dist/node/actions/publish.d.ts +0 -22
- package/dist/node/actions/publish.d.ts.map +0 -1
- package/dist/node/actions/reactTest.d.ts +0 -2
- package/dist/node/actions/reactTest.d.ts.map +0 -1
- package/dist/node/actions/rebuild.d.ts +0 -7
- package/dist/node/actions/rebuild.d.ts.map +0 -1
- package/dist/node/actions/recompile.d.ts +0 -16
- package/dist/node/actions/recompile.d.ts.map +0 -1
- package/dist/node/actions/reinstall.d.ts +0 -2
- package/dist/node/actions/reinstall.d.ts.map +0 -1
- package/dist/node/actions/releaseAgeExcludeScopes.d.ts +0 -13
- package/dist/node/actions/releaseAgeExcludeScopes.d.ts.map +0 -1
- package/dist/node/actions/relint.d.ts +0 -24
- package/dist/node/actions/relint.d.ts.map +0 -1
- package/dist/node/actions/repo-init.d.ts +0 -14
- package/dist/node/actions/repo-init.d.ts.map +0 -1
- package/dist/node/actions/republint.d.ts +0 -13
- package/dist/node/actions/republint.d.ts.map +0 -1
- package/dist/node/actions/result.d.ts +0 -44
- package/dist/node/actions/result.d.ts.map +0 -1
- package/dist/node/actions/retest.d.ts +0 -5
- package/dist/node/actions/retest.d.ts.map +0 -1
- package/dist/node/actions/secure.d.ts +0 -7
- package/dist/node/actions/secure.d.ts.map +0 -1
- package/dist/node/actions/sitemap.d.ts +0 -2
- package/dist/node/actions/sitemap.d.ts.map +0 -1
- package/dist/node/actions/skills/defaults.d.ts +0 -6
- package/dist/node/actions/skills/defaults.d.ts.map +0 -1
- package/dist/node/actions/skills/detectProfile.d.ts +0 -10
- package/dist/node/actions/skills/detectProfile.d.ts.map +0 -1
- package/dist/node/actions/skills/index.d.ts +0 -9
- package/dist/node/actions/skills/index.d.ts.map +0 -1
- package/dist/node/actions/skills/installed.d.ts +0 -10
- package/dist/node/actions/skills/installed.d.ts.map +0 -1
- package/dist/node/actions/skills/lint.d.ts +0 -26
- package/dist/node/actions/skills/lint.d.ts.map +0 -1
- package/dist/node/actions/skills/passthrough.d.ts +0 -25
- package/dist/node/actions/skills/passthrough.d.ts.map +0 -1
- package/dist/node/actions/skills/skillRules.d.ts +0 -9
- package/dist/node/actions/skills/skillRules.d.ts.map +0 -1
- package/dist/node/actions/skills/updo.d.ts +0 -4
- package/dist/node/actions/skills/updo.d.ts.map +0 -1
- package/dist/node/actions/skills/versions.d.ts +0 -10
- package/dist/node/actions/skills/versions.d.ts.map +0 -1
- package/dist/node/actions/sonar.d.ts +0 -2
- package/dist/node/actions/sonar.d.ts.map +0 -1
- package/dist/node/actions/start.d.ts +0 -2
- package/dist/node/actions/start.d.ts.map +0 -1
- package/dist/node/actions/statics.d.ts +0 -2
- package/dist/node/actions/statics.d.ts.map +0 -1
- package/dist/node/actions/test.d.ts +0 -5
- package/dist/node/actions/test.d.ts.map +0 -1
- package/dist/node/actions/tsc-validate/index.d.ts +0 -3
- package/dist/node/actions/tsc-validate/index.d.ts.map +0 -1
- package/dist/node/actions/tsc-validate/sharedValidate.d.ts +0 -34
- package/dist/node/actions/tsc-validate/sharedValidate.d.ts.map +0 -1
- package/dist/node/actions/tsc-validate/tscValidate.d.ts +0 -35
- package/dist/node/actions/tsc-validate/tscValidate.d.ts.map +0 -1
- package/dist/node/actions/up.d.ts +0 -2
- package/dist/node/actions/up.d.ts.map +0 -1
- package/dist/node/actions/updo.d.ts +0 -9
- package/dist/node/actions/updo.d.ts.map +0 -1
- package/dist/node/actions/work/id.d.ts +0 -8
- package/dist/node/actions/work/id.d.ts.map +0 -1
- package/dist/node/actions/work/index.d.ts +0 -131
- package/dist/node/actions/work/index.d.ts.map +0 -1
- package/dist/node/actions/work/inline.d.ts +0 -8
- package/dist/node/actions/work/inline.d.ts.map +0 -1
- package/dist/node/actions/work/priority.d.ts +0 -5
- package/dist/node/actions/work/priority.d.ts.map +0 -1
- package/dist/node/actions/work/schema.d.ts +0 -81
- package/dist/node/actions/work/schema.d.ts.map +0 -1
- package/dist/node/actions/work/store.d.ts +0 -23
- package/dist/node/actions/work/store.d.ts.map +0 -1
- package/dist/node/bin/package/build.d.ts +0 -3
- package/dist/node/bin/package/build.d.ts.map +0 -1
- package/dist/node/bin/package/clean-outputs.d.ts +0 -3
- package/dist/node/bin/package/clean-outputs.d.ts.map +0 -1
- package/dist/node/bin/package/clean-typescript.d.ts +0 -3
- package/dist/node/bin/package/clean-typescript.d.ts.map +0 -1
- package/dist/node/bin/package/clean.d.ts +0 -3
- package/dist/node/bin/package/clean.d.ts.map +0 -1
- package/dist/node/bin/package/compile-tsup.d.ts +0 -3
- package/dist/node/bin/package/compile-tsup.d.ts.map +0 -1
- package/dist/node/bin/package/compile.d.ts +0 -3
- package/dist/node/bin/package/compile.d.ts.map +0 -1
- package/dist/node/bin/package/copy-assets-cjs.d.ts +0 -3
- package/dist/node/bin/package/copy-assets-cjs.d.ts.map +0 -1
- package/dist/node/bin/package/copy-assets-esm.d.ts +0 -3
- package/dist/node/bin/package/copy-assets-esm.d.ts.map +0 -1
- package/dist/node/bin/package/fix.d.ts +0 -3
- package/dist/node/bin/package/fix.d.ts.map +0 -1
- package/dist/node/bin/package/lint-verbose.d.ts +0 -3
- package/dist/node/bin/package/lint-verbose.d.ts.map +0 -1
- package/dist/node/bin/package/lint.d.ts +0 -3
- package/dist/node/bin/package/lint.d.ts.map +0 -1
- package/dist/node/bin/package/publint.d.ts +0 -3
- package/dist/node/bin/package/publint.d.ts.map +0 -1
- package/dist/node/bin/package/recompile.d.ts +0 -3
- package/dist/node/bin/package/recompile.d.ts.map +0 -1
- package/dist/node/bin/package/relint.d.ts +0 -3
- package/dist/node/bin/package/relint.d.ts.map +0 -1
- package/dist/node/bin/package/sync-layout.d.ts +0 -3
- package/dist/node/bin/package/sync-layout.d.ts.map +0 -1
- package/dist/node/bin/run-or-exec.d.ts +0 -3
- package/dist/node/bin/run-or-exec.d.ts.map +0 -1
- package/dist/node/bin/xy.d.ts +0 -3
- package/dist/node/bin/xy.d.ts.map +0 -1
- package/dist/node/index.d.ts +0 -6
- package/dist/node/index.d.ts.map +0 -1
- package/dist/node/lib/bundledCliPath.d.ts +0 -4
- package/dist/node/lib/bundledCliPath.d.ts.map +0 -1
- package/dist/node/lib/checkResult.d.ts +0 -2
- package/dist/node/lib/checkResult.d.ts.map +0 -1
- package/dist/node/lib/concurrency.d.ts +0 -5
- package/dist/node/lib/concurrency.d.ts.map +0 -1
- package/dist/node/lib/copyAssetFiles.d.ts +0 -10
- package/dist/node/lib/copyAssetFiles.d.ts.map +0 -1
- package/dist/node/lib/createBuildConfig.d.ts +0 -2
- package/dist/node/lib/createBuildConfig.d.ts.map +0 -1
- package/dist/node/lib/crossSpawn.d.ts +0 -6
- package/dist/node/lib/crossSpawn.d.ts.map +0 -1
- package/dist/node/lib/deepMerge.d.ts +0 -24
- package/dist/node/lib/deepMerge.d.ts.map +0 -1
- package/dist/node/lib/defaultBuildConfig.d.ts +0 -9
- package/dist/node/lib/defaultBuildConfig.d.ts.map +0 -1
- package/dist/node/lib/deleteGlob.d.ts +0 -2
- package/dist/node/lib/deleteGlob.d.ts.map +0 -1
- package/dist/node/lib/dependencies/DuplicateDetector.d.ts +0 -7
- package/dist/node/lib/dependencies/DuplicateDetector.d.ts.map +0 -1
- package/dist/node/lib/dependencies/detectDuplicateDependencies.d.ts +0 -2
- package/dist/node/lib/dependencies/detectDuplicateDependencies.d.ts.map +0 -1
- package/dist/node/lib/dependencies/index.d.ts +0 -4
- package/dist/node/lib/dependencies/index.d.ts.map +0 -1
- package/dist/node/lib/dependencies/workspaceCycles.d.ts +0 -15
- package/dist/node/lib/dependencies/workspaceCycles.d.ts.map +0 -1
- package/dist/node/lib/deprecationMigrate.d.ts +0 -2
- package/dist/node/lib/deprecationMigrate.d.ts.map +0 -1
- package/dist/node/lib/eslintCache.d.ts +0 -4
- package/dist/node/lib/eslintCache.d.ts.map +0 -1
- package/dist/node/lib/file/ReadFileSyncOptions.d.ts +0 -6
- package/dist/node/lib/file/ReadFileSyncOptions.d.ts.map +0 -1
- package/dist/node/lib/file/constants.d.ts +0 -3
- package/dist/node/lib/file/constants.d.ts.map +0 -1
- package/dist/node/lib/file/fileLines.d.ts +0 -6
- package/dist/node/lib/file/fileLines.d.ts.map +0 -1
- package/dist/node/lib/file/index.d.ts +0 -5
- package/dist/node/lib/file/index.d.ts.map +0 -1
- package/dist/node/lib/file/tryReadFileSync.d.ts +0 -4
- package/dist/node/lib/file/tryReadFileSync.d.ts.map +0 -1
- package/dist/node/lib/fillTemplate.d.ts +0 -2
- package/dist/node/lib/fillTemplate.d.ts.map +0 -1
- package/dist/node/lib/generateIgnoreFiles.d.ts +0 -2
- package/dist/node/lib/generateIgnoreFiles.d.ts.map +0 -1
- package/dist/node/lib/gitConfig.d.ts +0 -25
- package/dist/node/lib/gitConfig.d.ts.map +0 -1
- package/dist/node/lib/gitignoreTemplate.d.ts +0 -2
- package/dist/node/lib/gitignoreTemplate.d.ts.map +0 -1
- package/dist/node/lib/index.d.ts +0 -45
- package/dist/node/lib/index.d.ts.map +0 -1
- package/dist/node/lib/initCwd.d.ts +0 -2
- package/dist/node/lib/initCwd.d.ts.map +0 -1
- package/dist/node/lib/jsonFormatters.d.ts +0 -2
- package/dist/node/lib/jsonFormatters.d.ts.map +0 -1
- package/dist/node/lib/latestVersions.d.ts +0 -8
- package/dist/node/lib/latestVersions.d.ts.map +0 -1
- package/dist/node/lib/loadConfig.d.ts +0 -10
- package/dist/node/lib/loadConfig.d.ts.map +0 -1
- package/dist/node/lib/match.d.ts +0 -21
- package/dist/node/lib/match.d.ts.map +0 -1
- package/dist/node/lib/npmLatestVersion.d.ts +0 -3
- package/dist/node/lib/npmLatestVersion.d.ts.map +0 -1
- package/dist/node/lib/packageManagerRuntime.d.ts +0 -25
- package/dist/node/lib/packageManagerRuntime.d.ts.map +0 -1
- package/dist/node/lib/packageName.d.ts +0 -2
- package/dist/node/lib/packageName.d.ts.map +0 -1
- package/dist/node/lib/parsedPackageJson.d.ts +0 -2
- package/dist/node/lib/parsedPackageJson.d.ts.map +0 -1
- package/dist/node/lib/pnpmConfig/index.d.ts +0 -2
- package/dist/node/lib/pnpmConfig/index.d.ts.map +0 -1
- package/dist/node/lib/pnpmConfig/readMinReleaseAge.d.ts +0 -18
- package/dist/node/lib/pnpmConfig/readMinReleaseAge.d.ts.map +0 -1
- package/dist/node/lib/processEx.d.ts +0 -2
- package/dist/node/lib/processEx.d.ts.map +0 -1
- package/dist/node/lib/repoTemplates.d.ts +0 -7
- package/dist/node/lib/repoTemplates.d.ts.map +0 -1
- package/dist/node/lib/reporting/index.d.ts +0 -3
- package/dist/node/lib/reporting/index.d.ts.map +0 -1
- package/dist/node/lib/reporting/runWithEnvelope.d.ts +0 -15
- package/dist/node/lib/reporting/runWithEnvelope.d.ts.map +0 -1
- package/dist/node/lib/reporting/xyReporter.d.ts +0 -27
- package/dist/node/lib/reporting/xyReporter.d.ts.map +0 -1
- package/dist/node/lib/runSteps.d.ts +0 -3
- package/dist/node/lib/runSteps.d.ts.map +0 -1
- package/dist/node/lib/runStepsAsync.d.ts +0 -4
- package/dist/node/lib/runStepsAsync.d.ts.map +0 -1
- package/dist/node/lib/runXy.d.ts +0 -2
- package/dist/node/lib/runXy.d.ts.map +0 -1
- package/dist/node/lib/runXyWithWarning.d.ts +0 -2
- package/dist/node/lib/runXyWithWarning.d.ts.map +0 -1
- package/dist/node/lib/safeExit.d.ts +0 -8
- package/dist/node/lib/safeExit.d.ts.map +0 -1
- package/dist/node/lib/secure/classify.d.ts +0 -8
- package/dist/node/lib/secure/classify.d.ts.map +0 -1
- package/dist/node/lib/secure/collectDeclaredDependencies.d.ts +0 -6
- package/dist/node/lib/secure/collectDeclaredDependencies.d.ts.map +0 -1
- package/dist/node/lib/secure/fetchPackageSecurityMetadata.d.ts +0 -8
- package/dist/node/lib/secure/fetchPackageSecurityMetadata.d.ts.map +0 -1
- package/dist/node/lib/secure/index.d.ts +0 -7
- package/dist/node/lib/secure/index.d.ts.map +0 -1
- package/dist/node/lib/secure/interfaces.d.ts +0 -35
- package/dist/node/lib/secure/interfaces.d.ts.map +0 -1
- package/dist/node/lib/secure/renderSecurityAudit.d.ts +0 -4
- package/dist/node/lib/secure/renderSecurityAudit.d.ts.map +0 -1
- package/dist/node/lib/secure/runSecurityAudit.d.ts +0 -15
- package/dist/node/lib/secure/runSecurityAudit.d.ts.map +0 -1
- package/dist/node/lib/shouldRunInstall.d.ts +0 -2
- package/dist/node/lib/shouldRunInstall.d.ts.map +0 -1
- package/dist/node/lib/string/empty.d.ts +0 -3
- package/dist/node/lib/string/empty.d.ts.map +0 -1
- package/dist/node/lib/string/index.d.ts +0 -4
- package/dist/node/lib/string/index.d.ts.map +0 -1
- package/dist/node/lib/string/localeCompare.d.ts +0 -2
- package/dist/node/lib/string/localeCompare.d.ts.map +0 -1
- package/dist/node/lib/string/union.d.ts +0 -2
- package/dist/node/lib/string/union.d.ts.map +0 -1
- package/dist/node/lib/toolchainVersion.d.ts +0 -3
- package/dist/node/lib/toolchainVersion.d.ts.map +0 -1
- package/dist/node/lib/tryRunLocalScript.d.ts +0 -10
- package/dist/node/lib/tryRunLocalScript.d.ts.map +0 -1
- package/dist/node/lib/updo/applyUpdates.d.ts +0 -4
- package/dist/node/lib/updo/applyUpdates.d.ts.map +0 -1
- package/dist/node/lib/updo/collectWorkspaceDeps.d.ts +0 -4
- package/dist/node/lib/updo/collectWorkspaceDeps.d.ts.map +0 -1
- package/dist/node/lib/updo/fetchRegistryInfo.d.ts +0 -37
- package/dist/node/lib/updo/fetchRegistryInfo.d.ts.map +0 -1
- package/dist/node/lib/updo/index.d.ts +0 -9
- package/dist/node/lib/updo/index.d.ts.map +0 -1
- package/dist/node/lib/updo/interactiveSelect.d.ts +0 -31
- package/dist/node/lib/updo/interactiveSelect.d.ts.map +0 -1
- package/dist/node/lib/updo/interfaces.d.ts +0 -50
- package/dist/node/lib/updo/interfaces.d.ts.map +0 -1
- package/dist/node/lib/updo/renderTable.d.ts +0 -3
- package/dist/node/lib/updo/renderTable.d.ts.map +0 -1
- package/dist/node/lib/updo/resolveVersions.d.ts +0 -19
- package/dist/node/lib/updo/resolveVersions.d.ts.map +0 -1
- package/dist/node/lib/updo/runUpdo.d.ts +0 -27
- package/dist/node/lib/updo/runUpdo.d.ts.map +0 -1
- package/dist/node/lib/withErrnoException.d.ts +0 -2
- package/dist/node/lib/withErrnoException.d.ts.map +0 -1
- package/dist/node/lib/withError.d.ts +0 -2
- package/dist/node/lib/withError.d.ts.map +0 -1
- package/dist/node/lib/yarn/index.d.ts +0 -3
- package/dist/node/lib/yarn/index.d.ts.map +0 -1
- package/dist/node/lib/yarn/isYarnVersionOrGreater.d.ts +0 -2
- package/dist/node/lib/yarn/isYarnVersionOrGreater.d.ts.map +0 -1
- package/dist/node/lib/yarn/workspace/Workspace.d.ts +0 -2
- package/dist/node/lib/yarn/workspace/Workspace.d.ts.map +0 -1
- package/dist/node/lib/yarn/workspace/index.d.ts +0 -3
- package/dist/node/lib/yarn/workspace/index.d.ts.map +0 -1
- package/dist/node/lib/yarn/workspace/yarnWorkspace.d.ts +0 -3
- package/dist/node/lib/yarn/workspace/yarnWorkspace.d.ts.map +0 -1
- package/dist/node/lib/yarn/workspace/yarnWorkspaces.d.ts +0 -3
- package/dist/node/lib/yarn/workspace/yarnWorkspaces.d.ts.map +0 -1
- package/dist/node/loadPackageConfig.d.ts +0 -40
- package/dist/node/loadPackageConfig.d.ts.map +0 -1
- package/dist/node/pm/PackageManager.d.ts +0 -85
- package/dist/node/pm/PackageManager.d.ts.map +0 -1
- package/dist/node/pm/bunPackageManager.d.ts +0 -20
- package/dist/node/pm/bunPackageManager.d.ts.map +0 -1
- package/dist/node/pm/detectPackageManager.d.ts +0 -3
- package/dist/node/pm/detectPackageManager.d.ts.map +0 -1
- package/dist/node/pm/index.d.ts +0 -11
- package/dist/node/pm/index.d.ts.map +0 -1
- package/dist/node/pm/isReactProject.d.ts +0 -3
- package/dist/node/pm/isReactProject.d.ts.map +0 -1
- package/dist/node/pm/npmPackageManager.d.ts +0 -20
- package/dist/node/pm/npmPackageManager.d.ts.map +0 -1
- package/dist/node/pm/pnpmPackageManager.d.ts +0 -20
- package/dist/node/pm/pnpmPackageManager.d.ts.map +0 -1
- package/dist/node/pm/registry.d.ts +0 -5
- package/dist/node/pm/registry.d.ts.map +0 -1
- package/dist/node/pm/resolveWorkspace.d.ts +0 -3
- package/dist/node/pm/resolveWorkspace.d.ts.map +0 -1
- package/dist/node/pm/runtime.d.ts +0 -2
- package/dist/node/pm/runtime.d.ts.map +0 -1
- package/dist/node/pm/workspaces.d.ts +0 -15
- package/dist/node/pm/workspaces.d.ts.map +0 -1
- package/dist/node/pm/yarnPackageManager.d.ts +0 -20
- package/dist/node/pm/yarnPackageManager.d.ts.map +0 -1
- package/dist/node/xy/build/buildCommand.d.ts +0 -3
- package/dist/node/xy/build/buildCommand.d.ts.map +0 -1
- package/dist/node/xy/build/compileCommand.d.ts +0 -3
- package/dist/node/xy/build/compileCommand.d.ts.map +0 -1
- package/dist/node/xy/build/copyAssetsCommand.d.ts +0 -3
- package/dist/node/xy/build/copyAssetsCommand.d.ts.map +0 -1
- package/dist/node/xy/build/index.d.ts +0 -3
- package/dist/node/xy/build/index.d.ts.map +0 -1
- package/dist/node/xy/build/rebuildCommand.d.ts +0 -3
- package/dist/node/xy/build/rebuildCommand.d.ts.map +0 -1
- package/dist/node/xy/build/recompileCommand.d.ts +0 -3
- package/dist/node/xy/build/recompileCommand.d.ts.map +0 -1
- package/dist/node/xy/build/tscValidateCommand.d.ts +0 -3
- package/dist/node/xy/build/tscValidateCommand.d.ts.map +0 -1
- package/dist/node/xy/common/checkCommand.d.ts +0 -3
- package/dist/node/xy/common/checkCommand.d.ts.map +0 -1
- package/dist/node/xy/common/deadCommand.d.ts +0 -3
- package/dist/node/xy/common/deadCommand.d.ts.map +0 -1
- package/dist/node/xy/common/gitignoreCommand.d.ts +0 -3
- package/dist/node/xy/common/gitignoreCommand.d.ts.map +0 -1
- package/dist/node/xy/common/gitlintCommand.d.ts +0 -3
- package/dist/node/xy/common/gitlintCommand.d.ts.map +0 -1
- package/dist/node/xy/common/index.d.ts +0 -3
- package/dist/node/xy/common/index.d.ts.map +0 -1
- package/dist/node/xy/common/licenseCommand.d.ts +0 -3
- package/dist/node/xy/common/licenseCommand.d.ts.map +0 -1
- package/dist/node/xy/common/npmignoreGenCommand.d.ts +0 -3
- package/dist/node/xy/common/npmignoreGenCommand.d.ts.map +0 -1
- package/dist/node/xy/common/orphan/cleanCommand.d.ts +0 -3
- package/dist/node/xy/common/orphan/cleanCommand.d.ts.map +0 -1
- package/dist/node/xy/common/orphan/index.d.ts +0 -3
- package/dist/node/xy/common/orphan/index.d.ts.map +0 -1
- package/dist/node/xy/common/orphan/listCommand.d.ts +0 -3
- package/dist/node/xy/common/orphan/listCommand.d.ts.map +0 -1
- package/dist/node/xy/common/packmanCommand.d.ts +0 -3
- package/dist/node/xy/common/packmanCommand.d.ts.map +0 -1
- package/dist/node/xy/common/repo/index.d.ts +0 -3
- package/dist/node/xy/common/repo/index.d.ts.map +0 -1
- package/dist/node/xy/common/repo/initCommand.d.ts +0 -3
- package/dist/node/xy/common/repo/initCommand.d.ts.map +0 -1
- package/dist/node/xy/common/repo/lintCommand.d.ts +0 -3
- package/dist/node/xy/common/repo/lintCommand.d.ts.map +0 -1
- package/dist/node/xy/common/retestCommand.d.ts +0 -3
- package/dist/node/xy/common/retestCommand.d.ts.map +0 -1
- package/dist/node/xy/common/secureCommand.d.ts +0 -3
- package/dist/node/xy/common/secureCommand.d.ts.map +0 -1
- package/dist/node/xy/common/skills/index.d.ts +0 -3
- package/dist/node/xy/common/skills/index.d.ts.map +0 -1
- package/dist/node/xy/common/testCommand.d.ts +0 -3
- package/dist/node/xy/common/testCommand.d.ts.map +0 -1
- package/dist/node/xy/common/work/addCommand.d.ts +0 -3
- package/dist/node/xy/common/work/addCommand.d.ts.map +0 -1
- package/dist/node/xy/common/work/claimCommand.d.ts +0 -3
- package/dist/node/xy/common/work/claimCommand.d.ts.map +0 -1
- package/dist/node/xy/common/work/doneCommand.d.ts +0 -3
- package/dist/node/xy/common/work/doneCommand.d.ts.map +0 -1
- package/dist/node/xy/common/work/index.d.ts +0 -3
- package/dist/node/xy/common/work/index.d.ts.map +0 -1
- package/dist/node/xy/common/work/initCommand.d.ts +0 -3
- package/dist/node/xy/common/work/initCommand.d.ts.map +0 -1
- package/dist/node/xy/common/work/listCommand.d.ts +0 -3
- package/dist/node/xy/common/work/listCommand.d.ts.map +0 -1
- package/dist/node/xy/common/work/nextCommand.d.ts +0 -3
- package/dist/node/xy/common/work/nextCommand.d.ts.map +0 -1
- package/dist/node/xy/common/work/options.d.ts +0 -5
- package/dist/node/xy/common/work/options.d.ts.map +0 -1
- package/dist/node/xy/common/work/queueCommand.d.ts +0 -3
- package/dist/node/xy/common/work/queueCommand.d.ts.map +0 -1
- package/dist/node/xy/common/work/showCommand.d.ts +0 -3
- package/dist/node/xy/common/work/showCommand.d.ts.map +0 -1
- package/dist/node/xy/common/work/triageCommand.d.ts +0 -3
- package/dist/node/xy/common/work/triageCommand.d.ts.map +0 -1
- package/dist/node/xy/common/work/updateCommand.d.ts +0 -3
- package/dist/node/xy/common/work/updateCommand.d.ts.map +0 -1
- package/dist/node/xy/deploy/deployCommand.d.ts +0 -3
- package/dist/node/xy/deploy/deployCommand.d.ts.map +0 -1
- package/dist/node/xy/deploy/index.d.ts +0 -3
- package/dist/node/xy/deploy/index.d.ts.map +0 -1
- package/dist/node/xy/deploy/publishCommand.d.ts +0 -3
- package/dist/node/xy/deploy/publishCommand.d.ts.map +0 -1
- package/dist/node/xy/index.d.ts +0 -9
- package/dist/node/xy/index.d.ts.map +0 -1
- package/dist/node/xy/install/cleanCommand.d.ts +0 -3
- package/dist/node/xy/install/cleanCommand.d.ts.map +0 -1
- package/dist/node/xy/install/index.d.ts +0 -3
- package/dist/node/xy/install/index.d.ts.map +0 -1
- package/dist/node/xy/install/installCommand.d.ts +0 -3
- package/dist/node/xy/install/installCommand.d.ts.map +0 -1
- package/dist/node/xy/install/reinstallCommand.d.ts +0 -3
- package/dist/node/xy/install/reinstallCommand.d.ts.map +0 -1
- package/dist/node/xy/install/staticsCommand.d.ts +0 -3
- package/dist/node/xy/install/staticsCommand.d.ts.map +0 -1
- package/dist/node/xy/install/upCommand.d.ts +0 -3
- package/dist/node/xy/install/upCommand.d.ts.map +0 -1
- package/dist/node/xy/install/updoCommand.d.ts +0 -3
- package/dist/node/xy/install/updoCommand.d.ts.map +0 -1
- package/dist/node/xy/lint/apiExposureCommand.d.ts +0 -3
- package/dist/node/xy/lint/apiExposureCommand.d.ts.map +0 -1
- package/dist/node/xy/lint/cycleCommand.d.ts +0 -3
- package/dist/node/xy/lint/cycleCommand.d.ts.map +0 -1
- package/dist/node/xy/lint/deplintCommand.d.ts +0 -3
- package/dist/node/xy/lint/deplintCommand.d.ts.map +0 -1
- package/dist/node/xy/lint/fixCommand.d.ts +0 -3
- package/dist/node/xy/lint/fixCommand.d.ts.map +0 -1
- package/dist/node/xy/lint/index.d.ts +0 -3
- package/dist/node/xy/lint/index.d.ts.map +0 -1
- package/dist/node/xy/lint/lint/configCommand.d.ts +0 -5
- package/dist/node/xy/lint/lint/configCommand.d.ts.map +0 -1
- package/dist/node/xy/lint/lint/index.d.ts +0 -3
- package/dist/node/xy/lint/lint/index.d.ts.map +0 -1
- package/dist/node/xy/lint/lint/initCommand.d.ts +0 -3
- package/dist/node/xy/lint/lint/initCommand.d.ts.map +0 -1
- package/dist/node/xy/lint/lint/runCommand.d.ts +0 -3
- package/dist/node/xy/lint/lint/runCommand.d.ts.map +0 -1
- package/dist/node/xy/lint/lintCommand.d.ts +0 -2
- package/dist/node/xy/lint/lintCommand.d.ts.map +0 -1
- package/dist/node/xy/lint/lintlintCommand.d.ts +0 -3
- package/dist/node/xy/lint/lintlintCommand.d.ts.map +0 -1
- package/dist/node/xy/lint/nodeLintCommand.d.ts +0 -3
- package/dist/node/xy/lint/nodeLintCommand.d.ts.map +0 -1
- package/dist/node/xy/lint/publintCommand.d.ts +0 -3
- package/dist/node/xy/lint/publintCommand.d.ts.map +0 -1
- package/dist/node/xy/lint/relintCommand.d.ts +0 -3
- package/dist/node/xy/lint/relintCommand.d.ts.map +0 -1
- package/dist/node/xy/lint/republintCommand.d.ts +0 -3
- package/dist/node/xy/lint/republintCommand.d.ts.map +0 -1
- package/dist/node/xy/lint/sonarCommand.d.ts +0 -3
- package/dist/node/xy/lint/sonarCommand.d.ts.map +0 -1
- package/dist/node/xy/packageManagerWarning.d.ts +0 -4
- package/dist/node/xy/packageManagerWarning.d.ts.map +0 -1
- package/dist/node/xy/param.d.ts +0 -5
- package/dist/node/xy/param.d.ts.map +0 -1
- package/dist/node/xy/react/analyzeCommand.d.ts +0 -3
- package/dist/node/xy/react/analyzeCommand.d.ts.map +0 -1
- package/dist/node/xy/react/ejectCommand.d.ts +0 -3
- package/dist/node/xy/react/ejectCommand.d.ts.map +0 -1
- package/dist/node/xy/react/index.d.ts +0 -3
- package/dist/node/xy/react/index.d.ts.map +0 -1
- package/dist/node/xy/react/sitemapCommand.d.ts +0 -3
- package/dist/node/xy/react/sitemapCommand.d.ts.map +0 -1
- package/dist/node/xy/react/startCommand.d.ts +0 -3
- package/dist/node/xy/react/startCommand.d.ts.map +0 -1
- package/dist/node/xy/xy.d.ts +0 -20
- package/dist/node/xy/xy.d.ts.map +0 -1
- package/dist/node/xy/xyParseOptions.d.ts +0 -3
- package/dist/node/xy/xyParseOptions.d.ts.map +0 -1
- package/dist/pm/detectReact.d.ts +0 -3
- package/dist/pm/detectReact.d.ts.map +0 -1
- package/dist/xy/common/claude/checkCommand.d.ts +0 -3
- package/dist/xy/common/claude/checkCommand.d.ts.map +0 -1
- package/dist/xy/common/claude/cleanCommand.d.ts +0 -3
- package/dist/xy/common/claude/cleanCommand.d.ts.map +0 -1
- package/dist/xy/common/claude/commandsCommand.d.ts +0 -3
- package/dist/xy/common/claude/commandsCommand.d.ts.map +0 -1
- package/dist/xy/common/claude/index.d.ts +0 -3
- package/dist/xy/common/claude/index.d.ts.map +0 -1
- package/dist/xy/common/claude/initCommand.d.ts +0 -3
- package/dist/xy/common/claude/initCommand.d.ts.map +0 -1
- package/dist/xy/common/claude/rulesCommand.d.ts +0 -3
- package/dist/xy/common/claude/rulesCommand.d.ts.map +0 -1
- package/dist/xy/common/claude/settingsCommand.d.ts +0 -3
- package/dist/xy/common/claude/settingsCommand.d.ts.map +0 -1
- package/dist/xy/common/claude/skillsCommand.d.ts +0 -3
- package/dist/xy/common/claude/skillsCommand.d.ts.map +0 -1
- package/dist/xy/common/skills/addCommand.d.ts +0 -3
- package/dist/xy/common/skills/addCommand.d.ts.map +0 -1
- package/dist/xy/common/skills/experimentalInstallCommand.d.ts +0 -3
- package/dist/xy/common/skills/experimentalInstallCommand.d.ts.map +0 -1
- package/dist/xy/common/skills/experimentalSyncCommand.d.ts +0 -3
- package/dist/xy/common/skills/experimentalSyncCommand.d.ts.map +0 -1
- package/dist/xy/common/skills/findCommand.d.ts +0 -3
- package/dist/xy/common/skills/findCommand.d.ts.map +0 -1
- package/dist/xy/common/skills/initCommand.d.ts +0 -3
- package/dist/xy/common/skills/initCommand.d.ts.map +0 -1
- package/dist/xy/common/skills/lintCommand.d.ts +0 -3
- package/dist/xy/common/skills/lintCommand.d.ts.map +0 -1
- package/dist/xy/common/skills/listCommand.d.ts +0 -3
- package/dist/xy/common/skills/listCommand.d.ts.map +0 -1
- package/dist/xy/common/skills/removeCommand.d.ts +0 -3
- package/dist/xy/common/skills/removeCommand.d.ts.map +0 -1
- package/dist/xy/common/skills/updateCommand.d.ts +0 -3
- package/dist/xy/common/skills/updateCommand.d.ts.map +0 -1
- package/dist/xy/common/skills/updoCommand.d.ts +0 -3
- package/dist/xy/common/skills/updoCommand.d.ts.map +0 -1
- package/dist/xy/install/upskillsCommand.d.ts +0 -3
- package/dist/xy/install/upskillsCommand.d.ts.map +0 -1
|
@@ -9006,8 +9006,8 @@ var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9006
9006
|
exports.ExplorerSync = ExplorerSync;
|
|
9007
9007
|
}));
|
|
9008
9008
|
//#endregion
|
|
9009
|
-
//#region
|
|
9010
|
-
var
|
|
9009
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/index.js
|
|
9010
|
+
var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9011
9011
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9012
9012
|
exports.defaultLoadersSync = exports.defaultLoaders = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = void 0;
|
|
9013
9013
|
exports.cosmiconfig = cosmiconfig;
|
|
@@ -9139,13 +9139,130 @@ var import_dist = (/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9139
9139
|
clearCaches: explorer.clearCaches.bind(explorer)
|
|
9140
9140
|
};
|
|
9141
9141
|
}
|
|
9142
|
-
}))
|
|
9142
|
+
}));
|
|
9143
|
+
//#endregion
|
|
9144
|
+
//#region src/lib/ruleCommandRegistry.ts
|
|
9145
|
+
const RULE_COMMANDS = {
|
|
9146
|
+
apiExposure: {
|
|
9147
|
+
command: "api-exposure",
|
|
9148
|
+
configKey: "apiExposure",
|
|
9149
|
+
includeInRoot: true,
|
|
9150
|
+
title: "API Exposure Rules"
|
|
9151
|
+
},
|
|
9152
|
+
check: {
|
|
9153
|
+
command: "check",
|
|
9154
|
+
includeInRoot: true,
|
|
9155
|
+
title: "Check Rules"
|
|
9156
|
+
},
|
|
9157
|
+
clean: {
|
|
9158
|
+
command: "clean",
|
|
9159
|
+
configKey: "clean",
|
|
9160
|
+
includeInRoot: true,
|
|
9161
|
+
title: "Clean Rules"
|
|
9162
|
+
},
|
|
9163
|
+
cycle: {
|
|
9164
|
+
command: "cycle",
|
|
9165
|
+
includeInRoot: true,
|
|
9166
|
+
title: "Cycle Rules"
|
|
9167
|
+
},
|
|
9168
|
+
dead: {
|
|
9169
|
+
command: "dead",
|
|
9170
|
+
configKey: "dead",
|
|
9171
|
+
includeInRoot: true,
|
|
9172
|
+
title: "Dead Rules"
|
|
9173
|
+
},
|
|
9174
|
+
deplint: {
|
|
9175
|
+
command: "deplint",
|
|
9176
|
+
configKey: "deplint",
|
|
9177
|
+
includeInRoot: true,
|
|
9178
|
+
title: "Deplint Rules"
|
|
9179
|
+
},
|
|
9180
|
+
fix: {
|
|
9181
|
+
command: "fix",
|
|
9182
|
+
includeInRoot: false,
|
|
9183
|
+
title: "Fix Rules"
|
|
9184
|
+
},
|
|
9185
|
+
gitLint: {
|
|
9186
|
+
aliases: ["gitlint"],
|
|
9187
|
+
command: "git lint",
|
|
9188
|
+
configKey: "gitLint",
|
|
9189
|
+
includeInRoot: true,
|
|
9190
|
+
title: "Git Lint Rules"
|
|
9191
|
+
},
|
|
9192
|
+
lint: {
|
|
9193
|
+
aliases: ["relint"],
|
|
9194
|
+
command: "lint",
|
|
9195
|
+
includeInRoot: true,
|
|
9196
|
+
title: "Lint Rules"
|
|
9197
|
+
},
|
|
9198
|
+
lintLint: {
|
|
9199
|
+
aliases: ["lintlint"],
|
|
9200
|
+
command: "lint lint",
|
|
9201
|
+
configKey: "lintLint",
|
|
9202
|
+
includeInRoot: true,
|
|
9203
|
+
title: "Lint Lint Rules"
|
|
9204
|
+
},
|
|
9205
|
+
nodeLint: {
|
|
9206
|
+
aliases: ["node-lint"],
|
|
9207
|
+
command: "node lint",
|
|
9208
|
+
configKey: "nodeLint",
|
|
9209
|
+
includeInRoot: true,
|
|
9210
|
+
title: "Node Lint Rules"
|
|
9211
|
+
},
|
|
9212
|
+
packman: {
|
|
9213
|
+
command: "packman lint",
|
|
9214
|
+
configKey: "packman",
|
|
9215
|
+
includeInRoot: true,
|
|
9216
|
+
title: "Packman Lint Rules"
|
|
9217
|
+
},
|
|
9218
|
+
publint: {
|
|
9219
|
+
aliases: ["republint"],
|
|
9220
|
+
command: "publint",
|
|
9221
|
+
configKey: "publint",
|
|
9222
|
+
includeInRoot: true,
|
|
9223
|
+
title: "Publint Rules"
|
|
9224
|
+
},
|
|
9225
|
+
repoLint: {
|
|
9226
|
+
command: "repo lint",
|
|
9227
|
+
configKey: "repoLint",
|
|
9228
|
+
includeInRoot: true,
|
|
9229
|
+
title: "Repo Lint Rules"
|
|
9230
|
+
},
|
|
9231
|
+
skillsLint: {
|
|
9232
|
+
command: "skills lint",
|
|
9233
|
+
configKey: "skillsLint",
|
|
9234
|
+
includeInRoot: true,
|
|
9235
|
+
title: "Skills Lint Rules"
|
|
9236
|
+
}
|
|
9237
|
+
};
|
|
9238
|
+
const DEPRECATED_CONFIG_KEY_ALIASES = {
|
|
9239
|
+
gitLint: ["gitlint"],
|
|
9240
|
+
lintLint: ["lintlint"]
|
|
9241
|
+
};
|
|
9242
|
+
const CONFIG_ALIAS_TO_CANONICAL = new Map(Object.entries(DEPRECATED_CONFIG_KEY_ALIASES).flatMap(([canonical, aliases]) => aliases.map((alias) => [alias, canonical])));
|
|
9243
|
+
const RULE_CONFIG_COMMAND_KEYS = new Set(Object.values(RULE_COMMANDS).flatMap((command) => "configKey" in command ? [command.configKey] : []));
|
|
9244
|
+
function canonicalRuleConfigKey(commandName) {
|
|
9245
|
+
return CONFIG_ALIAS_TO_CANONICAL.get(commandName) ?? commandName;
|
|
9246
|
+
}
|
|
9247
|
+
function deprecatedRuleConfigAliases(configKey) {
|
|
9248
|
+
return Object.entries(DEPRECATED_CONFIG_KEY_ALIASES).find(([canonical]) => canonical === configKey)?.[1] ?? [];
|
|
9249
|
+
}
|
|
9250
|
+
//#endregion
|
|
9251
|
+
//#region src/lib/loadConfig.ts
|
|
9252
|
+
var import_dist = require_dist();
|
|
9143
9253
|
const configState = {
|
|
9144
9254
|
config: void 0,
|
|
9145
9255
|
/** In-flight root load so concurrent callers share one cosmiconfig search. */
|
|
9146
9256
|
loadPromise: void 0,
|
|
9147
9257
|
rootConfigPath: void 0
|
|
9148
9258
|
};
|
|
9259
|
+
const workspaceConfigCache = /* @__PURE__ */ new Map();
|
|
9260
|
+
/** In-flight workspace loads — concurrent jobs for the same dir share one search. */
|
|
9261
|
+
const workspaceConfigLoadPromises = /* @__PURE__ */ new Map();
|
|
9262
|
+
const deprecationWarned = /* @__PURE__ */ new Set();
|
|
9263
|
+
function isRecord(value) {
|
|
9264
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
9265
|
+
}
|
|
9149
9266
|
const explorerState = {};
|
|
9150
9267
|
function getExplorer() {
|
|
9151
9268
|
explorerState.current ??= (0, import_dist.cosmiconfig)("xy", {
|
|
@@ -9180,6 +9297,100 @@ const loadConfig = async (params) => {
|
|
|
9180
9297
|
await ensureRootConfigLoaded();
|
|
9181
9298
|
return deepMerge$1(configState.config ?? {}, params ?? {});
|
|
9182
9299
|
};
|
|
9300
|
+
/**
|
|
9301
|
+
* Loads the xy.config from a specific workspace directory.
|
|
9302
|
+
* Returns an empty object if the workspace has no config or if
|
|
9303
|
+
* the found config is the root config (avoids double-applying).
|
|
9304
|
+
*/
|
|
9305
|
+
async function loadWorkspaceConfig(workspaceDir) {
|
|
9306
|
+
const cached = workspaceConfigCache.get(workspaceDir);
|
|
9307
|
+
if (cached !== void 0) return cached;
|
|
9308
|
+
const inFlight = workspaceConfigLoadPromises.get(workspaceDir);
|
|
9309
|
+
if (inFlight !== void 0) return inFlight;
|
|
9310
|
+
const loadPromise = (async () => {
|
|
9311
|
+
await ensureRootConfigLoaded();
|
|
9312
|
+
const result = await getExplorer().search(workspaceDir);
|
|
9313
|
+
if (!result || result.filepath === configState.rootConfigPath) {
|
|
9314
|
+
workspaceConfigCache.set(workspaceDir, {});
|
|
9315
|
+
return {};
|
|
9316
|
+
}
|
|
9317
|
+
const wsConfig = result.config ?? {};
|
|
9318
|
+
workspaceConfigCache.set(workspaceDir, wsConfig);
|
|
9319
|
+
return wsConfig;
|
|
9320
|
+
})();
|
|
9321
|
+
workspaceConfigLoadPromises.set(workspaceDir, loadPromise);
|
|
9322
|
+
try {
|
|
9323
|
+
return await loadPromise;
|
|
9324
|
+
} finally {
|
|
9325
|
+
workspaceConfigLoadPromises.delete(workspaceDir);
|
|
9326
|
+
}
|
|
9327
|
+
}
|
|
9328
|
+
/** Deprecated top-level fields that should be under `commands`. */
|
|
9329
|
+
const DEPRECATED_COMMAND_FIELDS = /* @__PURE__ */ new Set(["deplint", "publint"]);
|
|
9330
|
+
function warnOnce(key, message) {
|
|
9331
|
+
if (deprecationWarned.has(key)) return;
|
|
9332
|
+
deprecationWarned.add(key);
|
|
9333
|
+
console.warn(chalk.yellow(message));
|
|
9334
|
+
}
|
|
9335
|
+
/**
|
|
9336
|
+
* Resolves a command's config field from a config object.
|
|
9337
|
+
* Prefers `commands.[name]` over top-level `[name]`.
|
|
9338
|
+
* Warns once per config file when a deprecated top-level field is used.
|
|
9339
|
+
*/
|
|
9340
|
+
function resolveCommandField(cfg, commandName, configPath) {
|
|
9341
|
+
const configKey = canonicalRuleConfigKey(commandName);
|
|
9342
|
+
const commands = isRecord(cfg.commands) ? cfg.commands : void 0;
|
|
9343
|
+
const fromCommands = commands?.[configKey];
|
|
9344
|
+
if (isRecord(fromCommands)) return fromCommands;
|
|
9345
|
+
for (const alias of deprecatedRuleConfigAliases(configKey)) {
|
|
9346
|
+
const fromAlias = commands?.[alias];
|
|
9347
|
+
if (!isRecord(fromAlias)) continue;
|
|
9348
|
+
warnOnce(`${configPath ?? "unknown"}:commands.${alias}`, `[xy] Deprecated: "commands.${alias}" in ${configPath ?? "xy.config"} — use "commands.${configKey}"`);
|
|
9349
|
+
return fromAlias;
|
|
9350
|
+
}
|
|
9351
|
+
const fromTopLevel = cfg[configKey];
|
|
9352
|
+
if (fromTopLevel !== void 0 && typeof fromTopLevel === "object" && DEPRECATED_COMMAND_FIELDS.has(configKey)) {
|
|
9353
|
+
warnOnce(`${configPath ?? "unknown"}:${configKey}`, `[xy] Deprecated: top-level "${configKey}" in ${configPath ?? "xy.config"} — move to "commands.${configKey}"`);
|
|
9354
|
+
return fromTopLevel;
|
|
9355
|
+
}
|
|
9356
|
+
return {};
|
|
9357
|
+
}
|
|
9358
|
+
function mergeRuleConfigs(target, source) {
|
|
9359
|
+
if (isRecord(target) && isRecord(source)) return {
|
|
9360
|
+
...target,
|
|
9361
|
+
...source
|
|
9362
|
+
};
|
|
9363
|
+
return source;
|
|
9364
|
+
}
|
|
9365
|
+
function mergeCommandConfig(rootCmd, workspaceCmd, commandName) {
|
|
9366
|
+
const configKey = canonicalRuleConfigKey(commandName);
|
|
9367
|
+
return deepMerge$1(rootCmd, workspaceCmd, { customMerge: (key) => key === "rules" && RULE_CONFIG_COMMAND_KEYS.has(configKey) ? mergeRuleConfigs : void 0 });
|
|
9368
|
+
}
|
|
9369
|
+
/**
|
|
9370
|
+
* Loads a command-specific config merged from root and workspace levels.
|
|
9371
|
+
* The root config provides defaults; the workspace config extends/overrides.
|
|
9372
|
+
* Arrays (e.g. `exclude`) are unioned and maps (e.g. `packages`) are merged
|
|
9373
|
+
* via deepmerge, with workspace entries overriding root entries for the same key.
|
|
9374
|
+
* Rule entries are replaced per rule id so tuple configs keep their
|
|
9375
|
+
* ESLint-like shape instead of being concatenated as arrays.
|
|
9376
|
+
*/
|
|
9377
|
+
/**
|
|
9378
|
+
* The root config only cascades into workspaces that live inside its own
|
|
9379
|
+
* directory tree. A workspace elsewhere on disk (e.g. spec fixtures under
|
|
9380
|
+
* the OS temp dir) must not inherit whatever repo the process happens to
|
|
9381
|
+
* run from.
|
|
9382
|
+
*/
|
|
9383
|
+
function isWorkspaceUnderRootConfig(workspaceDir) {
|
|
9384
|
+
if (configState.rootConfigPath === void 0) return true;
|
|
9385
|
+
const rootDir = PATH.dirname(configState.rootConfigPath);
|
|
9386
|
+
const relative = PATH.relative(rootDir, PATH.resolve(workspaceDir));
|
|
9387
|
+
return relative === "" || !relative.startsWith("..") && !PATH.isAbsolute(relative);
|
|
9388
|
+
}
|
|
9389
|
+
async function loadWorkspaceCommandConfig(workspaceDir, commandName) {
|
|
9390
|
+
const configKey = canonicalRuleConfigKey(commandName);
|
|
9391
|
+
const root = await loadConfig();
|
|
9392
|
+
return mergeCommandConfig(isWorkspaceUnderRootConfig(workspaceDir) ? resolveCommandField(root, configKey, configState.rootConfigPath) : {}, resolveCommandField(await loadWorkspaceConfig(workspaceDir), configKey, workspaceConfigCache.has(workspaceDir) ? workspaceDir : void 0), configKey);
|
|
9393
|
+
}
|
|
9183
9394
|
//#endregion
|
|
9184
9395
|
//#region ../../node_modules/.pnpm/balanced-match@4.0.4/node_modules/balanced-match/dist/esm/index.js
|
|
9185
9396
|
const balanced = (a, b, str) => {
|
|
@@ -10734,21 +10945,407 @@ function listWorkspacesFromFs(cwd) {
|
|
|
10734
10945
|
return workspaces;
|
|
10735
10946
|
}
|
|
10736
10947
|
//#endregion
|
|
10948
|
+
//#region src/actions/package/cleanGitignore.ts
|
|
10949
|
+
function normalizeRel(rootDir, absPath) {
|
|
10950
|
+
return PATH.relative(PATH.resolve(rootDir), PATH.resolve(absPath)).split(PATH.sep).join("/");
|
|
10951
|
+
}
|
|
10952
|
+
function runGit(rootDir, args) {
|
|
10953
|
+
const result = spawnSync("git", [
|
|
10954
|
+
"-C",
|
|
10955
|
+
rootDir,
|
|
10956
|
+
...args
|
|
10957
|
+
], {
|
|
10958
|
+
encoding: "utf8",
|
|
10959
|
+
maxBuffer: 32 * 1024 * 1024
|
|
10960
|
+
});
|
|
10961
|
+
return {
|
|
10962
|
+
status: result.status,
|
|
10963
|
+
stderr: result.stderr ?? "",
|
|
10964
|
+
stdout: result.stdout ?? ""
|
|
10965
|
+
};
|
|
10966
|
+
}
|
|
10967
|
+
/**
|
|
10968
|
+
* Default backend using `git check-ignore` / `git ls-files`. Respects nested
|
|
10969
|
+
* `.gitignore` files and global excludes the same way Git does.
|
|
10970
|
+
*/
|
|
10971
|
+
const gitCleanGitignoreBackend = {
|
|
10972
|
+
isGitRepo(rootDir) {
|
|
10973
|
+
const result = runGit(rootDir, ["rev-parse", "--is-inside-work-tree"]);
|
|
10974
|
+
return result.status === 0 && result.stdout.trim() === "true";
|
|
10975
|
+
},
|
|
10976
|
+
isIgnored(rootDir, absPath) {
|
|
10977
|
+
const rel = normalizeRel(rootDir, absPath);
|
|
10978
|
+
if (rel === "" || rel.startsWith("..")) return false;
|
|
10979
|
+
return runGit(rootDir, [
|
|
10980
|
+
"check-ignore",
|
|
10981
|
+
"-q",
|
|
10982
|
+
"--",
|
|
10983
|
+
rel
|
|
10984
|
+
]).status === 0;
|
|
10985
|
+
},
|
|
10986
|
+
listIgnoredUnder(rootDir, packageDir) {
|
|
10987
|
+
const root = PATH.resolve(rootDir);
|
|
10988
|
+
const pkg = PATH.resolve(packageDir);
|
|
10989
|
+
const packageRel = PATH.relative(root, pkg).split(PATH.sep).join("/");
|
|
10990
|
+
const result = runGit(root, [
|
|
10991
|
+
"ls-files",
|
|
10992
|
+
"--others",
|
|
10993
|
+
"--ignored",
|
|
10994
|
+
"--exclude-standard",
|
|
10995
|
+
"--directory",
|
|
10996
|
+
"-z",
|
|
10997
|
+
"--",
|
|
10998
|
+
packageRel === "" ? "." : packageRel
|
|
10999
|
+
]);
|
|
11000
|
+
if (result.status !== 0) return [];
|
|
11001
|
+
const paths = [];
|
|
11002
|
+
for (const entry of result.stdout.split("\0")) {
|
|
11003
|
+
if (entry.length === 0) continue;
|
|
11004
|
+
const rel = entry.endsWith("/") ? entry.slice(0, -1) : entry;
|
|
11005
|
+
paths.push(PATH.resolve(root, rel));
|
|
11006
|
+
}
|
|
11007
|
+
return paths;
|
|
11008
|
+
}
|
|
11009
|
+
};
|
|
11010
|
+
/** Batch-check which absolute paths are gitignored. */
|
|
11011
|
+
function filterGitIgnoredPaths(rootDir, absPaths, backend = gitCleanGitignoreBackend) {
|
|
11012
|
+
const ignored = [];
|
|
11013
|
+
const notIgnored = [];
|
|
11014
|
+
for (const absPath of absPaths) if (backend.isIgnored(rootDir, absPath)) ignored.push(absPath);
|
|
11015
|
+
else notIgnored.push(absPath);
|
|
11016
|
+
return {
|
|
11017
|
+
ignored,
|
|
11018
|
+
notIgnored
|
|
11019
|
+
};
|
|
11020
|
+
}
|
|
11021
|
+
//#endregion
|
|
11022
|
+
//#region src/actions/package/cleanPatterns.ts
|
|
11023
|
+
/**
|
|
11024
|
+
* True when `candidate` is strictly inside `rootDir` (not equal to it and not
|
|
11025
|
+
* outside it). Used so clean never deletes the repo root itself or anything
|
|
11026
|
+
* above it.
|
|
11027
|
+
*/
|
|
11028
|
+
function isStrictlyInsideRoot(rootDir, candidate) {
|
|
11029
|
+
const root = PATH.resolve(rootDir);
|
|
11030
|
+
const resolved = PATH.resolve(candidate);
|
|
11031
|
+
const relative = PATH.relative(root, resolved);
|
|
11032
|
+
return relative.length > 0 && relative !== ".." && !relative.startsWith(`..${PATH.sep}`) && !PATH.isAbsolute(relative);
|
|
11033
|
+
}
|
|
11034
|
+
/**
|
|
11035
|
+
* Resolve clean patterns relative to `baseDir` and ensure every resolved path
|
|
11036
|
+
* stays strictly inside `rootDir` (the monorepo root).
|
|
11037
|
+
*
|
|
11038
|
+
* - Absolute patterns are rejected (must be package-relative).
|
|
11039
|
+
* - Empty / whitespace-only patterns are rejected.
|
|
11040
|
+
* - Patterns that resolve outside or to the root itself throw.
|
|
11041
|
+
*
|
|
11042
|
+
* Returns absolute paths/globs safe to pass to `deleteGlob`.
|
|
11043
|
+
*/
|
|
11044
|
+
function resolveSafeCleanPatterns(patterns, baseDir, rootDir) {
|
|
11045
|
+
const root = PATH.resolve(rootDir);
|
|
11046
|
+
const base = PATH.resolve(baseDir);
|
|
11047
|
+
const resolvedPatterns = [];
|
|
11048
|
+
for (const pattern of patterns) {
|
|
11049
|
+
if (typeof pattern !== "string" || pattern.trim().length === 0) throw new Error("Clean pattern must be a non-empty string");
|
|
11050
|
+
if (PATH.isAbsolute(pattern)) throw new Error(`Clean pattern must be relative to the package (absolute paths are not allowed): "${pattern}"`);
|
|
11051
|
+
const resolved = PATH.resolve(base, pattern);
|
|
11052
|
+
if (!isStrictlyInsideRoot(root, resolved)) throw new Error(`Clean pattern escapes repository root: "${pattern}" (resolved to "${resolved}", root "${root}")`);
|
|
11053
|
+
resolvedPatterns.push(resolved);
|
|
11054
|
+
}
|
|
11055
|
+
return resolvedPatterns;
|
|
11056
|
+
}
|
|
11057
|
+
//#endregion
|
|
11058
|
+
//#region src/actions/package/cleanRules.ts
|
|
11059
|
+
const RULE_LEVELS = /* @__PURE__ */ new Set([
|
|
11060
|
+
"error",
|
|
11061
|
+
"off",
|
|
11062
|
+
"warn"
|
|
11063
|
+
]);
|
|
11064
|
+
function isRuleLevel(value) {
|
|
11065
|
+
return typeof value === "string" && RULE_LEVELS.has(value);
|
|
11066
|
+
}
|
|
11067
|
+
function levelFromObject(location, setting, defaultLevel) {
|
|
11068
|
+
if (setting.level !== void 0) {
|
|
11069
|
+
if (!isRuleLevel(setting.level)) throw new TypeError(`${location}.level must be "error", "warn", or "off"`);
|
|
11070
|
+
return setting.level;
|
|
11071
|
+
}
|
|
11072
|
+
if (setting.enabled !== void 0) {
|
|
11073
|
+
if (typeof setting.enabled !== "boolean") throw new TypeError(`${location}.enabled must be a boolean`);
|
|
11074
|
+
return setting.enabled ? defaultLevel : "off";
|
|
11075
|
+
}
|
|
11076
|
+
throw new TypeError(`${location} must be a rule level, boolean, [level, options], or { level?, enabled? } object`);
|
|
11077
|
+
}
|
|
11078
|
+
/**
|
|
11079
|
+
* Local parse of rule level settings — kept here to avoid a circular import
|
|
11080
|
+
* through `ruleRunner` → `package/index` → `cleanRules`.
|
|
11081
|
+
*/
|
|
11082
|
+
function parseCleanRuleLevel(location, setting, defaultLevel) {
|
|
11083
|
+
if (setting === void 0) return defaultLevel;
|
|
11084
|
+
if (typeof setting === "boolean") return setting ? "warn" : "off";
|
|
11085
|
+
if (isRuleLevel(setting)) return setting;
|
|
11086
|
+
if (Array.isArray(setting) && setting.length > 0 && isRuleLevel(setting[0])) return setting[0];
|
|
11087
|
+
if (typeof setting === "object" && setting !== null && !Array.isArray(setting)) return levelFromObject(location, setting, defaultLevel);
|
|
11088
|
+
throw new TypeError(`${location} must be a rule level, boolean, [level, options], or { level?, enabled? } object`);
|
|
11089
|
+
}
|
|
11090
|
+
/** Hard safety rules — always enforced; cannot be disabled via config. */
|
|
11091
|
+
const CLEAN_HARD_RULES = [{
|
|
11092
|
+
description: "Patterns must resolve strictly inside the monorepo root (never the root itself or outside it)",
|
|
11093
|
+
id: "clean.inside-root"
|
|
11094
|
+
}, {
|
|
11095
|
+
description: "Patterns must be non-empty and package-relative (absolute paths are rejected)",
|
|
11096
|
+
id: "clean.relative-pattern"
|
|
11097
|
+
}];
|
|
11098
|
+
/**
|
|
11099
|
+
* Configurable clean rules. Levels can be set in `commands.clean.rules`.
|
|
11100
|
+
*/
|
|
11101
|
+
const CLEAN_CONFIGURABLE_RULES = [{
|
|
11102
|
+
defaultLevel: "error",
|
|
11103
|
+
description: "Only delete paths that are ignored by .gitignore (configured patterns; builtins and include bypass this)",
|
|
11104
|
+
id: "clean.gitignored-only"
|
|
11105
|
+
}, {
|
|
11106
|
+
defaultLevel: "off",
|
|
11107
|
+
description: "Also delete every path under the package that is matched by .gitignore",
|
|
11108
|
+
id: "clean.gitignored-all"
|
|
11109
|
+
}];
|
|
11110
|
+
const CONFIGURABLE_RULE_IDS = new Set(CLEAN_CONFIGURABLE_RULES.map((rule) => rule.id));
|
|
11111
|
+
const HARD_RULE_IDS = new Set(CLEAN_HARD_RULES.map((rule) => rule.id));
|
|
11112
|
+
/** Immutable exclude entries — always skipped by clean, cannot be overridden. */
|
|
11113
|
+
const CLEAN_IMMUTABLE_EXCLUDE = [
|
|
11114
|
+
".git",
|
|
11115
|
+
"**/.git",
|
|
11116
|
+
"**/.git/**"
|
|
11117
|
+
];
|
|
11118
|
+
/**
|
|
11119
|
+
* Default exclude entries applied in addition to config (and immutable entries).
|
|
11120
|
+
* Prevents `clean.gitignored-all` from wiping install trees by default.
|
|
11121
|
+
*/
|
|
11122
|
+
const CLEAN_DEFAULT_EXCLUDE = [
|
|
11123
|
+
"node_modules",
|
|
11124
|
+
"**/node_modules",
|
|
11125
|
+
"**/node_modules/**"
|
|
11126
|
+
];
|
|
11127
|
+
function isCleanRuleEnabled(level) {
|
|
11128
|
+
return level !== "off";
|
|
11129
|
+
}
|
|
11130
|
+
function defaultLevelForRule(ruleId) {
|
|
11131
|
+
return CLEAN_CONFIGURABLE_RULES.find((rule) => rule.id === ruleId)?.defaultLevel ?? "off";
|
|
11132
|
+
}
|
|
11133
|
+
/**
|
|
11134
|
+
* Resolve configurable clean rule levels from config. Throws if the config
|
|
11135
|
+
* references hard (non-configurable) rules or unknown rule ids.
|
|
11136
|
+
*/
|
|
11137
|
+
function resolveCleanRules(config) {
|
|
11138
|
+
const rules = config?.rules ?? {};
|
|
11139
|
+
for (const ruleId of Object.keys(rules)) {
|
|
11140
|
+
if (HARD_RULE_IDS.has(ruleId)) throw new TypeError(`commands.clean.rules["${ruleId}"] cannot be configured — hard safety rules are always enforced`);
|
|
11141
|
+
if (!CONFIGURABLE_RULE_IDS.has(ruleId)) throw new TypeError(`Unknown clean rule "${ruleId}" in commands.clean.rules. Configurable rules: ${[...CONFIGURABLE_RULE_IDS].join(", ")}`);
|
|
11142
|
+
}
|
|
11143
|
+
const level = (ruleId, setting) => {
|
|
11144
|
+
return parseCleanRuleLevel(`commands.clean.rules["${ruleId}"]`, setting, defaultLevelForRule(ruleId));
|
|
11145
|
+
};
|
|
11146
|
+
return {
|
|
11147
|
+
gitignoredAll: level("clean.gitignored-all", rules["clean.gitignored-all"]),
|
|
11148
|
+
gitignoredOnly: level("clean.gitignored-only", rules["clean.gitignored-only"])
|
|
11149
|
+
};
|
|
11150
|
+
}
|
|
11151
|
+
/** Merge immutable + default + config exclude patterns (deduped, order preserved). */
|
|
11152
|
+
function resolveCleanExclude(config) {
|
|
11153
|
+
const merged = [
|
|
11154
|
+
...CLEAN_IMMUTABLE_EXCLUDE,
|
|
11155
|
+
...CLEAN_DEFAULT_EXCLUDE,
|
|
11156
|
+
...config?.exclude ?? []
|
|
11157
|
+
];
|
|
11158
|
+
return [...new Set(merged)];
|
|
11159
|
+
}
|
|
11160
|
+
function uniqueStrings(values) {
|
|
11161
|
+
if (values === void 0 || values.length === 0) return [];
|
|
11162
|
+
return [...new Set(values)];
|
|
11163
|
+
}
|
|
11164
|
+
function resolveCleanInclude(config) {
|
|
11165
|
+
return uniqueStrings(config?.include);
|
|
11166
|
+
}
|
|
11167
|
+
function resolveCleanPatterns(config) {
|
|
11168
|
+
return uniqueStrings(config?.patterns);
|
|
11169
|
+
}
|
|
11170
|
+
//#endregion
|
|
11171
|
+
//#region src/actions/package/cleanPlan.ts
|
|
11172
|
+
init_index_min();
|
|
11173
|
+
/** Built-in clean targets — always cleaned (bypass gitignored-only). */
|
|
11174
|
+
const BUILTIN_CLEAN_PATTERNS = ["dist", "build"];
|
|
11175
|
+
function toPosix(relativePath) {
|
|
11176
|
+
return relativePath.split(PATH.sep).join("/");
|
|
11177
|
+
}
|
|
11178
|
+
function packageRelative(packageDir, absPath) {
|
|
11179
|
+
return toPosix(PATH.relative(packageDir, absPath));
|
|
11180
|
+
}
|
|
11181
|
+
/**
|
|
11182
|
+
* Expand absolute path/glob patterns to filesystem entries. When a pattern
|
|
11183
|
+
* matches nothing, the pattern itself is kept so callers can still pass it to
|
|
11184
|
+
* delete (no-op) and so hard-safety-resolved targets remain visible.
|
|
11185
|
+
*/
|
|
11186
|
+
function expandCleanTargets(absolutePatterns) {
|
|
11187
|
+
const found = /* @__PURE__ */ new Set();
|
|
11188
|
+
for (const pattern of absolutePatterns) {
|
|
11189
|
+
const matches = Ze$1.sync(pattern, {
|
|
11190
|
+
absolute: true,
|
|
11191
|
+
dot: true,
|
|
11192
|
+
nodir: false
|
|
11193
|
+
});
|
|
11194
|
+
if (matches.length === 0) {
|
|
11195
|
+
found.add(PATH.resolve(pattern));
|
|
11196
|
+
continue;
|
|
11197
|
+
}
|
|
11198
|
+
for (const match of matches) found.add(PATH.resolve(match));
|
|
11199
|
+
}
|
|
11200
|
+
return [...found];
|
|
11201
|
+
}
|
|
11202
|
+
function matchesCleanExclude(packageDir, absPath, exclude) {
|
|
11203
|
+
const rel = packageRelative(packageDir, absPath);
|
|
11204
|
+
if (rel === "" || rel.startsWith("..")) {
|
|
11205
|
+
const fromPkg = toPosix(PATH.relative(packageDir, absPath));
|
|
11206
|
+
return exclude.some((pattern) => isMatch(fromPkg, pattern, { dot: true }));
|
|
11207
|
+
}
|
|
11208
|
+
return exclude.some((pattern) => {
|
|
11209
|
+
if (isMatch(rel, pattern, { dot: true })) return true;
|
|
11210
|
+
const asDir = pattern.endsWith("/**") ? pattern : `${pattern.replace(/\/$/, "")}/**`;
|
|
11211
|
+
return isMatch(rel, asDir, { dot: true });
|
|
11212
|
+
});
|
|
11213
|
+
}
|
|
11214
|
+
function filterByExclude(packageDir, paths, exclude) {
|
|
11215
|
+
return paths.filter((absPath) => !matchesCleanExclude(packageDir, absPath, exclude));
|
|
11216
|
+
}
|
|
11217
|
+
function filterInsideRoot(rootDir, paths) {
|
|
11218
|
+
return paths.filter((absPath) => isStrictlyInsideRoot(rootDir, absPath));
|
|
11219
|
+
}
|
|
11220
|
+
function issueLevel(level) {
|
|
11221
|
+
return level === "warn" ? "warn" : "error";
|
|
11222
|
+
}
|
|
11223
|
+
function applyGitignoredOnly(params) {
|
|
11224
|
+
const { existing, gitignore, issues, packageDir, rootDir, ruleLevel, targets } = params;
|
|
11225
|
+
if (existing.length === 0) return;
|
|
11226
|
+
if (!gitignore.isGitRepo(rootDir)) {
|
|
11227
|
+
issues.push({
|
|
11228
|
+
level: issueLevel(ruleLevel),
|
|
11229
|
+
message: "clean.gitignored-only is enabled but the package is not inside a git work tree",
|
|
11230
|
+
rule: "clean.gitignored-only"
|
|
11231
|
+
});
|
|
11232
|
+
if (ruleLevel === "warn") for (const absPath of existing) targets.add(absPath);
|
|
11233
|
+
return;
|
|
11234
|
+
}
|
|
11235
|
+
const { ignored, notIgnored } = filterGitIgnoredPaths(rootDir, existing, gitignore);
|
|
11236
|
+
for (const absPath of ignored) targets.add(absPath);
|
|
11237
|
+
for (const absPath of notIgnored) {
|
|
11238
|
+
const rel = packageRelative(packageDir, absPath);
|
|
11239
|
+
issues.push({
|
|
11240
|
+
level: issueLevel(ruleLevel),
|
|
11241
|
+
message: `Refusing to clean non-gitignored path "${rel}" (clean.gitignored-only)`,
|
|
11242
|
+
rule: "clean.gitignored-only"
|
|
11243
|
+
});
|
|
11244
|
+
}
|
|
11245
|
+
}
|
|
11246
|
+
function applyGitignoredAll(params) {
|
|
11247
|
+
const { gitignore, issues, packageDir, rootDir, ruleLevel, targets } = params;
|
|
11248
|
+
if (gitignore.isGitRepo(rootDir)) {
|
|
11249
|
+
for (const absPath of gitignore.listIgnoredUnder(rootDir, packageDir)) targets.add(absPath);
|
|
11250
|
+
return;
|
|
11251
|
+
}
|
|
11252
|
+
issues.push({
|
|
11253
|
+
level: issueLevel(ruleLevel),
|
|
11254
|
+
message: "clean.gitignored-all is enabled but the package is not inside a git work tree",
|
|
11255
|
+
rule: "clean.gitignored-all"
|
|
11256
|
+
});
|
|
11257
|
+
}
|
|
11258
|
+
/**
|
|
11259
|
+
* Build the set of absolute paths `xy clean` will delete for one package.
|
|
11260
|
+
*
|
|
11261
|
+
* Pipeline:
|
|
11262
|
+
* 1. Hard safety on all configured patterns (throws on escape)
|
|
11263
|
+
* 2. Expand builtins + include (always-clean; bypass gitignored-only)
|
|
11264
|
+
* 3. Expand config patterns; enforce gitignored-only when enabled
|
|
11265
|
+
* 4. Optionally add all gitignored paths under the package
|
|
11266
|
+
* 5. Apply exclude + re-check inside-root
|
|
11267
|
+
*/
|
|
11268
|
+
function buildCleanPlan(options) {
|
|
11269
|
+
const { config, extraPatterns = [], gitignore = gitCleanGitignoreBackend, packageDir, rootDir } = options;
|
|
11270
|
+
const rules = resolveCleanRules(config);
|
|
11271
|
+
const issues = [];
|
|
11272
|
+
const exclude = resolveCleanExclude(config);
|
|
11273
|
+
const configuredPatterns = [...resolveCleanPatterns(config), ...extraPatterns];
|
|
11274
|
+
const safeBuiltin = resolveSafeCleanPatterns([...BUILTIN_CLEAN_PATTERNS], packageDir, rootDir);
|
|
11275
|
+
const safeInclude = resolveSafeCleanPatterns(resolveCleanInclude(config), packageDir, rootDir);
|
|
11276
|
+
const safePatterns = resolveSafeCleanPatterns(configuredPatterns, packageDir, rootDir);
|
|
11277
|
+
const targets = /* @__PURE__ */ new Set([...expandCleanTargets(safeBuiltin), ...expandCleanTargets(safeInclude)]);
|
|
11278
|
+
const patternCandidates = expandCleanTargets(safePatterns).filter((absPath) => !targets.has(absPath));
|
|
11279
|
+
if (isCleanRuleEnabled(rules.gitignoredOnly) && patternCandidates.length > 0) {
|
|
11280
|
+
const existing = patternCandidates.filter((absPath) => fs.existsSync(absPath));
|
|
11281
|
+
for (const absPath of patternCandidates) if (!fs.existsSync(absPath)) targets.add(absPath);
|
|
11282
|
+
applyGitignoredOnly({
|
|
11283
|
+
existing,
|
|
11284
|
+
gitignore,
|
|
11285
|
+
issues,
|
|
11286
|
+
packageDir,
|
|
11287
|
+
rootDir,
|
|
11288
|
+
ruleLevel: rules.gitignoredOnly,
|
|
11289
|
+
targets
|
|
11290
|
+
});
|
|
11291
|
+
} else for (const absPath of patternCandidates) targets.add(absPath);
|
|
11292
|
+
if (isCleanRuleEnabled(rules.gitignoredAll)) applyGitignoredAll({
|
|
11293
|
+
gitignore,
|
|
11294
|
+
issues,
|
|
11295
|
+
packageDir,
|
|
11296
|
+
rootDir,
|
|
11297
|
+
ruleLevel: rules.gitignoredAll,
|
|
11298
|
+
targets
|
|
11299
|
+
});
|
|
11300
|
+
return {
|
|
11301
|
+
deletePaths: filterInsideRoot(rootDir, filterByExclude(packageDir, [...targets], exclude)).toSorted((a, b) => a.localeCompare(b)),
|
|
11302
|
+
issues,
|
|
11303
|
+
rules
|
|
11304
|
+
};
|
|
11305
|
+
}
|
|
11306
|
+
function cleanPlanExitCode(plan) {
|
|
11307
|
+
return plan.issues.some((issue) => issue.level === "error") ? 1 : 0;
|
|
11308
|
+
}
|
|
11309
|
+
//#endregion
|
|
10737
11310
|
//#region src/actions/package/clean-outputs.ts
|
|
10738
|
-
|
|
11311
|
+
async function loadCleanConfig(pkg) {
|
|
11312
|
+
return await loadWorkspaceCommandConfig(pkg, "clean");
|
|
11313
|
+
}
|
|
11314
|
+
function mergeExtraPatterns(config, extraPatterns) {
|
|
11315
|
+
if (extraPatterns === void 0 || extraPatterns.length === 0) return config;
|
|
11316
|
+
return {
|
|
11317
|
+
...config,
|
|
11318
|
+
patterns: [...config.patterns ?? [], ...extraPatterns]
|
|
11319
|
+
};
|
|
11320
|
+
}
|
|
11321
|
+
function deletePaths(paths) {
|
|
11322
|
+
const ordered = [...paths].toSorted((a, b) => b.length - a.length);
|
|
11323
|
+
for (const target of ordered) deleteGlob(target);
|
|
11324
|
+
}
|
|
11325
|
+
const packageCleanOutputs = async (options = {}) => {
|
|
10739
11326
|
const pkg = options.pkg ?? INIT_CWD();
|
|
10740
11327
|
const pkgName = options.pkgName ?? packageName();
|
|
10741
|
-
const
|
|
10742
|
-
|
|
10743
|
-
|
|
10744
|
-
|
|
10745
|
-
|
|
10746
|
-
|
|
10747
|
-
|
|
10748
|
-
|
|
11328
|
+
const rootDir = options.rootDir ?? findWorkspaceRoot(pkg);
|
|
11329
|
+
const log = isJsonMode() ? console.error : console.log;
|
|
11330
|
+
log(chalk.green(`Cleaning Outputs [${pkgName}]`));
|
|
11331
|
+
const baseConfig = options.skipConfigLoad ? { patterns: options.extraPatterns } : await loadCleanConfig(pkg);
|
|
11332
|
+
const plan = buildCleanPlan({
|
|
11333
|
+
config: options.skipConfigLoad ? baseConfig : mergeExtraPatterns(baseConfig, options.extraPatterns),
|
|
11334
|
+
gitignore: options.gitignore,
|
|
11335
|
+
packageDir: pkg,
|
|
11336
|
+
rootDir
|
|
11337
|
+
});
|
|
11338
|
+
for (const issue of plan.issues) log((issue.level === "error" ? chalk.red : chalk.yellow)(` ${issue.level === "error" ? "✗" : "⚠"} [${issue.rule}] ${issue.message}`));
|
|
11339
|
+
deletePaths(plan.deletePaths);
|
|
11340
|
+
if (plan.deletePaths.length > 0 && !isJsonMode()) for (const deleted of plan.deletePaths) {
|
|
11341
|
+
const relative = PATH.relative(pkg, deleted);
|
|
11342
|
+
log(chalk.gray(` removed ${relative.length > 0 ? relative : deleted}`));
|
|
11343
|
+
}
|
|
11344
|
+
return cleanPlanExitCode(plan);
|
|
10749
11345
|
};
|
|
10750
11346
|
//#endregion
|
|
10751
11347
|
//#region src/actions/package/clean-typescript.ts
|
|
11348
|
+
/** Cleans TypeScript build info and local lint caches for a package. */
|
|
10752
11349
|
const packageCleanTypescript = (options = {}) => {
|
|
10753
11350
|
const pkg = options.pkg ?? INIT_CWD();
|
|
10754
11351
|
const pkgName = options.pkgName ?? packageName();
|
|
@@ -10763,8 +11360,8 @@ const packageCleanTypescript = (options = {}) => {
|
|
|
10763
11360
|
};
|
|
10764
11361
|
//#endregion
|
|
10765
11362
|
//#region src/actions/package/clean.ts
|
|
10766
|
-
const packageClean = (options = {}) => {
|
|
10767
|
-
return
|
|
11363
|
+
const packageClean = async (options = {}) => {
|
|
11364
|
+
return await packageCleanOutputs(options) + packageCleanTypescript(options);
|
|
10768
11365
|
};
|
|
10769
11366
|
//#endregion
|
|
10770
11367
|
//#region src/actions/package/compile/inputs.ts
|
|
@@ -12467,7 +13064,7 @@ function expandNestedSource(file, packageDir, config, seen) {
|
|
|
12467
13064
|
function expandHashTarget(target, packageDir, config, seen) {
|
|
12468
13065
|
const { modName, sub } = hashModuleParts(target);
|
|
12469
13066
|
const mod = config.modules.find((candidate) => candidate.name === modName);
|
|
12470
|
-
if (mod !== void 0 &&
|
|
13067
|
+
if (mod !== void 0 && sub === void 0 && moduleHasReexport(mod)) return expandToPackageReexportTargets(moduleReexportTargets(mod), packageDir, config, seen);
|
|
12471
13068
|
const file = resolveHashToModuleFile(packageDir, target, config);
|
|
12472
13069
|
if (file === null) return null;
|
|
12473
13070
|
return expandNestedSource(file, packageDir, config, seen);
|
|
@@ -12571,7 +13168,7 @@ function rewriteIndexReexportMjs(distDir, platforms, indexTargets) {
|
|
|
12571
13168
|
}
|
|
12572
13169
|
for (const file of walkMjs$1(distDir)) {
|
|
12573
13170
|
const base = PATH.basename(file);
|
|
12574
|
-
if (
|
|
13171
|
+
if (base === "index.mjs" || !base.startsWith("index") || !base.endsWith(".mjs")) continue;
|
|
12575
13172
|
writePureReexportMjs(file, indexTargets);
|
|
12576
13173
|
rewritten++;
|
|
12577
13174
|
}
|
|
@@ -13577,7 +14174,7 @@ function resolveCrossTarget(vendorRoot, nameToDir, closure, pkg, sub, importerPl
|
|
|
13577
14174
|
const packageDir = nameToDir[pkg];
|
|
13578
14175
|
if (packageDir === void 0) return null;
|
|
13579
14176
|
let variants = resolveExportVariants(packageDir, sub === "" ? "." : `./${sub}`);
|
|
13580
|
-
if (
|
|
14177
|
+
if (sub === "" && variants.length === 0) variants = resolveExportVariants(packageDir, ".");
|
|
13581
14178
|
if (variants.length === 0) return null;
|
|
13582
14179
|
const pick = pickCrossTargetVariant(variants, importerPlatform);
|
|
13583
14180
|
const rel = wantDts ? pick.dts : pick.mjs;
|
|
@@ -13738,7 +14335,7 @@ const packageCompile = async (inConfig = {}, mode = {}) => {
|
|
|
13738
14335
|
//#endregion
|
|
13739
14336
|
//#region src/actions/package/recompile.ts
|
|
13740
14337
|
const packageRecompile = async (config = {}) => {
|
|
13741
|
-
return packageClean() || await packageCompile(config);
|
|
14338
|
+
return await packageClean() || await packageCompile(config);
|
|
13742
14339
|
};
|
|
13743
14340
|
//#endregion
|
|
13744
14341
|
//#region src/bin/package/recompile.ts
|