@ariestools/toolchain 8.6.11
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 +65 -0
- package/dist/actions/analyze.d.ts +2 -0
- package/dist/actions/analyze.d.ts.map +1 -0
- package/dist/actions/api-exposure/analyzer/analyzePackage.d.ts +28 -0
- package/dist/actions/api-exposure/analyzer/analyzePackage.d.ts.map +1 -0
- package/dist/actions/api-exposure/analyzer/couplingWalk.d.ts +11 -0
- package/dist/actions/api-exposure/analyzer/couplingWalk.d.ts.map +1 -0
- package/dist/actions/api-exposure/analyzer/depSignals.d.ts +19 -0
- package/dist/actions/api-exposure/analyzer/depSignals.d.ts.map +1 -0
- package/dist/actions/api-exposure/analyzer/entryPoints.d.ts +7 -0
- package/dist/actions/api-exposure/analyzer/entryPoints.d.ts.map +1 -0
- package/dist/actions/api-exposure/analyzer/exposureWalk.d.ts +21 -0
- package/dist/actions/api-exposure/analyzer/exposureWalk.d.ts.map +1 -0
- package/dist/actions/api-exposure/analyzer/program.d.ts +21 -0
- package/dist/actions/api-exposure/analyzer/program.d.ts.map +1 -0
- package/dist/actions/api-exposure/apiExposure.d.ts +17 -0
- package/dist/actions/api-exposure/apiExposure.d.ts.map +1 -0
- package/dist/actions/api-exposure/config.d.ts +21 -0
- package/dist/actions/api-exposure/config.d.ts.map +1 -0
- package/dist/actions/api-exposure/index.d.ts +9 -0
- package/dist/actions/api-exposure/index.d.ts.map +1 -0
- package/dist/actions/api-exposure/reporters.d.ts +16 -0
- package/dist/actions/api-exposure/reporters.d.ts.map +1 -0
- package/dist/actions/api-exposure/rules.d.ts +10 -0
- package/dist/actions/api-exposure/rules.d.ts.map +1 -0
- package/dist/actions/api-exposure/scoring.d.ts +28 -0
- package/dist/actions/api-exposure/scoring.d.ts.map +1 -0
- package/dist/actions/api-exposure/types.d.ts +86 -0
- package/dist/actions/api-exposure/types.d.ts.map +1 -0
- package/dist/actions/barrel/analyzeBarrel.d.ts +22 -0
- package/dist/actions/barrel/analyzeBarrel.d.ts.map +1 -0
- package/dist/actions/barrel/checkBarrelImportRestrictions.d.ts +12 -0
- package/dist/actions/barrel/checkBarrelImportRestrictions.d.ts.map +1 -0
- package/dist/actions/barrel/getReExportSpecs.d.ts +11 -0
- package/dist/actions/barrel/getReExportSpecs.d.ts.map +1 -0
- package/dist/actions/barrel/index.d.ts +6 -0
- package/dist/actions/barrel/index.d.ts.map +1 -0
- package/dist/actions/barrel/resolveBarrel.d.ts +9 -0
- package/dist/actions/barrel/resolveBarrel.d.ts.map +1 -0
- package/dist/actions/barrel/restrictionHelpers.d.ts +30 -0
- package/dist/actions/barrel/restrictionHelpers.d.ts.map +1 -0
- package/dist/actions/build.d.ts +9 -0
- package/dist/actions/build.d.ts.map +1 -0
- package/dist/actions/claude-check.d.ts +2 -0
- package/dist/actions/claude-check.d.ts.map +1 -0
- package/dist/actions/claude-clean.d.ts +2 -0
- package/dist/actions/claude-clean.d.ts.map +1 -0
- package/dist/actions/claude-commands.d.ts +2 -0
- package/dist/actions/claude-commands.d.ts.map +1 -0
- package/dist/actions/claude-rules.d.ts +4 -0
- package/dist/actions/claude-rules.d.ts.map +1 -0
- package/dist/actions/claude-settings.d.ts +5 -0
- package/dist/actions/claude-settings.d.ts.map +1 -0
- package/dist/actions/claude-skills.d.ts +2 -0
- package/dist/actions/claude-skills.d.ts.map +1 -0
- package/dist/actions/clean-eslint.d.ts +3 -0
- package/dist/actions/clean-eslint.d.ts.map +1 -0
- package/dist/actions/clean.d.ts +14 -0
- package/dist/actions/clean.d.ts.map +1 -0
- package/dist/actions/compile.d.ts +45 -0
- package/dist/actions/compile.d.ts.map +1 -0
- package/dist/actions/copy-assets.d.ts +6 -0
- package/dist/actions/copy-assets.d.ts.map +1 -0
- package/dist/actions/dead/analyzePackage.d.ts +43 -0
- package/dist/actions/dead/analyzePackage.d.ts.map +1 -0
- package/dist/actions/dead/classifyPackageVisibility.d.ts +4 -0
- package/dist/actions/dead/classifyPackageVisibility.d.ts.map +1 -0
- package/dist/actions/dead/collectExternalUsage.d.ts +38 -0
- package/dist/actions/dead/collectExternalUsage.d.ts.map +1 -0
- package/dist/actions/dead/collectSymbols.d.ts +40 -0
- package/dist/actions/dead/collectSymbols.d.ts.map +1 -0
- package/dist/actions/dead/dead.d.ts +4 -0
- package/dist/actions/dead/dead.d.ts.map +1 -0
- package/dist/actions/dead/deprecation.d.ts +3 -0
- package/dist/actions/dead/deprecation.d.ts.map +1 -0
- package/dist/actions/dead/detectActiveCodeWorkspace.d.ts +7 -0
- package/dist/actions/dead/detectActiveCodeWorkspace.d.ts.map +1 -0
- package/dist/actions/dead/evaluateRules.d.ts +8 -0
- package/dist/actions/dead/evaluateRules.d.ts.map +1 -0
- package/dist/actions/dead/findWorkspaceFile.d.ts +13 -0
- package/dist/actions/dead/findWorkspaceFile.d.ts.map +1 -0
- package/dist/actions/dead/fixDeadCode.d.ts +12 -0
- package/dist/actions/dead/fixDeadCode.d.ts.map +1 -0
- package/dist/actions/dead/index.d.ts +10 -0
- package/dist/actions/dead/index.d.ts.map +1 -0
- package/dist/actions/dead/parseCodeWorkspace.d.ts +7 -0
- package/dist/actions/dead/parseCodeWorkspace.d.ts.map +1 -0
- package/dist/actions/dead/propagateExternalUsage.d.ts +4 -0
- package/dist/actions/dead/propagateExternalUsage.d.ts.map +1 -0
- package/dist/actions/dead/pruneDeadFiles.d.ts +7 -0
- package/dist/actions/dead/pruneDeadFiles.d.ts.map +1 -0
- package/dist/actions/dead/reporters.d.ts +6 -0
- package/dist/actions/dead/reporters.d.ts.map +1 -0
- package/dist/actions/dead/ruleConfig.d.ts +5 -0
- package/dist/actions/dead/ruleConfig.d.ts.map +1 -0
- package/dist/actions/dead/ruleNames.d.ts +4 -0
- package/dist/actions/dead/ruleNames.d.ts.map +1 -0
- package/dist/actions/dead/rules.d.ts +7 -0
- package/dist/actions/dead/rules.d.ts.map +1 -0
- package/dist/actions/dead/runDeadAnalysis.d.ts +25 -0
- package/dist/actions/dead/runDeadAnalysis.d.ts.map +1 -0
- package/dist/actions/dead/runtimeEntries.d.ts +23 -0
- package/dist/actions/dead/runtimeEntries.d.ts.map +1 -0
- package/dist/actions/dead/sourceEdits.d.ts +7 -0
- package/dist/actions/dead/sourceEdits.d.ts.map +1 -0
- package/dist/actions/dead/storybookConventions.d.ts +6 -0
- package/dist/actions/dead/storybookConventions.d.ts.map +1 -0
- package/dist/actions/dead/types.d.ts +68 -0
- package/dist/actions/dead/types.d.ts.map +1 -0
- package/dist/actions/deplint/checkPackage/checkPackage.d.ts +17 -0
- package/dist/actions/deplint/checkPackage/checkPackage.d.ts.map +1 -0
- package/dist/actions/deplint/checkPackage/checkPackageTypes.d.ts +19 -0
- package/dist/actions/deplint/checkPackage/checkPackageTypes.d.ts.map +1 -0
- package/dist/actions/deplint/checkPackage/getMismatchedPeerDevVersions.d.ts +11 -0
- package/dist/actions/deplint/checkPackage/getMismatchedPeerDevVersions.d.ts.map +1 -0
- package/dist/actions/deplint/checkPackage/getUnlistedDependencies.d.ts +21 -0
- package/dist/actions/deplint/checkPackage/getUnlistedDependencies.d.ts.map +1 -0
- package/dist/actions/deplint/checkPackage/getUnlistedDevDependencies.d.ts +6 -0
- package/dist/actions/deplint/checkPackage/getUnlistedDevDependencies.d.ts.map +1 -0
- package/dist/actions/deplint/checkPackage/getUnnecessaryPeerDependencies.d.ts +24 -0
- package/dist/actions/deplint/checkPackage/getUnnecessaryPeerDependencies.d.ts.map +1 -0
- package/dist/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts +74 -0
- package/dist/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts.map +1 -0
- package/dist/actions/deplint/checkPackage/getUnusedDependencies.d.ts +12 -0
- package/dist/actions/deplint/checkPackage/getUnusedDependencies.d.ts.map +1 -0
- package/dist/actions/deplint/checkPackage/getUnusedDevDependencies.d.ts +7 -0
- package/dist/actions/deplint/checkPackage/getUnusedDevDependencies.d.ts.map +1 -0
- package/dist/actions/deplint/checkPackage/getUnusedPeerDependencies.d.ts +6 -0
- package/dist/actions/deplint/checkPackage/getUnusedPeerDependencies.d.ts.map +1 -0
- package/dist/actions/deplint/checkPackage/getWorkspaceVersionProblems.d.ts +21 -0
- package/dist/actions/deplint/checkPackage/getWorkspaceVersionProblems.d.ts.map +1 -0
- package/dist/actions/deplint/checkPackage/index.d.ts +13 -0
- package/dist/actions/deplint/checkPackage/index.d.ts.map +1 -0
- package/dist/actions/deplint/checkPackage/legacyPeerCheck.d.ts +13 -0
- package/dist/actions/deplint/checkPackage/legacyPeerCheck.d.ts.map +1 -0
- package/dist/actions/deplint/deplint.d.ts +20 -0
- package/dist/actions/deplint/deplint.d.ts.map +1 -0
- package/dist/actions/deplint/engine.d.ts +15 -0
- package/dist/actions/deplint/engine.d.ts.map +1 -0
- package/dist/actions/deplint/fetchPackageManifest.d.ts +25 -0
- package/dist/actions/deplint/fetchPackageManifest.d.ts.map +1 -0
- package/dist/actions/deplint/findFiles.d.ts +6 -0
- package/dist/actions/deplint/findFiles.d.ts.map +1 -0
- package/dist/actions/deplint/findFilesByGlob.d.ts +2 -0
- package/dist/actions/deplint/findFilesByGlob.d.ts.map +1 -0
- package/dist/actions/deplint/fixer.d.ts +3 -0
- package/dist/actions/deplint/fixer.d.ts.map +1 -0
- package/dist/actions/deplint/getBasePackageName.d.ts +2 -0
- package/dist/actions/deplint/getBasePackageName.d.ts.map +1 -0
- package/dist/actions/deplint/getCliReferencedPackagesFromFiles.d.ts +12 -0
- package/dist/actions/deplint/getCliReferencedPackagesFromFiles.d.ts.map +1 -0
- package/dist/actions/deplint/getDependenciesFromPackageJson.d.ts +9 -0
- package/dist/actions/deplint/getDependenciesFromPackageJson.d.ts.map +1 -0
- package/dist/actions/deplint/getExtendsFromTsconfigs.d.ts +10 -0
- package/dist/actions/deplint/getExtendsFromTsconfigs.d.ts.map +1 -0
- package/dist/actions/deplint/getExternalImportsFromFiles.d.ts +12 -0
- package/dist/actions/deplint/getExternalImportsFromFiles.d.ts.map +1 -0
- package/dist/actions/deplint/getImportsFromFile.d.ts +4 -0
- package/dist/actions/deplint/getImportsFromFile.d.ts.map +1 -0
- package/dist/actions/deplint/getRequiredPeerDependencies.d.ts +10 -0
- package/dist/actions/deplint/getRequiredPeerDependencies.d.ts.map +1 -0
- package/dist/actions/deplint/getScriptReferencedPackages.d.ts +8 -0
- package/dist/actions/deplint/getScriptReferencedPackages.d.ts.map +1 -0
- package/dist/actions/deplint/getStorybookConfigImports.d.ts +3 -0
- package/dist/actions/deplint/getStorybookConfigImports.d.ts.map +1 -0
- package/dist/actions/deplint/implicitDevDependencies.d.ts +15 -0
- package/dist/actions/deplint/implicitDevDependencies.d.ts.map +1 -0
- package/dist/actions/deplint/index.d.ts +11 -0
- package/dist/actions/deplint/index.d.ts.map +1 -0
- package/dist/actions/deplint/isTerminalPackage.d.ts +25 -0
- package/dist/actions/deplint/isTerminalPackage.d.ts.map +1 -0
- package/dist/actions/deplint/loader.d.ts +4 -0
- package/dist/actions/deplint/loader.d.ts.map +1 -0
- package/dist/actions/deplint/packageEditor.d.ts +11 -0
- package/dist/actions/deplint/packageEditor.d.ts.map +1 -0
- package/dist/actions/deplint/packageJsonEditor.d.ts +97 -0
- package/dist/actions/deplint/packageJsonEditor.d.ts.map +1 -0
- package/dist/actions/deplint/peerRangeOptions.d.ts +10 -0
- package/dist/actions/deplint/peerRangeOptions.d.ts.map +1 -0
- package/dist/actions/deplint/reporters.d.ts +8 -0
- package/dist/actions/deplint/reporters.d.ts.map +1 -0
- package/dist/actions/deplint/resolvePeerBumpFixes.d.ts +24 -0
- package/dist/actions/deplint/resolvePeerBumpFixes.d.ts.map +1 -0
- package/dist/actions/deplint/ruleConfig.d.ts +5 -0
- package/dist/actions/deplint/ruleConfig.d.ts.map +1 -0
- package/dist/actions/deplint/rules.d.ts +4 -0
- package/dist/actions/deplint/rules.d.ts.map +1 -0
- package/dist/actions/deplint/rulesDiagnostic.d.ts +4 -0
- package/dist/actions/deplint/rulesDiagnostic.d.ts.map +1 -0
- package/dist/actions/deplint/rulesMisplaced.d.ts +4 -0
- package/dist/actions/deplint/rulesMisplaced.d.ts.map +1 -0
- package/dist/actions/deplint/snapshot.d.ts +22 -0
- package/dist/actions/deplint/snapshot.d.ts.map +1 -0
- package/dist/actions/deplint/tsScriptsAliases.d.ts +11 -0
- package/dist/actions/deplint/tsScriptsAliases.d.ts.map +1 -0
- package/dist/actions/deplint/types.d.ts +295 -0
- package/dist/actions/deplint/types.d.ts.map +1 -0
- package/dist/actions/deplint/versionMismatchFixes.d.ts +4 -0
- package/dist/actions/deplint/versionMismatchFixes.d.ts.map +1 -0
- package/dist/actions/deploy.d.ts +3 -0
- package/dist/actions/deploy.d.ts.map +1 -0
- package/dist/actions/eject.d.ts +2 -0
- package/dist/actions/eject.d.ts.map +1 -0
- package/dist/actions/fix.d.ts +7 -0
- package/dist/actions/fix.d.ts.map +1 -0
- package/dist/actions/gitignore.d.ts +4 -0
- package/dist/actions/gitignore.d.ts.map +1 -0
- package/dist/actions/gitlint-fix.d.ts +2 -0
- package/dist/actions/gitlint-fix.d.ts.map +1 -0
- package/dist/actions/gitlint.d.ts +2 -0
- package/dist/actions/gitlint.d.ts.map +1 -0
- package/dist/actions/incremental.d.ts +46 -0
- package/dist/actions/incremental.d.ts.map +1 -0
- package/dist/actions/index.d.ts +54 -0
- package/dist/actions/index.d.ts.map +1 -0
- package/dist/actions/install.d.ts +2 -0
- package/dist/actions/install.d.ts.map +1 -0
- package/dist/actions/license.d.ts +2 -0
- package/dist/actions/license.d.ts.map +1 -0
- package/dist/actions/lint-config.d.ts +16 -0
- package/dist/actions/lint-config.d.ts.map +1 -0
- package/dist/actions/lint-init.d.ts +16 -0
- package/dist/actions/lint-init.d.ts.map +1 -0
- package/dist/actions/lint.d.ts +36 -0
- package/dist/actions/lint.d.ts.map +1 -0
- package/dist/actions/lintNext.d.ts +14 -0
- package/dist/actions/lintNext.d.ts.map +1 -0
- package/dist/actions/lintNextWorker.d.ts +21 -0
- package/dist/actions/lintNextWorker.d.ts.map +1 -0
- package/dist/actions/lintTierAnalysis.d.ts +61 -0
- package/dist/actions/lintTierAnalysis.d.ts.map +1 -0
- package/dist/actions/lintlint.d.ts +12 -0
- package/dist/actions/lintlint.d.ts.map +1 -0
- package/dist/actions/node-lint.d.ts +19 -0
- package/dist/actions/node-lint.d.ts.map +1 -0
- package/dist/actions/npmignore-gen.d.ts +2 -0
- package/dist/actions/npmignore-gen.d.ts.map +1 -0
- package/dist/actions/orphan.d.ts +6 -0
- package/dist/actions/orphan.d.ts.map +1 -0
- package/dist/actions/package/clean-outputs.d.ts +6 -0
- package/dist/actions/package/clean-outputs.d.ts.map +1 -0
- package/dist/actions/package/clean-typescript.d.ts +3 -0
- package/dist/actions/package/clean-typescript.d.ts.map +1 -0
- package/dist/actions/package/clean.d.ts +3 -0
- package/dist/actions/package/clean.d.ts.map +1 -0
- package/dist/actions/package/compile/ApiExposureConfig.d.ts +58 -0
- package/dist/actions/package/compile/ApiExposureConfig.d.ts.map +1 -0
- package/dist/actions/package/compile/MonolithConfig.d.ts +105 -0
- package/dist/actions/package/compile/MonolithConfig.d.ts.map +1 -0
- package/dist/actions/package/compile/XyConfig.d.ts +462 -0
- package/dist/actions/package/compile/XyConfig.d.ts.map +1 -0
- package/dist/actions/package/compile/buildEntries.d.ts +3 -0
- package/dist/actions/package/compile/buildEntries.d.ts.map +1 -0
- package/dist/actions/package/compile/compile.d.ts +7 -0
- package/dist/actions/package/compile/compile.d.ts.map +1 -0
- package/dist/actions/package/compile/copyTypeFiles.d.ts +2 -0
- package/dist/actions/package/compile/copyTypeFiles.d.ts.map +1 -0
- package/dist/actions/package/compile/createProgramFromConfig.d.ts +25 -0
- package/dist/actions/package/compile/createProgramFromConfig.d.ts.map +1 -0
- package/dist/actions/package/compile/createTypescriptConfig.d.ts +29 -0
- package/dist/actions/package/compile/createTypescriptConfig.d.ts.map +1 -0
- package/dist/actions/package/compile/deepMerge.d.ts +4 -0
- package/dist/actions/package/compile/deepMerge.d.ts.map +1 -0
- package/dist/actions/package/compile/entryOutputName.d.ts +5 -0
- package/dist/actions/package/compile/entryOutputName.d.ts.map +1 -0
- package/dist/actions/package/compile/findWorkspaceRoot.d.ts +5 -0
- package/dist/actions/package/compile/findWorkspaceRoot.d.ts.map +1 -0
- package/dist/actions/package/compile/getCompilerOptions.d.ts +3 -0
- package/dist/actions/package/compile/getCompilerOptions.d.ts.map +1 -0
- package/dist/actions/package/compile/index.d.ts +16 -0
- package/dist/actions/package/compile/index.d.ts.map +1 -0
- package/dist/actions/package/compile/inputs.d.ts +2 -0
- package/dist/actions/package/compile/inputs.d.ts.map +1 -0
- package/dist/actions/package/compile/monolithCompileDeclarations.d.ts +14 -0
- package/dist/actions/package/compile/monolithCompileDeclarations.d.ts.map +1 -0
- package/dist/actions/package/compile/monolithCompileEntries.d.ts +20 -0
- package/dist/actions/package/compile/monolithCompileEntries.d.ts.map +1 -0
- package/dist/actions/package/compile/monolithCompileLayout.d.ts +43 -0
- package/dist/actions/package/compile/monolithCompileLayout.d.ts.map +1 -0
- package/dist/actions/package/compile/packageCompileEsbuild.d.ts +18 -0
- package/dist/actions/package/compile/packageCompileEsbuild.d.ts.map +1 -0
- package/dist/actions/package/compile/packageCompileMonolith.d.ts +10 -0
- package/dist/actions/package/compile/packageCompileMonolith.d.ts.map +1 -0
- package/dist/actions/package/compile/packageCompileTsc.d.ts +3 -0
- package/dist/actions/package/compile/packageCompileTsc.d.ts.map +1 -0
- package/dist/actions/package/compile/packageCompileTsup.d.ts +6 -0
- package/dist/actions/package/compile/packageCompileTsup.d.ts.map +1 -0
- package/dist/actions/package/compile/packageCompileVendor.d.ts +4 -0
- package/dist/actions/package/compile/packageCompileVendor.d.ts.map +1 -0
- package/dist/actions/package/compile/resolveCompileBundleOptions.d.ts +13 -0
- package/dist/actions/package/compile/resolveCompileBundleOptions.d.ts.map +1 -0
- package/dist/actions/package/compile/resolveCompilePlatforms.d.ts +23 -0
- package/dist/actions/package/compile/resolveCompilePlatforms.d.ts.map +1 -0
- package/dist/actions/package/compile/resolvePlatformTypes.d.ts +5 -0
- package/dist/actions/package/compile/resolvePlatformTypes.d.ts.map +1 -0
- package/dist/actions/package/compile/runTsc.d.ts +2 -0
- package/dist/actions/package/compile/runTsc.d.ts.map +1 -0
- package/dist/actions/package/compile/validateFullPackage.d.ts +2 -0
- package/dist/actions/package/compile/validateFullPackage.d.ts.map +1 -0
- package/dist/actions/package/compile/vendorCompile.d.ts +6 -0
- package/dist/actions/package/compile/vendorCompile.d.ts.map +1 -0
- package/dist/actions/package/compile/vendorCompileEmit.d.ts +8 -0
- package/dist/actions/package/compile/vendorCompileEmit.d.ts.map +1 -0
- package/dist/actions/package/compile/vendorCompileInternals.d.ts +31 -0
- package/dist/actions/package/compile/vendorCompileInternals.d.ts.map +1 -0
- package/dist/actions/package/compile/vendorCompileRewrite.d.ts +3 -0
- package/dist/actions/package/compile/vendorCompileRewrite.d.ts.map +1 -0
- package/dist/actions/package/compile/vendorCompileTypes.d.ts +31 -0
- package/dist/actions/package/compile/vendorCompileTypes.d.ts.map +1 -0
- package/dist/actions/package/compileTargetsPublint.d.ts +13 -0
- package/dist/actions/package/compileTargetsPublint.d.ts.map +1 -0
- package/dist/actions/package/copy-assets.d.ts +5 -0
- package/dist/actions/package/copy-assets.d.ts.map +1 -0
- package/dist/actions/package/expectedCompileOutputs.d.ts +11 -0
- package/dist/actions/package/expectedCompileOutputs.d.ts.map +1 -0
- package/dist/actions/package/exportConditionPublint.d.ts +9 -0
- package/dist/actions/package/exportConditionPublint.d.ts.map +1 -0
- package/dist/actions/package/exportMapPublint.d.ts +7 -0
- package/dist/actions/package/exportMapPublint.d.ts.map +1 -0
- package/dist/actions/package/index.d.ts +9 -0
- package/dist/actions/package/index.d.ts.map +1 -0
- package/dist/actions/package/lint.d.ts +2 -0
- package/dist/actions/package/lint.d.ts.map +1 -0
- package/dist/actions/package/platformPublint.d.ts +7 -0
- package/dist/actions/package/platformPublint.d.ts.map +1 -0
- package/dist/actions/package/publint.d.ts +16 -0
- package/dist/actions/package/publint.d.ts.map +1 -0
- package/dist/actions/package/recompile.d.ts +3 -0
- package/dist/actions/package/recompile.d.ts.map +1 -0
- package/dist/actions/package-lint-deps.d.ts +47 -0
- package/dist/actions/package-lint-deps.d.ts.map +1 -0
- package/dist/actions/package-lint-engines.d.ts +22 -0
- package/dist/actions/package-lint-engines.d.ts.map +1 -0
- package/dist/actions/package-lint-pnpm.d.ts +11 -0
- package/dist/actions/package-lint-pnpm.d.ts.map +1 -0
- package/dist/actions/package-lint-specs.d.ts +9 -0
- package/dist/actions/package-lint-specs.d.ts.map +1 -0
- package/dist/actions/package-lint.d.ts +7 -0
- package/dist/actions/package-lint.d.ts.map +1 -0
- package/dist/actions/packman/clean.d.ts +5 -0
- package/dist/actions/packman/clean.d.ts.map +1 -0
- package/dist/actions/packman/convert.d.ts +10 -0
- package/dist/actions/packman/convert.d.ts.map +1 -0
- package/dist/actions/packman/convertToBun.d.ts +2 -0
- package/dist/actions/packman/convertToBun.d.ts.map +1 -0
- package/dist/actions/packman/convertToNpm.d.ts +2 -0
- package/dist/actions/packman/convertToNpm.d.ts.map +1 -0
- package/dist/actions/packman/convertToPnpm.d.ts +2 -0
- package/dist/actions/packman/convertToPnpm.d.ts.map +1 -0
- package/dist/actions/packman/convertToYarn.d.ts +2 -0
- package/dist/actions/packman/convertToYarn.d.ts.map +1 -0
- package/dist/actions/packman/index.d.ts +5 -0
- package/dist/actions/packman/index.d.ts.map +1 -0
- package/dist/actions/packman/lint.d.ts +6 -0
- package/dist/actions/packman/lint.d.ts.map +1 -0
- package/dist/actions/packman/rewriteScripts.d.ts +5 -0
- package/dist/actions/packman/rewriteScripts.d.ts.map +1 -0
- package/dist/actions/packman/rewriteSourceImports.d.ts +2 -0
- package/dist/actions/packman/rewriteSourceImports.d.ts.map +1 -0
- package/dist/actions/packman/swapTsScriptsDependency.d.ts +2 -0
- package/dist/actions/packman/swapTsScriptsDependency.d.ts.map +1 -0
- package/dist/actions/publint.d.ts +48 -0
- package/dist/actions/publint.d.ts.map +1 -0
- package/dist/actions/publish.d.ts +22 -0
- package/dist/actions/publish.d.ts.map +1 -0
- package/dist/actions/reactTest.d.ts +2 -0
- package/dist/actions/reactTest.d.ts.map +1 -0
- package/dist/actions/rebuild.d.ts +7 -0
- package/dist/actions/rebuild.d.ts.map +1 -0
- package/dist/actions/recompile.d.ts +16 -0
- package/dist/actions/recompile.d.ts.map +1 -0
- package/dist/actions/reinstall.d.ts +2 -0
- package/dist/actions/reinstall.d.ts.map +1 -0
- package/dist/actions/releaseAgeExcludeScopes.d.ts +13 -0
- package/dist/actions/releaseAgeExcludeScopes.d.ts.map +1 -0
- package/dist/actions/relint.d.ts +24 -0
- package/dist/actions/relint.d.ts.map +1 -0
- package/dist/actions/repo-init.d.ts +14 -0
- package/dist/actions/repo-init.d.ts.map +1 -0
- package/dist/actions/republint.d.ts +13 -0
- package/dist/actions/republint.d.ts.map +1 -0
- package/dist/actions/result.d.ts +44 -0
- package/dist/actions/result.d.ts.map +1 -0
- package/dist/actions/retest.d.ts +5 -0
- package/dist/actions/retest.d.ts.map +1 -0
- package/dist/actions/secure.d.ts +7 -0
- package/dist/actions/secure.d.ts.map +1 -0
- package/dist/actions/sitemap.d.ts +2 -0
- package/dist/actions/sitemap.d.ts.map +1 -0
- package/dist/actions/skills/defaults.d.ts +6 -0
- package/dist/actions/skills/defaults.d.ts.map +1 -0
- package/dist/actions/skills/detectProfile.d.ts +10 -0
- package/dist/actions/skills/detectProfile.d.ts.map +1 -0
- package/dist/actions/skills/index.d.ts +9 -0
- package/dist/actions/skills/index.d.ts.map +1 -0
- package/dist/actions/skills/installed.d.ts +10 -0
- package/dist/actions/skills/installed.d.ts.map +1 -0
- package/dist/actions/skills/lint.d.ts +26 -0
- package/dist/actions/skills/lint.d.ts.map +1 -0
- package/dist/actions/skills/passthrough.d.ts +26 -0
- package/dist/actions/skills/passthrough.d.ts.map +1 -0
- package/dist/actions/skills/remove.d.ts +9 -0
- package/dist/actions/skills/remove.d.ts.map +1 -0
- package/dist/actions/skills/skillRules.d.ts +9 -0
- package/dist/actions/skills/skillRules.d.ts.map +1 -0
- package/dist/actions/skills/updo.d.ts +4 -0
- package/dist/actions/skills/updo.d.ts.map +1 -0
- package/dist/actions/skills/versions.d.ts +10 -0
- package/dist/actions/skills/versions.d.ts.map +1 -0
- package/dist/actions/sonar.d.ts +2 -0
- package/dist/actions/sonar.d.ts.map +1 -0
- package/dist/actions/start.d.ts +2 -0
- package/dist/actions/start.d.ts.map +1 -0
- package/dist/actions/statics.d.ts +2 -0
- package/dist/actions/statics.d.ts.map +1 -0
- package/dist/actions/test.d.ts +5 -0
- package/dist/actions/test.d.ts.map +1 -0
- package/dist/actions/tsc-validate/index.d.ts +3 -0
- package/dist/actions/tsc-validate/index.d.ts.map +1 -0
- package/dist/actions/tsc-validate/sharedValidate.d.ts +34 -0
- package/dist/actions/tsc-validate/sharedValidate.d.ts.map +1 -0
- package/dist/actions/tsc-validate/tscValidate.d.ts +35 -0
- package/dist/actions/tsc-validate/tscValidate.d.ts.map +1 -0
- package/dist/actions/up.d.ts +2 -0
- package/dist/actions/up.d.ts.map +1 -0
- package/dist/actions/updo.d.ts +9 -0
- package/dist/actions/updo.d.ts.map +1 -0
- package/dist/actions/work/id.d.ts +8 -0
- package/dist/actions/work/id.d.ts.map +1 -0
- package/dist/actions/work/index.d.ts +131 -0
- package/dist/actions/work/index.d.ts.map +1 -0
- package/dist/actions/work/inline.d.ts +8 -0
- package/dist/actions/work/inline.d.ts.map +1 -0
- package/dist/actions/work/priority.d.ts +5 -0
- package/dist/actions/work/priority.d.ts.map +1 -0
- package/dist/actions/work/schema.d.ts +81 -0
- package/dist/actions/work/schema.d.ts.map +1 -0
- package/dist/actions/work/store.d.ts +23 -0
- package/dist/actions/work/store.d.ts.map +1 -0
- package/dist/bin/cli.mjs +2 -0
- package/dist/bin/package/build.d.ts +3 -0
- package/dist/bin/package/build.d.ts.map +1 -0
- package/dist/bin/package/build.mjs +18220 -0
- package/dist/bin/package/build.mjs.map +1 -0
- package/dist/bin/package/clean-outputs.d.ts +3 -0
- package/dist/bin/package/clean-outputs.d.ts.map +1 -0
- package/dist/bin/package/clean-typescript.d.ts +3 -0
- package/dist/bin/package/clean-typescript.d.ts.map +1 -0
- package/dist/bin/package/clean.d.ts +3 -0
- package/dist/bin/package/clean.d.ts.map +1 -0
- package/dist/bin/package/clean.mjs +3632 -0
- package/dist/bin/package/clean.mjs.map +1 -0
- package/dist/bin/package/compile-tsup.d.ts +3 -0
- package/dist/bin/package/compile-tsup.d.ts.map +1 -0
- package/dist/bin/package/compile.d.ts +3 -0
- package/dist/bin/package/compile.d.ts.map +1 -0
- package/dist/bin/package/compile.mjs +13159 -0
- package/dist/bin/package/compile.mjs.map +1 -0
- package/dist/bin/package/copy-assets-cjs.d.ts +3 -0
- package/dist/bin/package/copy-assets-cjs.d.ts.map +1 -0
- package/dist/bin/package/copy-assets-cjs.mjs +3634 -0
- package/dist/bin/package/copy-assets-cjs.mjs.map +1 -0
- package/dist/bin/package/copy-assets-esm.d.ts +3 -0
- package/dist/bin/package/copy-assets-esm.d.ts.map +1 -0
- package/dist/bin/package/copy-assets-esm.mjs +3634 -0
- package/dist/bin/package/copy-assets-esm.mjs.map +1 -0
- package/dist/bin/package/fix.d.ts +3 -0
- package/dist/bin/package/fix.d.ts.map +1 -0
- package/dist/bin/package/fix.mjs +2184 -0
- package/dist/bin/package/fix.mjs.map +1 -0
- package/dist/bin/package/lint-verbose.d.ts +3 -0
- package/dist/bin/package/lint-verbose.d.ts.map +1 -0
- package/dist/bin/package/lint-verbose.mjs +2184 -0
- package/dist/bin/package/lint-verbose.mjs.map +1 -0
- package/dist/bin/package/lint.d.ts +3 -0
- package/dist/bin/package/lint.d.ts.map +1 -0
- package/dist/bin/package/lint.mjs +2184 -0
- package/dist/bin/package/lint.mjs.map +1 -0
- package/dist/bin/package/publint.d.ts +3 -0
- package/dist/bin/package/publint.d.ts.map +1 -0
- package/dist/bin/package/publint.mjs +13676 -0
- package/dist/bin/package/publint.mjs.map +1 -0
- package/dist/bin/package/recompile.d.ts +3 -0
- package/dist/bin/package/recompile.d.ts.map +1 -0
- package/dist/bin/package/recompile.mjs +13230 -0
- package/dist/bin/package/recompile.mjs.map +1 -0
- package/dist/bin/package/relint.d.ts +3 -0
- package/dist/bin/package/relint.d.ts.map +1 -0
- package/dist/bin/package/relint.mjs +2184 -0
- package/dist/bin/package/relint.mjs.map +1 -0
- package/dist/bin/package/sync-layout.d.ts +3 -0
- package/dist/bin/package/sync-layout.d.ts.map +1 -0
- package/dist/bin/package/sync-layout.mjs +5504 -0
- package/dist/bin/package/sync-layout.mjs.map +1 -0
- package/dist/bin/run-or-exec.d.ts +3 -0
- package/dist/bin/run-or-exec.d.ts.map +1 -0
- package/dist/bin/run-or-exec.mjs +975 -0
- package/dist/bin/run-or-exec.mjs.map +1 -0
- package/dist/bin/skills.mjs +18533 -0
- package/dist/bin/skills.mjs.map +1 -0
- package/dist/bin/source-map-explorer.mjs +27263 -0
- package/dist/bin/source-map-explorer.mjs.map +1 -0
- package/dist/bin/xy.d.ts +3 -0
- package/dist/bin/xy.d.ts.map +1 -0
- package/dist/bin/xy.mjs +47963 -0
- package/dist/bin/xy.mjs.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/lib/bundledCliPath.d.ts +4 -0
- package/dist/lib/bundledCliPath.d.ts.map +1 -0
- package/dist/lib/checkResult.d.ts +2 -0
- package/dist/lib/checkResult.d.ts.map +1 -0
- package/dist/lib/claudeMdTemplate.d.ts +12 -0
- package/dist/lib/claudeMdTemplate.d.ts.map +1 -0
- package/dist/lib/concurrency.d.ts +5 -0
- package/dist/lib/concurrency.d.ts.map +1 -0
- package/dist/lib/copyAssetFiles.d.ts +10 -0
- package/dist/lib/copyAssetFiles.d.ts.map +1 -0
- package/dist/lib/createBuildConfig.d.ts +2 -0
- package/dist/lib/createBuildConfig.d.ts.map +1 -0
- package/dist/lib/crossSpawn.d.ts +6 -0
- package/dist/lib/crossSpawn.d.ts.map +1 -0
- package/dist/lib/deepMerge.d.ts +24 -0
- package/dist/lib/deepMerge.d.ts.map +1 -0
- package/dist/lib/defaultBuildConfig.d.ts +9 -0
- package/dist/lib/defaultBuildConfig.d.ts.map +1 -0
- package/dist/lib/deleteGlob.d.ts +2 -0
- package/dist/lib/deleteGlob.d.ts.map +1 -0
- package/dist/lib/dependencies/DuplicateDetector.d.ts +7 -0
- package/dist/lib/dependencies/DuplicateDetector.d.ts.map +1 -0
- package/dist/lib/dependencies/detectDuplicateDependencies.d.ts +2 -0
- package/dist/lib/dependencies/detectDuplicateDependencies.d.ts.map +1 -0
- package/dist/lib/dependencies/index.d.ts +4 -0
- package/dist/lib/dependencies/index.d.ts.map +1 -0
- package/dist/lib/dependencies/workspaceCycles.d.ts +15 -0
- package/dist/lib/dependencies/workspaceCycles.d.ts.map +1 -0
- package/dist/lib/deprecationMigrate.d.ts +2 -0
- package/dist/lib/deprecationMigrate.d.ts.map +1 -0
- package/dist/lib/eslintCache.d.ts +4 -0
- package/dist/lib/eslintCache.d.ts.map +1 -0
- package/dist/lib/file/ReadFileSyncOptions.d.ts +6 -0
- package/dist/lib/file/ReadFileSyncOptions.d.ts.map +1 -0
- package/dist/lib/file/constants.d.ts +3 -0
- package/dist/lib/file/constants.d.ts.map +1 -0
- package/dist/lib/file/fileLines.d.ts +6 -0
- package/dist/lib/file/fileLines.d.ts.map +1 -0
- package/dist/lib/file/index.d.ts +5 -0
- package/dist/lib/file/index.d.ts.map +1 -0
- package/dist/lib/file/tryReadFileSync.d.ts +4 -0
- package/dist/lib/file/tryReadFileSync.d.ts.map +1 -0
- package/dist/lib/fillTemplate.d.ts +2 -0
- package/dist/lib/fillTemplate.d.ts.map +1 -0
- package/dist/lib/generateIgnoreFiles.d.ts +2 -0
- package/dist/lib/generateIgnoreFiles.d.ts.map +1 -0
- package/dist/lib/gitConfig.d.ts +25 -0
- package/dist/lib/gitConfig.d.ts.map +1 -0
- package/dist/lib/gitignoreTemplate.d.ts +2 -0
- package/dist/lib/gitignoreTemplate.d.ts.map +1 -0
- package/dist/lib/index.d.ts +45 -0
- package/dist/lib/index.d.ts.map +1 -0
- package/dist/lib/initCwd.d.ts +2 -0
- package/dist/lib/initCwd.d.ts.map +1 -0
- package/dist/lib/jsonFormatters.d.ts +2 -0
- package/dist/lib/jsonFormatters.d.ts.map +1 -0
- package/dist/lib/latestVersions.d.ts +8 -0
- package/dist/lib/latestVersions.d.ts.map +1 -0
- package/dist/lib/loadConfig.d.ts +10 -0
- package/dist/lib/loadConfig.d.ts.map +1 -0
- package/dist/lib/match.d.ts +21 -0
- package/dist/lib/match.d.ts.map +1 -0
- package/dist/lib/npmLatestVersion.d.ts +3 -0
- package/dist/lib/npmLatestVersion.d.ts.map +1 -0
- package/dist/lib/packageManagerRuntime.d.ts +25 -0
- package/dist/lib/packageManagerRuntime.d.ts.map +1 -0
- package/dist/lib/packageName.d.ts +2 -0
- package/dist/lib/packageName.d.ts.map +1 -0
- package/dist/lib/parsedPackageJSON.d.ts +2 -0
- package/dist/lib/parsedPackageJSON.d.ts.map +1 -0
- package/dist/lib/parsedPackageJson.d.ts +2 -0
- package/dist/lib/parsedPackageJson.d.ts.map +1 -0
- package/dist/lib/pnpmConfig/index.d.ts +2 -0
- package/dist/lib/pnpmConfig/index.d.ts.map +1 -0
- package/dist/lib/pnpmConfig/readMinReleaseAge.d.ts +18 -0
- package/dist/lib/pnpmConfig/readMinReleaseAge.d.ts.map +1 -0
- package/dist/lib/processEx.d.ts +2 -0
- package/dist/lib/processEx.d.ts.map +1 -0
- package/dist/lib/repoTemplates.d.ts +7 -0
- package/dist/lib/repoTemplates.d.ts.map +1 -0
- package/dist/lib/reporting/index.d.ts +3 -0
- package/dist/lib/reporting/index.d.ts.map +1 -0
- package/dist/lib/reporting/runWithEnvelope.d.ts +15 -0
- package/dist/lib/reporting/runWithEnvelope.d.ts.map +1 -0
- package/dist/lib/reporting/xyReporter.d.ts +27 -0
- package/dist/lib/reporting/xyReporter.d.ts.map +1 -0
- package/dist/lib/runInstall.d.ts +2 -0
- package/dist/lib/runInstall.d.ts.map +1 -0
- package/dist/lib/runSteps.d.ts +3 -0
- package/dist/lib/runSteps.d.ts.map +1 -0
- package/dist/lib/runStepsAsync.d.ts +4 -0
- package/dist/lib/runStepsAsync.d.ts.map +1 -0
- package/dist/lib/runXy.d.ts +2 -0
- package/dist/lib/runXy.d.ts.map +1 -0
- package/dist/lib/runXyWithWarning.d.ts +2 -0
- package/dist/lib/runXyWithWarning.d.ts.map +1 -0
- package/dist/lib/safeExit.d.ts +8 -0
- package/dist/lib/safeExit.d.ts.map +1 -0
- package/dist/lib/secure/classify.d.ts +8 -0
- package/dist/lib/secure/classify.d.ts.map +1 -0
- package/dist/lib/secure/collectDeclaredDependencies.d.ts +6 -0
- package/dist/lib/secure/collectDeclaredDependencies.d.ts.map +1 -0
- package/dist/lib/secure/fetchPackageSecurityMetadata.d.ts +8 -0
- package/dist/lib/secure/fetchPackageSecurityMetadata.d.ts.map +1 -0
- package/dist/lib/secure/index.d.ts +7 -0
- package/dist/lib/secure/index.d.ts.map +1 -0
- package/dist/lib/secure/interfaces.d.ts +35 -0
- package/dist/lib/secure/interfaces.d.ts.map +1 -0
- package/dist/lib/secure/renderSecurityAudit.d.ts +4 -0
- package/dist/lib/secure/renderSecurityAudit.d.ts.map +1 -0
- package/dist/lib/secure/runSecurityAudit.d.ts +15 -0
- package/dist/lib/secure/runSecurityAudit.d.ts.map +1 -0
- package/dist/lib/shouldRunInstall.d.ts +2 -0
- package/dist/lib/shouldRunInstall.d.ts.map +1 -0
- package/dist/lib/string/empty.d.ts +3 -0
- package/dist/lib/string/empty.d.ts.map +1 -0
- package/dist/lib/string/index.d.ts +4 -0
- package/dist/lib/string/index.d.ts.map +1 -0
- package/dist/lib/string/localeCompare.d.ts +2 -0
- package/dist/lib/string/localeCompare.d.ts.map +1 -0
- package/dist/lib/string/union.d.ts +2 -0
- package/dist/lib/string/union.d.ts.map +1 -0
- package/dist/lib/toolchainVersion.d.ts +3 -0
- package/dist/lib/toolchainVersion.d.ts.map +1 -0
- package/dist/lib/tryRunLocalScript.d.ts +10 -0
- package/dist/lib/tryRunLocalScript.d.ts.map +1 -0
- package/dist/lib/updo/applyUpdates.d.ts +4 -0
- package/dist/lib/updo/applyUpdates.d.ts.map +1 -0
- package/dist/lib/updo/collectWorkspaceDeps.d.ts +4 -0
- package/dist/lib/updo/collectWorkspaceDeps.d.ts.map +1 -0
- package/dist/lib/updo/fetchRegistryInfo.d.ts +37 -0
- package/dist/lib/updo/fetchRegistryInfo.d.ts.map +1 -0
- package/dist/lib/updo/index.d.ts +9 -0
- package/dist/lib/updo/index.d.ts.map +1 -0
- package/dist/lib/updo/interactiveSelect.d.ts +31 -0
- package/dist/lib/updo/interactiveSelect.d.ts.map +1 -0
- package/dist/lib/updo/interfaces.d.ts +50 -0
- package/dist/lib/updo/interfaces.d.ts.map +1 -0
- package/dist/lib/updo/renderTable.d.ts +3 -0
- package/dist/lib/updo/renderTable.d.ts.map +1 -0
- package/dist/lib/updo/resolveVersions.d.ts +19 -0
- package/dist/lib/updo/resolveVersions.d.ts.map +1 -0
- package/dist/lib/updo/runUpdo.d.ts +27 -0
- package/dist/lib/updo/runUpdo.d.ts.map +1 -0
- package/dist/lib/withErrnoException.d.ts +2 -0
- package/dist/lib/withErrnoException.d.ts.map +1 -0
- package/dist/lib/withError.d.ts +2 -0
- package/dist/lib/withError.d.ts.map +1 -0
- package/dist/lib/yarn/index.d.ts +3 -0
- package/dist/lib/yarn/index.d.ts.map +1 -0
- package/dist/lib/yarn/isYarnVersionOrGreater.d.ts +2 -0
- package/dist/lib/yarn/isYarnVersionOrGreater.d.ts.map +1 -0
- package/dist/lib/yarn/workspace/Workspace.d.ts +2 -0
- package/dist/lib/yarn/workspace/Workspace.d.ts.map +1 -0
- package/dist/lib/yarn/workspace/index.d.ts +3 -0
- package/dist/lib/yarn/workspace/index.d.ts.map +1 -0
- package/dist/lib/yarn/workspace/yarnWorkspace.d.ts +3 -0
- package/dist/lib/yarn/workspace/yarnWorkspace.d.ts.map +1 -0
- package/dist/lib/yarn/workspace/yarnWorkspaces.d.ts +3 -0
- package/dist/lib/yarn/workspace/yarnWorkspaces.d.ts.map +1 -0
- package/dist/lib/yarn/yarnInitCwd.d.ts +2 -0
- package/dist/lib/yarn/yarnInitCwd.d.ts.map +1 -0
- package/dist/loadPackageConfig.d.ts +40 -0
- package/dist/loadPackageConfig.d.ts.map +1 -0
- package/dist/node/actions/analyze.d.ts +2 -0
- package/dist/node/actions/analyze.d.ts.map +1 -0
- package/dist/node/actions/api-exposure/analyzer/analyzePackage.d.ts +28 -0
- package/dist/node/actions/api-exposure/analyzer/analyzePackage.d.ts.map +1 -0
- package/dist/node/actions/api-exposure/analyzer/couplingWalk.d.ts +11 -0
- package/dist/node/actions/api-exposure/analyzer/couplingWalk.d.ts.map +1 -0
- package/dist/node/actions/api-exposure/analyzer/depSignals.d.ts +19 -0
- package/dist/node/actions/api-exposure/analyzer/depSignals.d.ts.map +1 -0
- package/dist/node/actions/api-exposure/analyzer/entryPoints.d.ts +7 -0
- package/dist/node/actions/api-exposure/analyzer/entryPoints.d.ts.map +1 -0
- package/dist/node/actions/api-exposure/analyzer/exposureWalk.d.ts +21 -0
- package/dist/node/actions/api-exposure/analyzer/exposureWalk.d.ts.map +1 -0
- package/dist/node/actions/api-exposure/analyzer/program.d.ts +21 -0
- package/dist/node/actions/api-exposure/analyzer/program.d.ts.map +1 -0
- package/dist/node/actions/api-exposure/apiExposure.d.ts +17 -0
- package/dist/node/actions/api-exposure/apiExposure.d.ts.map +1 -0
- package/dist/node/actions/api-exposure/config.d.ts +21 -0
- package/dist/node/actions/api-exposure/config.d.ts.map +1 -0
- package/dist/node/actions/api-exposure/index.d.ts +9 -0
- package/dist/node/actions/api-exposure/index.d.ts.map +1 -0
- package/dist/node/actions/api-exposure/reporters.d.ts +16 -0
- package/dist/node/actions/api-exposure/reporters.d.ts.map +1 -0
- package/dist/node/actions/api-exposure/rules.d.ts +10 -0
- package/dist/node/actions/api-exposure/rules.d.ts.map +1 -0
- package/dist/node/actions/api-exposure/scoring.d.ts +28 -0
- package/dist/node/actions/api-exposure/scoring.d.ts.map +1 -0
- package/dist/node/actions/api-exposure/types.d.ts +86 -0
- package/dist/node/actions/api-exposure/types.d.ts.map +1 -0
- package/dist/node/actions/barrel/analyzeBarrel.d.ts +22 -0
- package/dist/node/actions/barrel/analyzeBarrel.d.ts.map +1 -0
- package/dist/node/actions/barrel/checkBarrelImportRestrictions.d.ts +12 -0
- package/dist/node/actions/barrel/checkBarrelImportRestrictions.d.ts.map +1 -0
- package/dist/node/actions/barrel/getReExportSpecs.d.ts +11 -0
- package/dist/node/actions/barrel/getReExportSpecs.d.ts.map +1 -0
- package/dist/node/actions/barrel/index.d.ts +6 -0
- package/dist/node/actions/barrel/index.d.ts.map +1 -0
- package/dist/node/actions/barrel/resolveBarrel.d.ts +9 -0
- package/dist/node/actions/barrel/resolveBarrel.d.ts.map +1 -0
- package/dist/node/actions/barrel/restrictionHelpers.d.ts +30 -0
- package/dist/node/actions/barrel/restrictionHelpers.d.ts.map +1 -0
- package/dist/node/actions/build.d.ts +9 -0
- package/dist/node/actions/build.d.ts.map +1 -0
- package/dist/node/actions/clean-eslint.d.ts +3 -0
- package/dist/node/actions/clean-eslint.d.ts.map +1 -0
- package/dist/node/actions/clean.d.ts +14 -0
- package/dist/node/actions/clean.d.ts.map +1 -0
- package/dist/node/actions/compile.d.ts +45 -0
- package/dist/node/actions/compile.d.ts.map +1 -0
- package/dist/node/actions/copy-assets.d.ts +6 -0
- package/dist/node/actions/copy-assets.d.ts.map +1 -0
- package/dist/node/actions/dead/analyzePackage.d.ts +43 -0
- package/dist/node/actions/dead/analyzePackage.d.ts.map +1 -0
- package/dist/node/actions/dead/classifyPackageVisibility.d.ts +4 -0
- package/dist/node/actions/dead/classifyPackageVisibility.d.ts.map +1 -0
- package/dist/node/actions/dead/collectExternalUsage.d.ts +38 -0
- package/dist/node/actions/dead/collectExternalUsage.d.ts.map +1 -0
- package/dist/node/actions/dead/collectSymbols.d.ts +40 -0
- package/dist/node/actions/dead/collectSymbols.d.ts.map +1 -0
- package/dist/node/actions/dead/dead.d.ts +4 -0
- package/dist/node/actions/dead/dead.d.ts.map +1 -0
- package/dist/node/actions/dead/deprecation.d.ts +3 -0
- package/dist/node/actions/dead/deprecation.d.ts.map +1 -0
- package/dist/node/actions/dead/detectActiveCodeWorkspace.d.ts +7 -0
- package/dist/node/actions/dead/detectActiveCodeWorkspace.d.ts.map +1 -0
- package/dist/node/actions/dead/evaluateRules.d.ts +8 -0
- package/dist/node/actions/dead/evaluateRules.d.ts.map +1 -0
- package/dist/node/actions/dead/findWorkspaceFile.d.ts +13 -0
- package/dist/node/actions/dead/findWorkspaceFile.d.ts.map +1 -0
- package/dist/node/actions/dead/fixDeadCode.d.ts +12 -0
- package/dist/node/actions/dead/fixDeadCode.d.ts.map +1 -0
- package/dist/node/actions/dead/index.d.ts +10 -0
- package/dist/node/actions/dead/index.d.ts.map +1 -0
- package/dist/node/actions/dead/parseCodeWorkspace.d.ts +7 -0
- package/dist/node/actions/dead/parseCodeWorkspace.d.ts.map +1 -0
- package/dist/node/actions/dead/propagateExternalUsage.d.ts +4 -0
- package/dist/node/actions/dead/propagateExternalUsage.d.ts.map +1 -0
- package/dist/node/actions/dead/pruneDeadFiles.d.ts +7 -0
- package/dist/node/actions/dead/pruneDeadFiles.d.ts.map +1 -0
- package/dist/node/actions/dead/reporters.d.ts +6 -0
- package/dist/node/actions/dead/reporters.d.ts.map +1 -0
- package/dist/node/actions/dead/ruleConfig.d.ts +5 -0
- package/dist/node/actions/dead/ruleConfig.d.ts.map +1 -0
- package/dist/node/actions/dead/ruleNames.d.ts +4 -0
- package/dist/node/actions/dead/ruleNames.d.ts.map +1 -0
- package/dist/node/actions/dead/rules.d.ts +7 -0
- package/dist/node/actions/dead/rules.d.ts.map +1 -0
- package/dist/node/actions/dead/runDeadAnalysis.d.ts +25 -0
- package/dist/node/actions/dead/runDeadAnalysis.d.ts.map +1 -0
- package/dist/node/actions/dead/runtimeEntries.d.ts +23 -0
- package/dist/node/actions/dead/runtimeEntries.d.ts.map +1 -0
- package/dist/node/actions/dead/sourceEdits.d.ts +7 -0
- package/dist/node/actions/dead/sourceEdits.d.ts.map +1 -0
- package/dist/node/actions/dead/storybookConventions.d.ts +6 -0
- package/dist/node/actions/dead/storybookConventions.d.ts.map +1 -0
- package/dist/node/actions/dead/types.d.ts +68 -0
- package/dist/node/actions/dead/types.d.ts.map +1 -0
- package/dist/node/actions/deplint/checkPackage/checkPackage.d.ts +17 -0
- package/dist/node/actions/deplint/checkPackage/checkPackage.d.ts.map +1 -0
- package/dist/node/actions/deplint/checkPackage/checkPackageTypes.d.ts +19 -0
- package/dist/node/actions/deplint/checkPackage/checkPackageTypes.d.ts.map +1 -0
- package/dist/node/actions/deplint/checkPackage/getMismatchedPeerDevVersions.d.ts +11 -0
- package/dist/node/actions/deplint/checkPackage/getMismatchedPeerDevVersions.d.ts.map +1 -0
- package/dist/node/actions/deplint/checkPackage/getUnlistedDependencies.d.ts +21 -0
- package/dist/node/actions/deplint/checkPackage/getUnlistedDependencies.d.ts.map +1 -0
- package/dist/node/actions/deplint/checkPackage/getUnlistedDevDependencies.d.ts +6 -0
- package/dist/node/actions/deplint/checkPackage/getUnlistedDevDependencies.d.ts.map +1 -0
- package/dist/node/actions/deplint/checkPackage/getUnnecessaryPeerDependencies.d.ts +24 -0
- package/dist/node/actions/deplint/checkPackage/getUnnecessaryPeerDependencies.d.ts.map +1 -0
- package/dist/node/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts +74 -0
- package/dist/node/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts.map +1 -0
- package/dist/node/actions/deplint/checkPackage/getUnusedDependencies.d.ts +12 -0
- package/dist/node/actions/deplint/checkPackage/getUnusedDependencies.d.ts.map +1 -0
- package/dist/node/actions/deplint/checkPackage/getUnusedDevDependencies.d.ts +7 -0
- package/dist/node/actions/deplint/checkPackage/getUnusedDevDependencies.d.ts.map +1 -0
- package/dist/node/actions/deplint/checkPackage/getUnusedPeerDependencies.d.ts +6 -0
- package/dist/node/actions/deplint/checkPackage/getUnusedPeerDependencies.d.ts.map +1 -0
- package/dist/node/actions/deplint/checkPackage/getWorkspaceVersionProblems.d.ts +21 -0
- package/dist/node/actions/deplint/checkPackage/getWorkspaceVersionProblems.d.ts.map +1 -0
- package/dist/node/actions/deplint/checkPackage/index.d.ts +13 -0
- package/dist/node/actions/deplint/checkPackage/index.d.ts.map +1 -0
- package/dist/node/actions/deplint/checkPackage/legacyPeerCheck.d.ts +13 -0
- package/dist/node/actions/deplint/checkPackage/legacyPeerCheck.d.ts.map +1 -0
- package/dist/node/actions/deplint/deplint.d.ts +20 -0
- package/dist/node/actions/deplint/deplint.d.ts.map +1 -0
- package/dist/node/actions/deplint/engine.d.ts +15 -0
- package/dist/node/actions/deplint/engine.d.ts.map +1 -0
- package/dist/node/actions/deplint/fetchPackageManifest.d.ts +25 -0
- package/dist/node/actions/deplint/fetchPackageManifest.d.ts.map +1 -0
- package/dist/node/actions/deplint/findFiles.d.ts +6 -0
- package/dist/node/actions/deplint/findFiles.d.ts.map +1 -0
- package/dist/node/actions/deplint/findFilesByGlob.d.ts +2 -0
- package/dist/node/actions/deplint/findFilesByGlob.d.ts.map +1 -0
- package/dist/node/actions/deplint/fixer.d.ts +3 -0
- package/dist/node/actions/deplint/fixer.d.ts.map +1 -0
- package/dist/node/actions/deplint/getBasePackageName.d.ts +2 -0
- package/dist/node/actions/deplint/getBasePackageName.d.ts.map +1 -0
- package/dist/node/actions/deplint/getCliReferencedPackagesFromFiles.d.ts +12 -0
- package/dist/node/actions/deplint/getCliReferencedPackagesFromFiles.d.ts.map +1 -0
- package/dist/node/actions/deplint/getDependenciesFromPackageJson.d.ts +9 -0
- package/dist/node/actions/deplint/getDependenciesFromPackageJson.d.ts.map +1 -0
- package/dist/node/actions/deplint/getExtendsFromTsconfigs.d.ts +10 -0
- package/dist/node/actions/deplint/getExtendsFromTsconfigs.d.ts.map +1 -0
- package/dist/node/actions/deplint/getExternalImportsFromFiles.d.ts +12 -0
- package/dist/node/actions/deplint/getExternalImportsFromFiles.d.ts.map +1 -0
- package/dist/node/actions/deplint/getImportsFromFile.d.ts +4 -0
- package/dist/node/actions/deplint/getImportsFromFile.d.ts.map +1 -0
- package/dist/node/actions/deplint/getRequiredPeerDependencies.d.ts +10 -0
- package/dist/node/actions/deplint/getRequiredPeerDependencies.d.ts.map +1 -0
- package/dist/node/actions/deplint/getScriptReferencedPackages.d.ts +8 -0
- package/dist/node/actions/deplint/getScriptReferencedPackages.d.ts.map +1 -0
- package/dist/node/actions/deplint/getStorybookConfigImports.d.ts +3 -0
- package/dist/node/actions/deplint/getStorybookConfigImports.d.ts.map +1 -0
- package/dist/node/actions/deplint/implicitDevDependencies.d.ts +15 -0
- package/dist/node/actions/deplint/implicitDevDependencies.d.ts.map +1 -0
- package/dist/node/actions/deplint/index.d.ts +11 -0
- package/dist/node/actions/deplint/index.d.ts.map +1 -0
- package/dist/node/actions/deplint/isTerminalPackage.d.ts +25 -0
- package/dist/node/actions/deplint/isTerminalPackage.d.ts.map +1 -0
- package/dist/node/actions/deplint/loader.d.ts +4 -0
- package/dist/node/actions/deplint/loader.d.ts.map +1 -0
- package/dist/node/actions/deplint/packageEditor.d.ts +11 -0
- package/dist/node/actions/deplint/packageEditor.d.ts.map +1 -0
- package/dist/node/actions/deplint/packageJsonEditor.d.ts +97 -0
- package/dist/node/actions/deplint/packageJsonEditor.d.ts.map +1 -0
- package/dist/node/actions/deplint/peerRangeOptions.d.ts +10 -0
- package/dist/node/actions/deplint/peerRangeOptions.d.ts.map +1 -0
- package/dist/node/actions/deplint/reporters.d.ts +8 -0
- package/dist/node/actions/deplint/reporters.d.ts.map +1 -0
- package/dist/node/actions/deplint/resolvePeerBumpFixes.d.ts +24 -0
- package/dist/node/actions/deplint/resolvePeerBumpFixes.d.ts.map +1 -0
- package/dist/node/actions/deplint/ruleConfig.d.ts +5 -0
- package/dist/node/actions/deplint/ruleConfig.d.ts.map +1 -0
- package/dist/node/actions/deplint/rules.d.ts +4 -0
- package/dist/node/actions/deplint/rules.d.ts.map +1 -0
- package/dist/node/actions/deplint/rulesDiagnostic.d.ts +4 -0
- package/dist/node/actions/deplint/rulesDiagnostic.d.ts.map +1 -0
- package/dist/node/actions/deplint/rulesMisplaced.d.ts +4 -0
- package/dist/node/actions/deplint/rulesMisplaced.d.ts.map +1 -0
- package/dist/node/actions/deplint/snapshot.d.ts +22 -0
- package/dist/node/actions/deplint/snapshot.d.ts.map +1 -0
- package/dist/node/actions/deplint/tsScriptsAliases.d.ts +11 -0
- package/dist/node/actions/deplint/tsScriptsAliases.d.ts.map +1 -0
- package/dist/node/actions/deplint/types.d.ts +295 -0
- package/dist/node/actions/deplint/types.d.ts.map +1 -0
- package/dist/node/actions/deplint/versionMismatchFixes.d.ts +4 -0
- package/dist/node/actions/deplint/versionMismatchFixes.d.ts.map +1 -0
- package/dist/node/actions/deploy.d.ts +3 -0
- package/dist/node/actions/deploy.d.ts.map +1 -0
- package/dist/node/actions/eject.d.ts +2 -0
- package/dist/node/actions/eject.d.ts.map +1 -0
- package/dist/node/actions/fix.d.ts +7 -0
- package/dist/node/actions/fix.d.ts.map +1 -0
- package/dist/node/actions/gitignore.d.ts +4 -0
- package/dist/node/actions/gitignore.d.ts.map +1 -0
- package/dist/node/actions/gitlint-fix.d.ts +2 -0
- package/dist/node/actions/gitlint-fix.d.ts.map +1 -0
- package/dist/node/actions/gitlint.d.ts +2 -0
- package/dist/node/actions/gitlint.d.ts.map +1 -0
- package/dist/node/actions/incremental.d.ts +46 -0
- package/dist/node/actions/incremental.d.ts.map +1 -0
- package/dist/node/actions/index.d.ts +54 -0
- package/dist/node/actions/index.d.ts.map +1 -0
- package/dist/node/actions/install.d.ts +2 -0
- package/dist/node/actions/install.d.ts.map +1 -0
- package/dist/node/actions/license.d.ts +2 -0
- package/dist/node/actions/license.d.ts.map +1 -0
- package/dist/node/actions/lint-config.d.ts +16 -0
- package/dist/node/actions/lint-config.d.ts.map +1 -0
- package/dist/node/actions/lint-init.d.ts +16 -0
- package/dist/node/actions/lint-init.d.ts.map +1 -0
- package/dist/node/actions/lint.d.ts +36 -0
- package/dist/node/actions/lint.d.ts.map +1 -0
- package/dist/node/actions/lintNext.d.ts +14 -0
- package/dist/node/actions/lintNext.d.ts.map +1 -0
- package/dist/node/actions/lintNextWorker.d.ts +21 -0
- package/dist/node/actions/lintNextWorker.d.ts.map +1 -0
- package/dist/node/actions/lintTierAnalysis.d.ts +59 -0
- package/dist/node/actions/lintTierAnalysis.d.ts.map +1 -0
- package/dist/node/actions/lintlint.d.ts +13 -0
- package/dist/node/actions/lintlint.d.ts.map +1 -0
- package/dist/node/actions/node-lint.d.ts +19 -0
- package/dist/node/actions/node-lint.d.ts.map +1 -0
- package/dist/node/actions/npmignore-gen.d.ts +2 -0
- package/dist/node/actions/npmignore-gen.d.ts.map +1 -0
- package/dist/node/actions/orphan.d.ts +6 -0
- package/dist/node/actions/orphan.d.ts.map +1 -0
- package/dist/node/actions/package/clean-outputs.d.ts +6 -0
- package/dist/node/actions/package/clean-outputs.d.ts.map +1 -0
- package/dist/node/actions/package/clean-typescript.d.ts +3 -0
- package/dist/node/actions/package/clean-typescript.d.ts.map +1 -0
- package/dist/node/actions/package/clean.d.ts +3 -0
- package/dist/node/actions/package/clean.d.ts.map +1 -0
- package/dist/node/actions/package/compile/ApiExposureConfig.d.ts +58 -0
- package/dist/node/actions/package/compile/ApiExposureConfig.d.ts.map +1 -0
- package/dist/node/actions/package/compile/MonolithConfig.d.ts +85 -0
- package/dist/node/actions/package/compile/MonolithConfig.d.ts.map +1 -0
- package/dist/node/actions/package/compile/XyConfig.d.ts +462 -0
- package/dist/node/actions/package/compile/XyConfig.d.ts.map +1 -0
- package/dist/node/actions/package/compile/buildEntries.d.ts +3 -0
- package/dist/node/actions/package/compile/buildEntries.d.ts.map +1 -0
- package/dist/node/actions/package/compile/compile.d.ts +7 -0
- package/dist/node/actions/package/compile/compile.d.ts.map +1 -0
- package/dist/node/actions/package/compile/createProgramFromConfig.d.ts +25 -0
- package/dist/node/actions/package/compile/createProgramFromConfig.d.ts.map +1 -0
- package/dist/node/actions/package/compile/createTypescriptConfig.d.ts +29 -0
- package/dist/node/actions/package/compile/createTypescriptConfig.d.ts.map +1 -0
- package/dist/node/actions/package/compile/deepMerge.d.ts +4 -0
- package/dist/node/actions/package/compile/deepMerge.d.ts.map +1 -0
- package/dist/node/actions/package/compile/entryOutputName.d.ts +5 -0
- package/dist/node/actions/package/compile/entryOutputName.d.ts.map +1 -0
- package/dist/node/actions/package/compile/findWorkspaceRoot.d.ts +5 -0
- package/dist/node/actions/package/compile/findWorkspaceRoot.d.ts.map +1 -0
- package/dist/node/actions/package/compile/getCompilerOptions.d.ts +3 -0
- package/dist/node/actions/package/compile/getCompilerOptions.d.ts.map +1 -0
- package/dist/node/actions/package/compile/index.d.ts +16 -0
- package/dist/node/actions/package/compile/index.d.ts.map +1 -0
- package/dist/node/actions/package/compile/inputs.d.ts +2 -0
- package/dist/node/actions/package/compile/inputs.d.ts.map +1 -0
- package/dist/node/actions/package/compile/monolithCompileDeclarations.d.ts +14 -0
- package/dist/node/actions/package/compile/monolithCompileDeclarations.d.ts.map +1 -0
- package/dist/node/actions/package/compile/monolithCompileEntries.d.ts +20 -0
- package/dist/node/actions/package/compile/monolithCompileEntries.d.ts.map +1 -0
- package/dist/node/actions/package/compile/monolithCompileLayout.d.ts +42 -0
- package/dist/node/actions/package/compile/monolithCompileLayout.d.ts.map +1 -0
- package/dist/node/actions/package/compile/packageCompileEsbuild.d.ts +18 -0
- package/dist/node/actions/package/compile/packageCompileEsbuild.d.ts.map +1 -0
- package/dist/node/actions/package/compile/packageCompileMonolith.d.ts +10 -0
- package/dist/node/actions/package/compile/packageCompileMonolith.d.ts.map +1 -0
- package/dist/node/actions/package/compile/packageCompileTsc.d.ts +3 -0
- package/dist/node/actions/package/compile/packageCompileTsc.d.ts.map +1 -0
- package/dist/node/actions/package/compile/packageCompileTsup.d.ts +6 -0
- package/dist/node/actions/package/compile/packageCompileTsup.d.ts.map +1 -0
- package/dist/node/actions/package/compile/packageCompileVendor.d.ts +4 -0
- package/dist/node/actions/package/compile/packageCompileVendor.d.ts.map +1 -0
- package/dist/node/actions/package/compile/resolveCompileBundleOptions.d.ts +13 -0
- package/dist/node/actions/package/compile/resolveCompileBundleOptions.d.ts.map +1 -0
- package/dist/node/actions/package/compile/resolveCompilePlatforms.d.ts +23 -0
- package/dist/node/actions/package/compile/resolveCompilePlatforms.d.ts.map +1 -0
- package/dist/node/actions/package/compile/resolvePlatformTypes.d.ts +5 -0
- package/dist/node/actions/package/compile/resolvePlatformTypes.d.ts.map +1 -0
- package/dist/node/actions/package/compile/runTsc.d.ts +2 -0
- package/dist/node/actions/package/compile/runTsc.d.ts.map +1 -0
- package/dist/node/actions/package/compile/validateFullPackage.d.ts +2 -0
- package/dist/node/actions/package/compile/validateFullPackage.d.ts.map +1 -0
- package/dist/node/actions/package/compile/vendorCompile.d.ts +6 -0
- package/dist/node/actions/package/compile/vendorCompile.d.ts.map +1 -0
- package/dist/node/actions/package/compile/vendorCompileEmit.d.ts +8 -0
- package/dist/node/actions/package/compile/vendorCompileEmit.d.ts.map +1 -0
- package/dist/node/actions/package/compile/vendorCompileInternals.d.ts +31 -0
- package/dist/node/actions/package/compile/vendorCompileInternals.d.ts.map +1 -0
- package/dist/node/actions/package/compile/vendorCompileRewrite.d.ts +3 -0
- package/dist/node/actions/package/compile/vendorCompileRewrite.d.ts.map +1 -0
- package/dist/node/actions/package/compile/vendorCompileTypes.d.ts +31 -0
- package/dist/node/actions/package/compile/vendorCompileTypes.d.ts.map +1 -0
- package/dist/node/actions/package/compileTargetsPublint.d.ts +13 -0
- package/dist/node/actions/package/compileTargetsPublint.d.ts.map +1 -0
- package/dist/node/actions/package/copy-assets.d.ts +5 -0
- package/dist/node/actions/package/copy-assets.d.ts.map +1 -0
- package/dist/node/actions/package/expectedCompileOutputs.d.ts +11 -0
- package/dist/node/actions/package/expectedCompileOutputs.d.ts.map +1 -0
- package/dist/node/actions/package/exportConditionPublint.d.ts +9 -0
- package/dist/node/actions/package/exportConditionPublint.d.ts.map +1 -0
- package/dist/node/actions/package/exportMapPublint.d.ts +7 -0
- package/dist/node/actions/package/exportMapPublint.d.ts.map +1 -0
- package/dist/node/actions/package/index.d.ts +9 -0
- package/dist/node/actions/package/index.d.ts.map +1 -0
- package/dist/node/actions/package/lint.d.ts +2 -0
- package/dist/node/actions/package/lint.d.ts.map +1 -0
- package/dist/node/actions/package/platformPublint.d.ts +7 -0
- package/dist/node/actions/package/platformPublint.d.ts.map +1 -0
- package/dist/node/actions/package/publint.d.ts +16 -0
- package/dist/node/actions/package/publint.d.ts.map +1 -0
- package/dist/node/actions/package/recompile.d.ts +3 -0
- package/dist/node/actions/package/recompile.d.ts.map +1 -0
- package/dist/node/actions/package-lint-deps.d.ts +47 -0
- package/dist/node/actions/package-lint-deps.d.ts.map +1 -0
- package/dist/node/actions/package-lint-engines.d.ts +22 -0
- package/dist/node/actions/package-lint-engines.d.ts.map +1 -0
- package/dist/node/actions/package-lint-pnpm.d.ts +11 -0
- package/dist/node/actions/package-lint-pnpm.d.ts.map +1 -0
- package/dist/node/actions/package-lint-specs.d.ts +9 -0
- package/dist/node/actions/package-lint-specs.d.ts.map +1 -0
- package/dist/node/actions/package-lint.d.ts +7 -0
- package/dist/node/actions/package-lint.d.ts.map +1 -0
- package/dist/node/actions/packman/clean.d.ts +5 -0
- package/dist/node/actions/packman/clean.d.ts.map +1 -0
- package/dist/node/actions/packman/convert.d.ts +10 -0
- package/dist/node/actions/packman/convert.d.ts.map +1 -0
- package/dist/node/actions/packman/convertToBun.d.ts +2 -0
- package/dist/node/actions/packman/convertToBun.d.ts.map +1 -0
- package/dist/node/actions/packman/convertToNpm.d.ts +2 -0
- package/dist/node/actions/packman/convertToNpm.d.ts.map +1 -0
- package/dist/node/actions/packman/convertToPnpm.d.ts +2 -0
- package/dist/node/actions/packman/convertToPnpm.d.ts.map +1 -0
- package/dist/node/actions/packman/convertToYarn.d.ts +2 -0
- package/dist/node/actions/packman/convertToYarn.d.ts.map +1 -0
- package/dist/node/actions/packman/index.d.ts +5 -0
- package/dist/node/actions/packman/index.d.ts.map +1 -0
- package/dist/node/actions/packman/lint.d.ts +6 -0
- package/dist/node/actions/packman/lint.d.ts.map +1 -0
- package/dist/node/actions/packman/rewriteScripts.d.ts +5 -0
- package/dist/node/actions/packman/rewriteScripts.d.ts.map +1 -0
- package/dist/node/actions/packman/rewriteSourceImports.d.ts +2 -0
- package/dist/node/actions/packman/rewriteSourceImports.d.ts.map +1 -0
- package/dist/node/actions/packman/swapTsScriptsDependency.d.ts +2 -0
- package/dist/node/actions/packman/swapTsScriptsDependency.d.ts.map +1 -0
- package/dist/node/actions/publint.d.ts +48 -0
- package/dist/node/actions/publint.d.ts.map +1 -0
- package/dist/node/actions/publish.d.ts +22 -0
- package/dist/node/actions/publish.d.ts.map +1 -0
- package/dist/node/actions/reactTest.d.ts +2 -0
- package/dist/node/actions/reactTest.d.ts.map +1 -0
- package/dist/node/actions/rebuild.d.ts +7 -0
- package/dist/node/actions/rebuild.d.ts.map +1 -0
- package/dist/node/actions/recompile.d.ts +16 -0
- package/dist/node/actions/recompile.d.ts.map +1 -0
- package/dist/node/actions/reinstall.d.ts +2 -0
- package/dist/node/actions/reinstall.d.ts.map +1 -0
- package/dist/node/actions/releaseAgeExcludeScopes.d.ts +13 -0
- package/dist/node/actions/releaseAgeExcludeScopes.d.ts.map +1 -0
- package/dist/node/actions/relint.d.ts +24 -0
- package/dist/node/actions/relint.d.ts.map +1 -0
- package/dist/node/actions/repo-init.d.ts +14 -0
- package/dist/node/actions/repo-init.d.ts.map +1 -0
- package/dist/node/actions/republint.d.ts +13 -0
- package/dist/node/actions/republint.d.ts.map +1 -0
- package/dist/node/actions/result.d.ts +44 -0
- package/dist/node/actions/result.d.ts.map +1 -0
- package/dist/node/actions/retest.d.ts +5 -0
- package/dist/node/actions/retest.d.ts.map +1 -0
- package/dist/node/actions/secure.d.ts +7 -0
- package/dist/node/actions/secure.d.ts.map +1 -0
- package/dist/node/actions/sitemap.d.ts +2 -0
- package/dist/node/actions/sitemap.d.ts.map +1 -0
- package/dist/node/actions/skills/defaults.d.ts +6 -0
- package/dist/node/actions/skills/defaults.d.ts.map +1 -0
- package/dist/node/actions/skills/detectProfile.d.ts +10 -0
- package/dist/node/actions/skills/detectProfile.d.ts.map +1 -0
- package/dist/node/actions/skills/index.d.ts +9 -0
- package/dist/node/actions/skills/index.d.ts.map +1 -0
- package/dist/node/actions/skills/installed.d.ts +10 -0
- package/dist/node/actions/skills/installed.d.ts.map +1 -0
- package/dist/node/actions/skills/lint.d.ts +26 -0
- package/dist/node/actions/skills/lint.d.ts.map +1 -0
- package/dist/node/actions/skills/passthrough.d.ts +25 -0
- package/dist/node/actions/skills/passthrough.d.ts.map +1 -0
- package/dist/node/actions/skills/skillRules.d.ts +9 -0
- package/dist/node/actions/skills/skillRules.d.ts.map +1 -0
- package/dist/node/actions/skills/updo.d.ts +4 -0
- package/dist/node/actions/skills/updo.d.ts.map +1 -0
- package/dist/node/actions/skills/versions.d.ts +10 -0
- package/dist/node/actions/skills/versions.d.ts.map +1 -0
- package/dist/node/actions/sonar.d.ts +2 -0
- package/dist/node/actions/sonar.d.ts.map +1 -0
- package/dist/node/actions/start.d.ts +2 -0
- package/dist/node/actions/start.d.ts.map +1 -0
- package/dist/node/actions/statics.d.ts +2 -0
- package/dist/node/actions/statics.d.ts.map +1 -0
- package/dist/node/actions/test.d.ts +5 -0
- package/dist/node/actions/test.d.ts.map +1 -0
- package/dist/node/actions/tsc-validate/index.d.ts +3 -0
- package/dist/node/actions/tsc-validate/index.d.ts.map +1 -0
- package/dist/node/actions/tsc-validate/sharedValidate.d.ts +34 -0
- package/dist/node/actions/tsc-validate/sharedValidate.d.ts.map +1 -0
- package/dist/node/actions/tsc-validate/tscValidate.d.ts +35 -0
- package/dist/node/actions/tsc-validate/tscValidate.d.ts.map +1 -0
- package/dist/node/actions/up.d.ts +2 -0
- package/dist/node/actions/up.d.ts.map +1 -0
- package/dist/node/actions/updo.d.ts +9 -0
- package/dist/node/actions/updo.d.ts.map +1 -0
- package/dist/node/actions/work/id.d.ts +8 -0
- package/dist/node/actions/work/id.d.ts.map +1 -0
- package/dist/node/actions/work/index.d.ts +131 -0
- package/dist/node/actions/work/index.d.ts.map +1 -0
- package/dist/node/actions/work/inline.d.ts +8 -0
- package/dist/node/actions/work/inline.d.ts.map +1 -0
- package/dist/node/actions/work/priority.d.ts +5 -0
- package/dist/node/actions/work/priority.d.ts.map +1 -0
- package/dist/node/actions/work/schema.d.ts +81 -0
- package/dist/node/actions/work/schema.d.ts.map +1 -0
- package/dist/node/actions/work/store.d.ts +23 -0
- package/dist/node/actions/work/store.d.ts.map +1 -0
- package/dist/node/bin/package/build.d.ts +3 -0
- package/dist/node/bin/package/build.d.ts.map +1 -0
- package/dist/node/bin/package/clean-outputs.d.ts +3 -0
- package/dist/node/bin/package/clean-outputs.d.ts.map +1 -0
- package/dist/node/bin/package/clean-typescript.d.ts +3 -0
- package/dist/node/bin/package/clean-typescript.d.ts.map +1 -0
- package/dist/node/bin/package/clean.d.ts +3 -0
- package/dist/node/bin/package/clean.d.ts.map +1 -0
- package/dist/node/bin/package/compile-tsup.d.ts +3 -0
- package/dist/node/bin/package/compile-tsup.d.ts.map +1 -0
- package/dist/node/bin/package/compile.d.ts +3 -0
- package/dist/node/bin/package/compile.d.ts.map +1 -0
- package/dist/node/bin/package/copy-assets-cjs.d.ts +3 -0
- package/dist/node/bin/package/copy-assets-cjs.d.ts.map +1 -0
- package/dist/node/bin/package/copy-assets-esm.d.ts +3 -0
- package/dist/node/bin/package/copy-assets-esm.d.ts.map +1 -0
- package/dist/node/bin/package/fix.d.ts +3 -0
- package/dist/node/bin/package/fix.d.ts.map +1 -0
- package/dist/node/bin/package/lint-verbose.d.ts +3 -0
- package/dist/node/bin/package/lint-verbose.d.ts.map +1 -0
- package/dist/node/bin/package/lint.d.ts +3 -0
- package/dist/node/bin/package/lint.d.ts.map +1 -0
- package/dist/node/bin/package/publint.d.ts +3 -0
- package/dist/node/bin/package/publint.d.ts.map +1 -0
- package/dist/node/bin/package/recompile.d.ts +3 -0
- package/dist/node/bin/package/recompile.d.ts.map +1 -0
- package/dist/node/bin/package/relint.d.ts +3 -0
- package/dist/node/bin/package/relint.d.ts.map +1 -0
- package/dist/node/bin/package/sync-layout.d.ts +3 -0
- package/dist/node/bin/package/sync-layout.d.ts.map +1 -0
- package/dist/node/bin/run-or-exec.d.ts +3 -0
- package/dist/node/bin/run-or-exec.d.ts.map +1 -0
- package/dist/node/bin/xy.d.ts +3 -0
- package/dist/node/bin/xy.d.ts.map +1 -0
- package/dist/node/index.d.ts +6 -0
- package/dist/node/index.d.ts.map +1 -0
- package/dist/node/lib/bundledCliPath.d.ts +4 -0
- package/dist/node/lib/bundledCliPath.d.ts.map +1 -0
- package/dist/node/lib/checkResult.d.ts +2 -0
- package/dist/node/lib/checkResult.d.ts.map +1 -0
- package/dist/node/lib/concurrency.d.ts +5 -0
- package/dist/node/lib/concurrency.d.ts.map +1 -0
- package/dist/node/lib/copyAssetFiles.d.ts +10 -0
- package/dist/node/lib/copyAssetFiles.d.ts.map +1 -0
- package/dist/node/lib/createBuildConfig.d.ts +2 -0
- package/dist/node/lib/createBuildConfig.d.ts.map +1 -0
- package/dist/node/lib/crossSpawn.d.ts +6 -0
- package/dist/node/lib/crossSpawn.d.ts.map +1 -0
- package/dist/node/lib/deepMerge.d.ts +24 -0
- package/dist/node/lib/deepMerge.d.ts.map +1 -0
- package/dist/node/lib/defaultBuildConfig.d.ts +9 -0
- package/dist/node/lib/defaultBuildConfig.d.ts.map +1 -0
- package/dist/node/lib/deleteGlob.d.ts +2 -0
- package/dist/node/lib/deleteGlob.d.ts.map +1 -0
- package/dist/node/lib/dependencies/DuplicateDetector.d.ts +7 -0
- package/dist/node/lib/dependencies/DuplicateDetector.d.ts.map +1 -0
- package/dist/node/lib/dependencies/detectDuplicateDependencies.d.ts +2 -0
- package/dist/node/lib/dependencies/detectDuplicateDependencies.d.ts.map +1 -0
- package/dist/node/lib/dependencies/index.d.ts +4 -0
- package/dist/node/lib/dependencies/index.d.ts.map +1 -0
- package/dist/node/lib/dependencies/workspaceCycles.d.ts +15 -0
- package/dist/node/lib/dependencies/workspaceCycles.d.ts.map +1 -0
- package/dist/node/lib/deprecationMigrate.d.ts +2 -0
- package/dist/node/lib/deprecationMigrate.d.ts.map +1 -0
- package/dist/node/lib/eslintCache.d.ts +4 -0
- package/dist/node/lib/eslintCache.d.ts.map +1 -0
- package/dist/node/lib/file/ReadFileSyncOptions.d.ts +6 -0
- package/dist/node/lib/file/ReadFileSyncOptions.d.ts.map +1 -0
- package/dist/node/lib/file/constants.d.ts +3 -0
- package/dist/node/lib/file/constants.d.ts.map +1 -0
- package/dist/node/lib/file/fileLines.d.ts +6 -0
- package/dist/node/lib/file/fileLines.d.ts.map +1 -0
- package/dist/node/lib/file/index.d.ts +5 -0
- package/dist/node/lib/file/index.d.ts.map +1 -0
- package/dist/node/lib/file/tryReadFileSync.d.ts +4 -0
- package/dist/node/lib/file/tryReadFileSync.d.ts.map +1 -0
- package/dist/node/lib/fillTemplate.d.ts +2 -0
- package/dist/node/lib/fillTemplate.d.ts.map +1 -0
- package/dist/node/lib/generateIgnoreFiles.d.ts +2 -0
- package/dist/node/lib/generateIgnoreFiles.d.ts.map +1 -0
- package/dist/node/lib/gitConfig.d.ts +25 -0
- package/dist/node/lib/gitConfig.d.ts.map +1 -0
- package/dist/node/lib/gitignoreTemplate.d.ts +2 -0
- package/dist/node/lib/gitignoreTemplate.d.ts.map +1 -0
- package/dist/node/lib/index.d.ts +45 -0
- package/dist/node/lib/index.d.ts.map +1 -0
- package/dist/node/lib/initCwd.d.ts +2 -0
- package/dist/node/lib/initCwd.d.ts.map +1 -0
- package/dist/node/lib/jsonFormatters.d.ts +2 -0
- package/dist/node/lib/jsonFormatters.d.ts.map +1 -0
- package/dist/node/lib/latestVersions.d.ts +8 -0
- package/dist/node/lib/latestVersions.d.ts.map +1 -0
- package/dist/node/lib/loadConfig.d.ts +10 -0
- package/dist/node/lib/loadConfig.d.ts.map +1 -0
- package/dist/node/lib/match.d.ts +21 -0
- package/dist/node/lib/match.d.ts.map +1 -0
- package/dist/node/lib/npmLatestVersion.d.ts +3 -0
- package/dist/node/lib/npmLatestVersion.d.ts.map +1 -0
- package/dist/node/lib/packageManagerRuntime.d.ts +25 -0
- package/dist/node/lib/packageManagerRuntime.d.ts.map +1 -0
- package/dist/node/lib/packageName.d.ts +2 -0
- package/dist/node/lib/packageName.d.ts.map +1 -0
- package/dist/node/lib/parsedPackageJson.d.ts +2 -0
- package/dist/node/lib/parsedPackageJson.d.ts.map +1 -0
- package/dist/node/lib/pnpmConfig/index.d.ts +2 -0
- package/dist/node/lib/pnpmConfig/index.d.ts.map +1 -0
- package/dist/node/lib/pnpmConfig/readMinReleaseAge.d.ts +18 -0
- package/dist/node/lib/pnpmConfig/readMinReleaseAge.d.ts.map +1 -0
- package/dist/node/lib/processEx.d.ts +2 -0
- package/dist/node/lib/processEx.d.ts.map +1 -0
- package/dist/node/lib/repoTemplates.d.ts +7 -0
- package/dist/node/lib/repoTemplates.d.ts.map +1 -0
- package/dist/node/lib/reporting/index.d.ts +3 -0
- package/dist/node/lib/reporting/index.d.ts.map +1 -0
- package/dist/node/lib/reporting/runWithEnvelope.d.ts +15 -0
- package/dist/node/lib/reporting/runWithEnvelope.d.ts.map +1 -0
- package/dist/node/lib/reporting/xyReporter.d.ts +27 -0
- package/dist/node/lib/reporting/xyReporter.d.ts.map +1 -0
- package/dist/node/lib/runSteps.d.ts +3 -0
- package/dist/node/lib/runSteps.d.ts.map +1 -0
- package/dist/node/lib/runStepsAsync.d.ts +4 -0
- package/dist/node/lib/runStepsAsync.d.ts.map +1 -0
- package/dist/node/lib/runXy.d.ts +2 -0
- package/dist/node/lib/runXy.d.ts.map +1 -0
- package/dist/node/lib/runXyWithWarning.d.ts +2 -0
- package/dist/node/lib/runXyWithWarning.d.ts.map +1 -0
- package/dist/node/lib/safeExit.d.ts +8 -0
- package/dist/node/lib/safeExit.d.ts.map +1 -0
- package/dist/node/lib/secure/classify.d.ts +8 -0
- package/dist/node/lib/secure/classify.d.ts.map +1 -0
- package/dist/node/lib/secure/collectDeclaredDependencies.d.ts +6 -0
- package/dist/node/lib/secure/collectDeclaredDependencies.d.ts.map +1 -0
- package/dist/node/lib/secure/fetchPackageSecurityMetadata.d.ts +8 -0
- package/dist/node/lib/secure/fetchPackageSecurityMetadata.d.ts.map +1 -0
- package/dist/node/lib/secure/index.d.ts +7 -0
- package/dist/node/lib/secure/index.d.ts.map +1 -0
- package/dist/node/lib/secure/interfaces.d.ts +35 -0
- package/dist/node/lib/secure/interfaces.d.ts.map +1 -0
- package/dist/node/lib/secure/renderSecurityAudit.d.ts +4 -0
- package/dist/node/lib/secure/renderSecurityAudit.d.ts.map +1 -0
- package/dist/node/lib/secure/runSecurityAudit.d.ts +15 -0
- package/dist/node/lib/secure/runSecurityAudit.d.ts.map +1 -0
- package/dist/node/lib/shouldRunInstall.d.ts +2 -0
- package/dist/node/lib/shouldRunInstall.d.ts.map +1 -0
- package/dist/node/lib/string/empty.d.ts +3 -0
- package/dist/node/lib/string/empty.d.ts.map +1 -0
- package/dist/node/lib/string/index.d.ts +4 -0
- package/dist/node/lib/string/index.d.ts.map +1 -0
- package/dist/node/lib/string/localeCompare.d.ts +2 -0
- package/dist/node/lib/string/localeCompare.d.ts.map +1 -0
- package/dist/node/lib/string/union.d.ts +2 -0
- package/dist/node/lib/string/union.d.ts.map +1 -0
- package/dist/node/lib/toolchainVersion.d.ts +3 -0
- package/dist/node/lib/toolchainVersion.d.ts.map +1 -0
- package/dist/node/lib/tryRunLocalScript.d.ts +10 -0
- package/dist/node/lib/tryRunLocalScript.d.ts.map +1 -0
- package/dist/node/lib/updo/applyUpdates.d.ts +4 -0
- package/dist/node/lib/updo/applyUpdates.d.ts.map +1 -0
- package/dist/node/lib/updo/collectWorkspaceDeps.d.ts +4 -0
- package/dist/node/lib/updo/collectWorkspaceDeps.d.ts.map +1 -0
- package/dist/node/lib/updo/fetchRegistryInfo.d.ts +37 -0
- package/dist/node/lib/updo/fetchRegistryInfo.d.ts.map +1 -0
- package/dist/node/lib/updo/index.d.ts +9 -0
- package/dist/node/lib/updo/index.d.ts.map +1 -0
- package/dist/node/lib/updo/interactiveSelect.d.ts +31 -0
- package/dist/node/lib/updo/interactiveSelect.d.ts.map +1 -0
- package/dist/node/lib/updo/interfaces.d.ts +50 -0
- package/dist/node/lib/updo/interfaces.d.ts.map +1 -0
- package/dist/node/lib/updo/renderTable.d.ts +3 -0
- package/dist/node/lib/updo/renderTable.d.ts.map +1 -0
- package/dist/node/lib/updo/resolveVersions.d.ts +19 -0
- package/dist/node/lib/updo/resolveVersions.d.ts.map +1 -0
- package/dist/node/lib/updo/runUpdo.d.ts +27 -0
- package/dist/node/lib/updo/runUpdo.d.ts.map +1 -0
- package/dist/node/lib/withErrnoException.d.ts +2 -0
- package/dist/node/lib/withErrnoException.d.ts.map +1 -0
- package/dist/node/lib/withError.d.ts +2 -0
- package/dist/node/lib/withError.d.ts.map +1 -0
- package/dist/node/lib/yarn/index.d.ts +3 -0
- package/dist/node/lib/yarn/index.d.ts.map +1 -0
- package/dist/node/lib/yarn/isYarnVersionOrGreater.d.ts +2 -0
- package/dist/node/lib/yarn/isYarnVersionOrGreater.d.ts.map +1 -0
- package/dist/node/lib/yarn/workspace/Workspace.d.ts +2 -0
- package/dist/node/lib/yarn/workspace/Workspace.d.ts.map +1 -0
- package/dist/node/lib/yarn/workspace/index.d.ts +3 -0
- package/dist/node/lib/yarn/workspace/index.d.ts.map +1 -0
- package/dist/node/lib/yarn/workspace/yarnWorkspace.d.ts +3 -0
- package/dist/node/lib/yarn/workspace/yarnWorkspace.d.ts.map +1 -0
- package/dist/node/lib/yarn/workspace/yarnWorkspaces.d.ts +3 -0
- package/dist/node/lib/yarn/workspace/yarnWorkspaces.d.ts.map +1 -0
- package/dist/node/loadPackageConfig.d.ts +40 -0
- package/dist/node/loadPackageConfig.d.ts.map +1 -0
- package/dist/node/pm/PackageManager.d.ts +85 -0
- package/dist/node/pm/PackageManager.d.ts.map +1 -0
- package/dist/node/pm/bunPackageManager.d.ts +20 -0
- package/dist/node/pm/bunPackageManager.d.ts.map +1 -0
- package/dist/node/pm/detectPackageManager.d.ts +3 -0
- package/dist/node/pm/detectPackageManager.d.ts.map +1 -0
- package/dist/node/pm/index.d.ts +11 -0
- package/dist/node/pm/index.d.ts.map +1 -0
- package/dist/node/pm/isReactProject.d.ts +3 -0
- package/dist/node/pm/isReactProject.d.ts.map +1 -0
- package/dist/node/pm/npmPackageManager.d.ts +20 -0
- package/dist/node/pm/npmPackageManager.d.ts.map +1 -0
- package/dist/node/pm/pnpmPackageManager.d.ts +20 -0
- package/dist/node/pm/pnpmPackageManager.d.ts.map +1 -0
- package/dist/node/pm/registry.d.ts +5 -0
- package/dist/node/pm/registry.d.ts.map +1 -0
- package/dist/node/pm/resolveWorkspace.d.ts +3 -0
- package/dist/node/pm/resolveWorkspace.d.ts.map +1 -0
- package/dist/node/pm/runtime.d.ts +2 -0
- package/dist/node/pm/runtime.d.ts.map +1 -0
- package/dist/node/pm/workspaces.d.ts +15 -0
- package/dist/node/pm/workspaces.d.ts.map +1 -0
- package/dist/node/pm/yarnPackageManager.d.ts +20 -0
- package/dist/node/pm/yarnPackageManager.d.ts.map +1 -0
- package/dist/node/xy/build/buildCommand.d.ts +3 -0
- package/dist/node/xy/build/buildCommand.d.ts.map +1 -0
- package/dist/node/xy/build/compileCommand.d.ts +3 -0
- package/dist/node/xy/build/compileCommand.d.ts.map +1 -0
- package/dist/node/xy/build/copyAssetsCommand.d.ts +3 -0
- package/dist/node/xy/build/copyAssetsCommand.d.ts.map +1 -0
- package/dist/node/xy/build/index.d.ts +3 -0
- package/dist/node/xy/build/index.d.ts.map +1 -0
- package/dist/node/xy/build/rebuildCommand.d.ts +3 -0
- package/dist/node/xy/build/rebuildCommand.d.ts.map +1 -0
- package/dist/node/xy/build/recompileCommand.d.ts +3 -0
- package/dist/node/xy/build/recompileCommand.d.ts.map +1 -0
- package/dist/node/xy/build/tscValidateCommand.d.ts +3 -0
- package/dist/node/xy/build/tscValidateCommand.d.ts.map +1 -0
- package/dist/node/xy/common/checkCommand.d.ts +3 -0
- package/dist/node/xy/common/checkCommand.d.ts.map +1 -0
- package/dist/node/xy/common/deadCommand.d.ts +3 -0
- package/dist/node/xy/common/deadCommand.d.ts.map +1 -0
- package/dist/node/xy/common/gitignoreCommand.d.ts +3 -0
- package/dist/node/xy/common/gitignoreCommand.d.ts.map +1 -0
- package/dist/node/xy/common/gitlintCommand.d.ts +3 -0
- package/dist/node/xy/common/gitlintCommand.d.ts.map +1 -0
- package/dist/node/xy/common/index.d.ts +3 -0
- package/dist/node/xy/common/index.d.ts.map +1 -0
- package/dist/node/xy/common/licenseCommand.d.ts +3 -0
- package/dist/node/xy/common/licenseCommand.d.ts.map +1 -0
- package/dist/node/xy/common/npmignoreGenCommand.d.ts +3 -0
- package/dist/node/xy/common/npmignoreGenCommand.d.ts.map +1 -0
- package/dist/node/xy/common/orphan/cleanCommand.d.ts +3 -0
- package/dist/node/xy/common/orphan/cleanCommand.d.ts.map +1 -0
- package/dist/node/xy/common/orphan/index.d.ts +3 -0
- package/dist/node/xy/common/orphan/index.d.ts.map +1 -0
- package/dist/node/xy/common/orphan/listCommand.d.ts +3 -0
- package/dist/node/xy/common/orphan/listCommand.d.ts.map +1 -0
- package/dist/node/xy/common/packmanCommand.d.ts +3 -0
- package/dist/node/xy/common/packmanCommand.d.ts.map +1 -0
- package/dist/node/xy/common/repo/index.d.ts +3 -0
- package/dist/node/xy/common/repo/index.d.ts.map +1 -0
- package/dist/node/xy/common/repo/initCommand.d.ts +3 -0
- package/dist/node/xy/common/repo/initCommand.d.ts.map +1 -0
- package/dist/node/xy/common/repo/lintCommand.d.ts +3 -0
- package/dist/node/xy/common/repo/lintCommand.d.ts.map +1 -0
- package/dist/node/xy/common/retestCommand.d.ts +3 -0
- package/dist/node/xy/common/retestCommand.d.ts.map +1 -0
- package/dist/node/xy/common/secureCommand.d.ts +3 -0
- package/dist/node/xy/common/secureCommand.d.ts.map +1 -0
- package/dist/node/xy/common/skills/index.d.ts +3 -0
- package/dist/node/xy/common/skills/index.d.ts.map +1 -0
- package/dist/node/xy/common/testCommand.d.ts +3 -0
- package/dist/node/xy/common/testCommand.d.ts.map +1 -0
- package/dist/node/xy/common/work/addCommand.d.ts +3 -0
- package/dist/node/xy/common/work/addCommand.d.ts.map +1 -0
- package/dist/node/xy/common/work/claimCommand.d.ts +3 -0
- package/dist/node/xy/common/work/claimCommand.d.ts.map +1 -0
- package/dist/node/xy/common/work/doneCommand.d.ts +3 -0
- package/dist/node/xy/common/work/doneCommand.d.ts.map +1 -0
- package/dist/node/xy/common/work/index.d.ts +3 -0
- package/dist/node/xy/common/work/index.d.ts.map +1 -0
- package/dist/node/xy/common/work/initCommand.d.ts +3 -0
- package/dist/node/xy/common/work/initCommand.d.ts.map +1 -0
- package/dist/node/xy/common/work/listCommand.d.ts +3 -0
- package/dist/node/xy/common/work/listCommand.d.ts.map +1 -0
- package/dist/node/xy/common/work/nextCommand.d.ts +3 -0
- package/dist/node/xy/common/work/nextCommand.d.ts.map +1 -0
- package/dist/node/xy/common/work/options.d.ts +5 -0
- package/dist/node/xy/common/work/options.d.ts.map +1 -0
- package/dist/node/xy/common/work/queueCommand.d.ts +3 -0
- package/dist/node/xy/common/work/queueCommand.d.ts.map +1 -0
- package/dist/node/xy/common/work/showCommand.d.ts +3 -0
- package/dist/node/xy/common/work/showCommand.d.ts.map +1 -0
- package/dist/node/xy/common/work/triageCommand.d.ts +3 -0
- package/dist/node/xy/common/work/triageCommand.d.ts.map +1 -0
- package/dist/node/xy/common/work/updateCommand.d.ts +3 -0
- package/dist/node/xy/common/work/updateCommand.d.ts.map +1 -0
- package/dist/node/xy/deploy/deployCommand.d.ts +3 -0
- package/dist/node/xy/deploy/deployCommand.d.ts.map +1 -0
- package/dist/node/xy/deploy/index.d.ts +3 -0
- package/dist/node/xy/deploy/index.d.ts.map +1 -0
- package/dist/node/xy/deploy/publishCommand.d.ts +3 -0
- package/dist/node/xy/deploy/publishCommand.d.ts.map +1 -0
- package/dist/node/xy/index.d.ts +9 -0
- package/dist/node/xy/index.d.ts.map +1 -0
- package/dist/node/xy/install/cleanCommand.d.ts +3 -0
- package/dist/node/xy/install/cleanCommand.d.ts.map +1 -0
- package/dist/node/xy/install/index.d.ts +3 -0
- package/dist/node/xy/install/index.d.ts.map +1 -0
- package/dist/node/xy/install/installCommand.d.ts +3 -0
- package/dist/node/xy/install/installCommand.d.ts.map +1 -0
- package/dist/node/xy/install/reinstallCommand.d.ts +3 -0
- package/dist/node/xy/install/reinstallCommand.d.ts.map +1 -0
- package/dist/node/xy/install/staticsCommand.d.ts +3 -0
- package/dist/node/xy/install/staticsCommand.d.ts.map +1 -0
- package/dist/node/xy/install/upCommand.d.ts +3 -0
- package/dist/node/xy/install/upCommand.d.ts.map +1 -0
- package/dist/node/xy/install/updoCommand.d.ts +3 -0
- package/dist/node/xy/install/updoCommand.d.ts.map +1 -0
- package/dist/node/xy/lint/apiExposureCommand.d.ts +3 -0
- package/dist/node/xy/lint/apiExposureCommand.d.ts.map +1 -0
- package/dist/node/xy/lint/cycleCommand.d.ts +3 -0
- package/dist/node/xy/lint/cycleCommand.d.ts.map +1 -0
- package/dist/node/xy/lint/deplintCommand.d.ts +3 -0
- package/dist/node/xy/lint/deplintCommand.d.ts.map +1 -0
- package/dist/node/xy/lint/fixCommand.d.ts +3 -0
- package/dist/node/xy/lint/fixCommand.d.ts.map +1 -0
- package/dist/node/xy/lint/index.d.ts +3 -0
- package/dist/node/xy/lint/index.d.ts.map +1 -0
- package/dist/node/xy/lint/lint/configCommand.d.ts +5 -0
- package/dist/node/xy/lint/lint/configCommand.d.ts.map +1 -0
- package/dist/node/xy/lint/lint/index.d.ts +3 -0
- package/dist/node/xy/lint/lint/index.d.ts.map +1 -0
- package/dist/node/xy/lint/lint/initCommand.d.ts +3 -0
- package/dist/node/xy/lint/lint/initCommand.d.ts.map +1 -0
- package/dist/node/xy/lint/lint/runCommand.d.ts +3 -0
- package/dist/node/xy/lint/lint/runCommand.d.ts.map +1 -0
- package/dist/node/xy/lint/lintCommand.d.ts +2 -0
- package/dist/node/xy/lint/lintCommand.d.ts.map +1 -0
- package/dist/node/xy/lint/lintlintCommand.d.ts +3 -0
- package/dist/node/xy/lint/lintlintCommand.d.ts.map +1 -0
- package/dist/node/xy/lint/nodeLintCommand.d.ts +3 -0
- package/dist/node/xy/lint/nodeLintCommand.d.ts.map +1 -0
- package/dist/node/xy/lint/publintCommand.d.ts +3 -0
- package/dist/node/xy/lint/publintCommand.d.ts.map +1 -0
- package/dist/node/xy/lint/relintCommand.d.ts +3 -0
- package/dist/node/xy/lint/relintCommand.d.ts.map +1 -0
- package/dist/node/xy/lint/republintCommand.d.ts +3 -0
- package/dist/node/xy/lint/republintCommand.d.ts.map +1 -0
- package/dist/node/xy/lint/sonarCommand.d.ts +3 -0
- package/dist/node/xy/lint/sonarCommand.d.ts.map +1 -0
- package/dist/node/xy/packageManagerWarning.d.ts +4 -0
- package/dist/node/xy/packageManagerWarning.d.ts.map +1 -0
- package/dist/node/xy/param.d.ts +5 -0
- package/dist/node/xy/param.d.ts.map +1 -0
- package/dist/node/xy/react/analyzeCommand.d.ts +3 -0
- package/dist/node/xy/react/analyzeCommand.d.ts.map +1 -0
- package/dist/node/xy/react/ejectCommand.d.ts +3 -0
- package/dist/node/xy/react/ejectCommand.d.ts.map +1 -0
- package/dist/node/xy/react/index.d.ts +3 -0
- package/dist/node/xy/react/index.d.ts.map +1 -0
- package/dist/node/xy/react/sitemapCommand.d.ts +3 -0
- package/dist/node/xy/react/sitemapCommand.d.ts.map +1 -0
- package/dist/node/xy/react/startCommand.d.ts +3 -0
- package/dist/node/xy/react/startCommand.d.ts.map +1 -0
- package/dist/node/xy/xy.d.ts +20 -0
- package/dist/node/xy/xy.d.ts.map +1 -0
- package/dist/node/xy/xyParseOptions.d.ts +3 -0
- package/dist/node/xy/xyParseOptions.d.ts.map +1 -0
- package/dist/pm/PackageManager.d.ts +85 -0
- package/dist/pm/PackageManager.d.ts.map +1 -0
- package/dist/pm/bunPackageManager.d.ts +20 -0
- package/dist/pm/bunPackageManager.d.ts.map +1 -0
- package/dist/pm/detectPackageManager.d.ts +3 -0
- package/dist/pm/detectPackageManager.d.ts.map +1 -0
- package/dist/pm/detectReact.d.ts +3 -0
- package/dist/pm/detectReact.d.ts.map +1 -0
- package/dist/pm/index.d.ts +11 -0
- package/dist/pm/index.d.ts.map +1 -0
- package/dist/pm/isReactProject.d.ts +3 -0
- package/dist/pm/isReactProject.d.ts.map +1 -0
- package/dist/pm/npmPackageManager.d.ts +20 -0
- package/dist/pm/npmPackageManager.d.ts.map +1 -0
- package/dist/pm/pnpmPackageManager.d.ts +20 -0
- package/dist/pm/pnpmPackageManager.d.ts.map +1 -0
- package/dist/pm/registry.d.ts +5 -0
- package/dist/pm/registry.d.ts.map +1 -0
- package/dist/pm/resolveWorkspace.d.ts +3 -0
- package/dist/pm/resolveWorkspace.d.ts.map +1 -0
- package/dist/pm/runtime.d.ts +2 -0
- package/dist/pm/runtime.d.ts.map +1 -0
- package/dist/pm/workspaces.d.ts +15 -0
- package/dist/pm/workspaces.d.ts.map +1 -0
- package/dist/pm/yarnPackageManager.d.ts +20 -0
- package/dist/pm/yarnPackageManager.d.ts.map +1 -0
- package/dist/xy/build/buildCommand.d.ts +3 -0
- package/dist/xy/build/buildCommand.d.ts.map +1 -0
- package/dist/xy/build/compileCommand.d.ts +3 -0
- package/dist/xy/build/compileCommand.d.ts.map +1 -0
- package/dist/xy/build/copyAssetsCommand.d.ts +3 -0
- package/dist/xy/build/copyAssetsCommand.d.ts.map +1 -0
- package/dist/xy/build/index.d.ts +3 -0
- package/dist/xy/build/index.d.ts.map +1 -0
- package/dist/xy/build/rebuildCommand.d.ts +3 -0
- package/dist/xy/build/rebuildCommand.d.ts.map +1 -0
- package/dist/xy/build/recompileCommand.d.ts +3 -0
- package/dist/xy/build/recompileCommand.d.ts.map +1 -0
- package/dist/xy/build/tscValidateCommand.d.ts +3 -0
- package/dist/xy/build/tscValidateCommand.d.ts.map +1 -0
- package/dist/xy/common/checkCommand.d.ts +3 -0
- package/dist/xy/common/checkCommand.d.ts.map +1 -0
- package/dist/xy/common/claude/checkCommand.d.ts +3 -0
- package/dist/xy/common/claude/checkCommand.d.ts.map +1 -0
- package/dist/xy/common/claude/cleanCommand.d.ts +3 -0
- package/dist/xy/common/claude/cleanCommand.d.ts.map +1 -0
- package/dist/xy/common/claude/commandsCommand.d.ts +3 -0
- package/dist/xy/common/claude/commandsCommand.d.ts.map +1 -0
- package/dist/xy/common/claude/index.d.ts +3 -0
- package/dist/xy/common/claude/index.d.ts.map +1 -0
- package/dist/xy/common/claude/initCommand.d.ts +3 -0
- package/dist/xy/common/claude/initCommand.d.ts.map +1 -0
- package/dist/xy/common/claude/rulesCommand.d.ts +3 -0
- package/dist/xy/common/claude/rulesCommand.d.ts.map +1 -0
- package/dist/xy/common/claude/settingsCommand.d.ts +3 -0
- package/dist/xy/common/claude/settingsCommand.d.ts.map +1 -0
- package/dist/xy/common/claude/skillsCommand.d.ts +3 -0
- package/dist/xy/common/claude/skillsCommand.d.ts.map +1 -0
- package/dist/xy/common/deadCommand.d.ts +3 -0
- package/dist/xy/common/deadCommand.d.ts.map +1 -0
- package/dist/xy/common/gitignoreCommand.d.ts +3 -0
- package/dist/xy/common/gitignoreCommand.d.ts.map +1 -0
- package/dist/xy/common/gitlintCommand.d.ts +3 -0
- package/dist/xy/common/gitlintCommand.d.ts.map +1 -0
- package/dist/xy/common/index.d.ts +3 -0
- package/dist/xy/common/index.d.ts.map +1 -0
- package/dist/xy/common/licenseCommand.d.ts +3 -0
- package/dist/xy/common/licenseCommand.d.ts.map +1 -0
- package/dist/xy/common/npmignoreGenCommand.d.ts +3 -0
- package/dist/xy/common/npmignoreGenCommand.d.ts.map +1 -0
- package/dist/xy/common/orphan/cleanCommand.d.ts +3 -0
- package/dist/xy/common/orphan/cleanCommand.d.ts.map +1 -0
- package/dist/xy/common/orphan/index.d.ts +3 -0
- package/dist/xy/common/orphan/index.d.ts.map +1 -0
- package/dist/xy/common/orphan/listCommand.d.ts +3 -0
- package/dist/xy/common/orphan/listCommand.d.ts.map +1 -0
- package/dist/xy/common/packmanCommand.d.ts +3 -0
- package/dist/xy/common/packmanCommand.d.ts.map +1 -0
- package/dist/xy/common/repo/index.d.ts +3 -0
- package/dist/xy/common/repo/index.d.ts.map +1 -0
- package/dist/xy/common/repo/initCommand.d.ts +3 -0
- package/dist/xy/common/repo/initCommand.d.ts.map +1 -0
- package/dist/xy/common/repo/lintCommand.d.ts +3 -0
- package/dist/xy/common/repo/lintCommand.d.ts.map +1 -0
- package/dist/xy/common/retestCommand.d.ts +3 -0
- package/dist/xy/common/retestCommand.d.ts.map +1 -0
- package/dist/xy/common/secureCommand.d.ts +3 -0
- package/dist/xy/common/secureCommand.d.ts.map +1 -0
- package/dist/xy/common/skills/addCommand.d.ts +3 -0
- package/dist/xy/common/skills/addCommand.d.ts.map +1 -0
- package/dist/xy/common/skills/experimentalInstallCommand.d.ts +3 -0
- package/dist/xy/common/skills/experimentalInstallCommand.d.ts.map +1 -0
- package/dist/xy/common/skills/experimentalSyncCommand.d.ts +3 -0
- package/dist/xy/common/skills/experimentalSyncCommand.d.ts.map +1 -0
- package/dist/xy/common/skills/findCommand.d.ts +3 -0
- package/dist/xy/common/skills/findCommand.d.ts.map +1 -0
- package/dist/xy/common/skills/index.d.ts +3 -0
- package/dist/xy/common/skills/index.d.ts.map +1 -0
- package/dist/xy/common/skills/initCommand.d.ts +3 -0
- package/dist/xy/common/skills/initCommand.d.ts.map +1 -0
- package/dist/xy/common/skills/lintCommand.d.ts +3 -0
- package/dist/xy/common/skills/lintCommand.d.ts.map +1 -0
- package/dist/xy/common/skills/listCommand.d.ts +3 -0
- package/dist/xy/common/skills/listCommand.d.ts.map +1 -0
- package/dist/xy/common/skills/removeCommand.d.ts +3 -0
- package/dist/xy/common/skills/removeCommand.d.ts.map +1 -0
- package/dist/xy/common/skills/updateCommand.d.ts +3 -0
- package/dist/xy/common/skills/updateCommand.d.ts.map +1 -0
- package/dist/xy/common/skills/updoCommand.d.ts +3 -0
- package/dist/xy/common/skills/updoCommand.d.ts.map +1 -0
- package/dist/xy/common/testCommand.d.ts +3 -0
- package/dist/xy/common/testCommand.d.ts.map +1 -0
- package/dist/xy/common/work/addCommand.d.ts +3 -0
- package/dist/xy/common/work/addCommand.d.ts.map +1 -0
- package/dist/xy/common/work/claimCommand.d.ts +3 -0
- package/dist/xy/common/work/claimCommand.d.ts.map +1 -0
- package/dist/xy/common/work/doneCommand.d.ts +3 -0
- package/dist/xy/common/work/doneCommand.d.ts.map +1 -0
- package/dist/xy/common/work/index.d.ts +3 -0
- package/dist/xy/common/work/index.d.ts.map +1 -0
- package/dist/xy/common/work/initCommand.d.ts +3 -0
- package/dist/xy/common/work/initCommand.d.ts.map +1 -0
- package/dist/xy/common/work/listCommand.d.ts +3 -0
- package/dist/xy/common/work/listCommand.d.ts.map +1 -0
- package/dist/xy/common/work/nextCommand.d.ts +3 -0
- package/dist/xy/common/work/nextCommand.d.ts.map +1 -0
- package/dist/xy/common/work/options.d.ts +5 -0
- package/dist/xy/common/work/options.d.ts.map +1 -0
- package/dist/xy/common/work/queueCommand.d.ts +3 -0
- package/dist/xy/common/work/queueCommand.d.ts.map +1 -0
- package/dist/xy/common/work/showCommand.d.ts +3 -0
- package/dist/xy/common/work/showCommand.d.ts.map +1 -0
- package/dist/xy/common/work/triageCommand.d.ts +3 -0
- package/dist/xy/common/work/triageCommand.d.ts.map +1 -0
- package/dist/xy/common/work/updateCommand.d.ts +3 -0
- package/dist/xy/common/work/updateCommand.d.ts.map +1 -0
- package/dist/xy/deploy/deployCommand.d.ts +3 -0
- package/dist/xy/deploy/deployCommand.d.ts.map +1 -0
- package/dist/xy/deploy/index.d.ts +3 -0
- package/dist/xy/deploy/index.d.ts.map +1 -0
- package/dist/xy/deploy/publishCommand.d.ts +3 -0
- package/dist/xy/deploy/publishCommand.d.ts.map +1 -0
- package/dist/xy/index.d.ts +9 -0
- package/dist/xy/index.d.ts.map +1 -0
- package/dist/xy/install/cleanCommand.d.ts +3 -0
- package/dist/xy/install/cleanCommand.d.ts.map +1 -0
- package/dist/xy/install/index.d.ts +3 -0
- package/dist/xy/install/index.d.ts.map +1 -0
- package/dist/xy/install/installCommand.d.ts +3 -0
- package/dist/xy/install/installCommand.d.ts.map +1 -0
- package/dist/xy/install/reinstallCommand.d.ts +3 -0
- package/dist/xy/install/reinstallCommand.d.ts.map +1 -0
- package/dist/xy/install/staticsCommand.d.ts +3 -0
- package/dist/xy/install/staticsCommand.d.ts.map +1 -0
- package/dist/xy/install/upCommand.d.ts +3 -0
- package/dist/xy/install/upCommand.d.ts.map +1 -0
- package/dist/xy/install/updoCommand.d.ts +3 -0
- package/dist/xy/install/updoCommand.d.ts.map +1 -0
- package/dist/xy/install/upskillsCommand.d.ts +3 -0
- package/dist/xy/install/upskillsCommand.d.ts.map +1 -0
- package/dist/xy/lint/apiExposureCommand.d.ts +3 -0
- package/dist/xy/lint/apiExposureCommand.d.ts.map +1 -0
- package/dist/xy/lint/cycleCommand.d.ts +3 -0
- package/dist/xy/lint/cycleCommand.d.ts.map +1 -0
- package/dist/xy/lint/deplintCommand.d.ts +3 -0
- package/dist/xy/lint/deplintCommand.d.ts.map +1 -0
- package/dist/xy/lint/fixCommand.d.ts +3 -0
- package/dist/xy/lint/fixCommand.d.ts.map +1 -0
- package/dist/xy/lint/index.d.ts +3 -0
- package/dist/xy/lint/index.d.ts.map +1 -0
- package/dist/xy/lint/lint/configCommand.d.ts +5 -0
- package/dist/xy/lint/lint/configCommand.d.ts.map +1 -0
- package/dist/xy/lint/lint/index.d.ts +3 -0
- package/dist/xy/lint/lint/index.d.ts.map +1 -0
- package/dist/xy/lint/lint/initCommand.d.ts +3 -0
- package/dist/xy/lint/lint/initCommand.d.ts.map +1 -0
- package/dist/xy/lint/lint/runCommand.d.ts +3 -0
- package/dist/xy/lint/lint/runCommand.d.ts.map +1 -0
- package/dist/xy/lint/lintCommand.d.ts +2 -0
- package/dist/xy/lint/lintCommand.d.ts.map +1 -0
- package/dist/xy/lint/lintlintCommand.d.ts +3 -0
- package/dist/xy/lint/lintlintCommand.d.ts.map +1 -0
- package/dist/xy/lint/nodeLintCommand.d.ts +3 -0
- package/dist/xy/lint/nodeLintCommand.d.ts.map +1 -0
- package/dist/xy/lint/publintCommand.d.ts +3 -0
- package/dist/xy/lint/publintCommand.d.ts.map +1 -0
- package/dist/xy/lint/relintCommand.d.ts +3 -0
- package/dist/xy/lint/relintCommand.d.ts.map +1 -0
- package/dist/xy/lint/republintCommand.d.ts +3 -0
- package/dist/xy/lint/republintCommand.d.ts.map +1 -0
- package/dist/xy/lint/sonarCommand.d.ts +3 -0
- package/dist/xy/lint/sonarCommand.d.ts.map +1 -0
- package/dist/xy/packageManagerWarning.d.ts +4 -0
- package/dist/xy/packageManagerWarning.d.ts.map +1 -0
- package/dist/xy/param.d.ts +5 -0
- package/dist/xy/param.d.ts.map +1 -0
- package/dist/xy/react/analyzeCommand.d.ts +3 -0
- package/dist/xy/react/analyzeCommand.d.ts.map +1 -0
- package/dist/xy/react/ejectCommand.d.ts +3 -0
- package/dist/xy/react/ejectCommand.d.ts.map +1 -0
- package/dist/xy/react/index.d.ts +3 -0
- package/dist/xy/react/index.d.ts.map +1 -0
- package/dist/xy/react/sitemapCommand.d.ts +3 -0
- package/dist/xy/react/sitemapCommand.d.ts.map +1 -0
- package/dist/xy/react/startCommand.d.ts +3 -0
- package/dist/xy/react/startCommand.d.ts.map +1 -0
- package/dist/xy/xy.d.ts +20 -0
- package/dist/xy/xy.d.ts.map +1 -0
- package/dist/xy/xyParseOptions.d.ts +3 -0
- package/dist/xy/xyParseOptions.d.ts.map +1 -0
- package/package.json +108 -0
- package/templates/gitignore/gitignore/template.gitignore +51 -0
- package/templates/gitignore/template.gitignore +51 -0
- package/templates/repo/cli/package/package.json.tmpl +62 -0
- package/templates/repo/cli/package/src/__packageName__.ts.tmpl +21 -0
- package/templates/repo/cli/package/src/actions/index.ts +1 -0
- package/templates/repo/cli/package/src/actions/printVersion.ts.tmpl +8 -0
- package/templates/repo/cli/package/src/bin/__packageName__.ts.tmpl +12 -0
- package/templates/repo/cli/package/src/commands/index.ts +1 -0
- package/templates/repo/cli/package/src/commands/versionCommand.ts.tmpl +11 -0
- package/templates/repo/cli/package/src/index.ts.tmpl +1 -0
- package/templates/repo/cli/package/tsconfig.build.json +25 -0
- package/templates/repo/cli/package/tsconfig.json +4 -0
- package/templates/repo/cli/package/xy.config.ts +3 -0
- package/templates/repo/cli/root/CLAUDE.md.tmpl +36 -0
- package/templates/repo/cli/root/cspell.json.tmpl +13 -0
- package/templates/repo/cli/root/eslint.config.ts +20 -0
- package/templates/repo/cli/root/github/workflows/build-bun.yml.tmpl +30 -0
- package/templates/repo/cli/root/github/workflows/build-npm.yml.tmpl +32 -0
- package/templates/repo/cli/root/github/workflows/build-pnpm.yml.tmpl +34 -0
- package/templates/repo/cli/root/github/workflows/build-yarn.yml.tmpl +32 -0
- package/templates/repo/cli/root/gitignore.tmpl +47 -0
- package/templates/repo/cli/root/package.json.tmpl +54 -0
- package/templates/repo/cli/root/pnpm-workspace.yaml +2 -0
- package/templates/repo/cli/root/tsconfig.json +4 -0
- package/templates/repo/cli/root/vitest.config.ts +31 -0
- package/templates/repo/cli/root/xy.config.ts.tmpl +5 -0
|
@@ -0,0 +1,3632 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import * as xi from "node:fs";
|
|
3
|
+
import fs, { readFileSync } from "node:fs";
|
|
4
|
+
import PATH, { posix, win32 } from "node:path";
|
|
5
|
+
import process$1 from "node:process";
|
|
6
|
+
import os from "node:os";
|
|
7
|
+
import tty from "node:tty";
|
|
8
|
+
import { fileURLToPath } from "node:url";
|
|
9
|
+
import { lstatSync, readdir, readdirSync, readlinkSync, realpathSync } from "fs";
|
|
10
|
+
import { lstat, readdir as readdir$1, readlink, realpath } from "node:fs/promises";
|
|
11
|
+
import { EventEmitter } from "node:events";
|
|
12
|
+
import Pe from "node:stream";
|
|
13
|
+
import { StringDecoder } from "node:string_decoder";
|
|
14
|
+
//#region \0rolldown/runtime.js
|
|
15
|
+
var __esmMin = (fn, res, err) => () => {
|
|
16
|
+
if (err) throw err[0];
|
|
17
|
+
try {
|
|
18
|
+
return fn && (res = fn(fn = 0)), res;
|
|
19
|
+
} catch (e) {
|
|
20
|
+
throw err = [e], e;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
25
|
+
const ANSI_BACKGROUND_OFFSET = 10;
|
|
26
|
+
const wrapAnsi16 = (offset = 0) => (code) => `\u001B[${code + offset}m`;
|
|
27
|
+
const wrapAnsi256 = (offset = 0) => (code) => `\u001B[${38 + offset};5;${code}m`;
|
|
28
|
+
const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u001B[${38 + offset};2;${red};${green};${blue}m`;
|
|
29
|
+
const styles$1 = {
|
|
30
|
+
modifier: {
|
|
31
|
+
reset: [0, 0],
|
|
32
|
+
bold: [1, 22],
|
|
33
|
+
dim: [2, 22],
|
|
34
|
+
italic: [3, 23],
|
|
35
|
+
underline: [4, 24],
|
|
36
|
+
overline: [53, 55],
|
|
37
|
+
inverse: [7, 27],
|
|
38
|
+
hidden: [8, 28],
|
|
39
|
+
strikethrough: [9, 29]
|
|
40
|
+
},
|
|
41
|
+
color: {
|
|
42
|
+
black: [30, 39],
|
|
43
|
+
red: [31, 39],
|
|
44
|
+
green: [32, 39],
|
|
45
|
+
yellow: [33, 39],
|
|
46
|
+
blue: [34, 39],
|
|
47
|
+
magenta: [35, 39],
|
|
48
|
+
cyan: [36, 39],
|
|
49
|
+
white: [37, 39],
|
|
50
|
+
blackBright: [90, 39],
|
|
51
|
+
gray: [90, 39],
|
|
52
|
+
grey: [90, 39],
|
|
53
|
+
redBright: [91, 39],
|
|
54
|
+
greenBright: [92, 39],
|
|
55
|
+
yellowBright: [93, 39],
|
|
56
|
+
blueBright: [94, 39],
|
|
57
|
+
magentaBright: [95, 39],
|
|
58
|
+
cyanBright: [96, 39],
|
|
59
|
+
whiteBright: [97, 39]
|
|
60
|
+
},
|
|
61
|
+
bgColor: {
|
|
62
|
+
bgBlack: [40, 49],
|
|
63
|
+
bgRed: [41, 49],
|
|
64
|
+
bgGreen: [42, 49],
|
|
65
|
+
bgYellow: [43, 49],
|
|
66
|
+
bgBlue: [44, 49],
|
|
67
|
+
bgMagenta: [45, 49],
|
|
68
|
+
bgCyan: [46, 49],
|
|
69
|
+
bgWhite: [47, 49],
|
|
70
|
+
bgBlackBright: [100, 49],
|
|
71
|
+
bgGray: [100, 49],
|
|
72
|
+
bgGrey: [100, 49],
|
|
73
|
+
bgRedBright: [101, 49],
|
|
74
|
+
bgGreenBright: [102, 49],
|
|
75
|
+
bgYellowBright: [103, 49],
|
|
76
|
+
bgBlueBright: [104, 49],
|
|
77
|
+
bgMagentaBright: [105, 49],
|
|
78
|
+
bgCyanBright: [106, 49],
|
|
79
|
+
bgWhiteBright: [107, 49]
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
Object.keys(styles$1.modifier);
|
|
83
|
+
const foregroundColorNames = Object.keys(styles$1.color);
|
|
84
|
+
const backgroundColorNames = Object.keys(styles$1.bgColor);
|
|
85
|
+
[...foregroundColorNames, ...backgroundColorNames];
|
|
86
|
+
function assembleStyles() {
|
|
87
|
+
const codes = /* @__PURE__ */ new Map();
|
|
88
|
+
for (const [groupName, group] of Object.entries(styles$1)) {
|
|
89
|
+
for (const [styleName, style] of Object.entries(group)) {
|
|
90
|
+
styles$1[styleName] = {
|
|
91
|
+
open: `\u001B[${style[0]}m`,
|
|
92
|
+
close: `\u001B[${style[1]}m`
|
|
93
|
+
};
|
|
94
|
+
group[styleName] = styles$1[styleName];
|
|
95
|
+
codes.set(style[0], style[1]);
|
|
96
|
+
}
|
|
97
|
+
Object.defineProperty(styles$1, groupName, {
|
|
98
|
+
value: group,
|
|
99
|
+
enumerable: false
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
Object.defineProperty(styles$1, "codes", {
|
|
103
|
+
value: codes,
|
|
104
|
+
enumerable: false
|
|
105
|
+
});
|
|
106
|
+
styles$1.color.close = "\x1B[39m";
|
|
107
|
+
styles$1.bgColor.close = "\x1B[49m";
|
|
108
|
+
styles$1.color.ansi = wrapAnsi16();
|
|
109
|
+
styles$1.color.ansi256 = wrapAnsi256();
|
|
110
|
+
styles$1.color.ansi16m = wrapAnsi16m();
|
|
111
|
+
styles$1.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
112
|
+
styles$1.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
113
|
+
styles$1.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
114
|
+
Object.defineProperties(styles$1, {
|
|
115
|
+
rgbToAnsi256: {
|
|
116
|
+
value(red, green, blue) {
|
|
117
|
+
if (red === green && green === blue) {
|
|
118
|
+
if (red < 8) return 16;
|
|
119
|
+
if (red > 248) return 231;
|
|
120
|
+
return Math.round((red - 8) / 247 * 24) + 232;
|
|
121
|
+
}
|
|
122
|
+
return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
|
|
123
|
+
},
|
|
124
|
+
enumerable: false
|
|
125
|
+
},
|
|
126
|
+
hexToRgb: {
|
|
127
|
+
value(hex) {
|
|
128
|
+
const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
|
|
129
|
+
if (!matches) return [
|
|
130
|
+
0,
|
|
131
|
+
0,
|
|
132
|
+
0
|
|
133
|
+
];
|
|
134
|
+
let [colorString] = matches;
|
|
135
|
+
if (colorString.length === 3) colorString = [...colorString].map((character) => character + character).join("");
|
|
136
|
+
const integer = Number.parseInt(colorString, 16);
|
|
137
|
+
return [
|
|
138
|
+
integer >> 16 & 255,
|
|
139
|
+
integer >> 8 & 255,
|
|
140
|
+
integer & 255
|
|
141
|
+
];
|
|
142
|
+
},
|
|
143
|
+
enumerable: false
|
|
144
|
+
},
|
|
145
|
+
hexToAnsi256: {
|
|
146
|
+
value: (hex) => styles$1.rgbToAnsi256(...styles$1.hexToRgb(hex)),
|
|
147
|
+
enumerable: false
|
|
148
|
+
},
|
|
149
|
+
ansi256ToAnsi: {
|
|
150
|
+
value(code) {
|
|
151
|
+
if (code < 8) return 30 + code;
|
|
152
|
+
if (code < 16) return 90 + (code - 8);
|
|
153
|
+
let red;
|
|
154
|
+
let green;
|
|
155
|
+
let blue;
|
|
156
|
+
if (code >= 232) {
|
|
157
|
+
red = ((code - 232) * 10 + 8) / 255;
|
|
158
|
+
green = red;
|
|
159
|
+
blue = red;
|
|
160
|
+
} else {
|
|
161
|
+
code -= 16;
|
|
162
|
+
const remainder = code % 36;
|
|
163
|
+
red = Math.floor(code / 36) / 5;
|
|
164
|
+
green = Math.floor(remainder / 6) / 5;
|
|
165
|
+
blue = remainder % 6 / 5;
|
|
166
|
+
}
|
|
167
|
+
const value = Math.max(red, green, blue) * 2;
|
|
168
|
+
if (value === 0) return 30;
|
|
169
|
+
let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
|
|
170
|
+
if (value === 2) result += 60;
|
|
171
|
+
return result;
|
|
172
|
+
},
|
|
173
|
+
enumerable: false
|
|
174
|
+
},
|
|
175
|
+
rgbToAnsi: {
|
|
176
|
+
value: (red, green, blue) => styles$1.ansi256ToAnsi(styles$1.rgbToAnsi256(red, green, blue)),
|
|
177
|
+
enumerable: false
|
|
178
|
+
},
|
|
179
|
+
hexToAnsi: {
|
|
180
|
+
value: (hex) => styles$1.ansi256ToAnsi(styles$1.hexToAnsi256(hex)),
|
|
181
|
+
enumerable: false
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
return styles$1;
|
|
185
|
+
}
|
|
186
|
+
const ansiStyles = assembleStyles();
|
|
187
|
+
//#endregion
|
|
188
|
+
//#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.js
|
|
189
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process$1.argv) {
|
|
190
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
191
|
+
const position = argv.indexOf(prefix + flag);
|
|
192
|
+
const terminatorPosition = argv.indexOf("--");
|
|
193
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
194
|
+
}
|
|
195
|
+
const { env } = process$1;
|
|
196
|
+
let flagForceColor;
|
|
197
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
|
|
198
|
+
else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
|
|
199
|
+
function envForceColor() {
|
|
200
|
+
if ("FORCE_COLOR" in env) {
|
|
201
|
+
if (env.FORCE_COLOR === "true") return 1;
|
|
202
|
+
if (env.FORCE_COLOR === "false") return 0;
|
|
203
|
+
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
function translateLevel(level) {
|
|
207
|
+
if (level === 0) return false;
|
|
208
|
+
return {
|
|
209
|
+
level,
|
|
210
|
+
hasBasic: true,
|
|
211
|
+
has256: level >= 2,
|
|
212
|
+
has16m: level >= 3
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
216
|
+
const noFlagForceColor = envForceColor();
|
|
217
|
+
if (noFlagForceColor !== void 0) flagForceColor = noFlagForceColor;
|
|
218
|
+
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
219
|
+
if (forceColor === 0) return 0;
|
|
220
|
+
if (sniffFlags) {
|
|
221
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
|
|
222
|
+
if (hasFlag("color=256")) return 2;
|
|
223
|
+
}
|
|
224
|
+
if ("TF_BUILD" in env && "AGENT_NAME" in env) return 1;
|
|
225
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
|
|
226
|
+
const min = forceColor || 0;
|
|
227
|
+
if (env.TERM === "dumb") return min;
|
|
228
|
+
if (process$1.platform === "win32") {
|
|
229
|
+
const osRelease = os.release().split(".");
|
|
230
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
231
|
+
return 1;
|
|
232
|
+
}
|
|
233
|
+
if ("CI" in env) {
|
|
234
|
+
if ([
|
|
235
|
+
"GITHUB_ACTIONS",
|
|
236
|
+
"GITEA_ACTIONS",
|
|
237
|
+
"CIRCLECI"
|
|
238
|
+
].some((key) => key in env)) return 3;
|
|
239
|
+
if ([
|
|
240
|
+
"TRAVIS",
|
|
241
|
+
"APPVEYOR",
|
|
242
|
+
"GITLAB_CI",
|
|
243
|
+
"BUILDKITE",
|
|
244
|
+
"DRONE"
|
|
245
|
+
].some((sign) => sign in env) || env.CI_NAME === "codeship") return 1;
|
|
246
|
+
return min;
|
|
247
|
+
}
|
|
248
|
+
if ("TEAMCITY_VERSION" in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
249
|
+
if (env.COLORTERM === "truecolor") return 3;
|
|
250
|
+
if (env.TERM === "xterm-kitty") return 3;
|
|
251
|
+
if (env.TERM === "xterm-ghostty") return 3;
|
|
252
|
+
if (env.TERM === "wezterm") return 3;
|
|
253
|
+
if ("TERM_PROGRAM" in env) {
|
|
254
|
+
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
255
|
+
switch (env.TERM_PROGRAM) {
|
|
256
|
+
case "iTerm.app": return version >= 3 ? 3 : 2;
|
|
257
|
+
case "Apple_Terminal": return 2;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
if (/-256(color)?$/i.test(env.TERM)) return 2;
|
|
261
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
|
|
262
|
+
if ("COLORTERM" in env) return 1;
|
|
263
|
+
return min;
|
|
264
|
+
}
|
|
265
|
+
function createSupportsColor(stream, options = {}) {
|
|
266
|
+
return translateLevel(_supportsColor(stream, {
|
|
267
|
+
streamIsTTY: stream && stream.isTTY,
|
|
268
|
+
...options
|
|
269
|
+
}));
|
|
270
|
+
}
|
|
271
|
+
const supportsColor = {
|
|
272
|
+
stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
|
|
273
|
+
stderr: createSupportsColor({ isTTY: tty.isatty(2) })
|
|
274
|
+
};
|
|
275
|
+
//#endregion
|
|
276
|
+
//#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js
|
|
277
|
+
function stringReplaceAll(string, substring, replacer) {
|
|
278
|
+
let index = string.indexOf(substring);
|
|
279
|
+
if (index === -1) return string;
|
|
280
|
+
const substringLength = substring.length;
|
|
281
|
+
let endIndex = 0;
|
|
282
|
+
let returnValue = "";
|
|
283
|
+
do {
|
|
284
|
+
returnValue += string.slice(endIndex, index) + substring + replacer;
|
|
285
|
+
endIndex = index + substringLength;
|
|
286
|
+
index = string.indexOf(substring, endIndex);
|
|
287
|
+
} while (index !== -1);
|
|
288
|
+
returnValue += string.slice(endIndex);
|
|
289
|
+
return returnValue;
|
|
290
|
+
}
|
|
291
|
+
function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
292
|
+
let endIndex = 0;
|
|
293
|
+
let returnValue = "";
|
|
294
|
+
do {
|
|
295
|
+
const gotCR = string[index - 1] === "\r";
|
|
296
|
+
returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
|
|
297
|
+
endIndex = index + 1;
|
|
298
|
+
index = string.indexOf("\n", endIndex);
|
|
299
|
+
} while (index !== -1);
|
|
300
|
+
returnValue += string.slice(endIndex);
|
|
301
|
+
return returnValue;
|
|
302
|
+
}
|
|
303
|
+
//#endregion
|
|
304
|
+
//#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js
|
|
305
|
+
const { stdout: stdoutColor, stderr: stderrColor } = supportsColor;
|
|
306
|
+
const GENERATOR = Symbol("GENERATOR");
|
|
307
|
+
const STYLER = Symbol("STYLER");
|
|
308
|
+
const IS_EMPTY = Symbol("IS_EMPTY");
|
|
309
|
+
const levelMapping = [
|
|
310
|
+
"ansi",
|
|
311
|
+
"ansi",
|
|
312
|
+
"ansi256",
|
|
313
|
+
"ansi16m"
|
|
314
|
+
];
|
|
315
|
+
const styles = Object.create(null);
|
|
316
|
+
const applyOptions = (object, options = {}) => {
|
|
317
|
+
if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) throw new Error("The `level` option should be an integer from 0 to 3");
|
|
318
|
+
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
319
|
+
object.level = options.level === void 0 ? colorLevel : options.level;
|
|
320
|
+
};
|
|
321
|
+
const chalkFactory = (options) => {
|
|
322
|
+
const chalk = (...strings) => strings.join(" ");
|
|
323
|
+
applyOptions(chalk, options);
|
|
324
|
+
Object.setPrototypeOf(chalk, createChalk.prototype);
|
|
325
|
+
return chalk;
|
|
326
|
+
};
|
|
327
|
+
function createChalk(options) {
|
|
328
|
+
return chalkFactory(options);
|
|
329
|
+
}
|
|
330
|
+
Object.setPrototypeOf(createChalk.prototype, Function.prototype);
|
|
331
|
+
for (const [styleName, style] of Object.entries(ansiStyles)) styles[styleName] = { get() {
|
|
332
|
+
const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
|
|
333
|
+
Object.defineProperty(this, styleName, { value: builder });
|
|
334
|
+
return builder;
|
|
335
|
+
} };
|
|
336
|
+
styles.visible = { get() {
|
|
337
|
+
const builder = createBuilder(this, this[STYLER], true);
|
|
338
|
+
Object.defineProperty(this, "visible", { value: builder });
|
|
339
|
+
return builder;
|
|
340
|
+
} };
|
|
341
|
+
const getModelAnsi = (model, level, type, ...arguments_) => {
|
|
342
|
+
if (model === "rgb") {
|
|
343
|
+
if (level === "ansi16m") return ansiStyles[type].ansi16m(...arguments_);
|
|
344
|
+
if (level === "ansi256") return ansiStyles[type].ansi256(ansiStyles.rgbToAnsi256(...arguments_));
|
|
345
|
+
return ansiStyles[type].ansi(ansiStyles.rgbToAnsi(...arguments_));
|
|
346
|
+
}
|
|
347
|
+
if (model === "hex") return getModelAnsi("rgb", level, type, ...ansiStyles.hexToRgb(...arguments_));
|
|
348
|
+
return ansiStyles[type][model](...arguments_);
|
|
349
|
+
};
|
|
350
|
+
for (const model of [
|
|
351
|
+
"rgb",
|
|
352
|
+
"hex",
|
|
353
|
+
"ansi256"
|
|
354
|
+
]) {
|
|
355
|
+
styles[model] = { get() {
|
|
356
|
+
const { level } = this;
|
|
357
|
+
return function(...arguments_) {
|
|
358
|
+
const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansiStyles.color.close, this[STYLER]);
|
|
359
|
+
return createBuilder(this, styler, this[IS_EMPTY]);
|
|
360
|
+
};
|
|
361
|
+
} };
|
|
362
|
+
const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
|
|
363
|
+
styles[bgModel] = { get() {
|
|
364
|
+
const { level } = this;
|
|
365
|
+
return function(...arguments_) {
|
|
366
|
+
const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansiStyles.bgColor.close, this[STYLER]);
|
|
367
|
+
return createBuilder(this, styler, this[IS_EMPTY]);
|
|
368
|
+
};
|
|
369
|
+
} };
|
|
370
|
+
}
|
|
371
|
+
const proto = Object.defineProperties(() => {}, {
|
|
372
|
+
...styles,
|
|
373
|
+
level: {
|
|
374
|
+
enumerable: true,
|
|
375
|
+
get() {
|
|
376
|
+
return this[GENERATOR].level;
|
|
377
|
+
},
|
|
378
|
+
set(level) {
|
|
379
|
+
this[GENERATOR].level = level;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
});
|
|
383
|
+
const createStyler = (open, close, parent) => {
|
|
384
|
+
let openAll;
|
|
385
|
+
let closeAll;
|
|
386
|
+
if (parent === void 0) {
|
|
387
|
+
openAll = open;
|
|
388
|
+
closeAll = close;
|
|
389
|
+
} else {
|
|
390
|
+
openAll = parent.openAll + open;
|
|
391
|
+
closeAll = close + parent.closeAll;
|
|
392
|
+
}
|
|
393
|
+
return {
|
|
394
|
+
open,
|
|
395
|
+
close,
|
|
396
|
+
openAll,
|
|
397
|
+
closeAll,
|
|
398
|
+
parent
|
|
399
|
+
};
|
|
400
|
+
};
|
|
401
|
+
const createBuilder = (self, _styler, _isEmpty) => {
|
|
402
|
+
const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
|
|
403
|
+
Object.setPrototypeOf(builder, proto);
|
|
404
|
+
builder[GENERATOR] = self;
|
|
405
|
+
builder[STYLER] = _styler;
|
|
406
|
+
builder[IS_EMPTY] = _isEmpty;
|
|
407
|
+
return builder;
|
|
408
|
+
};
|
|
409
|
+
const applyStyle = (self, string) => {
|
|
410
|
+
if (self.level <= 0 || !string) return self[IS_EMPTY] ? "" : string;
|
|
411
|
+
let styler = self[STYLER];
|
|
412
|
+
if (styler === void 0) return string;
|
|
413
|
+
const { openAll, closeAll } = styler;
|
|
414
|
+
if (string.includes("\x1B")) while (styler !== void 0) {
|
|
415
|
+
string = stringReplaceAll(string, styler.close, styler.open);
|
|
416
|
+
styler = styler.parent;
|
|
417
|
+
}
|
|
418
|
+
const lfIndex = string.indexOf("\n");
|
|
419
|
+
if (lfIndex !== -1) string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
|
420
|
+
return openAll + string + closeAll;
|
|
421
|
+
};
|
|
422
|
+
Object.defineProperties(createChalk.prototype, styles);
|
|
423
|
+
const chalk = createChalk();
|
|
424
|
+
createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
425
|
+
//#endregion
|
|
426
|
+
//#region ../../node_modules/.pnpm/glob@13.0.6/node_modules/glob/dist/esm/index.min.js
|
|
427
|
+
function Ht(n) {
|
|
428
|
+
return isNaN(n) ? n.charCodeAt(0) : parseInt(n, 10);
|
|
429
|
+
}
|
|
430
|
+
function ps(n) {
|
|
431
|
+
return n.replace(as, fe).replace(ls, ue).replace(cs, qt).replace(fs$1, de).replace(us, pe);
|
|
432
|
+
}
|
|
433
|
+
function ms(n) {
|
|
434
|
+
return n.replace(is, "\\").replace(rs, "{").replace(ns, "}").replace(os$1, ",").replace(hs, ".");
|
|
435
|
+
}
|
|
436
|
+
function me(n) {
|
|
437
|
+
if (!n) return [""];
|
|
438
|
+
let t = [], e = Gt("{", "}", n);
|
|
439
|
+
if (!e) return n.split(",");
|
|
440
|
+
let { pre: s, body: i, post: r } = e, o = s.split(",");
|
|
441
|
+
o[o.length - 1] += "{" + i + "}";
|
|
442
|
+
let h = me(r);
|
|
443
|
+
return r.length && (o[o.length - 1] += h.shift(), o.push.apply(o, h)), t.push.apply(t, o), t;
|
|
444
|
+
}
|
|
445
|
+
function ge(n, t = {}) {
|
|
446
|
+
if (!n) return [];
|
|
447
|
+
let { max: e = ds } = t;
|
|
448
|
+
return n.slice(0, 2) === "{}" && (n = "\\{\\}" + n.slice(2)), ht(ps(n), e, !0).map(ms);
|
|
449
|
+
}
|
|
450
|
+
function gs(n) {
|
|
451
|
+
return "{" + n + "}";
|
|
452
|
+
}
|
|
453
|
+
function ws(n) {
|
|
454
|
+
return /^-?0\d/.test(n);
|
|
455
|
+
}
|
|
456
|
+
function ys(n, t) {
|
|
457
|
+
return n <= t;
|
|
458
|
+
}
|
|
459
|
+
function bs(n, t) {
|
|
460
|
+
return n >= t;
|
|
461
|
+
}
|
|
462
|
+
function ht(n, t, e) {
|
|
463
|
+
let s = [], i = Gt("{", "}", n);
|
|
464
|
+
if (!i) return [n];
|
|
465
|
+
let r = i.pre, o = i.post.length ? ht(i.post, t, !1) : [""];
|
|
466
|
+
if (/\$$/.test(i.pre)) for (let h = 0; h < o.length && h < t; h++) {
|
|
467
|
+
let a = r + "{" + i.body + "}" + o[h];
|
|
468
|
+
s.push(a);
|
|
469
|
+
}
|
|
470
|
+
else {
|
|
471
|
+
let h = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body), a = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body), l = h || a, u = i.body.indexOf(",") >= 0;
|
|
472
|
+
if (!l && !u) return i.post.match(/,(?!,).*\}/) ? (n = i.pre + "{" + i.body + qt + i.post, ht(n, t, !0)) : [n];
|
|
473
|
+
let c;
|
|
474
|
+
if (l) c = i.body.split(/\.\./);
|
|
475
|
+
else if (c = me(i.body), c.length === 1 && c[0] !== void 0 && (c = ht(c[0], t, !1).map(gs), c.length === 1)) return o.map((f) => i.pre + c[0] + f);
|
|
476
|
+
let d;
|
|
477
|
+
if (l && c[0] !== void 0 && c[1] !== void 0) {
|
|
478
|
+
let f = Ht(c[0]), m = Ht(c[1]), p = Math.max(c[0].length, c[1].length), w = c.length === 3 && c[2] !== void 0 ? Math.abs(Ht(c[2])) : 1, g = ys;
|
|
479
|
+
m < f && (w *= -1, g = bs);
|
|
480
|
+
let E = c.some(ws);
|
|
481
|
+
d = [];
|
|
482
|
+
for (let y = f; g(y, m); y += w) {
|
|
483
|
+
let b;
|
|
484
|
+
if (a) b = String.fromCharCode(y), b === "\\" && (b = "");
|
|
485
|
+
else if (b = String(y), E) {
|
|
486
|
+
let z = p - b.length;
|
|
487
|
+
if (z > 0) {
|
|
488
|
+
let $ = new Array(z + 1).join("0");
|
|
489
|
+
y < 0 ? b = "-" + $ + b.slice(1) : b = $ + b;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
d.push(b);
|
|
493
|
+
}
|
|
494
|
+
} else {
|
|
495
|
+
d = [];
|
|
496
|
+
for (let f = 0; f < c.length; f++) d.push.apply(d, ht(c[f], t, !1));
|
|
497
|
+
}
|
|
498
|
+
for (let f = 0; f < d.length; f++) for (let m = 0; m < o.length && s.length < t; m++) {
|
|
499
|
+
let p = r + d[f] + o[m];
|
|
500
|
+
(!e || l || p) && s.push(p);
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
return s;
|
|
504
|
+
}
|
|
505
|
+
function Bt(n, t = {}) {
|
|
506
|
+
return new I(n, t).streamSync();
|
|
507
|
+
}
|
|
508
|
+
function Qe(n, t = {}) {
|
|
509
|
+
return new I(n, t).stream();
|
|
510
|
+
}
|
|
511
|
+
function ts(n, t = {}) {
|
|
512
|
+
return new I(n, t).walkSync();
|
|
513
|
+
}
|
|
514
|
+
async function Je(n, t = {}) {
|
|
515
|
+
return new I(n, t).walk();
|
|
516
|
+
}
|
|
517
|
+
function Ut(n, t = {}) {
|
|
518
|
+
return new I(n, t).iterateSync();
|
|
519
|
+
}
|
|
520
|
+
function es(n, t = {}) {
|
|
521
|
+
return new I(n, t).iterate();
|
|
522
|
+
}
|
|
523
|
+
var Gt, ce, ss, fe, ue, qt, de, pe, is, rs, ns, os$1, hs, as, ls, cs, fs$1, us, ds, at, Ss, lt, Es, we, ye, W, xs, be, vs, Ct, Cs, Ts, As, ks, Kt, Se, Ee, Q, tt, O, Rs, Os, Fs, Ds, Ms, Ns, _s, Ls, Ws, Ps, js, Is, zs, Bs, Us, $s, Gs, Hs, Ce, Te, Ae, xe, A, Vs, Ys, Xs, Js, N, Zs, ke, Qs, ti, ve, ei, D, si, Oe, Vt, Fe, At, Re, ii, q, De, Tt, ri, ft, Ne, oi, hi, ai, G, H, K, kt, ut, Rt, _e, Ot, Le, P, et, v, dt, st, C, F, T, Yt, Ft, k, x, Xt, Jt, We, Zt, B, Qt, Dt, pt, Y, M, mt, li, ci, fi, ui, Mt, te, di, pi, V, wt, Ue, $e, Ri, Oi, L, Ge, He, U, qe, Ke, X, Ve, _, gt, se, je, yt, j, Nt, Lt, Ie, Fi, ie, ze, bt, Be, _t, Wt, ne, Ye, R, Pt, jt, It, it, rt, St, Xe, Di, Mi, Ni, nt, _i, ot, oe, he, ae, Et, Li, zt, xt, vt, Pi, I, le, ji, Ii, zi, Bi, Ui, Ze;
|
|
524
|
+
//#endregion
|
|
525
|
+
//#region src/lib/deleteGlob.ts
|
|
526
|
+
__esmMin((() => {
|
|
527
|
+
Gt = (n, t, e) => {
|
|
528
|
+
let s = n instanceof RegExp ? ce(n, e) : n, i = t instanceof RegExp ? ce(t, e) : t, r = s !== null && i != null && ss(s, i, e);
|
|
529
|
+
return r && {
|
|
530
|
+
start: r[0],
|
|
531
|
+
end: r[1],
|
|
532
|
+
pre: e.slice(0, r[0]),
|
|
533
|
+
body: e.slice(r[0] + s.length, r[1]),
|
|
534
|
+
post: e.slice(r[1] + i.length)
|
|
535
|
+
};
|
|
536
|
+
}, ce = (n, t) => {
|
|
537
|
+
let e = t.match(n);
|
|
538
|
+
return e ? e[0] : null;
|
|
539
|
+
}, ss = (n, t, e) => {
|
|
540
|
+
let s, i, r, o, h, a = e.indexOf(n), l = e.indexOf(t, a + 1), u = a;
|
|
541
|
+
if (a >= 0 && l > 0) {
|
|
542
|
+
if (n === t) return [a, l];
|
|
543
|
+
for (s = [], r = e.length; u >= 0 && !h;) {
|
|
544
|
+
if (u === a) s.push(u), a = e.indexOf(n, u + 1);
|
|
545
|
+
else if (s.length === 1) {
|
|
546
|
+
let c = s.pop();
|
|
547
|
+
c !== void 0 && (h = [c, l]);
|
|
548
|
+
} else i = s.pop(), i !== void 0 && i < r && (r = i, o = l), l = e.indexOf(t, u + 1);
|
|
549
|
+
u = a < l && a >= 0 ? a : l;
|
|
550
|
+
}
|
|
551
|
+
s.length && o !== void 0 && (h = [r, o]);
|
|
552
|
+
}
|
|
553
|
+
return h;
|
|
554
|
+
};
|
|
555
|
+
fe = "\0SLASH" + Math.random() + "\0", ue = "\0OPEN" + Math.random() + "\0", qt = "\0CLOSE" + Math.random() + "\0", de = "\0COMMA" + Math.random() + "\0", pe = "\0PERIOD" + Math.random() + "\0", is = new RegExp(fe, "g"), rs = new RegExp(ue, "g"), ns = new RegExp(qt, "g"), os$1 = new RegExp(de, "g"), hs = new RegExp(pe, "g"), as = /\\\\/g, ls = /\\{/g, cs = /\\}/g, fs$1 = /\\,/g, us = /\\./g, ds = 1e5;
|
|
556
|
+
at = (n) => {
|
|
557
|
+
if (typeof n != "string") throw new TypeError("invalid pattern");
|
|
558
|
+
if (n.length > 65536) throw new TypeError("pattern is too long");
|
|
559
|
+
};
|
|
560
|
+
Ss = {
|
|
561
|
+
"[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", !0],
|
|
562
|
+
"[:alpha:]": ["\\p{L}\\p{Nl}", !0],
|
|
563
|
+
"[:ascii:]": ["\\x00-\\x7f", !1],
|
|
564
|
+
"[:blank:]": ["\\p{Zs}\\t", !0],
|
|
565
|
+
"[:cntrl:]": ["\\p{Cc}", !0],
|
|
566
|
+
"[:digit:]": ["\\p{Nd}", !0],
|
|
567
|
+
"[:graph:]": [
|
|
568
|
+
"\\p{Z}\\p{C}",
|
|
569
|
+
!0,
|
|
570
|
+
!0
|
|
571
|
+
],
|
|
572
|
+
"[:lower:]": ["\\p{Ll}", !0],
|
|
573
|
+
"[:print:]": ["\\p{C}", !0],
|
|
574
|
+
"[:punct:]": ["\\p{P}", !0],
|
|
575
|
+
"[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f", !0],
|
|
576
|
+
"[:upper:]": ["\\p{Lu}", !0],
|
|
577
|
+
"[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}", !0],
|
|
578
|
+
"[:xdigit:]": ["A-Fa-f0-9", !1]
|
|
579
|
+
}, lt = (n) => n.replace(/[[\]\\-]/g, "\\$&"), Es = (n) => n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), we = (n) => n.join(""), ye = (n, t) => {
|
|
580
|
+
let e = t;
|
|
581
|
+
if (n.charAt(e) !== "[") throw new Error("not in a brace expression");
|
|
582
|
+
let s = [], i = [], r = e + 1, o = !1, h = !1, a = !1, l = !1, u = e, c = "";
|
|
583
|
+
t: for (; r < n.length;) {
|
|
584
|
+
let p = n.charAt(r);
|
|
585
|
+
if ((p === "!" || p === "^") && r === e + 1) {
|
|
586
|
+
l = !0, r++;
|
|
587
|
+
continue;
|
|
588
|
+
}
|
|
589
|
+
if (p === "]" && o && !a) {
|
|
590
|
+
u = r + 1;
|
|
591
|
+
break;
|
|
592
|
+
}
|
|
593
|
+
if (o = !0, p === "\\" && !a) {
|
|
594
|
+
a = !0, r++;
|
|
595
|
+
continue;
|
|
596
|
+
}
|
|
597
|
+
if (p === "[" && !a) {
|
|
598
|
+
for (let [w, [g, S, E]] of Object.entries(Ss)) if (n.startsWith(w, r)) {
|
|
599
|
+
if (c) return [
|
|
600
|
+
"$.",
|
|
601
|
+
!1,
|
|
602
|
+
n.length - e,
|
|
603
|
+
!0
|
|
604
|
+
];
|
|
605
|
+
r += w.length, E ? i.push(g) : s.push(g), h = h || S;
|
|
606
|
+
continue t;
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
if (a = !1, c) {
|
|
610
|
+
p > c ? s.push(lt(c) + "-" + lt(p)) : p === c && s.push(lt(p)), c = "", r++;
|
|
611
|
+
continue;
|
|
612
|
+
}
|
|
613
|
+
if (n.startsWith("-]", r + 1)) {
|
|
614
|
+
s.push(lt(p + "-")), r += 2;
|
|
615
|
+
continue;
|
|
616
|
+
}
|
|
617
|
+
if (n.startsWith("-", r + 1)) {
|
|
618
|
+
c = p, r += 2;
|
|
619
|
+
continue;
|
|
620
|
+
}
|
|
621
|
+
s.push(lt(p)), r++;
|
|
622
|
+
}
|
|
623
|
+
if (u < r) return [
|
|
624
|
+
"",
|
|
625
|
+
!1,
|
|
626
|
+
0,
|
|
627
|
+
!1
|
|
628
|
+
];
|
|
629
|
+
if (!s.length && !i.length) return [
|
|
630
|
+
"$.",
|
|
631
|
+
!1,
|
|
632
|
+
n.length - e,
|
|
633
|
+
!0
|
|
634
|
+
];
|
|
635
|
+
if (i.length === 0 && s.length === 1 && /^\\?.$/.test(s[0]) && !l) return [
|
|
636
|
+
Es(s[0].length === 2 ? s[0].slice(-1) : s[0]),
|
|
637
|
+
!1,
|
|
638
|
+
u - e,
|
|
639
|
+
!1
|
|
640
|
+
];
|
|
641
|
+
let d = "[" + (l ? "^" : "") + we(s) + "]", f = "[" + (l ? "" : "^") + we(i) + "]";
|
|
642
|
+
return [
|
|
643
|
+
s.length && i.length ? "(" + d + "|" + f + ")" : s.length ? d : f,
|
|
644
|
+
h,
|
|
645
|
+
u - e,
|
|
646
|
+
!0
|
|
647
|
+
];
|
|
648
|
+
};
|
|
649
|
+
W = (n, { windowsPathsNoEscape: t = !1, magicalBraces: e = !0 } = {}) => e ? t ? n.replace(/\[([^\/\\])\]/g, "$1") : n.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1") : t ? n.replace(/\[([^\/\\{}])\]/g, "$1") : n.replace(/((?!\\).|^)\[([^\/\\{}])\]/g, "$1$2").replace(/\\([^\/{}])/g, "$1");
|
|
650
|
+
xs = /* @__PURE__ */ new Set([
|
|
651
|
+
"!",
|
|
652
|
+
"?",
|
|
653
|
+
"+",
|
|
654
|
+
"*",
|
|
655
|
+
"@"
|
|
656
|
+
]), be = (n) => xs.has(n), vs = "(?!(?:^|/)\\.\\.?(?:$|/))", Ct = "(?!\\.)", Cs = /* @__PURE__ */ new Set(["[", "."]), Ts = /* @__PURE__ */ new Set(["..", "."]), As = /* @__PURE__ */ new Set("().*{}+?[]^$\\!"), ks = (n) => n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), Kt = "[^/]", Se = Kt + "*?", Ee = Kt + "+?", Q = class n {
|
|
657
|
+
type;
|
|
658
|
+
#t;
|
|
659
|
+
#s;
|
|
660
|
+
#n = !1;
|
|
661
|
+
#r = [];
|
|
662
|
+
#o;
|
|
663
|
+
#S;
|
|
664
|
+
#w;
|
|
665
|
+
#c = !1;
|
|
666
|
+
#h;
|
|
667
|
+
#u;
|
|
668
|
+
#f = !1;
|
|
669
|
+
constructor(t, e, s = {}) {
|
|
670
|
+
this.type = t, t && (this.#s = !0), this.#o = e, this.#t = this.#o ? this.#o.#t : this, this.#h = this.#t === this ? s : this.#t.#h, this.#w = this.#t === this ? [] : this.#t.#w, t === "!" && !this.#t.#c && this.#w.push(this), this.#S = this.#o ? this.#o.#r.length : 0;
|
|
671
|
+
}
|
|
672
|
+
get hasMagic() {
|
|
673
|
+
if (this.#s !== void 0) return this.#s;
|
|
674
|
+
for (let t of this.#r) if (typeof t != "string" && (t.type || t.hasMagic)) return this.#s = !0;
|
|
675
|
+
return this.#s;
|
|
676
|
+
}
|
|
677
|
+
toString() {
|
|
678
|
+
return this.#u !== void 0 ? this.#u : this.type ? this.#u = this.type + "(" + this.#r.map((t) => String(t)).join("|") + ")" : this.#u = this.#r.map((t) => String(t)).join("");
|
|
679
|
+
}
|
|
680
|
+
#a() {
|
|
681
|
+
if (this !== this.#t) throw new Error("should only call on root");
|
|
682
|
+
if (this.#c) return this;
|
|
683
|
+
this.toString(), this.#c = !0;
|
|
684
|
+
let t;
|
|
685
|
+
for (; t = this.#w.pop();) {
|
|
686
|
+
if (t.type !== "!") continue;
|
|
687
|
+
let e = t, s = e.#o;
|
|
688
|
+
for (; s;) {
|
|
689
|
+
for (let i = e.#S + 1; !s.type && i < s.#r.length; i++) for (let r of t.#r) {
|
|
690
|
+
if (typeof r == "string") throw new Error("string part in extglob AST??");
|
|
691
|
+
r.copyIn(s.#r[i]);
|
|
692
|
+
}
|
|
693
|
+
e = s, s = e.#o;
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
return this;
|
|
697
|
+
}
|
|
698
|
+
push(...t) {
|
|
699
|
+
for (let e of t) if (e !== "") {
|
|
700
|
+
if (typeof e != "string" && !(e instanceof n && e.#o === this)) throw new Error("invalid part: " + e);
|
|
701
|
+
this.#r.push(e);
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
toJSON() {
|
|
705
|
+
let t = this.type === null ? this.#r.slice().map((e) => typeof e == "string" ? e : e.toJSON()) : [this.type, ...this.#r.map((e) => e.toJSON())];
|
|
706
|
+
return this.isStart() && !this.type && t.unshift([]), this.isEnd() && (this === this.#t || this.#t.#c && this.#o?.type === "!") && t.push({}), t;
|
|
707
|
+
}
|
|
708
|
+
isStart() {
|
|
709
|
+
if (this.#t === this) return !0;
|
|
710
|
+
if (!this.#o?.isStart()) return !1;
|
|
711
|
+
if (this.#S === 0) return !0;
|
|
712
|
+
let t = this.#o;
|
|
713
|
+
for (let e = 0; e < this.#S; e++) {
|
|
714
|
+
let s = t.#r[e];
|
|
715
|
+
if (!(s instanceof n && s.type === "!")) return !1;
|
|
716
|
+
}
|
|
717
|
+
return !0;
|
|
718
|
+
}
|
|
719
|
+
isEnd() {
|
|
720
|
+
if (this.#t === this || this.#o?.type === "!") return !0;
|
|
721
|
+
if (!this.#o?.isEnd()) return !1;
|
|
722
|
+
if (!this.type) return this.#o?.isEnd();
|
|
723
|
+
let t = this.#o ? this.#o.#r.length : 0;
|
|
724
|
+
return this.#S === t - 1;
|
|
725
|
+
}
|
|
726
|
+
copyIn(t) {
|
|
727
|
+
typeof t == "string" ? this.push(t) : this.push(t.clone(this));
|
|
728
|
+
}
|
|
729
|
+
clone(t) {
|
|
730
|
+
let e = new n(this.type, t);
|
|
731
|
+
for (let s of this.#r) e.copyIn(s);
|
|
732
|
+
return e;
|
|
733
|
+
}
|
|
734
|
+
static #i(t, e, s, i) {
|
|
735
|
+
let r = !1, o = !1, h = -1, a = !1;
|
|
736
|
+
if (e.type === null) {
|
|
737
|
+
let f = s, m = "";
|
|
738
|
+
for (; f < t.length;) {
|
|
739
|
+
let p = t.charAt(f++);
|
|
740
|
+
if (r || p === "\\") {
|
|
741
|
+
r = !r, m += p;
|
|
742
|
+
continue;
|
|
743
|
+
}
|
|
744
|
+
if (o) {
|
|
745
|
+
f === h + 1 ? (p === "^" || p === "!") && (a = !0) : p === "]" && !(f === h + 2 && a) && (o = !1), m += p;
|
|
746
|
+
continue;
|
|
747
|
+
} else if (p === "[") {
|
|
748
|
+
o = !0, h = f, a = !1, m += p;
|
|
749
|
+
continue;
|
|
750
|
+
}
|
|
751
|
+
if (!i.noext && be(p) && t.charAt(f) === "(") {
|
|
752
|
+
e.push(m), m = "";
|
|
753
|
+
let w = new n(p, e);
|
|
754
|
+
f = n.#i(t, w, f, i), e.push(w);
|
|
755
|
+
continue;
|
|
756
|
+
}
|
|
757
|
+
m += p;
|
|
758
|
+
}
|
|
759
|
+
return e.push(m), f;
|
|
760
|
+
}
|
|
761
|
+
let l = s + 1, u = new n(null, e), c = [], d = "";
|
|
762
|
+
for (; l < t.length;) {
|
|
763
|
+
let f = t.charAt(l++);
|
|
764
|
+
if (r || f === "\\") {
|
|
765
|
+
r = !r, d += f;
|
|
766
|
+
continue;
|
|
767
|
+
}
|
|
768
|
+
if (o) {
|
|
769
|
+
l === h + 1 ? (f === "^" || f === "!") && (a = !0) : f === "]" && !(l === h + 2 && a) && (o = !1), d += f;
|
|
770
|
+
continue;
|
|
771
|
+
} else if (f === "[") {
|
|
772
|
+
o = !0, h = l, a = !1, d += f;
|
|
773
|
+
continue;
|
|
774
|
+
}
|
|
775
|
+
if (be(f) && t.charAt(l) === "(") {
|
|
776
|
+
u.push(d), d = "";
|
|
777
|
+
let m = new n(f, u);
|
|
778
|
+
u.push(m), l = n.#i(t, m, l, i);
|
|
779
|
+
continue;
|
|
780
|
+
}
|
|
781
|
+
if (f === "|") {
|
|
782
|
+
u.push(d), d = "", c.push(u), u = new n(null, e);
|
|
783
|
+
continue;
|
|
784
|
+
}
|
|
785
|
+
if (f === ")") return d === "" && e.#r.length === 0 && (e.#f = !0), u.push(d), d = "", e.push(...c, u), l;
|
|
786
|
+
d += f;
|
|
787
|
+
}
|
|
788
|
+
return e.type = null, e.#s = void 0, e.#r = [t.substring(s - 1)], l;
|
|
789
|
+
}
|
|
790
|
+
static fromGlob(t, e = {}) {
|
|
791
|
+
let s = new n(null, void 0, e);
|
|
792
|
+
return n.#i(t, s, 0, e), s;
|
|
793
|
+
}
|
|
794
|
+
toMMPattern() {
|
|
795
|
+
if (this !== this.#t) return this.#t.toMMPattern();
|
|
796
|
+
let t = this.toString(), [e, s, i, r] = this.toRegExpSource();
|
|
797
|
+
if (!(i || this.#s || this.#h.nocase && !this.#h.nocaseMagicOnly && t.toUpperCase() !== t.toLowerCase())) return s;
|
|
798
|
+
let h = (this.#h.nocase ? "i" : "") + (r ? "u" : "");
|
|
799
|
+
return Object.assign(new RegExp(`^${e}$`, h), {
|
|
800
|
+
_src: e,
|
|
801
|
+
_glob: t
|
|
802
|
+
});
|
|
803
|
+
}
|
|
804
|
+
get options() {
|
|
805
|
+
return this.#h;
|
|
806
|
+
}
|
|
807
|
+
toRegExpSource(t) {
|
|
808
|
+
let e = t ?? !!this.#h.dot;
|
|
809
|
+
if (this.#t === this && this.#a(), !this.type) {
|
|
810
|
+
let a = this.isStart() && this.isEnd() && !this.#r.some((f) => typeof f != "string"), l = this.#r.map((f) => {
|
|
811
|
+
let [m, p, w, g] = typeof f == "string" ? n.#E(f, this.#s, a) : f.toRegExpSource(t);
|
|
812
|
+
return this.#s = this.#s || w, this.#n = this.#n || g, m;
|
|
813
|
+
}).join(""), u = "";
|
|
814
|
+
if (this.isStart() && typeof this.#r[0] == "string" && !(this.#r.length === 1 && Ts.has(this.#r[0]))) {
|
|
815
|
+
let m = Cs, p = e && m.has(l.charAt(0)) || l.startsWith("\\.") && m.has(l.charAt(2)) || l.startsWith("\\.\\.") && m.has(l.charAt(4)), w = !e && !t && m.has(l.charAt(0));
|
|
816
|
+
u = p ? vs : w ? Ct : "";
|
|
817
|
+
}
|
|
818
|
+
let c = "";
|
|
819
|
+
return this.isEnd() && this.#t.#c && this.#o?.type === "!" && (c = "(?:$|\\/)"), [
|
|
820
|
+
u + l + c,
|
|
821
|
+
W(l),
|
|
822
|
+
this.#s = !!this.#s,
|
|
823
|
+
this.#n
|
|
824
|
+
];
|
|
825
|
+
}
|
|
826
|
+
let s = this.type === "*" || this.type === "+", i = this.type === "!" ? "(?:(?!(?:" : "(?:", r = this.#d(e);
|
|
827
|
+
if (this.isStart() && this.isEnd() && !r && this.type !== "!") {
|
|
828
|
+
let a = this.toString();
|
|
829
|
+
return this.#r = [a], this.type = null, this.#s = void 0, [
|
|
830
|
+
a,
|
|
831
|
+
W(this.toString()),
|
|
832
|
+
!1,
|
|
833
|
+
!1
|
|
834
|
+
];
|
|
835
|
+
}
|
|
836
|
+
let o = !s || t || e || !Ct ? "" : this.#d(!0);
|
|
837
|
+
o === r && (o = ""), o && (r = `(?:${r})(?:${o})*?`);
|
|
838
|
+
let h = "";
|
|
839
|
+
if (this.type === "!" && this.#f) h = (this.isStart() && !e ? Ct : "") + Ee;
|
|
840
|
+
else {
|
|
841
|
+
let a = this.type === "!" ? "))" + (this.isStart() && !e && !t ? Ct : "") + Se + ")" : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && o ? ")" : this.type === "*" && o ? ")?" : `)${this.type}`;
|
|
842
|
+
h = i + r + a;
|
|
843
|
+
}
|
|
844
|
+
return [
|
|
845
|
+
h,
|
|
846
|
+
W(r),
|
|
847
|
+
this.#s = !!this.#s,
|
|
848
|
+
this.#n
|
|
849
|
+
];
|
|
850
|
+
}
|
|
851
|
+
#d(t) {
|
|
852
|
+
return this.#r.map((e) => {
|
|
853
|
+
if (typeof e == "string") throw new Error("string type in extglob ast??");
|
|
854
|
+
let [s, i, r, o] = e.toRegExpSource(t);
|
|
855
|
+
return this.#n = this.#n || o, s;
|
|
856
|
+
}).filter((e) => !(this.isStart() && this.isEnd()) || !!e).join("|");
|
|
857
|
+
}
|
|
858
|
+
static #E(t, e, s = !1) {
|
|
859
|
+
let i = !1, r = "", o = !1, h = !1;
|
|
860
|
+
for (let a = 0; a < t.length; a++) {
|
|
861
|
+
let l = t.charAt(a);
|
|
862
|
+
if (i) {
|
|
863
|
+
i = !1, r += (As.has(l) ? "\\" : "") + l;
|
|
864
|
+
continue;
|
|
865
|
+
}
|
|
866
|
+
if (l === "*") {
|
|
867
|
+
if (h) continue;
|
|
868
|
+
h = !0, r += s && /^[*]+$/.test(t) ? Ee : Se, e = !0;
|
|
869
|
+
continue;
|
|
870
|
+
} else h = !1;
|
|
871
|
+
if (l === "\\") {
|
|
872
|
+
a === t.length - 1 ? r += "\\\\" : i = !0;
|
|
873
|
+
continue;
|
|
874
|
+
}
|
|
875
|
+
if (l === "[") {
|
|
876
|
+
let [u, c, d, f] = ye(t, a);
|
|
877
|
+
if (d) {
|
|
878
|
+
r += u, o = o || c, a += d - 1, e = e || f;
|
|
879
|
+
continue;
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
if (l === "?") {
|
|
883
|
+
r += Kt, e = !0;
|
|
884
|
+
continue;
|
|
885
|
+
}
|
|
886
|
+
r += ks(l);
|
|
887
|
+
}
|
|
888
|
+
return [
|
|
889
|
+
r,
|
|
890
|
+
W(t),
|
|
891
|
+
!!e,
|
|
892
|
+
o
|
|
893
|
+
];
|
|
894
|
+
}
|
|
895
|
+
};
|
|
896
|
+
tt = (n, { windowsPathsNoEscape: t = !1, magicalBraces: e = !1 } = {}) => e ? t ? n.replace(/[?*()[\]{}]/g, "[$&]") : n.replace(/[?*()[\]\\{}]/g, "\\$&") : t ? n.replace(/[?*()[\]]/g, "[$&]") : n.replace(/[?*()[\]\\]/g, "\\$&");
|
|
897
|
+
O = (n, t, e = {}) => (at(t), !e.nocomment && t.charAt(0) === "#" ? !1 : new D(t, e).match(n)), Rs = /^\*+([^+@!?\*\[\(]*)$/, Os = (n) => (t) => !t.startsWith(".") && t.endsWith(n), Fs = (n) => (t) => t.endsWith(n), Ds = (n) => (n = n.toLowerCase(), (t) => !t.startsWith(".") && t.toLowerCase().endsWith(n)), Ms = (n) => (n = n.toLowerCase(), (t) => t.toLowerCase().endsWith(n)), Ns = /^\*+\.\*+$/, _s = (n) => !n.startsWith(".") && n.includes("."), Ls = (n) => n !== "." && n !== ".." && n.includes("."), Ws = /^\.\*+$/, Ps = (n) => n !== "." && n !== ".." && n.startsWith("."), js = /^\*+$/, Is = (n) => n.length !== 0 && !n.startsWith("."), zs = (n) => n.length !== 0 && n !== "." && n !== "..", Bs = /^\?+([^+@!?\*\[\(]*)?$/, Us = ([n, t = ""]) => {
|
|
898
|
+
let e = Ce([n]);
|
|
899
|
+
return t ? (t = t.toLowerCase(), (s) => e(s) && s.toLowerCase().endsWith(t)) : e;
|
|
900
|
+
}, $s = ([n, t = ""]) => {
|
|
901
|
+
let e = Te([n]);
|
|
902
|
+
return t ? (t = t.toLowerCase(), (s) => e(s) && s.toLowerCase().endsWith(t)) : e;
|
|
903
|
+
}, Gs = ([n, t = ""]) => {
|
|
904
|
+
let e = Te([n]);
|
|
905
|
+
return t ? (s) => e(s) && s.endsWith(t) : e;
|
|
906
|
+
}, Hs = ([n, t = ""]) => {
|
|
907
|
+
let e = Ce([n]);
|
|
908
|
+
return t ? (s) => e(s) && s.endsWith(t) : e;
|
|
909
|
+
}, Ce = ([n]) => {
|
|
910
|
+
let t = n.length;
|
|
911
|
+
return (e) => e.length === t && !e.startsWith(".");
|
|
912
|
+
}, Te = ([n]) => {
|
|
913
|
+
let t = n.length;
|
|
914
|
+
return (e) => e.length === t && e !== "." && e !== "..";
|
|
915
|
+
}, Ae = typeof process == "object" && process ? typeof process.env == "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix", xe = {
|
|
916
|
+
win32: { sep: "\\" },
|
|
917
|
+
posix: { sep: "/" }
|
|
918
|
+
};
|
|
919
|
+
O.sep = Ae === "win32" ? xe.win32.sep : xe.posix.sep;
|
|
920
|
+
A = Symbol("globstar **");
|
|
921
|
+
O.GLOBSTAR = A;
|
|
922
|
+
Vs = "[^/]*?", Ys = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?", Xs = "(?:(?!(?:\\/|^)\\.).)*?", Js = (n, t = {}) => (e) => O(e, n, t);
|
|
923
|
+
O.filter = Js;
|
|
924
|
+
N = (n, t = {}) => Object.assign({}, n, t), Zs = (n) => {
|
|
925
|
+
if (!n || typeof n != "object" || !Object.keys(n).length) return O;
|
|
926
|
+
let t = O;
|
|
927
|
+
return Object.assign((s, i, r = {}) => t(s, i, N(n, r)), {
|
|
928
|
+
Minimatch: class extends t.Minimatch {
|
|
929
|
+
constructor(i, r = {}) {
|
|
930
|
+
super(i, N(n, r));
|
|
931
|
+
}
|
|
932
|
+
static defaults(i) {
|
|
933
|
+
return t.defaults(N(n, i)).Minimatch;
|
|
934
|
+
}
|
|
935
|
+
},
|
|
936
|
+
AST: class extends t.AST {
|
|
937
|
+
constructor(i, r, o = {}) {
|
|
938
|
+
super(i, r, N(n, o));
|
|
939
|
+
}
|
|
940
|
+
static fromGlob(i, r = {}) {
|
|
941
|
+
return t.AST.fromGlob(i, N(n, r));
|
|
942
|
+
}
|
|
943
|
+
},
|
|
944
|
+
unescape: (s, i = {}) => t.unescape(s, N(n, i)),
|
|
945
|
+
escape: (s, i = {}) => t.escape(s, N(n, i)),
|
|
946
|
+
filter: (s, i = {}) => t.filter(s, N(n, i)),
|
|
947
|
+
defaults: (s) => t.defaults(N(n, s)),
|
|
948
|
+
makeRe: (s, i = {}) => t.makeRe(s, N(n, i)),
|
|
949
|
+
braceExpand: (s, i = {}) => t.braceExpand(s, N(n, i)),
|
|
950
|
+
match: (s, i, r = {}) => t.match(s, i, N(n, r)),
|
|
951
|
+
sep: t.sep,
|
|
952
|
+
GLOBSTAR: A
|
|
953
|
+
});
|
|
954
|
+
};
|
|
955
|
+
O.defaults = Zs;
|
|
956
|
+
ke = (n, t = {}) => (at(n), t.nobrace || !/\{(?:(?!\{).)*\}/.test(n) ? [n] : ge(n, { max: t.braceExpandMax }));
|
|
957
|
+
O.braceExpand = ke;
|
|
958
|
+
Qs = (n, t = {}) => new D(n, t).makeRe();
|
|
959
|
+
O.makeRe = Qs;
|
|
960
|
+
ti = (n, t, e = {}) => {
|
|
961
|
+
let s = new D(t, e);
|
|
962
|
+
return n = n.filter((i) => s.match(i)), s.options.nonull && !n.length && n.push(t), n;
|
|
963
|
+
};
|
|
964
|
+
O.match = ti;
|
|
965
|
+
ve = /[?*]|[+@!]\(.*?\)|\[|\]/, ei = (n) => n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), D = class {
|
|
966
|
+
options;
|
|
967
|
+
set;
|
|
968
|
+
pattern;
|
|
969
|
+
windowsPathsNoEscape;
|
|
970
|
+
nonegate;
|
|
971
|
+
negate;
|
|
972
|
+
comment;
|
|
973
|
+
empty;
|
|
974
|
+
preserveMultipleSlashes;
|
|
975
|
+
partial;
|
|
976
|
+
globSet;
|
|
977
|
+
globParts;
|
|
978
|
+
nocase;
|
|
979
|
+
isWindows;
|
|
980
|
+
platform;
|
|
981
|
+
windowsNoMagicRoot;
|
|
982
|
+
regexp;
|
|
983
|
+
constructor(t, e = {}) {
|
|
984
|
+
at(t), e = e || {}, this.options = e, this.pattern = t, this.platform = e.platform || Ae, this.isWindows = this.platform === "win32";
|
|
985
|
+
let s = "allowWindowsEscape";
|
|
986
|
+
this.windowsPathsNoEscape = !!e.windowsPathsNoEscape || e[s] === !1, this.windowsPathsNoEscape && (this.pattern = this.pattern.replace(/\\/g, "/")), this.preserveMultipleSlashes = !!e.preserveMultipleSlashes, this.regexp = null, this.negate = !1, this.nonegate = !!e.nonegate, this.comment = !1, this.empty = !1, this.partial = !!e.partial, this.nocase = !!this.options.nocase, this.windowsNoMagicRoot = e.windowsNoMagicRoot !== void 0 ? e.windowsNoMagicRoot : !!(this.isWindows && this.nocase), this.globSet = [], this.globParts = [], this.set = [], this.make();
|
|
987
|
+
}
|
|
988
|
+
hasMagic() {
|
|
989
|
+
if (this.options.magicalBraces && this.set.length > 1) return !0;
|
|
990
|
+
for (let t of this.set) for (let e of t) if (typeof e != "string") return !0;
|
|
991
|
+
return !1;
|
|
992
|
+
}
|
|
993
|
+
debug(...t) {}
|
|
994
|
+
make() {
|
|
995
|
+
let t = this.pattern, e = this.options;
|
|
996
|
+
if (!e.nocomment && t.charAt(0) === "#") {
|
|
997
|
+
this.comment = !0;
|
|
998
|
+
return;
|
|
999
|
+
}
|
|
1000
|
+
if (!t) {
|
|
1001
|
+
this.empty = !0;
|
|
1002
|
+
return;
|
|
1003
|
+
}
|
|
1004
|
+
this.parseNegate(), this.globSet = [...new Set(this.braceExpand())], e.debug && (this.debug = (...r) => console.error(...r)), this.debug(this.pattern, this.globSet);
|
|
1005
|
+
let s = this.globSet.map((r) => this.slashSplit(r));
|
|
1006
|
+
this.globParts = this.preprocess(s), this.debug(this.pattern, this.globParts);
|
|
1007
|
+
let i = this.globParts.map((r, o, h) => {
|
|
1008
|
+
if (this.isWindows && this.windowsNoMagicRoot) {
|
|
1009
|
+
let a = r[0] === "" && r[1] === "" && (r[2] === "?" || !ve.test(r[2])) && !ve.test(r[3]), l = /^[a-z]:/i.test(r[0]);
|
|
1010
|
+
if (a) return [...r.slice(0, 4), ...r.slice(4).map((u) => this.parse(u))];
|
|
1011
|
+
if (l) return [r[0], ...r.slice(1).map((u) => this.parse(u))];
|
|
1012
|
+
}
|
|
1013
|
+
return r.map((a) => this.parse(a));
|
|
1014
|
+
});
|
|
1015
|
+
if (this.debug(this.pattern, i), this.set = i.filter((r) => r.indexOf(!1) === -1), this.isWindows) for (let r = 0; r < this.set.length; r++) {
|
|
1016
|
+
let o = this.set[r];
|
|
1017
|
+
o[0] === "" && o[1] === "" && this.globParts[r][2] === "?" && typeof o[3] == "string" && /^[a-z]:$/i.test(o[3]) && (o[2] = "?");
|
|
1018
|
+
}
|
|
1019
|
+
this.debug(this.pattern, this.set);
|
|
1020
|
+
}
|
|
1021
|
+
preprocess(t) {
|
|
1022
|
+
if (this.options.noglobstar) for (let s = 0; s < t.length; s++) for (let i = 0; i < t[s].length; i++) t[s][i] === "**" && (t[s][i] = "*");
|
|
1023
|
+
let { optimizationLevel: e = 1 } = this.options;
|
|
1024
|
+
return e >= 2 ? (t = this.firstPhasePreProcess(t), t = this.secondPhasePreProcess(t)) : e >= 1 ? t = this.levelOneOptimize(t) : t = this.adjascentGlobstarOptimize(t), t;
|
|
1025
|
+
}
|
|
1026
|
+
adjascentGlobstarOptimize(t) {
|
|
1027
|
+
return t.map((e) => {
|
|
1028
|
+
let s = -1;
|
|
1029
|
+
for (; (s = e.indexOf("**", s + 1)) !== -1;) {
|
|
1030
|
+
let i = s;
|
|
1031
|
+
for (; e[i + 1] === "**";) i++;
|
|
1032
|
+
i !== s && e.splice(s, i - s);
|
|
1033
|
+
}
|
|
1034
|
+
return e;
|
|
1035
|
+
});
|
|
1036
|
+
}
|
|
1037
|
+
levelOneOptimize(t) {
|
|
1038
|
+
return t.map((e) => (e = e.reduce((s, i) => {
|
|
1039
|
+
let r = s[s.length - 1];
|
|
1040
|
+
return i === "**" && r === "**" ? s : i === ".." && r && r !== ".." && r !== "." && r !== "**" ? (s.pop(), s) : (s.push(i), s);
|
|
1041
|
+
}, []), e.length === 0 ? [""] : e));
|
|
1042
|
+
}
|
|
1043
|
+
levelTwoFileOptimize(t) {
|
|
1044
|
+
Array.isArray(t) || (t = this.slashSplit(t));
|
|
1045
|
+
let e = !1;
|
|
1046
|
+
do {
|
|
1047
|
+
if (e = !1, !this.preserveMultipleSlashes) {
|
|
1048
|
+
for (let i = 1; i < t.length - 1; i++) {
|
|
1049
|
+
let r = t[i];
|
|
1050
|
+
i === 1 && r === "" && t[0] === "" || (r === "." || r === "") && (e = !0, t.splice(i, 1), i--);
|
|
1051
|
+
}
|
|
1052
|
+
t[0] === "." && t.length === 2 && (t[1] === "." || t[1] === "") && (e = !0, t.pop());
|
|
1053
|
+
}
|
|
1054
|
+
let s = 0;
|
|
1055
|
+
for (; (s = t.indexOf("..", s + 1)) !== -1;) {
|
|
1056
|
+
let i = t[s - 1];
|
|
1057
|
+
i && i !== "." && i !== ".." && i !== "**" && (e = !0, t.splice(s - 1, 2), s -= 2);
|
|
1058
|
+
}
|
|
1059
|
+
} while (e);
|
|
1060
|
+
return t.length === 0 ? [""] : t;
|
|
1061
|
+
}
|
|
1062
|
+
firstPhasePreProcess(t) {
|
|
1063
|
+
let e = !1;
|
|
1064
|
+
do {
|
|
1065
|
+
e = !1;
|
|
1066
|
+
for (let s of t) {
|
|
1067
|
+
let i = -1;
|
|
1068
|
+
for (; (i = s.indexOf("**", i + 1)) !== -1;) {
|
|
1069
|
+
let o = i;
|
|
1070
|
+
for (; s[o + 1] === "**";) o++;
|
|
1071
|
+
o > i && s.splice(i + 1, o - i);
|
|
1072
|
+
let h = s[i + 1], a = s[i + 2], l = s[i + 3];
|
|
1073
|
+
if (h !== ".." || !a || a === "." || a === ".." || !l || l === "." || l === "..") continue;
|
|
1074
|
+
e = !0, s.splice(i, 1);
|
|
1075
|
+
let u = s.slice(0);
|
|
1076
|
+
u[i] = "**", t.push(u), i--;
|
|
1077
|
+
}
|
|
1078
|
+
if (!this.preserveMultipleSlashes) {
|
|
1079
|
+
for (let o = 1; o < s.length - 1; o++) {
|
|
1080
|
+
let h = s[o];
|
|
1081
|
+
o === 1 && h === "" && s[0] === "" || (h === "." || h === "") && (e = !0, s.splice(o, 1), o--);
|
|
1082
|
+
}
|
|
1083
|
+
s[0] === "." && s.length === 2 && (s[1] === "." || s[1] === "") && (e = !0, s.pop());
|
|
1084
|
+
}
|
|
1085
|
+
let r = 0;
|
|
1086
|
+
for (; (r = s.indexOf("..", r + 1)) !== -1;) {
|
|
1087
|
+
let o = s[r - 1];
|
|
1088
|
+
if (o && o !== "." && o !== ".." && o !== "**") {
|
|
1089
|
+
e = !0;
|
|
1090
|
+
let a = r === 1 && s[r + 1] === "**" ? ["."] : [];
|
|
1091
|
+
s.splice(r - 1, 2, ...a), s.length === 0 && s.push(""), r -= 2;
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
} while (e);
|
|
1096
|
+
return t;
|
|
1097
|
+
}
|
|
1098
|
+
secondPhasePreProcess(t) {
|
|
1099
|
+
for (let e = 0; e < t.length - 1; e++) for (let s = e + 1; s < t.length; s++) {
|
|
1100
|
+
let i = this.partsMatch(t[e], t[s], !this.preserveMultipleSlashes);
|
|
1101
|
+
if (i) {
|
|
1102
|
+
t[e] = [], t[s] = i;
|
|
1103
|
+
break;
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
return t.filter((e) => e.length);
|
|
1107
|
+
}
|
|
1108
|
+
partsMatch(t, e, s = !1) {
|
|
1109
|
+
let i = 0, r = 0, o = [], h = "";
|
|
1110
|
+
for (; i < t.length && r < e.length;) if (t[i] === e[r]) o.push(h === "b" ? e[r] : t[i]), i++, r++;
|
|
1111
|
+
else if (s && t[i] === "**" && e[r] === t[i + 1]) o.push(t[i]), i++;
|
|
1112
|
+
else if (s && e[r] === "**" && t[i] === e[r + 1]) o.push(e[r]), r++;
|
|
1113
|
+
else if (t[i] === "*" && e[r] && (this.options.dot || !e[r].startsWith(".")) && e[r] !== "**") {
|
|
1114
|
+
if (h === "b") return !1;
|
|
1115
|
+
h = "a", o.push(t[i]), i++, r++;
|
|
1116
|
+
} else if (e[r] === "*" && t[i] && (this.options.dot || !t[i].startsWith(".")) && t[i] !== "**") {
|
|
1117
|
+
if (h === "a") return !1;
|
|
1118
|
+
h = "b", o.push(e[r]), i++, r++;
|
|
1119
|
+
} else return !1;
|
|
1120
|
+
return t.length === e.length && o;
|
|
1121
|
+
}
|
|
1122
|
+
parseNegate() {
|
|
1123
|
+
if (this.nonegate) return;
|
|
1124
|
+
let t = this.pattern, e = !1, s = 0;
|
|
1125
|
+
for (let i = 0; i < t.length && t.charAt(i) === "!"; i++) e = !e, s++;
|
|
1126
|
+
s && (this.pattern = t.slice(s)), this.negate = e;
|
|
1127
|
+
}
|
|
1128
|
+
matchOne(t, e, s = !1) {
|
|
1129
|
+
let i = this.options;
|
|
1130
|
+
if (this.isWindows) {
|
|
1131
|
+
let p = typeof t[0] == "string" && /^[a-z]:$/i.test(t[0]), w = !p && t[0] === "" && t[1] === "" && t[2] === "?" && /^[a-z]:$/i.test(t[3]), g = typeof e[0] == "string" && /^[a-z]:$/i.test(e[0]), S = !g && e[0] === "" && e[1] === "" && e[2] === "?" && typeof e[3] == "string" && /^[a-z]:$/i.test(e[3]), E = w ? 3 : p ? 0 : void 0, y = S ? 3 : g ? 0 : void 0;
|
|
1132
|
+
if (typeof E == "number" && typeof y == "number") {
|
|
1133
|
+
let [b, z] = [t[E], e[y]];
|
|
1134
|
+
b.toLowerCase() === z.toLowerCase() && (e[y] = b, y > E ? e = e.slice(y) : E > y && (t = t.slice(E)));
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
let { optimizationLevel: r = 1 } = this.options;
|
|
1138
|
+
r >= 2 && (t = this.levelTwoFileOptimize(t)), this.debug("matchOne", this, {
|
|
1139
|
+
file: t,
|
|
1140
|
+
pattern: e
|
|
1141
|
+
}), this.debug("matchOne", t.length, e.length);
|
|
1142
|
+
for (var o = 0, h = 0, a = t.length, l = e.length; o < a && h < l; o++, h++) {
|
|
1143
|
+
this.debug("matchOne loop");
|
|
1144
|
+
var u = e[h], c = t[o];
|
|
1145
|
+
if (this.debug(e, u, c), u === !1) return !1;
|
|
1146
|
+
if (u === A) {
|
|
1147
|
+
this.debug("GLOBSTAR", [
|
|
1148
|
+
e,
|
|
1149
|
+
u,
|
|
1150
|
+
c
|
|
1151
|
+
]);
|
|
1152
|
+
var d = o, f = h + 1;
|
|
1153
|
+
if (f === l) {
|
|
1154
|
+
for (this.debug("** at the end"); o < a; o++) if (t[o] === "." || t[o] === ".." || !i.dot && t[o].charAt(0) === ".") return !1;
|
|
1155
|
+
return !0;
|
|
1156
|
+
}
|
|
1157
|
+
for (; d < a;) {
|
|
1158
|
+
var m = t[d];
|
|
1159
|
+
if (this.debug(`
|
|
1160
|
+
globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) return this.debug("globstar found match!", d, a, m), !0;
|
|
1161
|
+
if (m === "." || m === ".." || !i.dot && m.charAt(0) === ".") {
|
|
1162
|
+
this.debug("dot detected!", t, d, e, f);
|
|
1163
|
+
break;
|
|
1164
|
+
}
|
|
1165
|
+
this.debug("globstar swallow a segment, and continue"), d++;
|
|
1166
|
+
}
|
|
1167
|
+
return !!(s && (this.debug(`
|
|
1168
|
+
>>> no match, partial?`, t, d, e, f), d === a));
|
|
1169
|
+
}
|
|
1170
|
+
let p;
|
|
1171
|
+
if (typeof u == "string" ? (p = c === u, this.debug("string match", u, c, p)) : (p = u.test(c), this.debug("pattern match", u, c, p)), !p) return !1;
|
|
1172
|
+
}
|
|
1173
|
+
if (o === a && h === l) return !0;
|
|
1174
|
+
if (o === a) return s;
|
|
1175
|
+
if (h === l) return o === a - 1 && t[o] === "";
|
|
1176
|
+
throw new Error("wtf?");
|
|
1177
|
+
}
|
|
1178
|
+
braceExpand() {
|
|
1179
|
+
return ke(this.pattern, this.options);
|
|
1180
|
+
}
|
|
1181
|
+
parse(t) {
|
|
1182
|
+
at(t);
|
|
1183
|
+
let e = this.options;
|
|
1184
|
+
if (t === "**") return A;
|
|
1185
|
+
if (t === "") return "";
|
|
1186
|
+
let s, i = null;
|
|
1187
|
+
(s = t.match(js)) ? i = e.dot ? zs : Is : (s = t.match(Rs)) ? i = (e.nocase ? e.dot ? Ms : Ds : e.dot ? Fs : Os)(s[1]) : (s = t.match(Bs)) ? i = (e.nocase ? e.dot ? $s : Us : e.dot ? Gs : Hs)(s) : (s = t.match(Ns)) ? i = e.dot ? Ls : _s : (s = t.match(Ws)) && (i = Ps);
|
|
1188
|
+
let r = Q.fromGlob(t, this.options).toMMPattern();
|
|
1189
|
+
return i && typeof r == "object" && Reflect.defineProperty(r, "test", { value: i }), r;
|
|
1190
|
+
}
|
|
1191
|
+
makeRe() {
|
|
1192
|
+
if (this.regexp || this.regexp === !1) return this.regexp;
|
|
1193
|
+
let t = this.set;
|
|
1194
|
+
if (!t.length) return this.regexp = !1, this.regexp;
|
|
1195
|
+
let e = this.options, s = e.noglobstar ? Vs : e.dot ? Ys : Xs, i = new Set(e.nocase ? ["i"] : []), r = t.map((a) => {
|
|
1196
|
+
let l = a.map((c) => {
|
|
1197
|
+
if (c instanceof RegExp) for (let d of c.flags.split("")) i.add(d);
|
|
1198
|
+
return typeof c == "string" ? ei(c) : c === A ? A : c._src;
|
|
1199
|
+
});
|
|
1200
|
+
l.forEach((c, d) => {
|
|
1201
|
+
let f = l[d + 1], m = l[d - 1];
|
|
1202
|
+
c !== A || m === A || (m === void 0 ? f !== void 0 && f !== A ? l[d + 1] = "(?:\\/|" + s + "\\/)?" + f : l[d] = s : f === void 0 ? l[d - 1] = m + "(?:\\/|\\/" + s + ")?" : f !== A && (l[d - 1] = m + "(?:\\/|\\/" + s + "\\/)" + f, l[d + 1] = A));
|
|
1203
|
+
});
|
|
1204
|
+
let u = l.filter((c) => c !== A);
|
|
1205
|
+
if (this.partial && u.length >= 1) {
|
|
1206
|
+
let c = [];
|
|
1207
|
+
for (let d = 1; d <= u.length; d++) c.push(u.slice(0, d).join("/"));
|
|
1208
|
+
return "(?:" + c.join("|") + ")";
|
|
1209
|
+
}
|
|
1210
|
+
return u.join("/");
|
|
1211
|
+
}).join("|"), [o, h] = t.length > 1 ? ["(?:", ")"] : ["", ""];
|
|
1212
|
+
r = "^" + o + r + h + "$", this.partial && (r = "^(?:\\/|" + o + r.slice(1, -1) + h + ")$"), this.negate && (r = "^(?!" + r + ").+$");
|
|
1213
|
+
try {
|
|
1214
|
+
this.regexp = new RegExp(r, [...i].join(""));
|
|
1215
|
+
} catch {
|
|
1216
|
+
this.regexp = !1;
|
|
1217
|
+
}
|
|
1218
|
+
return this.regexp;
|
|
1219
|
+
}
|
|
1220
|
+
slashSplit(t) {
|
|
1221
|
+
return this.preserveMultipleSlashes ? t.split("/") : this.isWindows && /^\/\/[^\/]+/.test(t) ? ["", ...t.split(/\/+/)] : t.split(/\/+/);
|
|
1222
|
+
}
|
|
1223
|
+
match(t, e = this.partial) {
|
|
1224
|
+
if (this.debug("match", t, this.pattern), this.comment) return !1;
|
|
1225
|
+
if (this.empty) return t === "";
|
|
1226
|
+
if (t === "/" && e) return !0;
|
|
1227
|
+
let s = this.options;
|
|
1228
|
+
this.isWindows && (t = t.split("\\").join("/"));
|
|
1229
|
+
let i = this.slashSplit(t);
|
|
1230
|
+
this.debug(this.pattern, "split", i);
|
|
1231
|
+
let r = this.set;
|
|
1232
|
+
this.debug(this.pattern, "set", r);
|
|
1233
|
+
let o = i[i.length - 1];
|
|
1234
|
+
if (!o) for (let h = i.length - 2; !o && h >= 0; h--) o = i[h];
|
|
1235
|
+
for (let h = 0; h < r.length; h++) {
|
|
1236
|
+
let a = r[h], l = i;
|
|
1237
|
+
if (s.matchBase && a.length === 1 && (l = [o]), this.matchOne(l, a, e)) return s.flipNegate ? !0 : !this.negate;
|
|
1238
|
+
}
|
|
1239
|
+
return s.flipNegate ? !1 : this.negate;
|
|
1240
|
+
}
|
|
1241
|
+
static defaults(t) {
|
|
1242
|
+
return O.defaults(t).Minimatch;
|
|
1243
|
+
}
|
|
1244
|
+
};
|
|
1245
|
+
O.AST = Q;
|
|
1246
|
+
O.Minimatch = D;
|
|
1247
|
+
O.escape = tt;
|
|
1248
|
+
O.unescape = W;
|
|
1249
|
+
si = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, Oe = /* @__PURE__ */ new Set(), Vt = typeof process == "object" && process ? process : {}, Fe = (n, t, e, s) => {
|
|
1250
|
+
typeof Vt.emitWarning == "function" ? Vt.emitWarning(n, t, e, s) : console.error(`[${e}] ${t}: ${n}`);
|
|
1251
|
+
}, At = globalThis.AbortController, Re = globalThis.AbortSignal;
|
|
1252
|
+
if (typeof At > "u") {
|
|
1253
|
+
Re = class {
|
|
1254
|
+
onabort;
|
|
1255
|
+
_onabort = [];
|
|
1256
|
+
reason;
|
|
1257
|
+
aborted = !1;
|
|
1258
|
+
addEventListener(e, s) {
|
|
1259
|
+
this._onabort.push(s);
|
|
1260
|
+
}
|
|
1261
|
+
}, At = class {
|
|
1262
|
+
constructor() {
|
|
1263
|
+
t();
|
|
1264
|
+
}
|
|
1265
|
+
signal = new Re();
|
|
1266
|
+
abort(e) {
|
|
1267
|
+
if (!this.signal.aborted) {
|
|
1268
|
+
this.signal.reason = e, this.signal.aborted = !0;
|
|
1269
|
+
for (let s of this.signal._onabort) s(e);
|
|
1270
|
+
this.signal.onabort?.(e);
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
};
|
|
1274
|
+
let n = Vt.env?.LRU_CACHE_IGNORE_AC_WARNING !== "1", t = () => {
|
|
1275
|
+
n && (n = !1, Fe("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", t));
|
|
1276
|
+
};
|
|
1277
|
+
}
|
|
1278
|
+
ii = (n) => !Oe.has(n);
|
|
1279
|
+
q = (n) => n && n === Math.floor(n) && n > 0 && isFinite(n), De = (n) => q(n) ? n <= Math.pow(2, 8) ? Uint8Array : n <= Math.pow(2, 16) ? Uint16Array : n <= Math.pow(2, 32) ? Uint32Array : n <= Number.MAX_SAFE_INTEGER ? Tt : null : null, Tt = class extends Array {
|
|
1280
|
+
constructor(n) {
|
|
1281
|
+
super(n), this.fill(0);
|
|
1282
|
+
}
|
|
1283
|
+
}, ri = class ct {
|
|
1284
|
+
heap;
|
|
1285
|
+
length;
|
|
1286
|
+
static #t = !1;
|
|
1287
|
+
static create(t) {
|
|
1288
|
+
let e = De(t);
|
|
1289
|
+
if (!e) return [];
|
|
1290
|
+
ct.#t = !0;
|
|
1291
|
+
let s = new ct(t, e);
|
|
1292
|
+
return ct.#t = !1, s;
|
|
1293
|
+
}
|
|
1294
|
+
constructor(t, e) {
|
|
1295
|
+
if (!ct.#t) throw new TypeError("instantiate Stack using Stack.create(n)");
|
|
1296
|
+
this.heap = new e(t), this.length = 0;
|
|
1297
|
+
}
|
|
1298
|
+
push(t) {
|
|
1299
|
+
this.heap[this.length++] = t;
|
|
1300
|
+
}
|
|
1301
|
+
pop() {
|
|
1302
|
+
return this.heap[--this.length];
|
|
1303
|
+
}
|
|
1304
|
+
}, ft = class Me {
|
|
1305
|
+
#t;
|
|
1306
|
+
#s;
|
|
1307
|
+
#n;
|
|
1308
|
+
#r;
|
|
1309
|
+
#o;
|
|
1310
|
+
#S;
|
|
1311
|
+
#w;
|
|
1312
|
+
#c;
|
|
1313
|
+
get perf() {
|
|
1314
|
+
return this.#c;
|
|
1315
|
+
}
|
|
1316
|
+
ttl;
|
|
1317
|
+
ttlResolution;
|
|
1318
|
+
ttlAutopurge;
|
|
1319
|
+
updateAgeOnGet;
|
|
1320
|
+
updateAgeOnHas;
|
|
1321
|
+
allowStale;
|
|
1322
|
+
noDisposeOnSet;
|
|
1323
|
+
noUpdateTTL;
|
|
1324
|
+
maxEntrySize;
|
|
1325
|
+
sizeCalculation;
|
|
1326
|
+
noDeleteOnFetchRejection;
|
|
1327
|
+
noDeleteOnStaleGet;
|
|
1328
|
+
allowStaleOnFetchAbort;
|
|
1329
|
+
allowStaleOnFetchRejection;
|
|
1330
|
+
ignoreFetchAbort;
|
|
1331
|
+
#h;
|
|
1332
|
+
#u;
|
|
1333
|
+
#f;
|
|
1334
|
+
#a;
|
|
1335
|
+
#i;
|
|
1336
|
+
#d;
|
|
1337
|
+
#E;
|
|
1338
|
+
#b;
|
|
1339
|
+
#p;
|
|
1340
|
+
#R;
|
|
1341
|
+
#m;
|
|
1342
|
+
#C;
|
|
1343
|
+
#T;
|
|
1344
|
+
#g;
|
|
1345
|
+
#y;
|
|
1346
|
+
#x;
|
|
1347
|
+
#A;
|
|
1348
|
+
#e;
|
|
1349
|
+
#_;
|
|
1350
|
+
static unsafeExposeInternals(t) {
|
|
1351
|
+
return {
|
|
1352
|
+
starts: t.#T,
|
|
1353
|
+
ttls: t.#g,
|
|
1354
|
+
autopurgeTimers: t.#y,
|
|
1355
|
+
sizes: t.#C,
|
|
1356
|
+
keyMap: t.#f,
|
|
1357
|
+
keyList: t.#a,
|
|
1358
|
+
valList: t.#i,
|
|
1359
|
+
next: t.#d,
|
|
1360
|
+
prev: t.#E,
|
|
1361
|
+
get head() {
|
|
1362
|
+
return t.#b;
|
|
1363
|
+
},
|
|
1364
|
+
get tail() {
|
|
1365
|
+
return t.#p;
|
|
1366
|
+
},
|
|
1367
|
+
free: t.#R,
|
|
1368
|
+
isBackgroundFetch: (e) => t.#l(e),
|
|
1369
|
+
backgroundFetch: (e, s, i, r) => t.#U(e, s, i, r),
|
|
1370
|
+
moveToTail: (e) => t.#W(e),
|
|
1371
|
+
indexes: (e) => t.#F(e),
|
|
1372
|
+
rindexes: (e) => t.#D(e),
|
|
1373
|
+
isStale: (e) => t.#v(e)
|
|
1374
|
+
};
|
|
1375
|
+
}
|
|
1376
|
+
get max() {
|
|
1377
|
+
return this.#t;
|
|
1378
|
+
}
|
|
1379
|
+
get maxSize() {
|
|
1380
|
+
return this.#s;
|
|
1381
|
+
}
|
|
1382
|
+
get calculatedSize() {
|
|
1383
|
+
return this.#u;
|
|
1384
|
+
}
|
|
1385
|
+
get size() {
|
|
1386
|
+
return this.#h;
|
|
1387
|
+
}
|
|
1388
|
+
get fetchMethod() {
|
|
1389
|
+
return this.#S;
|
|
1390
|
+
}
|
|
1391
|
+
get memoMethod() {
|
|
1392
|
+
return this.#w;
|
|
1393
|
+
}
|
|
1394
|
+
get dispose() {
|
|
1395
|
+
return this.#n;
|
|
1396
|
+
}
|
|
1397
|
+
get onInsert() {
|
|
1398
|
+
return this.#r;
|
|
1399
|
+
}
|
|
1400
|
+
get disposeAfter() {
|
|
1401
|
+
return this.#o;
|
|
1402
|
+
}
|
|
1403
|
+
constructor(t) {
|
|
1404
|
+
let { max: e = 0, ttl: s, ttlResolution: i = 1, ttlAutopurge: r, updateAgeOnGet: o, updateAgeOnHas: h, allowStale: a, dispose: l, onInsert: u, disposeAfter: c, noDisposeOnSet: d, noUpdateTTL: f, maxSize: m = 0, maxEntrySize: p = 0, sizeCalculation: w, fetchMethod: g, memoMethod: S, noDeleteOnFetchRejection: E, noDeleteOnStaleGet: y, allowStaleOnFetchRejection: b, allowStaleOnFetchAbort: z, ignoreFetchAbort: $, perf: J } = t;
|
|
1405
|
+
if (J !== void 0 && typeof J?.now != "function") throw new TypeError("perf option must have a now() method if specified");
|
|
1406
|
+
if (this.#c = J ?? si, e !== 0 && !q(e)) throw new TypeError("max option must be a nonnegative integer");
|
|
1407
|
+
let Z = e ? De(e) : Array;
|
|
1408
|
+
if (!Z) throw new Error("invalid max value: " + e);
|
|
1409
|
+
if (this.#t = e, this.#s = m, this.maxEntrySize = p || this.#s, this.sizeCalculation = w, this.sizeCalculation) {
|
|
1410
|
+
if (!this.#s && !this.maxEntrySize) throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
|
|
1411
|
+
if (typeof this.sizeCalculation != "function") throw new TypeError("sizeCalculation set to non-function");
|
|
1412
|
+
}
|
|
1413
|
+
if (S !== void 0 && typeof S != "function") throw new TypeError("memoMethod must be a function if defined");
|
|
1414
|
+
if (this.#w = S, g !== void 0 && typeof g != "function") throw new TypeError("fetchMethod must be a function if specified");
|
|
1415
|
+
if (this.#S = g, this.#A = !!g, this.#f = /* @__PURE__ */ new Map(), this.#a = new Array(e).fill(void 0), this.#i = new Array(e).fill(void 0), this.#d = new Z(e), this.#E = new Z(e), this.#b = 0, this.#p = 0, this.#R = ri.create(e), this.#h = 0, this.#u = 0, typeof l == "function" && (this.#n = l), typeof u == "function" && (this.#r = u), typeof c == "function" ? (this.#o = c, this.#m = []) : (this.#o = void 0, this.#m = void 0), this.#x = !!this.#n, this.#_ = !!this.#r, this.#e = !!this.#o, this.noDisposeOnSet = !!d, this.noUpdateTTL = !!f, this.noDeleteOnFetchRejection = !!E, this.allowStaleOnFetchRejection = !!b, this.allowStaleOnFetchAbort = !!z, this.ignoreFetchAbort = !!$, this.maxEntrySize !== 0) {
|
|
1416
|
+
if (this.#s !== 0 && !q(this.#s)) throw new TypeError("maxSize must be a positive integer if specified");
|
|
1417
|
+
if (!q(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
|
|
1418
|
+
this.#G();
|
|
1419
|
+
}
|
|
1420
|
+
if (this.allowStale = !!a, this.noDeleteOnStaleGet = !!y, this.updateAgeOnGet = !!o, this.updateAgeOnHas = !!h, this.ttlResolution = q(i) || i === 0 ? i : 1, this.ttlAutopurge = !!r, this.ttl = s || 0, this.ttl) {
|
|
1421
|
+
if (!q(this.ttl)) throw new TypeError("ttl must be a positive integer if specified");
|
|
1422
|
+
this.#M();
|
|
1423
|
+
}
|
|
1424
|
+
if (this.#t === 0 && this.ttl === 0 && this.#s === 0) throw new TypeError("At least one of max, maxSize, or ttl is required");
|
|
1425
|
+
if (!this.ttlAutopurge && !this.#t && !this.#s) {
|
|
1426
|
+
let $t = "LRU_CACHE_UNBOUNDED";
|
|
1427
|
+
ii($t) && (Oe.add($t), Fe("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", $t, Me));
|
|
1428
|
+
}
|
|
1429
|
+
}
|
|
1430
|
+
getRemainingTTL(t) {
|
|
1431
|
+
return this.#f.has(t) ? Infinity : 0;
|
|
1432
|
+
}
|
|
1433
|
+
#M() {
|
|
1434
|
+
let t = new Tt(this.#t), e = new Tt(this.#t);
|
|
1435
|
+
this.#g = t, this.#T = e;
|
|
1436
|
+
let s = this.ttlAutopurge ? new Array(this.#t) : void 0;
|
|
1437
|
+
this.#y = s, this.#j = (o, h, a = this.#c.now()) => {
|
|
1438
|
+
if (e[o] = h !== 0 ? a : 0, t[o] = h, s?.[o] && (clearTimeout(s[o]), s[o] = void 0), h !== 0 && s) {
|
|
1439
|
+
let l = setTimeout(() => {
|
|
1440
|
+
this.#v(o) && this.#O(this.#a[o], "expire");
|
|
1441
|
+
}, h + 1);
|
|
1442
|
+
l.unref && l.unref(), s[o] = l;
|
|
1443
|
+
}
|
|
1444
|
+
}, this.#k = (o) => {
|
|
1445
|
+
e[o] = t[o] !== 0 ? this.#c.now() : 0;
|
|
1446
|
+
}, this.#N = (o, h) => {
|
|
1447
|
+
if (t[h]) {
|
|
1448
|
+
let a = t[h], l = e[h];
|
|
1449
|
+
if (!a || !l) return;
|
|
1450
|
+
o.ttl = a, o.start = l, o.now = i || r();
|
|
1451
|
+
o.remainingTTL = a - (o.now - l);
|
|
1452
|
+
}
|
|
1453
|
+
};
|
|
1454
|
+
let i = 0, r = () => {
|
|
1455
|
+
let o = this.#c.now();
|
|
1456
|
+
if (this.ttlResolution > 0) {
|
|
1457
|
+
i = o;
|
|
1458
|
+
let h = setTimeout(() => i = 0, this.ttlResolution);
|
|
1459
|
+
h.unref && h.unref();
|
|
1460
|
+
}
|
|
1461
|
+
return o;
|
|
1462
|
+
};
|
|
1463
|
+
this.getRemainingTTL = (o) => {
|
|
1464
|
+
let h = this.#f.get(o);
|
|
1465
|
+
if (h === void 0) return 0;
|
|
1466
|
+
let a = t[h], l = e[h];
|
|
1467
|
+
if (!a || !l) return Infinity;
|
|
1468
|
+
return a - ((i || r()) - l);
|
|
1469
|
+
}, this.#v = (o) => {
|
|
1470
|
+
let h = e[o], a = t[o];
|
|
1471
|
+
return !!a && !!h && (i || r()) - h > a;
|
|
1472
|
+
};
|
|
1473
|
+
}
|
|
1474
|
+
#k = () => {};
|
|
1475
|
+
#N = () => {};
|
|
1476
|
+
#j = () => {};
|
|
1477
|
+
#v = () => !1;
|
|
1478
|
+
#G() {
|
|
1479
|
+
let t = new Tt(this.#t);
|
|
1480
|
+
this.#u = 0, this.#C = t, this.#P = (e) => {
|
|
1481
|
+
this.#u -= t[e], t[e] = 0;
|
|
1482
|
+
}, this.#I = (e, s, i, r) => {
|
|
1483
|
+
if (this.#l(s)) return 0;
|
|
1484
|
+
if (!q(i)) if (r) {
|
|
1485
|
+
if (typeof r != "function") throw new TypeError("sizeCalculation must be a function");
|
|
1486
|
+
if (i = r(s, e), !q(i)) throw new TypeError("sizeCalculation return invalid (expect positive integer)");
|
|
1487
|
+
} else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
|
|
1488
|
+
return i;
|
|
1489
|
+
}, this.#L = (e, s, i) => {
|
|
1490
|
+
if (t[e] = s, this.#s) {
|
|
1491
|
+
let r = this.#s - t[e];
|
|
1492
|
+
for (; this.#u > r;) this.#B(!0);
|
|
1493
|
+
}
|
|
1494
|
+
this.#u += t[e], i && (i.entrySize = s, i.totalCalculatedSize = this.#u);
|
|
1495
|
+
};
|
|
1496
|
+
}
|
|
1497
|
+
#P = (t) => {};
|
|
1498
|
+
#L = (t, e, s) => {};
|
|
1499
|
+
#I = (t, e, s, i) => {
|
|
1500
|
+
if (s || i) throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
|
|
1501
|
+
return 0;
|
|
1502
|
+
};
|
|
1503
|
+
*#F({ allowStale: t = this.allowStale } = {}) {
|
|
1504
|
+
if (this.#h) for (let e = this.#p; !(!this.#z(e) || ((t || !this.#v(e)) && (yield e), e === this.#b));) e = this.#E[e];
|
|
1505
|
+
}
|
|
1506
|
+
*#D({ allowStale: t = this.allowStale } = {}) {
|
|
1507
|
+
if (this.#h) for (let e = this.#b; !(!this.#z(e) || ((t || !this.#v(e)) && (yield e), e === this.#p));) e = this.#d[e];
|
|
1508
|
+
}
|
|
1509
|
+
#z(t) {
|
|
1510
|
+
return t !== void 0 && this.#f.get(this.#a[t]) === t;
|
|
1511
|
+
}
|
|
1512
|
+
*entries() {
|
|
1513
|
+
for (let t of this.#F()) this.#i[t] !== void 0 && this.#a[t] !== void 0 && !this.#l(this.#i[t]) && (yield [this.#a[t], this.#i[t]]);
|
|
1514
|
+
}
|
|
1515
|
+
*rentries() {
|
|
1516
|
+
for (let t of this.#D()) this.#i[t] !== void 0 && this.#a[t] !== void 0 && !this.#l(this.#i[t]) && (yield [this.#a[t], this.#i[t]]);
|
|
1517
|
+
}
|
|
1518
|
+
*keys() {
|
|
1519
|
+
for (let t of this.#F()) {
|
|
1520
|
+
let e = this.#a[t];
|
|
1521
|
+
e !== void 0 && !this.#l(this.#i[t]) && (yield e);
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
*rkeys() {
|
|
1525
|
+
for (let t of this.#D()) {
|
|
1526
|
+
let e = this.#a[t];
|
|
1527
|
+
e !== void 0 && !this.#l(this.#i[t]) && (yield e);
|
|
1528
|
+
}
|
|
1529
|
+
}
|
|
1530
|
+
*values() {
|
|
1531
|
+
for (let t of this.#F()) this.#i[t] !== void 0 && !this.#l(this.#i[t]) && (yield this.#i[t]);
|
|
1532
|
+
}
|
|
1533
|
+
*rvalues() {
|
|
1534
|
+
for (let t of this.#D()) this.#i[t] !== void 0 && !this.#l(this.#i[t]) && (yield this.#i[t]);
|
|
1535
|
+
}
|
|
1536
|
+
[Symbol.iterator]() {
|
|
1537
|
+
return this.entries();
|
|
1538
|
+
}
|
|
1539
|
+
[Symbol.toStringTag] = "LRUCache";
|
|
1540
|
+
find(t, e = {}) {
|
|
1541
|
+
for (let s of this.#F()) {
|
|
1542
|
+
let i = this.#i[s], r = this.#l(i) ? i.__staleWhileFetching : i;
|
|
1543
|
+
if (r !== void 0 && t(r, this.#a[s], this)) return this.get(this.#a[s], e);
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
forEach(t, e = this) {
|
|
1547
|
+
for (let s of this.#F()) {
|
|
1548
|
+
let i = this.#i[s], r = this.#l(i) ? i.__staleWhileFetching : i;
|
|
1549
|
+
r !== void 0 && t.call(e, r, this.#a[s], this);
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
rforEach(t, e = this) {
|
|
1553
|
+
for (let s of this.#D()) {
|
|
1554
|
+
let i = this.#i[s], r = this.#l(i) ? i.__staleWhileFetching : i;
|
|
1555
|
+
r !== void 0 && t.call(e, r, this.#a[s], this);
|
|
1556
|
+
}
|
|
1557
|
+
}
|
|
1558
|
+
purgeStale() {
|
|
1559
|
+
let t = !1;
|
|
1560
|
+
for (let e of this.#D({ allowStale: !0 })) this.#v(e) && (this.#O(this.#a[e], "expire"), t = !0);
|
|
1561
|
+
return t;
|
|
1562
|
+
}
|
|
1563
|
+
info(t) {
|
|
1564
|
+
let e = this.#f.get(t);
|
|
1565
|
+
if (e === void 0) return;
|
|
1566
|
+
let s = this.#i[e], i = this.#l(s) ? s.__staleWhileFetching : s;
|
|
1567
|
+
if (i === void 0) return;
|
|
1568
|
+
let r = { value: i };
|
|
1569
|
+
if (this.#g && this.#T) {
|
|
1570
|
+
let o = this.#g[e], h = this.#T[e];
|
|
1571
|
+
if (o && h) r.ttl = o - (this.#c.now() - h), r.start = Date.now();
|
|
1572
|
+
}
|
|
1573
|
+
return this.#C && (r.size = this.#C[e]), r;
|
|
1574
|
+
}
|
|
1575
|
+
dump() {
|
|
1576
|
+
let t = [];
|
|
1577
|
+
for (let e of this.#F({ allowStale: !0 })) {
|
|
1578
|
+
let s = this.#a[e], i = this.#i[e], r = this.#l(i) ? i.__staleWhileFetching : i;
|
|
1579
|
+
if (r === void 0 || s === void 0) continue;
|
|
1580
|
+
let o = { value: r };
|
|
1581
|
+
if (this.#g && this.#T) {
|
|
1582
|
+
o.ttl = this.#g[e];
|
|
1583
|
+
let h = this.#c.now() - this.#T[e];
|
|
1584
|
+
o.start = Math.floor(Date.now() - h);
|
|
1585
|
+
}
|
|
1586
|
+
this.#C && (o.size = this.#C[e]), t.unshift([s, o]);
|
|
1587
|
+
}
|
|
1588
|
+
return t;
|
|
1589
|
+
}
|
|
1590
|
+
load(t) {
|
|
1591
|
+
this.clear();
|
|
1592
|
+
for (let [e, s] of t) {
|
|
1593
|
+
if (s.start) {
|
|
1594
|
+
let i = Date.now() - s.start;
|
|
1595
|
+
s.start = this.#c.now() - i;
|
|
1596
|
+
}
|
|
1597
|
+
this.set(e, s.value, s);
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
set(t, e, s = {}) {
|
|
1601
|
+
if (e === void 0) return this.delete(t), this;
|
|
1602
|
+
let { ttl: i = this.ttl, start: r, noDisposeOnSet: o = this.noDisposeOnSet, sizeCalculation: h = this.sizeCalculation, status: a } = s, { noUpdateTTL: l = this.noUpdateTTL } = s, u = this.#I(t, e, s.size || 0, h);
|
|
1603
|
+
if (this.maxEntrySize && u > this.maxEntrySize) return a && (a.set = "miss", a.maxEntrySizeExceeded = !0), this.#O(t, "set"), this;
|
|
1604
|
+
let c = this.#h === 0 ? void 0 : this.#f.get(t);
|
|
1605
|
+
if (c === void 0) c = this.#h === 0 ? this.#p : this.#R.length !== 0 ? this.#R.pop() : this.#h === this.#t ? this.#B(!1) : this.#h, this.#a[c] = t, this.#i[c] = e, this.#f.set(t, c), this.#d[this.#p] = c, this.#E[c] = this.#p, this.#p = c, this.#h++, this.#L(c, u, a), a && (a.set = "add"), l = !1, this.#_ && this.#r?.(e, t, "add");
|
|
1606
|
+
else {
|
|
1607
|
+
this.#W(c);
|
|
1608
|
+
let d = this.#i[c];
|
|
1609
|
+
if (e !== d) {
|
|
1610
|
+
if (this.#A && this.#l(d)) {
|
|
1611
|
+
d.__abortController.abort(/* @__PURE__ */ new Error("replaced"));
|
|
1612
|
+
let { __staleWhileFetching: f } = d;
|
|
1613
|
+
f !== void 0 && !o && (this.#x && this.#n?.(f, t, "set"), this.#e && this.#m?.push([
|
|
1614
|
+
f,
|
|
1615
|
+
t,
|
|
1616
|
+
"set"
|
|
1617
|
+
]));
|
|
1618
|
+
} else o || (this.#x && this.#n?.(d, t, "set"), this.#e && this.#m?.push([
|
|
1619
|
+
d,
|
|
1620
|
+
t,
|
|
1621
|
+
"set"
|
|
1622
|
+
]));
|
|
1623
|
+
if (this.#P(c), this.#L(c, u, a), this.#i[c] = e, a) {
|
|
1624
|
+
a.set = "replace";
|
|
1625
|
+
let f = d && this.#l(d) ? d.__staleWhileFetching : d;
|
|
1626
|
+
f !== void 0 && (a.oldValue = f);
|
|
1627
|
+
}
|
|
1628
|
+
} else a && (a.set = "update");
|
|
1629
|
+
this.#_ && this.onInsert?.(e, t, e === d ? "update" : "replace");
|
|
1630
|
+
}
|
|
1631
|
+
if (i !== 0 && !this.#g && this.#M(), this.#g && (l || this.#j(c, i, r), a && this.#N(a, c)), !o && this.#e && this.#m) {
|
|
1632
|
+
let d = this.#m, f;
|
|
1633
|
+
for (; f = d?.shift();) this.#o?.(...f);
|
|
1634
|
+
}
|
|
1635
|
+
return this;
|
|
1636
|
+
}
|
|
1637
|
+
pop() {
|
|
1638
|
+
try {
|
|
1639
|
+
for (; this.#h;) {
|
|
1640
|
+
let t = this.#i[this.#b];
|
|
1641
|
+
if (this.#B(!0), this.#l(t)) {
|
|
1642
|
+
if (t.__staleWhileFetching) return t.__staleWhileFetching;
|
|
1643
|
+
} else if (t !== void 0) return t;
|
|
1644
|
+
}
|
|
1645
|
+
} finally {
|
|
1646
|
+
if (this.#e && this.#m) {
|
|
1647
|
+
let t = this.#m, e;
|
|
1648
|
+
for (; e = t?.shift();) this.#o?.(...e);
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
}
|
|
1652
|
+
#B(t) {
|
|
1653
|
+
let e = this.#b, s = this.#a[e], i = this.#i[e];
|
|
1654
|
+
return this.#A && this.#l(i) ? i.__abortController.abort(/* @__PURE__ */ new Error("evicted")) : (this.#x || this.#e) && (this.#x && this.#n?.(i, s, "evict"), this.#e && this.#m?.push([
|
|
1655
|
+
i,
|
|
1656
|
+
s,
|
|
1657
|
+
"evict"
|
|
1658
|
+
])), this.#P(e), this.#y?.[e] && (clearTimeout(this.#y[e]), this.#y[e] = void 0), t && (this.#a[e] = void 0, this.#i[e] = void 0, this.#R.push(e)), this.#h === 1 ? (this.#b = this.#p = 0, this.#R.length = 0) : this.#b = this.#d[e], this.#f.delete(s), this.#h--, e;
|
|
1659
|
+
}
|
|
1660
|
+
has(t, e = {}) {
|
|
1661
|
+
let { updateAgeOnHas: s = this.updateAgeOnHas, status: i } = e, r = this.#f.get(t);
|
|
1662
|
+
if (r !== void 0) {
|
|
1663
|
+
let o = this.#i[r];
|
|
1664
|
+
if (this.#l(o) && o.__staleWhileFetching === void 0) return !1;
|
|
1665
|
+
if (this.#v(r)) i && (i.has = "stale", this.#N(i, r));
|
|
1666
|
+
else return s && this.#k(r), i && (i.has = "hit", this.#N(i, r)), !0;
|
|
1667
|
+
} else i && (i.has = "miss");
|
|
1668
|
+
return !1;
|
|
1669
|
+
}
|
|
1670
|
+
peek(t, e = {}) {
|
|
1671
|
+
let { allowStale: s = this.allowStale } = e, i = this.#f.get(t);
|
|
1672
|
+
if (i === void 0 || !s && this.#v(i)) return;
|
|
1673
|
+
let r = this.#i[i];
|
|
1674
|
+
return this.#l(r) ? r.__staleWhileFetching : r;
|
|
1675
|
+
}
|
|
1676
|
+
#U(t, e, s, i) {
|
|
1677
|
+
let r = e === void 0 ? void 0 : this.#i[e];
|
|
1678
|
+
if (this.#l(r)) return r;
|
|
1679
|
+
let o = new At(), { signal: h } = s;
|
|
1680
|
+
h?.addEventListener("abort", () => o.abort(h.reason), { signal: o.signal });
|
|
1681
|
+
let a = {
|
|
1682
|
+
signal: o.signal,
|
|
1683
|
+
options: s,
|
|
1684
|
+
context: i
|
|
1685
|
+
}, l = (p, w = !1) => {
|
|
1686
|
+
let { aborted: g } = o.signal, S = s.ignoreFetchAbort && p !== void 0, E = s.ignoreFetchAbort || !!(s.allowStaleOnFetchAbort && p !== void 0);
|
|
1687
|
+
if (s.status && (g && !w ? (s.status.fetchAborted = !0, s.status.fetchError = o.signal.reason, S && (s.status.fetchAbortIgnored = !0)) : s.status.fetchResolved = !0), g && !S && !w) return c(o.signal.reason, E);
|
|
1688
|
+
let y = f, b = this.#i[e];
|
|
1689
|
+
return (b === f || S && w && b === void 0) && (p === void 0 ? y.__staleWhileFetching !== void 0 ? this.#i[e] = y.__staleWhileFetching : this.#O(t, "fetch") : (s.status && (s.status.fetchUpdated = !0), this.set(t, p, a.options))), p;
|
|
1690
|
+
}, u = (p) => (s.status && (s.status.fetchRejected = !0, s.status.fetchError = p), c(p, !1)), c = (p, w) => {
|
|
1691
|
+
let { aborted: g } = o.signal, S = g && s.allowStaleOnFetchAbort, E = S || s.allowStaleOnFetchRejection, y = E || s.noDeleteOnFetchRejection, b = f;
|
|
1692
|
+
if (this.#i[e] === f && (!y || !w && b.__staleWhileFetching === void 0 ? this.#O(t, "fetch") : S || (this.#i[e] = b.__staleWhileFetching)), E) return s.status && b.__staleWhileFetching !== void 0 && (s.status.returnedStale = !0), b.__staleWhileFetching;
|
|
1693
|
+
if (b.__returned === b) throw p;
|
|
1694
|
+
}, d = (p, w) => {
|
|
1695
|
+
let g = this.#S?.(t, r, a);
|
|
1696
|
+
g && g instanceof Promise && g.then((S) => p(S === void 0 ? void 0 : S), w), o.signal.addEventListener("abort", () => {
|
|
1697
|
+
(!s.ignoreFetchAbort || s.allowStaleOnFetchAbort) && (p(void 0), s.allowStaleOnFetchAbort && (p = (S) => l(S, !0)));
|
|
1698
|
+
});
|
|
1699
|
+
};
|
|
1700
|
+
s.status && (s.status.fetchDispatched = !0);
|
|
1701
|
+
let f = new Promise(d).then(l, u), m = Object.assign(f, {
|
|
1702
|
+
__abortController: o,
|
|
1703
|
+
__staleWhileFetching: r,
|
|
1704
|
+
__returned: void 0
|
|
1705
|
+
});
|
|
1706
|
+
return e === void 0 ? (this.set(t, m, {
|
|
1707
|
+
...a.options,
|
|
1708
|
+
status: void 0
|
|
1709
|
+
}), e = this.#f.get(t)) : this.#i[e] = m, m;
|
|
1710
|
+
}
|
|
1711
|
+
#l(t) {
|
|
1712
|
+
if (!this.#A) return !1;
|
|
1713
|
+
let e = t;
|
|
1714
|
+
return !!e && e instanceof Promise && e.hasOwnProperty("__staleWhileFetching") && e.__abortController instanceof At;
|
|
1715
|
+
}
|
|
1716
|
+
async fetch(t, e = {}) {
|
|
1717
|
+
let { allowStale: s = this.allowStale, updateAgeOnGet: i = this.updateAgeOnGet, noDeleteOnStaleGet: r = this.noDeleteOnStaleGet, ttl: o = this.ttl, noDisposeOnSet: h = this.noDisposeOnSet, size: a = 0, sizeCalculation: l = this.sizeCalculation, noUpdateTTL: u = this.noUpdateTTL, noDeleteOnFetchRejection: c = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: d = this.allowStaleOnFetchRejection, ignoreFetchAbort: f = this.ignoreFetchAbort, allowStaleOnFetchAbort: m = this.allowStaleOnFetchAbort, context: p, forceRefresh: w = !1, status: g, signal: S } = e;
|
|
1718
|
+
if (!this.#A) return g && (g.fetch = "get"), this.get(t, {
|
|
1719
|
+
allowStale: s,
|
|
1720
|
+
updateAgeOnGet: i,
|
|
1721
|
+
noDeleteOnStaleGet: r,
|
|
1722
|
+
status: g
|
|
1723
|
+
});
|
|
1724
|
+
let E = {
|
|
1725
|
+
allowStale: s,
|
|
1726
|
+
updateAgeOnGet: i,
|
|
1727
|
+
noDeleteOnStaleGet: r,
|
|
1728
|
+
ttl: o,
|
|
1729
|
+
noDisposeOnSet: h,
|
|
1730
|
+
size: a,
|
|
1731
|
+
sizeCalculation: l,
|
|
1732
|
+
noUpdateTTL: u,
|
|
1733
|
+
noDeleteOnFetchRejection: c,
|
|
1734
|
+
allowStaleOnFetchRejection: d,
|
|
1735
|
+
allowStaleOnFetchAbort: m,
|
|
1736
|
+
ignoreFetchAbort: f,
|
|
1737
|
+
status: g,
|
|
1738
|
+
signal: S
|
|
1739
|
+
}, y = this.#f.get(t);
|
|
1740
|
+
if (y === void 0) {
|
|
1741
|
+
g && (g.fetch = "miss");
|
|
1742
|
+
let b = this.#U(t, y, E, p);
|
|
1743
|
+
return b.__returned = b;
|
|
1744
|
+
} else {
|
|
1745
|
+
let b = this.#i[y];
|
|
1746
|
+
if (this.#l(b)) {
|
|
1747
|
+
let Z = s && b.__staleWhileFetching !== void 0;
|
|
1748
|
+
return g && (g.fetch = "inflight", Z && (g.returnedStale = !0)), Z ? b.__staleWhileFetching : b.__returned = b;
|
|
1749
|
+
}
|
|
1750
|
+
let z = this.#v(y);
|
|
1751
|
+
if (!w && !z) return g && (g.fetch = "hit"), this.#W(y), i && this.#k(y), g && this.#N(g, y), b;
|
|
1752
|
+
let $ = this.#U(t, y, E, p), J = $.__staleWhileFetching !== void 0 && s;
|
|
1753
|
+
return g && (g.fetch = z ? "stale" : "refresh", J && z && (g.returnedStale = !0)), J ? $.__staleWhileFetching : $.__returned = $;
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
async forceFetch(t, e = {}) {
|
|
1757
|
+
let s = await this.fetch(t, e);
|
|
1758
|
+
if (s === void 0) throw new Error("fetch() returned undefined");
|
|
1759
|
+
return s;
|
|
1760
|
+
}
|
|
1761
|
+
memo(t, e = {}) {
|
|
1762
|
+
let s = this.#w;
|
|
1763
|
+
if (!s) throw new Error("no memoMethod provided to constructor");
|
|
1764
|
+
let { context: i, forceRefresh: r, ...o } = e, h = this.get(t, o);
|
|
1765
|
+
if (!r && h !== void 0) return h;
|
|
1766
|
+
let a = s(t, h, {
|
|
1767
|
+
options: o,
|
|
1768
|
+
context: i
|
|
1769
|
+
});
|
|
1770
|
+
return this.set(t, a, o), a;
|
|
1771
|
+
}
|
|
1772
|
+
get(t, e = {}) {
|
|
1773
|
+
let { allowStale: s = this.allowStale, updateAgeOnGet: i = this.updateAgeOnGet, noDeleteOnStaleGet: r = this.noDeleteOnStaleGet, status: o } = e, h = this.#f.get(t);
|
|
1774
|
+
if (h !== void 0) {
|
|
1775
|
+
let a = this.#i[h], l = this.#l(a);
|
|
1776
|
+
return o && this.#N(o, h), this.#v(h) ? (o && (o.get = "stale"), l ? (o && s && a.__staleWhileFetching !== void 0 && (o.returnedStale = !0), s ? a.__staleWhileFetching : void 0) : (r || this.#O(t, "expire"), o && s && (o.returnedStale = !0), s ? a : void 0)) : (o && (o.get = "hit"), l ? a.__staleWhileFetching : (this.#W(h), i && this.#k(h), a));
|
|
1777
|
+
} else o && (o.get = "miss");
|
|
1778
|
+
}
|
|
1779
|
+
#$(t, e) {
|
|
1780
|
+
this.#E[e] = t, this.#d[t] = e;
|
|
1781
|
+
}
|
|
1782
|
+
#W(t) {
|
|
1783
|
+
t !== this.#p && (t === this.#b ? this.#b = this.#d[t] : this.#$(this.#E[t], this.#d[t]), this.#$(this.#p, t), this.#p = t);
|
|
1784
|
+
}
|
|
1785
|
+
delete(t) {
|
|
1786
|
+
return this.#O(t, "delete");
|
|
1787
|
+
}
|
|
1788
|
+
#O(t, e) {
|
|
1789
|
+
let s = !1;
|
|
1790
|
+
if (this.#h !== 0) {
|
|
1791
|
+
let i = this.#f.get(t);
|
|
1792
|
+
if (i !== void 0) if (this.#y?.[i] && (clearTimeout(this.#y?.[i]), this.#y[i] = void 0), s = !0, this.#h === 1) this.#H(e);
|
|
1793
|
+
else {
|
|
1794
|
+
this.#P(i);
|
|
1795
|
+
let r = this.#i[i];
|
|
1796
|
+
if (this.#l(r) ? r.__abortController.abort(/* @__PURE__ */ new Error("deleted")) : (this.#x || this.#e) && (this.#x && this.#n?.(r, t, e), this.#e && this.#m?.push([
|
|
1797
|
+
r,
|
|
1798
|
+
t,
|
|
1799
|
+
e
|
|
1800
|
+
])), this.#f.delete(t), this.#a[i] = void 0, this.#i[i] = void 0, i === this.#p) this.#p = this.#E[i];
|
|
1801
|
+
else if (i === this.#b) this.#b = this.#d[i];
|
|
1802
|
+
else {
|
|
1803
|
+
let o = this.#E[i];
|
|
1804
|
+
this.#d[o] = this.#d[i];
|
|
1805
|
+
let h = this.#d[i];
|
|
1806
|
+
this.#E[h] = this.#E[i];
|
|
1807
|
+
}
|
|
1808
|
+
this.#h--, this.#R.push(i);
|
|
1809
|
+
}
|
|
1810
|
+
}
|
|
1811
|
+
if (this.#e && this.#m?.length) {
|
|
1812
|
+
let i = this.#m, r;
|
|
1813
|
+
for (; r = i?.shift();) this.#o?.(...r);
|
|
1814
|
+
}
|
|
1815
|
+
return s;
|
|
1816
|
+
}
|
|
1817
|
+
clear() {
|
|
1818
|
+
return this.#H("delete");
|
|
1819
|
+
}
|
|
1820
|
+
#H(t) {
|
|
1821
|
+
for (let e of this.#D({ allowStale: !0 })) {
|
|
1822
|
+
let s = this.#i[e];
|
|
1823
|
+
if (this.#l(s)) s.__abortController.abort(/* @__PURE__ */ new Error("deleted"));
|
|
1824
|
+
else {
|
|
1825
|
+
let i = this.#a[e];
|
|
1826
|
+
this.#x && this.#n?.(s, i, t), this.#e && this.#m?.push([
|
|
1827
|
+
s,
|
|
1828
|
+
i,
|
|
1829
|
+
t
|
|
1830
|
+
]);
|
|
1831
|
+
}
|
|
1832
|
+
}
|
|
1833
|
+
if (this.#f.clear(), this.#i.fill(void 0), this.#a.fill(void 0), this.#g && this.#T) {
|
|
1834
|
+
this.#g.fill(0), this.#T.fill(0);
|
|
1835
|
+
for (let e of this.#y ?? []) e !== void 0 && clearTimeout(e);
|
|
1836
|
+
this.#y?.fill(void 0);
|
|
1837
|
+
}
|
|
1838
|
+
if (this.#C && this.#C.fill(0), this.#b = 0, this.#p = 0, this.#R.length = 0, this.#u = 0, this.#h = 0, this.#e && this.#m) {
|
|
1839
|
+
let e = this.#m, s;
|
|
1840
|
+
for (; s = e?.shift();) this.#o?.(...s);
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
1843
|
+
};
|
|
1844
|
+
Ne = typeof process == "object" && process ? process : {
|
|
1845
|
+
stdout: null,
|
|
1846
|
+
stderr: null
|
|
1847
|
+
}, oi = (n) => !!n && typeof n == "object" && (n instanceof V || n instanceof Pe || hi(n) || ai(n)), hi = (n) => !!n && typeof n == "object" && n instanceof EventEmitter && typeof n.pipe == "function" && n.pipe !== Pe.Writable.prototype.pipe, ai = (n) => !!n && typeof n == "object" && n instanceof EventEmitter && typeof n.write == "function" && typeof n.end == "function", G = Symbol("EOF"), H = Symbol("maybeEmitEnd"), K = Symbol("emittedEnd"), kt = Symbol("emittingEnd"), ut = Symbol("emittedError"), Rt = Symbol("closed"), _e = Symbol("read"), Ot = Symbol("flush"), Le = Symbol("flushChunk"), P = Symbol("encoding"), et = Symbol("decoder"), v = Symbol("flowing"), dt = Symbol("paused"), st = Symbol("resume"), C = Symbol("buffer"), F = Symbol("pipes"), T = Symbol("bufferLength"), Yt = Symbol("bufferPush"), Ft = Symbol("bufferShift"), k = Symbol("objectMode"), x = Symbol("destroyed"), Xt = Symbol("error"), Jt = Symbol("emitData"), We = Symbol("emitEnd"), Zt = Symbol("emitEnd2"), B = Symbol("async"), Qt = Symbol("abort"), Dt = Symbol("aborted"), pt = Symbol("signal"), Y = Symbol("dataListeners"), M = Symbol("discarded"), mt = (n) => Promise.resolve().then(n), li = (n) => n(), ci = (n) => n === "end" || n === "finish" || n === "prefinish", fi = (n) => n instanceof ArrayBuffer || !!n && typeof n == "object" && n.constructor && n.constructor.name === "ArrayBuffer" && n.byteLength >= 0, ui = (n) => !Buffer.isBuffer(n) && ArrayBuffer.isView(n), Mt = class {
|
|
1848
|
+
src;
|
|
1849
|
+
dest;
|
|
1850
|
+
opts;
|
|
1851
|
+
ondrain;
|
|
1852
|
+
constructor(t, e, s) {
|
|
1853
|
+
this.src = t, this.dest = e, this.opts = s, this.ondrain = () => t[st](), this.dest.on("drain", this.ondrain);
|
|
1854
|
+
}
|
|
1855
|
+
unpipe() {
|
|
1856
|
+
this.dest.removeListener("drain", this.ondrain);
|
|
1857
|
+
}
|
|
1858
|
+
proxyErrors(t) {}
|
|
1859
|
+
end() {
|
|
1860
|
+
this.unpipe(), this.opts.end && this.dest.end();
|
|
1861
|
+
}
|
|
1862
|
+
}, te = class extends Mt {
|
|
1863
|
+
unpipe() {
|
|
1864
|
+
this.src.removeListener("error", this.proxyErrors), super.unpipe();
|
|
1865
|
+
}
|
|
1866
|
+
constructor(t, e, s) {
|
|
1867
|
+
super(t, e, s), this.proxyErrors = (i) => this.dest.emit("error", i), t.on("error", this.proxyErrors);
|
|
1868
|
+
}
|
|
1869
|
+
}, di = (n) => !!n.objectMode, pi = (n) => !n.objectMode && !!n.encoding && n.encoding !== "buffer", V = class extends EventEmitter {
|
|
1870
|
+
[v] = !1;
|
|
1871
|
+
[dt] = !1;
|
|
1872
|
+
[F] = [];
|
|
1873
|
+
[C] = [];
|
|
1874
|
+
[k];
|
|
1875
|
+
[P];
|
|
1876
|
+
[B];
|
|
1877
|
+
[et];
|
|
1878
|
+
[G] = !1;
|
|
1879
|
+
[K] = !1;
|
|
1880
|
+
[kt] = !1;
|
|
1881
|
+
[Rt] = !1;
|
|
1882
|
+
[ut] = null;
|
|
1883
|
+
[T] = 0;
|
|
1884
|
+
[x] = !1;
|
|
1885
|
+
[pt];
|
|
1886
|
+
[Dt] = !1;
|
|
1887
|
+
[Y] = 0;
|
|
1888
|
+
[M] = !1;
|
|
1889
|
+
writable = !0;
|
|
1890
|
+
readable = !0;
|
|
1891
|
+
constructor(...t) {
|
|
1892
|
+
let e = t[0] || {};
|
|
1893
|
+
if (super(), e.objectMode && typeof e.encoding == "string") throw new TypeError("Encoding and objectMode may not be used together");
|
|
1894
|
+
di(e) ? (this[k] = !0, this[P] = null) : pi(e) ? (this[P] = e.encoding, this[k] = !1) : (this[k] = !1, this[P] = null), this[B] = !!e.async, this[et] = this[P] ? new StringDecoder(this[P]) : null, e && e.debugExposeBuffer === !0 && Object.defineProperty(this, "buffer", { get: () => this[C] }), e && e.debugExposePipes === !0 && Object.defineProperty(this, "pipes", { get: () => this[F] });
|
|
1895
|
+
let { signal: s } = e;
|
|
1896
|
+
s && (this[pt] = s, s.aborted ? this[Qt]() : s.addEventListener("abort", () => this[Qt]()));
|
|
1897
|
+
}
|
|
1898
|
+
get bufferLength() {
|
|
1899
|
+
return this[T];
|
|
1900
|
+
}
|
|
1901
|
+
get encoding() {
|
|
1902
|
+
return this[P];
|
|
1903
|
+
}
|
|
1904
|
+
set encoding(t) {
|
|
1905
|
+
throw new Error("Encoding must be set at instantiation time");
|
|
1906
|
+
}
|
|
1907
|
+
setEncoding(t) {
|
|
1908
|
+
throw new Error("Encoding must be set at instantiation time");
|
|
1909
|
+
}
|
|
1910
|
+
get objectMode() {
|
|
1911
|
+
return this[k];
|
|
1912
|
+
}
|
|
1913
|
+
set objectMode(t) {
|
|
1914
|
+
throw new Error("objectMode must be set at instantiation time");
|
|
1915
|
+
}
|
|
1916
|
+
get async() {
|
|
1917
|
+
return this[B];
|
|
1918
|
+
}
|
|
1919
|
+
set async(t) {
|
|
1920
|
+
this[B] = this[B] || !!t;
|
|
1921
|
+
}
|
|
1922
|
+
[Qt]() {
|
|
1923
|
+
this[Dt] = !0, this.emit("abort", this[pt]?.reason), this.destroy(this[pt]?.reason);
|
|
1924
|
+
}
|
|
1925
|
+
get aborted() {
|
|
1926
|
+
return this[Dt];
|
|
1927
|
+
}
|
|
1928
|
+
set aborted(t) {}
|
|
1929
|
+
write(t, e, s) {
|
|
1930
|
+
if (this[Dt]) return !1;
|
|
1931
|
+
if (this[G]) throw new Error("write after end");
|
|
1932
|
+
if (this[x]) return this.emit("error", Object.assign(/* @__PURE__ */ new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), !0;
|
|
1933
|
+
typeof e == "function" && (s = e, e = "utf8"), e || (e = "utf8");
|
|
1934
|
+
let i = this[B] ? mt : li;
|
|
1935
|
+
if (!this[k] && !Buffer.isBuffer(t)) {
|
|
1936
|
+
if (ui(t)) t = Buffer.from(t.buffer, t.byteOffset, t.byteLength);
|
|
1937
|
+
else if (fi(t)) t = Buffer.from(t);
|
|
1938
|
+
else if (typeof t != "string") throw new Error("Non-contiguous data written to non-objectMode stream");
|
|
1939
|
+
}
|
|
1940
|
+
return this[k] ? (this[v] && this[T] !== 0 && this[Ot](!0), this[v] ? this.emit("data", t) : this[Yt](t), this[T] !== 0 && this.emit("readable"), s && i(s), this[v]) : t.length ? (typeof t == "string" && !(e === this[P] && !this[et]?.lastNeed) && (t = Buffer.from(t, e)), Buffer.isBuffer(t) && this[P] && (t = this[et].write(t)), this[v] && this[T] !== 0 && this[Ot](!0), this[v] ? this.emit("data", t) : this[Yt](t), this[T] !== 0 && this.emit("readable"), s && i(s), this[v]) : (this[T] !== 0 && this.emit("readable"), s && i(s), this[v]);
|
|
1941
|
+
}
|
|
1942
|
+
read(t) {
|
|
1943
|
+
if (this[x]) return null;
|
|
1944
|
+
if (this[M] = !1, this[T] === 0 || t === 0 || t && t > this[T]) return this[H](), null;
|
|
1945
|
+
this[k] && (t = null), this[C].length > 1 && !this[k] && (this[C] = [this[P] ? this[C].join("") : Buffer.concat(this[C], this[T])]);
|
|
1946
|
+
let e = this[_e](t || null, this[C][0]);
|
|
1947
|
+
return this[H](), e;
|
|
1948
|
+
}
|
|
1949
|
+
[_e](t, e) {
|
|
1950
|
+
if (this[k]) this[Ft]();
|
|
1951
|
+
else {
|
|
1952
|
+
let s = e;
|
|
1953
|
+
t === s.length || t === null ? this[Ft]() : typeof s == "string" ? (this[C][0] = s.slice(t), e = s.slice(0, t), this[T] -= t) : (this[C][0] = s.subarray(t), e = s.subarray(0, t), this[T] -= t);
|
|
1954
|
+
}
|
|
1955
|
+
return this.emit("data", e), !this[C].length && !this[G] && this.emit("drain"), e;
|
|
1956
|
+
}
|
|
1957
|
+
end(t, e, s) {
|
|
1958
|
+
return typeof t == "function" && (s = t, t = void 0), typeof e == "function" && (s = e, e = "utf8"), t !== void 0 && this.write(t, e), s && this.once("end", s), this[G] = !0, this.writable = !1, (this[v] || !this[dt]) && this[H](), this;
|
|
1959
|
+
}
|
|
1960
|
+
[st]() {
|
|
1961
|
+
this[x] || (!this[Y] && !this[F].length && (this[M] = !0), this[dt] = !1, this[v] = !0, this.emit("resume"), this[C].length ? this[Ot]() : this[G] ? this[H]() : this.emit("drain"));
|
|
1962
|
+
}
|
|
1963
|
+
resume() {
|
|
1964
|
+
return this[st]();
|
|
1965
|
+
}
|
|
1966
|
+
pause() {
|
|
1967
|
+
this[v] = !1, this[dt] = !0, this[M] = !1;
|
|
1968
|
+
}
|
|
1969
|
+
get destroyed() {
|
|
1970
|
+
return this[x];
|
|
1971
|
+
}
|
|
1972
|
+
get flowing() {
|
|
1973
|
+
return this[v];
|
|
1974
|
+
}
|
|
1975
|
+
get paused() {
|
|
1976
|
+
return this[dt];
|
|
1977
|
+
}
|
|
1978
|
+
[Yt](t) {
|
|
1979
|
+
this[k] ? this[T] += 1 : this[T] += t.length, this[C].push(t);
|
|
1980
|
+
}
|
|
1981
|
+
[Ft]() {
|
|
1982
|
+
return this[k] ? this[T] -= 1 : this[T] -= this[C][0].length, this[C].shift();
|
|
1983
|
+
}
|
|
1984
|
+
[Ot](t = !1) {
|
|
1985
|
+
do ;
|
|
1986
|
+
while (this[Le](this[Ft]()) && this[C].length);
|
|
1987
|
+
!t && !this[C].length && !this[G] && this.emit("drain");
|
|
1988
|
+
}
|
|
1989
|
+
[Le](t) {
|
|
1990
|
+
return this.emit("data", t), this[v];
|
|
1991
|
+
}
|
|
1992
|
+
pipe(t, e) {
|
|
1993
|
+
if (this[x]) return t;
|
|
1994
|
+
this[M] = !1;
|
|
1995
|
+
let s = this[K];
|
|
1996
|
+
return e = e || {}, t === Ne.stdout || t === Ne.stderr ? e.end = !1 : e.end = e.end !== !1, e.proxyErrors = !!e.proxyErrors, s ? e.end && t.end() : (this[F].push(e.proxyErrors ? new te(this, t, e) : new Mt(this, t, e)), this[B] ? mt(() => this[st]()) : this[st]()), t;
|
|
1997
|
+
}
|
|
1998
|
+
unpipe(t) {
|
|
1999
|
+
let e = this[F].find((s) => s.dest === t);
|
|
2000
|
+
e && (this[F].length === 1 ? (this[v] && this[Y] === 0 && (this[v] = !1), this[F] = []) : this[F].splice(this[F].indexOf(e), 1), e.unpipe());
|
|
2001
|
+
}
|
|
2002
|
+
addListener(t, e) {
|
|
2003
|
+
return this.on(t, e);
|
|
2004
|
+
}
|
|
2005
|
+
on(t, e) {
|
|
2006
|
+
let s = super.on(t, e);
|
|
2007
|
+
if (t === "data") this[M] = !1, this[Y]++, !this[F].length && !this[v] && this[st]();
|
|
2008
|
+
else if (t === "readable" && this[T] !== 0) super.emit("readable");
|
|
2009
|
+
else if (ci(t) && this[K]) super.emit(t), this.removeAllListeners(t);
|
|
2010
|
+
else if (t === "error" && this[ut]) {
|
|
2011
|
+
let i = e;
|
|
2012
|
+
this[B] ? mt(() => i.call(this, this[ut])) : i.call(this, this[ut]);
|
|
2013
|
+
}
|
|
2014
|
+
return s;
|
|
2015
|
+
}
|
|
2016
|
+
removeListener(t, e) {
|
|
2017
|
+
return this.off(t, e);
|
|
2018
|
+
}
|
|
2019
|
+
off(t, e) {
|
|
2020
|
+
let s = super.off(t, e);
|
|
2021
|
+
return t === "data" && (this[Y] = this.listeners("data").length, this[Y] === 0 && !this[M] && !this[F].length && (this[v] = !1)), s;
|
|
2022
|
+
}
|
|
2023
|
+
removeAllListeners(t) {
|
|
2024
|
+
let e = super.removeAllListeners(t);
|
|
2025
|
+
return (t === "data" || t === void 0) && (this[Y] = 0, !this[M] && !this[F].length && (this[v] = !1)), e;
|
|
2026
|
+
}
|
|
2027
|
+
get emittedEnd() {
|
|
2028
|
+
return this[K];
|
|
2029
|
+
}
|
|
2030
|
+
[H]() {
|
|
2031
|
+
!this[kt] && !this[K] && !this[x] && this[C].length === 0 && this[G] && (this[kt] = !0, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[Rt] && this.emit("close"), this[kt] = !1);
|
|
2032
|
+
}
|
|
2033
|
+
emit(t, ...e) {
|
|
2034
|
+
let s = e[0];
|
|
2035
|
+
if (t !== "error" && t !== "close" && t !== x && this[x]) return !1;
|
|
2036
|
+
if (t === "data") return !this[k] && !s ? !1 : this[B] ? (mt(() => this[Jt](s)), !0) : this[Jt](s);
|
|
2037
|
+
if (t === "end") return this[We]();
|
|
2038
|
+
if (t === "close") {
|
|
2039
|
+
if (this[Rt] = !0, !this[K] && !this[x]) return !1;
|
|
2040
|
+
let r = super.emit("close");
|
|
2041
|
+
return this.removeAllListeners("close"), r;
|
|
2042
|
+
} else if (t === "error") {
|
|
2043
|
+
this[ut] = s, super.emit(Xt, s);
|
|
2044
|
+
let r = !this[pt] || this.listeners("error").length ? super.emit("error", s) : !1;
|
|
2045
|
+
return this[H](), r;
|
|
2046
|
+
} else if (t === "resume") {
|
|
2047
|
+
let r = super.emit("resume");
|
|
2048
|
+
return this[H](), r;
|
|
2049
|
+
} else if (t === "finish" || t === "prefinish") {
|
|
2050
|
+
let r = super.emit(t);
|
|
2051
|
+
return this.removeAllListeners(t), r;
|
|
2052
|
+
}
|
|
2053
|
+
let i = super.emit(t, ...e);
|
|
2054
|
+
return this[H](), i;
|
|
2055
|
+
}
|
|
2056
|
+
[Jt](t) {
|
|
2057
|
+
for (let s of this[F]) s.dest.write(t) === !1 && this.pause();
|
|
2058
|
+
let e = this[M] ? !1 : super.emit("data", t);
|
|
2059
|
+
return this[H](), e;
|
|
2060
|
+
}
|
|
2061
|
+
[We]() {
|
|
2062
|
+
return this[K] ? !1 : (this[K] = !0, this.readable = !1, this[B] ? (mt(() => this[Zt]()), !0) : this[Zt]());
|
|
2063
|
+
}
|
|
2064
|
+
[Zt]() {
|
|
2065
|
+
if (this[et]) {
|
|
2066
|
+
let e = this[et].end();
|
|
2067
|
+
if (e) {
|
|
2068
|
+
for (let s of this[F]) s.dest.write(e);
|
|
2069
|
+
this[M] || super.emit("data", e);
|
|
2070
|
+
}
|
|
2071
|
+
}
|
|
2072
|
+
for (let e of this[F]) e.end();
|
|
2073
|
+
let t = super.emit("end");
|
|
2074
|
+
return this.removeAllListeners("end"), t;
|
|
2075
|
+
}
|
|
2076
|
+
async collect() {
|
|
2077
|
+
let t = Object.assign([], { dataLength: 0 });
|
|
2078
|
+
this[k] || (t.dataLength = 0);
|
|
2079
|
+
let e = this.promise();
|
|
2080
|
+
return this.on("data", (s) => {
|
|
2081
|
+
t.push(s), this[k] || (t.dataLength += s.length);
|
|
2082
|
+
}), await e, t;
|
|
2083
|
+
}
|
|
2084
|
+
async concat() {
|
|
2085
|
+
if (this[k]) throw new Error("cannot concat in objectMode");
|
|
2086
|
+
let t = await this.collect();
|
|
2087
|
+
return this[P] ? t.join("") : Buffer.concat(t, t.dataLength);
|
|
2088
|
+
}
|
|
2089
|
+
async promise() {
|
|
2090
|
+
return new Promise((t, e) => {
|
|
2091
|
+
this.on(x, () => e(/* @__PURE__ */ new Error("stream destroyed"))), this.on("error", (s) => e(s)), this.on("end", () => t());
|
|
2092
|
+
});
|
|
2093
|
+
}
|
|
2094
|
+
[Symbol.asyncIterator]() {
|
|
2095
|
+
this[M] = !1;
|
|
2096
|
+
let t = !1, e = async () => (this.pause(), t = !0, {
|
|
2097
|
+
value: void 0,
|
|
2098
|
+
done: !0
|
|
2099
|
+
});
|
|
2100
|
+
return {
|
|
2101
|
+
next: () => {
|
|
2102
|
+
if (t) return e();
|
|
2103
|
+
let i = this.read();
|
|
2104
|
+
if (i !== null) return Promise.resolve({
|
|
2105
|
+
done: !1,
|
|
2106
|
+
value: i
|
|
2107
|
+
});
|
|
2108
|
+
if (this[G]) return e();
|
|
2109
|
+
let r, o, h = (c) => {
|
|
2110
|
+
this.off("data", a), this.off("end", l), this.off(x, u), e(), o(c);
|
|
2111
|
+
}, a = (c) => {
|
|
2112
|
+
this.off("error", h), this.off("end", l), this.off(x, u), this.pause(), r({
|
|
2113
|
+
value: c,
|
|
2114
|
+
done: !!this[G]
|
|
2115
|
+
});
|
|
2116
|
+
}, l = () => {
|
|
2117
|
+
this.off("error", h), this.off("data", a), this.off(x, u), e(), r({
|
|
2118
|
+
done: !0,
|
|
2119
|
+
value: void 0
|
|
2120
|
+
});
|
|
2121
|
+
}, u = () => h(/* @__PURE__ */ new Error("stream destroyed"));
|
|
2122
|
+
return new Promise((c, d) => {
|
|
2123
|
+
o = d, r = c, this.once(x, u), this.once("error", h), this.once("end", l), this.once("data", a);
|
|
2124
|
+
});
|
|
2125
|
+
},
|
|
2126
|
+
throw: e,
|
|
2127
|
+
return: e,
|
|
2128
|
+
[Symbol.asyncIterator]() {
|
|
2129
|
+
return this;
|
|
2130
|
+
},
|
|
2131
|
+
[Symbol.asyncDispose]: async () => {}
|
|
2132
|
+
};
|
|
2133
|
+
}
|
|
2134
|
+
[Symbol.iterator]() {
|
|
2135
|
+
this[M] = !1;
|
|
2136
|
+
let t = !1, e = () => (this.pause(), this.off(Xt, e), this.off(x, e), this.off("end", e), t = !0, {
|
|
2137
|
+
done: !0,
|
|
2138
|
+
value: void 0
|
|
2139
|
+
}), s = () => {
|
|
2140
|
+
if (t) return e();
|
|
2141
|
+
let i = this.read();
|
|
2142
|
+
return i === null ? e() : {
|
|
2143
|
+
done: !1,
|
|
2144
|
+
value: i
|
|
2145
|
+
};
|
|
2146
|
+
};
|
|
2147
|
+
return this.once("end", e), this.once(Xt, e), this.once(x, e), {
|
|
2148
|
+
next: s,
|
|
2149
|
+
throw: e,
|
|
2150
|
+
return: e,
|
|
2151
|
+
[Symbol.iterator]() {
|
|
2152
|
+
return this;
|
|
2153
|
+
},
|
|
2154
|
+
[Symbol.dispose]: () => {}
|
|
2155
|
+
};
|
|
2156
|
+
}
|
|
2157
|
+
destroy(t) {
|
|
2158
|
+
if (this[x]) return t ? this.emit("error", t) : this.emit(x), this;
|
|
2159
|
+
this[x] = !0, this[M] = !0, this[C].length = 0, this[T] = 0;
|
|
2160
|
+
let e = this;
|
|
2161
|
+
return typeof e.close == "function" && !this[Rt] && e.close(), t ? this.emit("error", t) : this.emit(x), this;
|
|
2162
|
+
}
|
|
2163
|
+
static get isStream() {
|
|
2164
|
+
return oi;
|
|
2165
|
+
}
|
|
2166
|
+
}, wt = {
|
|
2167
|
+
lstatSync,
|
|
2168
|
+
readdir,
|
|
2169
|
+
readdirSync,
|
|
2170
|
+
readlinkSync,
|
|
2171
|
+
realpathSync: realpathSync.native,
|
|
2172
|
+
promises: {
|
|
2173
|
+
lstat,
|
|
2174
|
+
readdir: readdir$1,
|
|
2175
|
+
readlink,
|
|
2176
|
+
realpath
|
|
2177
|
+
}
|
|
2178
|
+
}, Ue = (n) => !n || n === wt || n === xi ? wt : {
|
|
2179
|
+
...wt,
|
|
2180
|
+
...n,
|
|
2181
|
+
promises: {
|
|
2182
|
+
...wt.promises,
|
|
2183
|
+
...n.promises || {}
|
|
2184
|
+
}
|
|
2185
|
+
}, $e = /^\\\\\?\\([a-z]:)\\?$/i, Ri = (n) => n.replace(/\//g, "\\").replace($e, "$1\\"), Oi = /[\\\/]/, L = 0, Ge = 1, He = 2, U = 4, qe = 6, Ke = 8, X = 10, Ve = 12, _ = 15, gt = ~_, se = 16, je = 32, yt = 64, j = 128, Nt = 256, Lt = 512, Ie = yt | j | Lt, Fi = 1023, ie = (n) => n.isFile() ? Ke : n.isDirectory() ? U : n.isSymbolicLink() ? X : n.isCharacterDevice() ? He : n.isBlockDevice() ? qe : n.isSocket() ? Ve : n.isFIFO() ? Ge : L, ze = new ft({ max: 2 ** 12 }), bt = (n) => {
|
|
2186
|
+
let t = ze.get(n);
|
|
2187
|
+
if (t) return t;
|
|
2188
|
+
let e = n.normalize("NFKD");
|
|
2189
|
+
return ze.set(n, e), e;
|
|
2190
|
+
}, Be = new ft({ max: 2 ** 12 }), _t = (n) => {
|
|
2191
|
+
let t = Be.get(n);
|
|
2192
|
+
if (t) return t;
|
|
2193
|
+
let e = bt(n.toLowerCase());
|
|
2194
|
+
return Be.set(n, e), e;
|
|
2195
|
+
}, Wt = class extends ft {
|
|
2196
|
+
constructor() {
|
|
2197
|
+
super({ max: 256 });
|
|
2198
|
+
}
|
|
2199
|
+
}, ne = class extends ft {
|
|
2200
|
+
constructor(t = 16 * 1024) {
|
|
2201
|
+
super({
|
|
2202
|
+
maxSize: t,
|
|
2203
|
+
sizeCalculation: (e) => e.length + 1
|
|
2204
|
+
});
|
|
2205
|
+
}
|
|
2206
|
+
}, Ye = Symbol("PathScurry setAsCwd"), R = class {
|
|
2207
|
+
name;
|
|
2208
|
+
root;
|
|
2209
|
+
roots;
|
|
2210
|
+
parent;
|
|
2211
|
+
nocase;
|
|
2212
|
+
isCWD = !1;
|
|
2213
|
+
#t;
|
|
2214
|
+
#s;
|
|
2215
|
+
get dev() {
|
|
2216
|
+
return this.#s;
|
|
2217
|
+
}
|
|
2218
|
+
#n;
|
|
2219
|
+
get mode() {
|
|
2220
|
+
return this.#n;
|
|
2221
|
+
}
|
|
2222
|
+
#r;
|
|
2223
|
+
get nlink() {
|
|
2224
|
+
return this.#r;
|
|
2225
|
+
}
|
|
2226
|
+
#o;
|
|
2227
|
+
get uid() {
|
|
2228
|
+
return this.#o;
|
|
2229
|
+
}
|
|
2230
|
+
#S;
|
|
2231
|
+
get gid() {
|
|
2232
|
+
return this.#S;
|
|
2233
|
+
}
|
|
2234
|
+
#w;
|
|
2235
|
+
get rdev() {
|
|
2236
|
+
return this.#w;
|
|
2237
|
+
}
|
|
2238
|
+
#c;
|
|
2239
|
+
get blksize() {
|
|
2240
|
+
return this.#c;
|
|
2241
|
+
}
|
|
2242
|
+
#h;
|
|
2243
|
+
get ino() {
|
|
2244
|
+
return this.#h;
|
|
2245
|
+
}
|
|
2246
|
+
#u;
|
|
2247
|
+
get size() {
|
|
2248
|
+
return this.#u;
|
|
2249
|
+
}
|
|
2250
|
+
#f;
|
|
2251
|
+
get blocks() {
|
|
2252
|
+
return this.#f;
|
|
2253
|
+
}
|
|
2254
|
+
#a;
|
|
2255
|
+
get atimeMs() {
|
|
2256
|
+
return this.#a;
|
|
2257
|
+
}
|
|
2258
|
+
#i;
|
|
2259
|
+
get mtimeMs() {
|
|
2260
|
+
return this.#i;
|
|
2261
|
+
}
|
|
2262
|
+
#d;
|
|
2263
|
+
get ctimeMs() {
|
|
2264
|
+
return this.#d;
|
|
2265
|
+
}
|
|
2266
|
+
#E;
|
|
2267
|
+
get birthtimeMs() {
|
|
2268
|
+
return this.#E;
|
|
2269
|
+
}
|
|
2270
|
+
#b;
|
|
2271
|
+
get atime() {
|
|
2272
|
+
return this.#b;
|
|
2273
|
+
}
|
|
2274
|
+
#p;
|
|
2275
|
+
get mtime() {
|
|
2276
|
+
return this.#p;
|
|
2277
|
+
}
|
|
2278
|
+
#R;
|
|
2279
|
+
get ctime() {
|
|
2280
|
+
return this.#R;
|
|
2281
|
+
}
|
|
2282
|
+
#m;
|
|
2283
|
+
get birthtime() {
|
|
2284
|
+
return this.#m;
|
|
2285
|
+
}
|
|
2286
|
+
#C;
|
|
2287
|
+
#T;
|
|
2288
|
+
#g;
|
|
2289
|
+
#y;
|
|
2290
|
+
#x;
|
|
2291
|
+
#A;
|
|
2292
|
+
#e;
|
|
2293
|
+
#_;
|
|
2294
|
+
#M;
|
|
2295
|
+
#k;
|
|
2296
|
+
get parentPath() {
|
|
2297
|
+
return (this.parent || this).fullpath();
|
|
2298
|
+
}
|
|
2299
|
+
get path() {
|
|
2300
|
+
return this.parentPath;
|
|
2301
|
+
}
|
|
2302
|
+
constructor(t, e = L, s, i, r, o, h) {
|
|
2303
|
+
this.name = t, this.#C = r ? _t(t) : bt(t), this.#e = e & Fi, this.nocase = r, this.roots = i, this.root = s || this, this.#_ = o, this.#g = h.fullpath, this.#x = h.relative, this.#A = h.relativePosix, this.parent = h.parent, this.parent ? this.#t = this.parent.#t : this.#t = Ue(h.fs);
|
|
2304
|
+
}
|
|
2305
|
+
depth() {
|
|
2306
|
+
return this.#T !== void 0 ? this.#T : this.parent ? this.#T = this.parent.depth() + 1 : this.#T = 0;
|
|
2307
|
+
}
|
|
2308
|
+
childrenCache() {
|
|
2309
|
+
return this.#_;
|
|
2310
|
+
}
|
|
2311
|
+
resolve(t) {
|
|
2312
|
+
if (!t) return this;
|
|
2313
|
+
let e = this.getRootString(t), i = t.substring(e.length).split(this.splitSep);
|
|
2314
|
+
return e ? this.getRoot(e).#N(i) : this.#N(i);
|
|
2315
|
+
}
|
|
2316
|
+
#N(t) {
|
|
2317
|
+
let e = this;
|
|
2318
|
+
for (let s of t) e = e.child(s);
|
|
2319
|
+
return e;
|
|
2320
|
+
}
|
|
2321
|
+
children() {
|
|
2322
|
+
let t = this.#_.get(this);
|
|
2323
|
+
if (t) return t;
|
|
2324
|
+
let e = Object.assign([], { provisional: 0 });
|
|
2325
|
+
return this.#_.set(this, e), this.#e &= ~se, e;
|
|
2326
|
+
}
|
|
2327
|
+
child(t, e) {
|
|
2328
|
+
if (t === "" || t === ".") return this;
|
|
2329
|
+
if (t === "..") return this.parent || this;
|
|
2330
|
+
let s = this.children(), i = this.nocase ? _t(t) : bt(t);
|
|
2331
|
+
for (let a of s) if (a.#C === i) return a;
|
|
2332
|
+
let r = this.parent ? this.sep : "", o = this.#g ? this.#g + r + t : void 0, h = this.newChild(t, L, {
|
|
2333
|
+
...e,
|
|
2334
|
+
parent: this,
|
|
2335
|
+
fullpath: o
|
|
2336
|
+
});
|
|
2337
|
+
return this.canReaddir() || (h.#e |= j), s.push(h), h;
|
|
2338
|
+
}
|
|
2339
|
+
relative() {
|
|
2340
|
+
if (this.isCWD) return "";
|
|
2341
|
+
if (this.#x !== void 0) return this.#x;
|
|
2342
|
+
let t = this.name, e = this.parent;
|
|
2343
|
+
if (!e) return this.#x = this.name;
|
|
2344
|
+
let s = e.relative();
|
|
2345
|
+
return s + (!s || !e.parent ? "" : this.sep) + t;
|
|
2346
|
+
}
|
|
2347
|
+
relativePosix() {
|
|
2348
|
+
if (this.sep === "/") return this.relative();
|
|
2349
|
+
if (this.isCWD) return "";
|
|
2350
|
+
if (this.#A !== void 0) return this.#A;
|
|
2351
|
+
let t = this.name, e = this.parent;
|
|
2352
|
+
if (!e) return this.#A = this.fullpathPosix();
|
|
2353
|
+
let s = e.relativePosix();
|
|
2354
|
+
return s + (!s || !e.parent ? "" : "/") + t;
|
|
2355
|
+
}
|
|
2356
|
+
fullpath() {
|
|
2357
|
+
if (this.#g !== void 0) return this.#g;
|
|
2358
|
+
let t = this.name, e = this.parent;
|
|
2359
|
+
if (!e) return this.#g = this.name;
|
|
2360
|
+
let i = e.fullpath() + (e.parent ? this.sep : "") + t;
|
|
2361
|
+
return this.#g = i;
|
|
2362
|
+
}
|
|
2363
|
+
fullpathPosix() {
|
|
2364
|
+
if (this.#y !== void 0) return this.#y;
|
|
2365
|
+
if (this.sep === "/") return this.#y = this.fullpath();
|
|
2366
|
+
if (!this.parent) {
|
|
2367
|
+
let i = this.fullpath().replace(/\\/g, "/");
|
|
2368
|
+
return /^[a-z]:\//i.test(i) ? this.#y = `//?/${i}` : this.#y = i;
|
|
2369
|
+
}
|
|
2370
|
+
let t = this.parent, e = t.fullpathPosix(), s = e + (!e || !t.parent ? "" : "/") + this.name;
|
|
2371
|
+
return this.#y = s;
|
|
2372
|
+
}
|
|
2373
|
+
isUnknown() {
|
|
2374
|
+
return (this.#e & _) === L;
|
|
2375
|
+
}
|
|
2376
|
+
isType(t) {
|
|
2377
|
+
return this[`is${t}`]();
|
|
2378
|
+
}
|
|
2379
|
+
getType() {
|
|
2380
|
+
return this.isUnknown() ? "Unknown" : this.isDirectory() ? "Directory" : this.isFile() ? "File" : this.isSymbolicLink() ? "SymbolicLink" : this.isFIFO() ? "FIFO" : this.isCharacterDevice() ? "CharacterDevice" : this.isBlockDevice() ? "BlockDevice" : this.isSocket() ? "Socket" : "Unknown";
|
|
2381
|
+
}
|
|
2382
|
+
isFile() {
|
|
2383
|
+
return (this.#e & _) === Ke;
|
|
2384
|
+
}
|
|
2385
|
+
isDirectory() {
|
|
2386
|
+
return (this.#e & _) === U;
|
|
2387
|
+
}
|
|
2388
|
+
isCharacterDevice() {
|
|
2389
|
+
return (this.#e & _) === He;
|
|
2390
|
+
}
|
|
2391
|
+
isBlockDevice() {
|
|
2392
|
+
return (this.#e & _) === qe;
|
|
2393
|
+
}
|
|
2394
|
+
isFIFO() {
|
|
2395
|
+
return (this.#e & _) === Ge;
|
|
2396
|
+
}
|
|
2397
|
+
isSocket() {
|
|
2398
|
+
return (this.#e & _) === Ve;
|
|
2399
|
+
}
|
|
2400
|
+
isSymbolicLink() {
|
|
2401
|
+
return (this.#e & X) === X;
|
|
2402
|
+
}
|
|
2403
|
+
lstatCached() {
|
|
2404
|
+
return this.#e & je ? this : void 0;
|
|
2405
|
+
}
|
|
2406
|
+
readlinkCached() {
|
|
2407
|
+
return this.#M;
|
|
2408
|
+
}
|
|
2409
|
+
realpathCached() {
|
|
2410
|
+
return this.#k;
|
|
2411
|
+
}
|
|
2412
|
+
readdirCached() {
|
|
2413
|
+
let t = this.children();
|
|
2414
|
+
return t.slice(0, t.provisional);
|
|
2415
|
+
}
|
|
2416
|
+
canReadlink() {
|
|
2417
|
+
if (this.#M) return !0;
|
|
2418
|
+
if (!this.parent) return !1;
|
|
2419
|
+
let t = this.#e & _;
|
|
2420
|
+
return !(t !== L && t !== X || this.#e & Nt || this.#e & j);
|
|
2421
|
+
}
|
|
2422
|
+
calledReaddir() {
|
|
2423
|
+
return !!(this.#e & se);
|
|
2424
|
+
}
|
|
2425
|
+
isENOENT() {
|
|
2426
|
+
return !!(this.#e & j);
|
|
2427
|
+
}
|
|
2428
|
+
isNamed(t) {
|
|
2429
|
+
return this.nocase ? this.#C === _t(t) : this.#C === bt(t);
|
|
2430
|
+
}
|
|
2431
|
+
async readlink() {
|
|
2432
|
+
let t = this.#M;
|
|
2433
|
+
if (t) return t;
|
|
2434
|
+
if (this.canReadlink() && this.parent) try {
|
|
2435
|
+
let e = await this.#t.promises.readlink(this.fullpath()), s = (await this.parent.realpath())?.resolve(e);
|
|
2436
|
+
if (s) return this.#M = s;
|
|
2437
|
+
} catch (e) {
|
|
2438
|
+
this.#D(e.code);
|
|
2439
|
+
return;
|
|
2440
|
+
}
|
|
2441
|
+
}
|
|
2442
|
+
readlinkSync() {
|
|
2443
|
+
let t = this.#M;
|
|
2444
|
+
if (t) return t;
|
|
2445
|
+
if (this.canReadlink() && this.parent) try {
|
|
2446
|
+
let e = this.#t.readlinkSync(this.fullpath()), s = this.parent.realpathSync()?.resolve(e);
|
|
2447
|
+
if (s) return this.#M = s;
|
|
2448
|
+
} catch (e) {
|
|
2449
|
+
this.#D(e.code);
|
|
2450
|
+
return;
|
|
2451
|
+
}
|
|
2452
|
+
}
|
|
2453
|
+
#j(t) {
|
|
2454
|
+
this.#e |= se;
|
|
2455
|
+
for (let e = t.provisional; e < t.length; e++) {
|
|
2456
|
+
let s = t[e];
|
|
2457
|
+
s && s.#v();
|
|
2458
|
+
}
|
|
2459
|
+
}
|
|
2460
|
+
#v() {
|
|
2461
|
+
this.#e & j || (this.#e = (this.#e | j) & gt, this.#G());
|
|
2462
|
+
}
|
|
2463
|
+
#G() {
|
|
2464
|
+
let t = this.children();
|
|
2465
|
+
t.provisional = 0;
|
|
2466
|
+
for (let e of t) e.#v();
|
|
2467
|
+
}
|
|
2468
|
+
#P() {
|
|
2469
|
+
this.#e |= Lt, this.#L();
|
|
2470
|
+
}
|
|
2471
|
+
#L() {
|
|
2472
|
+
if (this.#e & yt) return;
|
|
2473
|
+
let t = this.#e;
|
|
2474
|
+
(t & _) === U && (t &= gt), this.#e = t | yt, this.#G();
|
|
2475
|
+
}
|
|
2476
|
+
#I(t = "") {
|
|
2477
|
+
t === "ENOTDIR" || t === "EPERM" ? this.#L() : t === "ENOENT" ? this.#v() : this.children().provisional = 0;
|
|
2478
|
+
}
|
|
2479
|
+
#F(t = "") {
|
|
2480
|
+
t === "ENOTDIR" ? this.parent.#L() : t === "ENOENT" && this.#v();
|
|
2481
|
+
}
|
|
2482
|
+
#D(t = "") {
|
|
2483
|
+
let e = this.#e;
|
|
2484
|
+
e |= Nt, t === "ENOENT" && (e |= j), (t === "EINVAL" || t === "UNKNOWN") && (e &= gt), this.#e = e, t === "ENOTDIR" && this.parent && this.parent.#L();
|
|
2485
|
+
}
|
|
2486
|
+
#z(t, e) {
|
|
2487
|
+
return this.#U(t, e) || this.#B(t, e);
|
|
2488
|
+
}
|
|
2489
|
+
#B(t, e) {
|
|
2490
|
+
let s = ie(t), i = this.newChild(t.name, s, { parent: this }), r = i.#e & _;
|
|
2491
|
+
return r !== U && r !== X && r !== L && (i.#e |= yt), e.unshift(i), e.provisional++, i;
|
|
2492
|
+
}
|
|
2493
|
+
#U(t, e) {
|
|
2494
|
+
for (let s = e.provisional; s < e.length; s++) {
|
|
2495
|
+
let i = e[s];
|
|
2496
|
+
if ((this.nocase ? _t(t.name) : bt(t.name)) === i.#C) return this.#l(t, i, s, e);
|
|
2497
|
+
}
|
|
2498
|
+
}
|
|
2499
|
+
#l(t, e, s, i) {
|
|
2500
|
+
let r = e.name;
|
|
2501
|
+
return e.#e = e.#e & gt | ie(t), r !== t.name && (e.name = t.name), s !== i.provisional && (s === i.length - 1 ? i.pop() : i.splice(s, 1), i.unshift(e)), i.provisional++, e;
|
|
2502
|
+
}
|
|
2503
|
+
async lstat() {
|
|
2504
|
+
if ((this.#e & j) === 0) try {
|
|
2505
|
+
return this.#$(await this.#t.promises.lstat(this.fullpath())), this;
|
|
2506
|
+
} catch (t) {
|
|
2507
|
+
this.#F(t.code);
|
|
2508
|
+
}
|
|
2509
|
+
}
|
|
2510
|
+
lstatSync() {
|
|
2511
|
+
if ((this.#e & j) === 0) try {
|
|
2512
|
+
return this.#$(this.#t.lstatSync(this.fullpath())), this;
|
|
2513
|
+
} catch (t) {
|
|
2514
|
+
this.#F(t.code);
|
|
2515
|
+
}
|
|
2516
|
+
}
|
|
2517
|
+
#$(t) {
|
|
2518
|
+
let { atime: e, atimeMs: s, birthtime: i, birthtimeMs: r, blksize: o, blocks: h, ctime: a, ctimeMs: l, dev: u, gid: c, ino: d, mode: f, mtime: m, mtimeMs: p, nlink: w, rdev: g, size: S, uid: E } = t;
|
|
2519
|
+
this.#b = e, this.#a = s, this.#m = i, this.#E = r, this.#c = o, this.#f = h, this.#R = a, this.#d = l, this.#s = u, this.#S = c, this.#h = d, this.#n = f, this.#p = m, this.#i = p, this.#r = w, this.#w = g, this.#u = S, this.#o = E;
|
|
2520
|
+
let y = ie(t);
|
|
2521
|
+
this.#e = this.#e & gt | y | je, y !== L && y !== U && y !== X && (this.#e |= yt);
|
|
2522
|
+
}
|
|
2523
|
+
#W = [];
|
|
2524
|
+
#O = !1;
|
|
2525
|
+
#H(t) {
|
|
2526
|
+
this.#O = !1;
|
|
2527
|
+
let e = this.#W.slice();
|
|
2528
|
+
this.#W.length = 0, e.forEach((s) => s(null, t));
|
|
2529
|
+
}
|
|
2530
|
+
readdirCB(t, e = !1) {
|
|
2531
|
+
if (!this.canReaddir()) {
|
|
2532
|
+
e ? t(null, []) : queueMicrotask(() => t(null, []));
|
|
2533
|
+
return;
|
|
2534
|
+
}
|
|
2535
|
+
let s = this.children();
|
|
2536
|
+
if (this.calledReaddir()) {
|
|
2537
|
+
let r = s.slice(0, s.provisional);
|
|
2538
|
+
e ? t(null, r) : queueMicrotask(() => t(null, r));
|
|
2539
|
+
return;
|
|
2540
|
+
}
|
|
2541
|
+
if (this.#W.push(t), this.#O) return;
|
|
2542
|
+
this.#O = !0;
|
|
2543
|
+
let i = this.fullpath();
|
|
2544
|
+
this.#t.readdir(i, { withFileTypes: !0 }, (r, o) => {
|
|
2545
|
+
if (r) this.#I(r.code), s.provisional = 0;
|
|
2546
|
+
else {
|
|
2547
|
+
for (let h of o) this.#z(h, s);
|
|
2548
|
+
this.#j(s);
|
|
2549
|
+
}
|
|
2550
|
+
this.#H(s.slice(0, s.provisional));
|
|
2551
|
+
});
|
|
2552
|
+
}
|
|
2553
|
+
#q;
|
|
2554
|
+
async readdir() {
|
|
2555
|
+
if (!this.canReaddir()) return [];
|
|
2556
|
+
let t = this.children();
|
|
2557
|
+
if (this.calledReaddir()) return t.slice(0, t.provisional);
|
|
2558
|
+
let e = this.fullpath();
|
|
2559
|
+
if (this.#q) await this.#q;
|
|
2560
|
+
else {
|
|
2561
|
+
let s = () => {};
|
|
2562
|
+
this.#q = new Promise((i) => s = i);
|
|
2563
|
+
try {
|
|
2564
|
+
for (let i of await this.#t.promises.readdir(e, { withFileTypes: !0 })) this.#z(i, t);
|
|
2565
|
+
this.#j(t);
|
|
2566
|
+
} catch (i) {
|
|
2567
|
+
this.#I(i.code), t.provisional = 0;
|
|
2568
|
+
}
|
|
2569
|
+
this.#q = void 0, s();
|
|
2570
|
+
}
|
|
2571
|
+
return t.slice(0, t.provisional);
|
|
2572
|
+
}
|
|
2573
|
+
readdirSync() {
|
|
2574
|
+
if (!this.canReaddir()) return [];
|
|
2575
|
+
let t = this.children();
|
|
2576
|
+
if (this.calledReaddir()) return t.slice(0, t.provisional);
|
|
2577
|
+
let e = this.fullpath();
|
|
2578
|
+
try {
|
|
2579
|
+
for (let s of this.#t.readdirSync(e, { withFileTypes: !0 })) this.#z(s, t);
|
|
2580
|
+
this.#j(t);
|
|
2581
|
+
} catch (s) {
|
|
2582
|
+
this.#I(s.code), t.provisional = 0;
|
|
2583
|
+
}
|
|
2584
|
+
return t.slice(0, t.provisional);
|
|
2585
|
+
}
|
|
2586
|
+
canReaddir() {
|
|
2587
|
+
if (this.#e & Ie) return !1;
|
|
2588
|
+
let t = _ & this.#e;
|
|
2589
|
+
return t === L || t === U || t === X;
|
|
2590
|
+
}
|
|
2591
|
+
shouldWalk(t, e) {
|
|
2592
|
+
return (this.#e & U) === U && !(this.#e & Ie) && !t.has(this) && (!e || e(this));
|
|
2593
|
+
}
|
|
2594
|
+
async realpath() {
|
|
2595
|
+
if (this.#k) return this.#k;
|
|
2596
|
+
if (!((Lt | Nt | j) & this.#e)) try {
|
|
2597
|
+
let t = await this.#t.promises.realpath(this.fullpath());
|
|
2598
|
+
return this.#k = this.resolve(t);
|
|
2599
|
+
} catch {
|
|
2600
|
+
this.#P();
|
|
2601
|
+
}
|
|
2602
|
+
}
|
|
2603
|
+
realpathSync() {
|
|
2604
|
+
if (this.#k) return this.#k;
|
|
2605
|
+
if (!((Lt | Nt | j) & this.#e)) try {
|
|
2606
|
+
let t = this.#t.realpathSync(this.fullpath());
|
|
2607
|
+
return this.#k = this.resolve(t);
|
|
2608
|
+
} catch {
|
|
2609
|
+
this.#P();
|
|
2610
|
+
}
|
|
2611
|
+
}
|
|
2612
|
+
[Ye](t) {
|
|
2613
|
+
if (t === this) return;
|
|
2614
|
+
t.isCWD = !1, this.isCWD = !0;
|
|
2615
|
+
let e = /* @__PURE__ */ new Set([]), s = [], i = this;
|
|
2616
|
+
for (; i && i.parent;) e.add(i), i.#x = s.join(this.sep), i.#A = s.join("/"), i = i.parent, s.push("..");
|
|
2617
|
+
for (i = t; i && i.parent && !e.has(i);) i.#x = void 0, i.#A = void 0, i = i.parent;
|
|
2618
|
+
}
|
|
2619
|
+
}, Pt = class n extends R {
|
|
2620
|
+
sep = "\\";
|
|
2621
|
+
splitSep = Oi;
|
|
2622
|
+
constructor(t, e = L, s, i, r, o, h) {
|
|
2623
|
+
super(t, e, s, i, r, o, h);
|
|
2624
|
+
}
|
|
2625
|
+
newChild(t, e = L, s = {}) {
|
|
2626
|
+
return new n(t, e, this.root, this.roots, this.nocase, this.childrenCache(), s);
|
|
2627
|
+
}
|
|
2628
|
+
getRootString(t) {
|
|
2629
|
+
return win32.parse(t).root;
|
|
2630
|
+
}
|
|
2631
|
+
getRoot(t) {
|
|
2632
|
+
if (t = Ri(t.toUpperCase()), t === this.root.name) return this.root;
|
|
2633
|
+
for (let [e, s] of Object.entries(this.roots)) if (this.sameRoot(t, e)) return this.roots[t] = s;
|
|
2634
|
+
return this.roots[t] = new it(t, this).root;
|
|
2635
|
+
}
|
|
2636
|
+
sameRoot(t, e = this.root.name) {
|
|
2637
|
+
return t = t.toUpperCase().replace(/\//g, "\\").replace($e, "$1\\"), t === e;
|
|
2638
|
+
}
|
|
2639
|
+
}, jt = class n extends R {
|
|
2640
|
+
splitSep = "/";
|
|
2641
|
+
sep = "/";
|
|
2642
|
+
constructor(t, e = L, s, i, r, o, h) {
|
|
2643
|
+
super(t, e, s, i, r, o, h);
|
|
2644
|
+
}
|
|
2645
|
+
getRootString(t) {
|
|
2646
|
+
return t.startsWith("/") ? "/" : "";
|
|
2647
|
+
}
|
|
2648
|
+
getRoot(t) {
|
|
2649
|
+
return this.root;
|
|
2650
|
+
}
|
|
2651
|
+
newChild(t, e = L, s = {}) {
|
|
2652
|
+
return new n(t, e, this.root, this.roots, this.nocase, this.childrenCache(), s);
|
|
2653
|
+
}
|
|
2654
|
+
}, It = class {
|
|
2655
|
+
root;
|
|
2656
|
+
rootPath;
|
|
2657
|
+
roots;
|
|
2658
|
+
cwd;
|
|
2659
|
+
#t;
|
|
2660
|
+
#s;
|
|
2661
|
+
#n;
|
|
2662
|
+
nocase;
|
|
2663
|
+
#r;
|
|
2664
|
+
constructor(t = process.cwd(), e, s, { nocase: i, childrenCacheSize: r = 16 * 1024, fs: o = wt } = {}) {
|
|
2665
|
+
this.#r = Ue(o), (t instanceof URL || t.startsWith("file://")) && (t = fileURLToPath(t));
|
|
2666
|
+
let h = e.resolve(t);
|
|
2667
|
+
this.roots = Object.create(null), this.rootPath = this.parseRootPath(h), this.#t = new Wt(), this.#s = new Wt(), this.#n = new ne(r);
|
|
2668
|
+
let a = h.substring(this.rootPath.length).split(s);
|
|
2669
|
+
if (a.length === 1 && !a[0] && a.pop(), i === void 0) throw new TypeError("must provide nocase setting to PathScurryBase ctor");
|
|
2670
|
+
this.nocase = i, this.root = this.newRoot(this.#r), this.roots[this.rootPath] = this.root;
|
|
2671
|
+
let l = this.root, u = a.length - 1, c = e.sep, d = this.rootPath, f = !1;
|
|
2672
|
+
for (let m of a) {
|
|
2673
|
+
let p = u--;
|
|
2674
|
+
l = l.child(m, {
|
|
2675
|
+
relative: new Array(p).fill("..").join(c),
|
|
2676
|
+
relativePosix: new Array(p).fill("..").join("/"),
|
|
2677
|
+
fullpath: d += (f ? "" : c) + m
|
|
2678
|
+
}), f = !0;
|
|
2679
|
+
}
|
|
2680
|
+
this.cwd = l;
|
|
2681
|
+
}
|
|
2682
|
+
depth(t = this.cwd) {
|
|
2683
|
+
return typeof t == "string" && (t = this.cwd.resolve(t)), t.depth();
|
|
2684
|
+
}
|
|
2685
|
+
childrenCache() {
|
|
2686
|
+
return this.#n;
|
|
2687
|
+
}
|
|
2688
|
+
resolve(...t) {
|
|
2689
|
+
let e = "";
|
|
2690
|
+
for (let r = t.length - 1; r >= 0; r--) {
|
|
2691
|
+
let o = t[r];
|
|
2692
|
+
if (!(!o || o === ".") && (e = e ? `${o}/${e}` : o, this.isAbsolute(o))) break;
|
|
2693
|
+
}
|
|
2694
|
+
let s = this.#t.get(e);
|
|
2695
|
+
if (s !== void 0) return s;
|
|
2696
|
+
let i = this.cwd.resolve(e).fullpath();
|
|
2697
|
+
return this.#t.set(e, i), i;
|
|
2698
|
+
}
|
|
2699
|
+
resolvePosix(...t) {
|
|
2700
|
+
let e = "";
|
|
2701
|
+
for (let r = t.length - 1; r >= 0; r--) {
|
|
2702
|
+
let o = t[r];
|
|
2703
|
+
if (!(!o || o === ".") && (e = e ? `${o}/${e}` : o, this.isAbsolute(o))) break;
|
|
2704
|
+
}
|
|
2705
|
+
let s = this.#s.get(e);
|
|
2706
|
+
if (s !== void 0) return s;
|
|
2707
|
+
let i = this.cwd.resolve(e).fullpathPosix();
|
|
2708
|
+
return this.#s.set(e, i), i;
|
|
2709
|
+
}
|
|
2710
|
+
relative(t = this.cwd) {
|
|
2711
|
+
return typeof t == "string" && (t = this.cwd.resolve(t)), t.relative();
|
|
2712
|
+
}
|
|
2713
|
+
relativePosix(t = this.cwd) {
|
|
2714
|
+
return typeof t == "string" && (t = this.cwd.resolve(t)), t.relativePosix();
|
|
2715
|
+
}
|
|
2716
|
+
basename(t = this.cwd) {
|
|
2717
|
+
return typeof t == "string" && (t = this.cwd.resolve(t)), t.name;
|
|
2718
|
+
}
|
|
2719
|
+
dirname(t = this.cwd) {
|
|
2720
|
+
return typeof t == "string" && (t = this.cwd.resolve(t)), (t.parent || t).fullpath();
|
|
2721
|
+
}
|
|
2722
|
+
async readdir(t = this.cwd, e = { withFileTypes: !0 }) {
|
|
2723
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t, t = this.cwd);
|
|
2724
|
+
let { withFileTypes: s } = e;
|
|
2725
|
+
if (t.canReaddir()) {
|
|
2726
|
+
let i = await t.readdir();
|
|
2727
|
+
return s ? i : i.map((r) => r.name);
|
|
2728
|
+
} else return [];
|
|
2729
|
+
}
|
|
2730
|
+
readdirSync(t = this.cwd, e = { withFileTypes: !0 }) {
|
|
2731
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t, t = this.cwd);
|
|
2732
|
+
let { withFileTypes: s = !0 } = e;
|
|
2733
|
+
return t.canReaddir() ? s ? t.readdirSync() : t.readdirSync().map((i) => i.name) : [];
|
|
2734
|
+
}
|
|
2735
|
+
async lstat(t = this.cwd) {
|
|
2736
|
+
return typeof t == "string" && (t = this.cwd.resolve(t)), t.lstat();
|
|
2737
|
+
}
|
|
2738
|
+
lstatSync(t = this.cwd) {
|
|
2739
|
+
return typeof t == "string" && (t = this.cwd.resolve(t)), t.lstatSync();
|
|
2740
|
+
}
|
|
2741
|
+
async readlink(t = this.cwd, { withFileTypes: e } = { withFileTypes: !1 }) {
|
|
2742
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t.withFileTypes, t = this.cwd);
|
|
2743
|
+
let s = await t.readlink();
|
|
2744
|
+
return e ? s : s?.fullpath();
|
|
2745
|
+
}
|
|
2746
|
+
readlinkSync(t = this.cwd, { withFileTypes: e } = { withFileTypes: !1 }) {
|
|
2747
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t.withFileTypes, t = this.cwd);
|
|
2748
|
+
let s = t.readlinkSync();
|
|
2749
|
+
return e ? s : s?.fullpath();
|
|
2750
|
+
}
|
|
2751
|
+
async realpath(t = this.cwd, { withFileTypes: e } = { withFileTypes: !1 }) {
|
|
2752
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t.withFileTypes, t = this.cwd);
|
|
2753
|
+
let s = await t.realpath();
|
|
2754
|
+
return e ? s : s?.fullpath();
|
|
2755
|
+
}
|
|
2756
|
+
realpathSync(t = this.cwd, { withFileTypes: e } = { withFileTypes: !1 }) {
|
|
2757
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t.withFileTypes, t = this.cwd);
|
|
2758
|
+
let s = t.realpathSync();
|
|
2759
|
+
return e ? s : s?.fullpath();
|
|
2760
|
+
}
|
|
2761
|
+
async walk(t = this.cwd, e = {}) {
|
|
2762
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t, t = this.cwd);
|
|
2763
|
+
let { withFileTypes: s = !0, follow: i = !1, filter: r, walkFilter: o } = e, h = [];
|
|
2764
|
+
(!r || r(t)) && h.push(s ? t : t.fullpath());
|
|
2765
|
+
let a = /* @__PURE__ */ new Set(), l = (c, d) => {
|
|
2766
|
+
a.add(c), c.readdirCB((f, m) => {
|
|
2767
|
+
if (f) return d(f);
|
|
2768
|
+
let p = m.length;
|
|
2769
|
+
if (!p) return d();
|
|
2770
|
+
let w = () => {
|
|
2771
|
+
--p === 0 && d();
|
|
2772
|
+
};
|
|
2773
|
+
for (let g of m) (!r || r(g)) && h.push(s ? g : g.fullpath()), i && g.isSymbolicLink() ? g.realpath().then((S) => S?.isUnknown() ? S.lstat() : S).then((S) => S?.shouldWalk(a, o) ? l(S, w) : w()) : g.shouldWalk(a, o) ? l(g, w) : w();
|
|
2774
|
+
}, !0);
|
|
2775
|
+
}, u = t;
|
|
2776
|
+
return new Promise((c, d) => {
|
|
2777
|
+
l(u, (f) => {
|
|
2778
|
+
if (f) return d(f);
|
|
2779
|
+
c(h);
|
|
2780
|
+
});
|
|
2781
|
+
});
|
|
2782
|
+
}
|
|
2783
|
+
walkSync(t = this.cwd, e = {}) {
|
|
2784
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t, t = this.cwd);
|
|
2785
|
+
let { withFileTypes: s = !0, follow: i = !1, filter: r, walkFilter: o } = e, h = [];
|
|
2786
|
+
(!r || r(t)) && h.push(s ? t : t.fullpath());
|
|
2787
|
+
let a = /* @__PURE__ */ new Set([t]);
|
|
2788
|
+
for (let l of a) {
|
|
2789
|
+
let u = l.readdirSync();
|
|
2790
|
+
for (let c of u) {
|
|
2791
|
+
(!r || r(c)) && h.push(s ? c : c.fullpath());
|
|
2792
|
+
let d = c;
|
|
2793
|
+
if (c.isSymbolicLink()) {
|
|
2794
|
+
if (!(i && (d = c.realpathSync()))) continue;
|
|
2795
|
+
d.isUnknown() && d.lstatSync();
|
|
2796
|
+
}
|
|
2797
|
+
d.shouldWalk(a, o) && a.add(d);
|
|
2798
|
+
}
|
|
2799
|
+
}
|
|
2800
|
+
return h;
|
|
2801
|
+
}
|
|
2802
|
+
[Symbol.asyncIterator]() {
|
|
2803
|
+
return this.iterate();
|
|
2804
|
+
}
|
|
2805
|
+
iterate(t = this.cwd, e = {}) {
|
|
2806
|
+
return typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t, t = this.cwd), this.stream(t, e)[Symbol.asyncIterator]();
|
|
2807
|
+
}
|
|
2808
|
+
[Symbol.iterator]() {
|
|
2809
|
+
return this.iterateSync();
|
|
2810
|
+
}
|
|
2811
|
+
*iterateSync(t = this.cwd, e = {}) {
|
|
2812
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t, t = this.cwd);
|
|
2813
|
+
let { withFileTypes: s = !0, follow: i = !1, filter: r, walkFilter: o } = e;
|
|
2814
|
+
(!r || r(t)) && (yield s ? t : t.fullpath());
|
|
2815
|
+
let h = /* @__PURE__ */ new Set([t]);
|
|
2816
|
+
for (let a of h) {
|
|
2817
|
+
let l = a.readdirSync();
|
|
2818
|
+
for (let u of l) {
|
|
2819
|
+
(!r || r(u)) && (yield s ? u : u.fullpath());
|
|
2820
|
+
let c = u;
|
|
2821
|
+
if (u.isSymbolicLink()) {
|
|
2822
|
+
if (!(i && (c = u.realpathSync()))) continue;
|
|
2823
|
+
c.isUnknown() && c.lstatSync();
|
|
2824
|
+
}
|
|
2825
|
+
c.shouldWalk(h, o) && h.add(c);
|
|
2826
|
+
}
|
|
2827
|
+
}
|
|
2828
|
+
}
|
|
2829
|
+
stream(t = this.cwd, e = {}) {
|
|
2830
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t, t = this.cwd);
|
|
2831
|
+
let { withFileTypes: s = !0, follow: i = !1, filter: r, walkFilter: o } = e, h = new V({ objectMode: !0 });
|
|
2832
|
+
(!r || r(t)) && h.write(s ? t : t.fullpath());
|
|
2833
|
+
let a = /* @__PURE__ */ new Set(), l = [t], u = 0, c = () => {
|
|
2834
|
+
let d = !1;
|
|
2835
|
+
for (; !d;) {
|
|
2836
|
+
let f = l.shift();
|
|
2837
|
+
if (!f) {
|
|
2838
|
+
u === 0 && h.end();
|
|
2839
|
+
return;
|
|
2840
|
+
}
|
|
2841
|
+
u++, a.add(f);
|
|
2842
|
+
let m = (w, g, S = !1) => {
|
|
2843
|
+
if (w) return h.emit("error", w);
|
|
2844
|
+
if (i && !S) {
|
|
2845
|
+
let E = [];
|
|
2846
|
+
for (let y of g) y.isSymbolicLink() && E.push(y.realpath().then((b) => b?.isUnknown() ? b.lstat() : b));
|
|
2847
|
+
if (E.length) {
|
|
2848
|
+
Promise.all(E).then(() => m(null, g, !0));
|
|
2849
|
+
return;
|
|
2850
|
+
}
|
|
2851
|
+
}
|
|
2852
|
+
for (let E of g) E && (!r || r(E)) && (h.write(s ? E : E.fullpath()) || (d = !0));
|
|
2853
|
+
u--;
|
|
2854
|
+
for (let E of g) {
|
|
2855
|
+
let y = E.realpathCached() || E;
|
|
2856
|
+
y.shouldWalk(a, o) && l.push(y);
|
|
2857
|
+
}
|
|
2858
|
+
d && !h.flowing ? h.once("drain", c) : p || c();
|
|
2859
|
+
}, p = !0;
|
|
2860
|
+
f.readdirCB(m, !0), p = !1;
|
|
2861
|
+
}
|
|
2862
|
+
};
|
|
2863
|
+
return c(), h;
|
|
2864
|
+
}
|
|
2865
|
+
streamSync(t = this.cwd, e = {}) {
|
|
2866
|
+
typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t, t = this.cwd);
|
|
2867
|
+
let { withFileTypes: s = !0, follow: i = !1, filter: r, walkFilter: o } = e, h = new V({ objectMode: !0 }), a = /* @__PURE__ */ new Set();
|
|
2868
|
+
(!r || r(t)) && h.write(s ? t : t.fullpath());
|
|
2869
|
+
let l = [t], u = 0, c = () => {
|
|
2870
|
+
let d = !1;
|
|
2871
|
+
for (; !d;) {
|
|
2872
|
+
let f = l.shift();
|
|
2873
|
+
if (!f) {
|
|
2874
|
+
u === 0 && h.end();
|
|
2875
|
+
return;
|
|
2876
|
+
}
|
|
2877
|
+
u++, a.add(f);
|
|
2878
|
+
let m = f.readdirSync();
|
|
2879
|
+
for (let p of m) (!r || r(p)) && (h.write(s ? p : p.fullpath()) || (d = !0));
|
|
2880
|
+
u--;
|
|
2881
|
+
for (let p of m) {
|
|
2882
|
+
let w = p;
|
|
2883
|
+
if (p.isSymbolicLink()) {
|
|
2884
|
+
if (!(i && (w = p.realpathSync()))) continue;
|
|
2885
|
+
w.isUnknown() && w.lstatSync();
|
|
2886
|
+
}
|
|
2887
|
+
w.shouldWalk(a, o) && l.push(w);
|
|
2888
|
+
}
|
|
2889
|
+
}
|
|
2890
|
+
d && !h.flowing && h.once("drain", c);
|
|
2891
|
+
};
|
|
2892
|
+
return c(), h;
|
|
2893
|
+
}
|
|
2894
|
+
chdir(t = this.cwd) {
|
|
2895
|
+
let e = this.cwd;
|
|
2896
|
+
this.cwd = typeof t == "string" ? this.cwd.resolve(t) : t, this.cwd[Ye](e);
|
|
2897
|
+
}
|
|
2898
|
+
}, it = class extends It {
|
|
2899
|
+
sep = "\\";
|
|
2900
|
+
constructor(t = process.cwd(), e = {}) {
|
|
2901
|
+
let { nocase: s = !0 } = e;
|
|
2902
|
+
super(t, win32, "\\", {
|
|
2903
|
+
...e,
|
|
2904
|
+
nocase: s
|
|
2905
|
+
}), this.nocase = s;
|
|
2906
|
+
for (let i = this.cwd; i; i = i.parent) i.nocase = this.nocase;
|
|
2907
|
+
}
|
|
2908
|
+
parseRootPath(t) {
|
|
2909
|
+
return win32.parse(t).root.toUpperCase();
|
|
2910
|
+
}
|
|
2911
|
+
newRoot(t) {
|
|
2912
|
+
return new Pt(this.rootPath, U, void 0, this.roots, this.nocase, this.childrenCache(), { fs: t });
|
|
2913
|
+
}
|
|
2914
|
+
isAbsolute(t) {
|
|
2915
|
+
return t.startsWith("/") || t.startsWith("\\") || /^[a-z]:(\/|\\)/i.test(t);
|
|
2916
|
+
}
|
|
2917
|
+
}, rt = class extends It {
|
|
2918
|
+
sep = "/";
|
|
2919
|
+
constructor(t = process.cwd(), e = {}) {
|
|
2920
|
+
let { nocase: s = !1 } = e;
|
|
2921
|
+
super(t, posix, "/", {
|
|
2922
|
+
...e,
|
|
2923
|
+
nocase: s
|
|
2924
|
+
}), this.nocase = s;
|
|
2925
|
+
}
|
|
2926
|
+
parseRootPath(t) {
|
|
2927
|
+
return "/";
|
|
2928
|
+
}
|
|
2929
|
+
newRoot(t) {
|
|
2930
|
+
return new jt(this.rootPath, U, void 0, this.roots, this.nocase, this.childrenCache(), { fs: t });
|
|
2931
|
+
}
|
|
2932
|
+
isAbsolute(t) {
|
|
2933
|
+
return t.startsWith("/");
|
|
2934
|
+
}
|
|
2935
|
+
}, St = class extends rt {
|
|
2936
|
+
constructor(t = process.cwd(), e = {}) {
|
|
2937
|
+
let { nocase: s = !0 } = e;
|
|
2938
|
+
super(t, {
|
|
2939
|
+
...e,
|
|
2940
|
+
nocase: s
|
|
2941
|
+
});
|
|
2942
|
+
}
|
|
2943
|
+
};
|
|
2944
|
+
process.platform;
|
|
2945
|
+
Xe = process.platform === "win32" ? it : process.platform === "darwin" ? St : rt;
|
|
2946
|
+
Di = (n) => n.length >= 1, Mi = (n) => n.length >= 1, Ni = Symbol.for("nodejs.util.inspect.custom"), nt = class n {
|
|
2947
|
+
#t;
|
|
2948
|
+
#s;
|
|
2949
|
+
#n;
|
|
2950
|
+
length;
|
|
2951
|
+
#r;
|
|
2952
|
+
#o;
|
|
2953
|
+
#S;
|
|
2954
|
+
#w;
|
|
2955
|
+
#c;
|
|
2956
|
+
#h;
|
|
2957
|
+
#u = !0;
|
|
2958
|
+
constructor(t, e, s, i) {
|
|
2959
|
+
if (!Di(t)) throw new TypeError("empty pattern list");
|
|
2960
|
+
if (!Mi(e)) throw new TypeError("empty glob list");
|
|
2961
|
+
if (e.length !== t.length) throw new TypeError("mismatched pattern list and glob list lengths");
|
|
2962
|
+
if (this.length = t.length, s < 0 || s >= this.length) throw new TypeError("index out of range");
|
|
2963
|
+
if (this.#t = t, this.#s = e, this.#n = s, this.#r = i, this.#n === 0) {
|
|
2964
|
+
if (this.isUNC()) {
|
|
2965
|
+
let [r, o, h, a, ...l] = this.#t, [u, c, d, f, ...m] = this.#s;
|
|
2966
|
+
l[0] === "" && (l.shift(), m.shift());
|
|
2967
|
+
let p = [
|
|
2968
|
+
r,
|
|
2969
|
+
o,
|
|
2970
|
+
h,
|
|
2971
|
+
a,
|
|
2972
|
+
""
|
|
2973
|
+
].join("/"), w = [
|
|
2974
|
+
u,
|
|
2975
|
+
c,
|
|
2976
|
+
d,
|
|
2977
|
+
f,
|
|
2978
|
+
""
|
|
2979
|
+
].join("/");
|
|
2980
|
+
this.#t = [p, ...l], this.#s = [w, ...m], this.length = this.#t.length;
|
|
2981
|
+
} else if (this.isDrive() || this.isAbsolute()) {
|
|
2982
|
+
let [r, ...o] = this.#t, [h, ...a] = this.#s;
|
|
2983
|
+
o[0] === "" && (o.shift(), a.shift());
|
|
2984
|
+
let l = r + "/", u = h + "/";
|
|
2985
|
+
this.#t = [l, ...o], this.#s = [u, ...a], this.length = this.#t.length;
|
|
2986
|
+
}
|
|
2987
|
+
}
|
|
2988
|
+
}
|
|
2989
|
+
[Ni]() {
|
|
2990
|
+
return "Pattern <" + this.#s.slice(this.#n).join("/") + ">";
|
|
2991
|
+
}
|
|
2992
|
+
pattern() {
|
|
2993
|
+
return this.#t[this.#n];
|
|
2994
|
+
}
|
|
2995
|
+
isString() {
|
|
2996
|
+
return typeof this.#t[this.#n] == "string";
|
|
2997
|
+
}
|
|
2998
|
+
isGlobstar() {
|
|
2999
|
+
return this.#t[this.#n] === A;
|
|
3000
|
+
}
|
|
3001
|
+
isRegExp() {
|
|
3002
|
+
return this.#t[this.#n] instanceof RegExp;
|
|
3003
|
+
}
|
|
3004
|
+
globString() {
|
|
3005
|
+
return this.#S = this.#S || (this.#n === 0 ? this.isAbsolute() ? this.#s[0] + this.#s.slice(1).join("/") : this.#s.join("/") : this.#s.slice(this.#n).join("/"));
|
|
3006
|
+
}
|
|
3007
|
+
hasMore() {
|
|
3008
|
+
return this.length > this.#n + 1;
|
|
3009
|
+
}
|
|
3010
|
+
rest() {
|
|
3011
|
+
return this.#o !== void 0 ? this.#o : this.hasMore() ? (this.#o = new n(this.#t, this.#s, this.#n + 1, this.#r), this.#o.#h = this.#h, this.#o.#c = this.#c, this.#o.#w = this.#w, this.#o) : this.#o = null;
|
|
3012
|
+
}
|
|
3013
|
+
isUNC() {
|
|
3014
|
+
let t = this.#t;
|
|
3015
|
+
return this.#c !== void 0 ? this.#c : this.#c = this.#r === "win32" && this.#n === 0 && t[0] === "" && t[1] === "" && typeof t[2] == "string" && !!t[2] && typeof t[3] == "string" && !!t[3];
|
|
3016
|
+
}
|
|
3017
|
+
isDrive() {
|
|
3018
|
+
let t = this.#t;
|
|
3019
|
+
return this.#w !== void 0 ? this.#w : this.#w = this.#r === "win32" && this.#n === 0 && this.length > 1 && typeof t[0] == "string" && /^[a-z]:$/i.test(t[0]);
|
|
3020
|
+
}
|
|
3021
|
+
isAbsolute() {
|
|
3022
|
+
let t = this.#t;
|
|
3023
|
+
return this.#h !== void 0 ? this.#h : this.#h = t[0] === "" && t.length > 1 || this.isDrive() || this.isUNC();
|
|
3024
|
+
}
|
|
3025
|
+
root() {
|
|
3026
|
+
let t = this.#t[0];
|
|
3027
|
+
return typeof t == "string" && this.isAbsolute() && this.#n === 0 ? t : "";
|
|
3028
|
+
}
|
|
3029
|
+
checkFollowGlobstar() {
|
|
3030
|
+
return !(this.#n === 0 || !this.isGlobstar() || !this.#u);
|
|
3031
|
+
}
|
|
3032
|
+
markFollowGlobstar() {
|
|
3033
|
+
return this.#n === 0 || !this.isGlobstar() || !this.#u ? !1 : (this.#u = !1, !0);
|
|
3034
|
+
}
|
|
3035
|
+
};
|
|
3036
|
+
_i = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux", ot = class {
|
|
3037
|
+
relative;
|
|
3038
|
+
relativeChildren;
|
|
3039
|
+
absolute;
|
|
3040
|
+
absoluteChildren;
|
|
3041
|
+
platform;
|
|
3042
|
+
mmopts;
|
|
3043
|
+
constructor(t, { nobrace: e, nocase: s, noext: i, noglobstar: r, platform: o = _i }) {
|
|
3044
|
+
this.relative = [], this.absolute = [], this.relativeChildren = [], this.absoluteChildren = [], this.platform = o, this.mmopts = {
|
|
3045
|
+
dot: !0,
|
|
3046
|
+
nobrace: e,
|
|
3047
|
+
nocase: s,
|
|
3048
|
+
noext: i,
|
|
3049
|
+
noglobstar: r,
|
|
3050
|
+
optimizationLevel: 2,
|
|
3051
|
+
platform: o,
|
|
3052
|
+
nocomment: !0,
|
|
3053
|
+
nonegate: !0
|
|
3054
|
+
};
|
|
3055
|
+
for (let h of t) this.add(h);
|
|
3056
|
+
}
|
|
3057
|
+
add(t) {
|
|
3058
|
+
let e = new D(t, this.mmopts);
|
|
3059
|
+
for (let s = 0; s < e.set.length; s++) {
|
|
3060
|
+
let i = e.set[s], r = e.globParts[s];
|
|
3061
|
+
if (!i || !r) throw new Error("invalid pattern object");
|
|
3062
|
+
for (; i[0] === "." && r[0] === ".";) i.shift(), r.shift();
|
|
3063
|
+
let o = new nt(i, r, 0, this.platform), h = new D(o.globString(), this.mmopts), a = r[r.length - 1] === "**", l = o.isAbsolute();
|
|
3064
|
+
l ? this.absolute.push(h) : this.relative.push(h), a && (l ? this.absoluteChildren.push(h) : this.relativeChildren.push(h));
|
|
3065
|
+
}
|
|
3066
|
+
}
|
|
3067
|
+
ignored(t) {
|
|
3068
|
+
let e = t.fullpath(), s = `${e}/`, i = t.relative() || ".", r = `${i}/`;
|
|
3069
|
+
for (let o of this.relative) if (o.match(i) || o.match(r)) return !0;
|
|
3070
|
+
for (let o of this.absolute) if (o.match(e) || o.match(s)) return !0;
|
|
3071
|
+
return !1;
|
|
3072
|
+
}
|
|
3073
|
+
childrenIgnored(t) {
|
|
3074
|
+
let e = t.fullpath() + "/", s = (t.relative() || ".") + "/";
|
|
3075
|
+
for (let i of this.relativeChildren) if (i.match(s)) return !0;
|
|
3076
|
+
for (let i of this.absoluteChildren) if (i.match(e)) return !0;
|
|
3077
|
+
return !1;
|
|
3078
|
+
}
|
|
3079
|
+
};
|
|
3080
|
+
oe = class n {
|
|
3081
|
+
store;
|
|
3082
|
+
constructor(t = /* @__PURE__ */ new Map()) {
|
|
3083
|
+
this.store = t;
|
|
3084
|
+
}
|
|
3085
|
+
copy() {
|
|
3086
|
+
return new n(new Map(this.store));
|
|
3087
|
+
}
|
|
3088
|
+
hasWalked(t, e) {
|
|
3089
|
+
return this.store.get(t.fullpath())?.has(e.globString());
|
|
3090
|
+
}
|
|
3091
|
+
storeWalked(t, e) {
|
|
3092
|
+
let s = t.fullpath(), i = this.store.get(s);
|
|
3093
|
+
i ? i.add(e.globString()) : this.store.set(s, /* @__PURE__ */ new Set([e.globString()]));
|
|
3094
|
+
}
|
|
3095
|
+
}, he = class {
|
|
3096
|
+
store = /* @__PURE__ */ new Map();
|
|
3097
|
+
add(t, e, s) {
|
|
3098
|
+
let i = (e ? 2 : 0) | (s ? 1 : 0), r = this.store.get(t);
|
|
3099
|
+
this.store.set(t, r === void 0 ? i : i & r);
|
|
3100
|
+
}
|
|
3101
|
+
entries() {
|
|
3102
|
+
return [...this.store.entries()].map(([t, e]) => [
|
|
3103
|
+
t,
|
|
3104
|
+
!!(e & 2),
|
|
3105
|
+
!!(e & 1)
|
|
3106
|
+
]);
|
|
3107
|
+
}
|
|
3108
|
+
}, ae = class {
|
|
3109
|
+
store = /* @__PURE__ */ new Map();
|
|
3110
|
+
add(t, e) {
|
|
3111
|
+
if (!t.canReaddir()) return;
|
|
3112
|
+
let s = this.store.get(t);
|
|
3113
|
+
s ? s.find((i) => i.globString() === e.globString()) || s.push(e) : this.store.set(t, [e]);
|
|
3114
|
+
}
|
|
3115
|
+
get(t) {
|
|
3116
|
+
let e = this.store.get(t);
|
|
3117
|
+
if (!e) throw new Error("attempting to walk unknown path");
|
|
3118
|
+
return e;
|
|
3119
|
+
}
|
|
3120
|
+
entries() {
|
|
3121
|
+
return this.keys().map((t) => [t, this.store.get(t)]);
|
|
3122
|
+
}
|
|
3123
|
+
keys() {
|
|
3124
|
+
return [...this.store.keys()].filter((t) => t.canReaddir());
|
|
3125
|
+
}
|
|
3126
|
+
}, Et = class n {
|
|
3127
|
+
hasWalkedCache;
|
|
3128
|
+
matches = new he();
|
|
3129
|
+
subwalks = new ae();
|
|
3130
|
+
patterns;
|
|
3131
|
+
follow;
|
|
3132
|
+
dot;
|
|
3133
|
+
opts;
|
|
3134
|
+
constructor(t, e) {
|
|
3135
|
+
this.opts = t, this.follow = !!t.follow, this.dot = !!t.dot, this.hasWalkedCache = e ? e.copy() : new oe();
|
|
3136
|
+
}
|
|
3137
|
+
processPatterns(t, e) {
|
|
3138
|
+
this.patterns = e;
|
|
3139
|
+
let s = e.map((i) => [t, i]);
|
|
3140
|
+
for (let [i, r] of s) {
|
|
3141
|
+
this.hasWalkedCache.storeWalked(i, r);
|
|
3142
|
+
let o = r.root(), h = r.isAbsolute() && this.opts.absolute !== !1;
|
|
3143
|
+
if (o) {
|
|
3144
|
+
i = i.resolve(o === "/" && this.opts.root !== void 0 ? this.opts.root : o);
|
|
3145
|
+
let c = r.rest();
|
|
3146
|
+
if (c) r = c;
|
|
3147
|
+
else {
|
|
3148
|
+
this.matches.add(i, !0, !1);
|
|
3149
|
+
continue;
|
|
3150
|
+
}
|
|
3151
|
+
}
|
|
3152
|
+
if (i.isENOENT()) continue;
|
|
3153
|
+
let a, l, u = !1;
|
|
3154
|
+
for (; typeof (a = r.pattern()) == "string" && (l = r.rest());) i = i.resolve(a), r = l, u = !0;
|
|
3155
|
+
if (a = r.pattern(), l = r.rest(), u) {
|
|
3156
|
+
if (this.hasWalkedCache.hasWalked(i, r)) continue;
|
|
3157
|
+
this.hasWalkedCache.storeWalked(i, r);
|
|
3158
|
+
}
|
|
3159
|
+
if (typeof a == "string") {
|
|
3160
|
+
let c = a === ".." || a === "" || a === ".";
|
|
3161
|
+
this.matches.add(i.resolve(a), h, c);
|
|
3162
|
+
continue;
|
|
3163
|
+
} else if (a === A) {
|
|
3164
|
+
(!i.isSymbolicLink() || this.follow || r.checkFollowGlobstar()) && this.subwalks.add(i, r);
|
|
3165
|
+
let c = l?.pattern(), d = l?.rest();
|
|
3166
|
+
if (!l || (c === "" || c === ".") && !d) this.matches.add(i, h, c === "" || c === ".");
|
|
3167
|
+
else if (c === "..") {
|
|
3168
|
+
let f = i.parent || i;
|
|
3169
|
+
d ? this.hasWalkedCache.hasWalked(f, d) || this.subwalks.add(f, d) : this.matches.add(f, h, !0);
|
|
3170
|
+
}
|
|
3171
|
+
} else a instanceof RegExp && this.subwalks.add(i, r);
|
|
3172
|
+
}
|
|
3173
|
+
return this;
|
|
3174
|
+
}
|
|
3175
|
+
subwalkTargets() {
|
|
3176
|
+
return this.subwalks.keys();
|
|
3177
|
+
}
|
|
3178
|
+
child() {
|
|
3179
|
+
return new n(this.opts, this.hasWalkedCache);
|
|
3180
|
+
}
|
|
3181
|
+
filterEntries(t, e) {
|
|
3182
|
+
let s = this.subwalks.get(t), i = this.child();
|
|
3183
|
+
for (let r of e) for (let o of s) {
|
|
3184
|
+
let h = o.isAbsolute(), a = o.pattern(), l = o.rest();
|
|
3185
|
+
a === A ? i.testGlobstar(r, o, l, h) : a instanceof RegExp ? i.testRegExp(r, a, l, h) : i.testString(r, a, l, h);
|
|
3186
|
+
}
|
|
3187
|
+
return i;
|
|
3188
|
+
}
|
|
3189
|
+
testGlobstar(t, e, s, i) {
|
|
3190
|
+
if ((this.dot || !t.name.startsWith(".")) && (e.hasMore() || this.matches.add(t, i, !1), t.canReaddir() && (this.follow || !t.isSymbolicLink() ? this.subwalks.add(t, e) : t.isSymbolicLink() && (s && e.checkFollowGlobstar() ? this.subwalks.add(t, s) : e.markFollowGlobstar() && this.subwalks.add(t, e)))), s) {
|
|
3191
|
+
let r = s.pattern();
|
|
3192
|
+
if (typeof r == "string" && r !== ".." && r !== "" && r !== ".") this.testString(t, r, s.rest(), i);
|
|
3193
|
+
else if (r === "..") {
|
|
3194
|
+
let o = t.parent || t;
|
|
3195
|
+
this.subwalks.add(o, s);
|
|
3196
|
+
} else r instanceof RegExp && this.testRegExp(t, r, s.rest(), i);
|
|
3197
|
+
}
|
|
3198
|
+
}
|
|
3199
|
+
testRegExp(t, e, s, i) {
|
|
3200
|
+
e.test(t.name) && (s ? this.subwalks.add(t, s) : this.matches.add(t, i, !1));
|
|
3201
|
+
}
|
|
3202
|
+
testString(t, e, s, i) {
|
|
3203
|
+
t.isNamed(e) && (s ? this.subwalks.add(t, s) : this.matches.add(t, i, !1));
|
|
3204
|
+
}
|
|
3205
|
+
};
|
|
3206
|
+
Li = (n, t) => typeof n == "string" ? new ot([n], t) : Array.isArray(n) ? new ot(n, t) : n, zt = class {
|
|
3207
|
+
path;
|
|
3208
|
+
patterns;
|
|
3209
|
+
opts;
|
|
3210
|
+
seen = /* @__PURE__ */ new Set();
|
|
3211
|
+
paused = !1;
|
|
3212
|
+
aborted = !1;
|
|
3213
|
+
#t = [];
|
|
3214
|
+
#s;
|
|
3215
|
+
#n;
|
|
3216
|
+
signal;
|
|
3217
|
+
maxDepth;
|
|
3218
|
+
includeChildMatches;
|
|
3219
|
+
constructor(t, e, s) {
|
|
3220
|
+
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.");
|
|
3221
|
+
this.maxDepth = s.maxDepth || Infinity, s.signal && (this.signal = s.signal, this.signal.addEventListener("abort", () => {
|
|
3222
|
+
this.#t.length = 0;
|
|
3223
|
+
}));
|
|
3224
|
+
}
|
|
3225
|
+
#r(t) {
|
|
3226
|
+
return this.seen.has(t) || !!this.#s?.ignored?.(t);
|
|
3227
|
+
}
|
|
3228
|
+
#o(t) {
|
|
3229
|
+
return !!this.#s?.childrenIgnored?.(t);
|
|
3230
|
+
}
|
|
3231
|
+
pause() {
|
|
3232
|
+
this.paused = !0;
|
|
3233
|
+
}
|
|
3234
|
+
resume() {
|
|
3235
|
+
if (this.signal?.aborted) return;
|
|
3236
|
+
this.paused = !1;
|
|
3237
|
+
let t;
|
|
3238
|
+
for (; !this.paused && (t = this.#t.shift());) t();
|
|
3239
|
+
}
|
|
3240
|
+
onResume(t) {
|
|
3241
|
+
this.signal?.aborted || (this.paused ? this.#t.push(t) : t());
|
|
3242
|
+
}
|
|
3243
|
+
async matchCheck(t, e) {
|
|
3244
|
+
if (e && this.opts.nodir) return;
|
|
3245
|
+
let s;
|
|
3246
|
+
if (this.opts.realpath) {
|
|
3247
|
+
if (s = t.realpathCached() || await t.realpath(), !s) return;
|
|
3248
|
+
t = s;
|
|
3249
|
+
}
|
|
3250
|
+
let r = t.isUnknown() || this.opts.stat ? await t.lstat() : t;
|
|
3251
|
+
if (this.opts.follow && this.opts.nodir && r?.isSymbolicLink()) {
|
|
3252
|
+
let o = await r.realpath();
|
|
3253
|
+
o && (o.isUnknown() || this.opts.stat) && await o.lstat();
|
|
3254
|
+
}
|
|
3255
|
+
return this.matchCheckTest(r, e);
|
|
3256
|
+
}
|
|
3257
|
+
matchCheckTest(t, e) {
|
|
3258
|
+
return t && (this.maxDepth === Infinity || 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;
|
|
3259
|
+
}
|
|
3260
|
+
matchCheckSync(t, e) {
|
|
3261
|
+
if (e && this.opts.nodir) return;
|
|
3262
|
+
let s;
|
|
3263
|
+
if (this.opts.realpath) {
|
|
3264
|
+
if (s = t.realpathCached() || t.realpathSync(), !s) return;
|
|
3265
|
+
t = s;
|
|
3266
|
+
}
|
|
3267
|
+
let r = t.isUnknown() || this.opts.stat ? t.lstatSync() : t;
|
|
3268
|
+
if (this.opts.follow && this.opts.nodir && r?.isSymbolicLink()) {
|
|
3269
|
+
let o = r.realpathSync();
|
|
3270
|
+
o && (o?.isUnknown() || this.opts.stat) && o.lstatSync();
|
|
3271
|
+
}
|
|
3272
|
+
return this.matchCheckTest(r, e);
|
|
3273
|
+
}
|
|
3274
|
+
matchFinish(t, e) {
|
|
3275
|
+
if (this.#r(t)) return;
|
|
3276
|
+
if (!this.includeChildMatches && this.#s?.add) {
|
|
3277
|
+
let r = `${t.relativePosix()}/**`;
|
|
3278
|
+
this.#s.add(r);
|
|
3279
|
+
}
|
|
3280
|
+
let s = this.opts.absolute === void 0 ? e : this.opts.absolute;
|
|
3281
|
+
this.seen.add(t);
|
|
3282
|
+
let i = this.opts.mark && t.isDirectory() ? this.#n : "";
|
|
3283
|
+
if (this.opts.withFileTypes) this.matchEmit(t);
|
|
3284
|
+
else if (s) {
|
|
3285
|
+
let r = this.opts.posix ? t.fullpathPosix() : t.fullpath();
|
|
3286
|
+
this.matchEmit(r + i);
|
|
3287
|
+
} else {
|
|
3288
|
+
let r = this.opts.posix ? t.relativePosix() : t.relative(), o = this.opts.dotRelative && !r.startsWith(".." + this.#n) ? "." + this.#n : "";
|
|
3289
|
+
this.matchEmit(r ? o + r + i : "." + i);
|
|
3290
|
+
}
|
|
3291
|
+
}
|
|
3292
|
+
async match(t, e, s) {
|
|
3293
|
+
let i = await this.matchCheck(t, s);
|
|
3294
|
+
i && this.matchFinish(i, e);
|
|
3295
|
+
}
|
|
3296
|
+
matchSync(t, e, s) {
|
|
3297
|
+
let i = this.matchCheckSync(t, s);
|
|
3298
|
+
i && this.matchFinish(i, e);
|
|
3299
|
+
}
|
|
3300
|
+
walkCB(t, e, s) {
|
|
3301
|
+
this.signal?.aborted && s(), this.walkCB2(t, e, new Et(this.opts), s);
|
|
3302
|
+
}
|
|
3303
|
+
walkCB2(t, e, s, i) {
|
|
3304
|
+
if (this.#o(t)) return i();
|
|
3305
|
+
if (this.signal?.aborted && i(), this.paused) {
|
|
3306
|
+
this.onResume(() => this.walkCB2(t, e, s, i));
|
|
3307
|
+
return;
|
|
3308
|
+
}
|
|
3309
|
+
s.processPatterns(t, e);
|
|
3310
|
+
let r = 1, o = () => {
|
|
3311
|
+
--r === 0 && i();
|
|
3312
|
+
};
|
|
3313
|
+
for (let [h, a, l] of s.matches.entries()) this.#r(h) || (r++, this.match(h, a, l).then(() => o()));
|
|
3314
|
+
for (let h of s.subwalkTargets()) {
|
|
3315
|
+
if (this.maxDepth !== Infinity && h.depth() >= this.maxDepth) continue;
|
|
3316
|
+
r++;
|
|
3317
|
+
let a = h.readdirCached();
|
|
3318
|
+
h.calledReaddir() ? this.walkCB3(h, a, s, o) : h.readdirCB((l, u) => this.walkCB3(h, u, s, o), !0);
|
|
3319
|
+
}
|
|
3320
|
+
o();
|
|
3321
|
+
}
|
|
3322
|
+
walkCB3(t, e, s, i) {
|
|
3323
|
+
s = s.filterEntries(t, e);
|
|
3324
|
+
let r = 1, o = () => {
|
|
3325
|
+
--r === 0 && i();
|
|
3326
|
+
};
|
|
3327
|
+
for (let [h, a, l] of s.matches.entries()) this.#r(h) || (r++, this.match(h, a, l).then(() => o()));
|
|
3328
|
+
for (let [h, a] of s.subwalks.entries()) r++, this.walkCB2(h, a, s.child(), o);
|
|
3329
|
+
o();
|
|
3330
|
+
}
|
|
3331
|
+
walkCBSync(t, e, s) {
|
|
3332
|
+
this.signal?.aborted && s(), this.walkCB2Sync(t, e, new Et(this.opts), s);
|
|
3333
|
+
}
|
|
3334
|
+
walkCB2Sync(t, e, s, i) {
|
|
3335
|
+
if (this.#o(t)) return i();
|
|
3336
|
+
if (this.signal?.aborted && i(), this.paused) {
|
|
3337
|
+
this.onResume(() => this.walkCB2Sync(t, e, s, i));
|
|
3338
|
+
return;
|
|
3339
|
+
}
|
|
3340
|
+
s.processPatterns(t, e);
|
|
3341
|
+
let r = 1, o = () => {
|
|
3342
|
+
--r === 0 && i();
|
|
3343
|
+
};
|
|
3344
|
+
for (let [h, a, l] of s.matches.entries()) this.#r(h) || this.matchSync(h, a, l);
|
|
3345
|
+
for (let h of s.subwalkTargets()) {
|
|
3346
|
+
if (this.maxDepth !== Infinity && h.depth() >= this.maxDepth) continue;
|
|
3347
|
+
r++;
|
|
3348
|
+
let a = h.readdirSync();
|
|
3349
|
+
this.walkCB3Sync(h, a, s, o);
|
|
3350
|
+
}
|
|
3351
|
+
o();
|
|
3352
|
+
}
|
|
3353
|
+
walkCB3Sync(t, e, s, i) {
|
|
3354
|
+
s = s.filterEntries(t, e);
|
|
3355
|
+
let r = 1, o = () => {
|
|
3356
|
+
--r === 0 && i();
|
|
3357
|
+
};
|
|
3358
|
+
for (let [h, a, l] of s.matches.entries()) this.#r(h) || this.matchSync(h, a, l);
|
|
3359
|
+
for (let [h, a] of s.subwalks.entries()) r++, this.walkCB2Sync(h, a, s.child(), o);
|
|
3360
|
+
o();
|
|
3361
|
+
}
|
|
3362
|
+
}, xt = class extends zt {
|
|
3363
|
+
matches = /* @__PURE__ */ new Set();
|
|
3364
|
+
constructor(t, e, s) {
|
|
3365
|
+
super(t, e, s);
|
|
3366
|
+
}
|
|
3367
|
+
matchEmit(t) {
|
|
3368
|
+
this.matches.add(t);
|
|
3369
|
+
}
|
|
3370
|
+
async walk() {
|
|
3371
|
+
if (this.signal?.aborted) throw this.signal.reason;
|
|
3372
|
+
return this.path.isUnknown() && await this.path.lstat(), await new Promise((t, e) => {
|
|
3373
|
+
this.walkCB(this.path, this.patterns, () => {
|
|
3374
|
+
this.signal?.aborted ? e(this.signal.reason) : t(this.matches);
|
|
3375
|
+
});
|
|
3376
|
+
}), this.matches;
|
|
3377
|
+
}
|
|
3378
|
+
walkSync() {
|
|
3379
|
+
if (this.signal?.aborted) throw this.signal.reason;
|
|
3380
|
+
return this.path.isUnknown() && this.path.lstatSync(), this.walkCBSync(this.path, this.patterns, () => {
|
|
3381
|
+
if (this.signal?.aborted) throw this.signal.reason;
|
|
3382
|
+
}), this.matches;
|
|
3383
|
+
}
|
|
3384
|
+
}, vt = class extends zt {
|
|
3385
|
+
results;
|
|
3386
|
+
constructor(t, e, s) {
|
|
3387
|
+
super(t, e, s), this.results = new V({
|
|
3388
|
+
signal: this.signal,
|
|
3389
|
+
objectMode: !0
|
|
3390
|
+
}), this.results.on("drain", () => this.resume()), this.results.on("resume", () => this.resume());
|
|
3391
|
+
}
|
|
3392
|
+
matchEmit(t) {
|
|
3393
|
+
this.results.write(t), this.results.flowing || this.pause();
|
|
3394
|
+
}
|
|
3395
|
+
stream() {
|
|
3396
|
+
let t = this.path;
|
|
3397
|
+
return t.isUnknown() ? t.lstat().then(() => {
|
|
3398
|
+
this.walkCB(t, this.patterns, () => this.results.end());
|
|
3399
|
+
}) : this.walkCB(t, this.patterns, () => this.results.end()), this.results;
|
|
3400
|
+
}
|
|
3401
|
+
streamSync() {
|
|
3402
|
+
return this.path.isUnknown() && this.path.lstatSync(), this.walkCBSync(this.path, this.patterns, () => this.results.end()), this.results;
|
|
3403
|
+
}
|
|
3404
|
+
};
|
|
3405
|
+
Pi = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux", I = class {
|
|
3406
|
+
absolute;
|
|
3407
|
+
cwd;
|
|
3408
|
+
root;
|
|
3409
|
+
dot;
|
|
3410
|
+
dotRelative;
|
|
3411
|
+
follow;
|
|
3412
|
+
ignore;
|
|
3413
|
+
magicalBraces;
|
|
3414
|
+
mark;
|
|
3415
|
+
matchBase;
|
|
3416
|
+
maxDepth;
|
|
3417
|
+
nobrace;
|
|
3418
|
+
nocase;
|
|
3419
|
+
nodir;
|
|
3420
|
+
noext;
|
|
3421
|
+
noglobstar;
|
|
3422
|
+
pattern;
|
|
3423
|
+
platform;
|
|
3424
|
+
realpath;
|
|
3425
|
+
scurry;
|
|
3426
|
+
stat;
|
|
3427
|
+
signal;
|
|
3428
|
+
windowsPathsNoEscape;
|
|
3429
|
+
withFileTypes;
|
|
3430
|
+
includeChildMatches;
|
|
3431
|
+
opts;
|
|
3432
|
+
patterns;
|
|
3433
|
+
constructor(t, e) {
|
|
3434
|
+
if (!e) throw new TypeError("glob options required");
|
|
3435
|
+
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 : Infinity, this.stat = !!e.stat, this.ignore = e.ignore, this.withFileTypes && this.absolute !== void 0) throw new Error("cannot set absolute and withFileTypes:true");
|
|
3436
|
+
if (typeof t == "string" && (t = [t]), this.windowsPathsNoEscape = !!e.windowsPathsNoEscape || e.allowWindowsEscape === !1, this.windowsPathsNoEscape && (t = t.map((a) => a.replace(/\\/g, "/"))), this.matchBase) {
|
|
3437
|
+
if (e.noglobstar) throw new TypeError("base matching requires globstar");
|
|
3438
|
+
t = t.map((a) => a.includes("/") ? a : `./**/${a}`);
|
|
3439
|
+
}
|
|
3440
|
+
if (this.pattern = t, this.platform = e.platform || Pi, this.opts = {
|
|
3441
|
+
...e,
|
|
3442
|
+
platform: this.platform
|
|
3443
|
+
}, e.scurry) {
|
|
3444
|
+
if (this.scurry = e.scurry, e.nocase !== void 0 && e.nocase !== e.scurry.nocase) throw new Error("nocase option contradicts provided scurry option");
|
|
3445
|
+
} else {
|
|
3446
|
+
let a = e.platform === "win32" ? it : e.platform === "darwin" ? St : e.platform ? rt : Xe;
|
|
3447
|
+
this.scurry = new a(this.cwd, {
|
|
3448
|
+
nocase: e.nocase,
|
|
3449
|
+
fs: e.fs
|
|
3450
|
+
});
|
|
3451
|
+
}
|
|
3452
|
+
this.nocase = this.scurry.nocase;
|
|
3453
|
+
let s = this.platform === "darwin" || this.platform === "win32", i = {
|
|
3454
|
+
braceExpandMax: 1e4,
|
|
3455
|
+
...e,
|
|
3456
|
+
dot: this.dot,
|
|
3457
|
+
matchBase: this.matchBase,
|
|
3458
|
+
nobrace: this.nobrace,
|
|
3459
|
+
nocase: this.nocase,
|
|
3460
|
+
nocaseMagicOnly: s,
|
|
3461
|
+
nocomment: !0,
|
|
3462
|
+
noext: this.noext,
|
|
3463
|
+
nonegate: !0,
|
|
3464
|
+
optimizationLevel: 2,
|
|
3465
|
+
platform: this.platform,
|
|
3466
|
+
windowsPathsNoEscape: this.windowsPathsNoEscape,
|
|
3467
|
+
debug: !!this.opts.debug
|
|
3468
|
+
}, [o, h] = this.pattern.map((a) => new D(a, i)).reduce((a, l) => (a[0].push(...l.set), a[1].push(...l.globParts), a), [[], []]);
|
|
3469
|
+
this.patterns = o.map((a, l) => {
|
|
3470
|
+
let u = h[l];
|
|
3471
|
+
if (!u) throw new Error("invalid pattern object");
|
|
3472
|
+
return new nt(a, u, 0, this.platform);
|
|
3473
|
+
});
|
|
3474
|
+
}
|
|
3475
|
+
async walk() {
|
|
3476
|
+
return [...await new xt(this.patterns, this.scurry.cwd, {
|
|
3477
|
+
...this.opts,
|
|
3478
|
+
maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
|
|
3479
|
+
platform: this.platform,
|
|
3480
|
+
nocase: this.nocase,
|
|
3481
|
+
includeChildMatches: this.includeChildMatches
|
|
3482
|
+
}).walk()];
|
|
3483
|
+
}
|
|
3484
|
+
walkSync() {
|
|
3485
|
+
return [...new xt(this.patterns, this.scurry.cwd, {
|
|
3486
|
+
...this.opts,
|
|
3487
|
+
maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
|
|
3488
|
+
platform: this.platform,
|
|
3489
|
+
nocase: this.nocase,
|
|
3490
|
+
includeChildMatches: this.includeChildMatches
|
|
3491
|
+
}).walkSync()];
|
|
3492
|
+
}
|
|
3493
|
+
stream() {
|
|
3494
|
+
return new vt(this.patterns, this.scurry.cwd, {
|
|
3495
|
+
...this.opts,
|
|
3496
|
+
maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
|
|
3497
|
+
platform: this.platform,
|
|
3498
|
+
nocase: this.nocase,
|
|
3499
|
+
includeChildMatches: this.includeChildMatches
|
|
3500
|
+
}).stream();
|
|
3501
|
+
}
|
|
3502
|
+
streamSync() {
|
|
3503
|
+
return new vt(this.patterns, this.scurry.cwd, {
|
|
3504
|
+
...this.opts,
|
|
3505
|
+
maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
|
|
3506
|
+
platform: this.platform,
|
|
3507
|
+
nocase: this.nocase,
|
|
3508
|
+
includeChildMatches: this.includeChildMatches
|
|
3509
|
+
}).streamSync();
|
|
3510
|
+
}
|
|
3511
|
+
iterateSync() {
|
|
3512
|
+
return this.streamSync()[Symbol.iterator]();
|
|
3513
|
+
}
|
|
3514
|
+
[Symbol.iterator]() {
|
|
3515
|
+
return this.iterateSync();
|
|
3516
|
+
}
|
|
3517
|
+
iterate() {
|
|
3518
|
+
return this.stream()[Symbol.asyncIterator]();
|
|
3519
|
+
}
|
|
3520
|
+
[Symbol.asyncIterator]() {
|
|
3521
|
+
return this.iterate();
|
|
3522
|
+
}
|
|
3523
|
+
};
|
|
3524
|
+
le = (n, t = {}) => {
|
|
3525
|
+
Array.isArray(n) || (n = [n]);
|
|
3526
|
+
for (let e of n) if (new D(e, t).hasMagic()) return !0;
|
|
3527
|
+
return !1;
|
|
3528
|
+
};
|
|
3529
|
+
ji = Bt, Ii = Object.assign(Qe, { sync: Bt }), zi = Ut, Bi = Object.assign(es, { sync: Ut }), Ui = Object.assign(ts, {
|
|
3530
|
+
stream: Bt,
|
|
3531
|
+
iterate: Ut
|
|
3532
|
+
}), Ze = Object.assign(Je, {
|
|
3533
|
+
glob: Je,
|
|
3534
|
+
globSync: ts,
|
|
3535
|
+
sync: Ui,
|
|
3536
|
+
globStream: Qe,
|
|
3537
|
+
stream: Ii,
|
|
3538
|
+
globStreamSync: Bt,
|
|
3539
|
+
streamSync: ji,
|
|
3540
|
+
globIterate: es,
|
|
3541
|
+
iterate: Bi,
|
|
3542
|
+
globIterateSync: Ut,
|
|
3543
|
+
iterateSync: zi,
|
|
3544
|
+
Glob: I,
|
|
3545
|
+
hasMagic: le,
|
|
3546
|
+
escape: tt,
|
|
3547
|
+
unescape: W
|
|
3548
|
+
});
|
|
3549
|
+
Ze.glob = Ze;
|
|
3550
|
+
}))();
|
|
3551
|
+
const deleteGlob = (globPath) => {
|
|
3552
|
+
const files = Ze.sync(globPath);
|
|
3553
|
+
for (const file of files) fs.rmSync(file, {
|
|
3554
|
+
recursive: true,
|
|
3555
|
+
force: true
|
|
3556
|
+
});
|
|
3557
|
+
};
|
|
3558
|
+
//#endregion
|
|
3559
|
+
//#region src/lib/initCwd.ts
|
|
3560
|
+
function INIT_CWD() {
|
|
3561
|
+
return process.env.INIT_CWD ?? process.cwd();
|
|
3562
|
+
}
|
|
3563
|
+
//#endregion
|
|
3564
|
+
//#region src/lib/packageName.ts
|
|
3565
|
+
function packageName() {
|
|
3566
|
+
if (process.env.npm_package_name != null && process.env.npm_package_name.length > 0) return process.env.npm_package_name;
|
|
3567
|
+
try {
|
|
3568
|
+
const pkgPath = PATH.join(INIT_CWD(), "package.json");
|
|
3569
|
+
return JSON.parse(readFileSync(pkgPath, "utf8")).name;
|
|
3570
|
+
} catch {
|
|
3571
|
+
return;
|
|
3572
|
+
}
|
|
3573
|
+
}
|
|
3574
|
+
//#endregion
|
|
3575
|
+
//#region src/lib/reporting/xyReporter.ts
|
|
3576
|
+
const reporterState = {
|
|
3577
|
+
currentCommand: "unknown",
|
|
3578
|
+
isEnvelopeEmitted: false,
|
|
3579
|
+
isJsonModeEnabled: false,
|
|
3580
|
+
isStrictModeEnabled: false,
|
|
3581
|
+
originalStdoutWrite: void 0,
|
|
3582
|
+
startTime: 0
|
|
3583
|
+
};
|
|
3584
|
+
function isJsonMode() {
|
|
3585
|
+
return reporterState.isJsonModeEnabled;
|
|
3586
|
+
}
|
|
3587
|
+
//#endregion
|
|
3588
|
+
//#region src/actions/package/clean-outputs.ts
|
|
3589
|
+
const packageCleanOutputs = (options = {}) => {
|
|
3590
|
+
const pkg = options.pkg ?? INIT_CWD();
|
|
3591
|
+
const pkgName = options.pkgName ?? packageName();
|
|
3592
|
+
const folders = [
|
|
3593
|
+
PATH.join(pkg, "dist"),
|
|
3594
|
+
PATH.join(pkg, "build"),
|
|
3595
|
+
PATH.join(pkg, "docs")
|
|
3596
|
+
];
|
|
3597
|
+
(isJsonMode() ? console.error : console.log)(chalk.green(`Cleaning Outputs [${pkgName}]`));
|
|
3598
|
+
for (const folder of folders) deleteGlob(folder);
|
|
3599
|
+
return 0;
|
|
3600
|
+
};
|
|
3601
|
+
//#endregion
|
|
3602
|
+
//#region src/actions/package/clean-typescript.ts
|
|
3603
|
+
const packageCleanTypescript = (options = {}) => {
|
|
3604
|
+
const pkg = options.pkg ?? INIT_CWD();
|
|
3605
|
+
const pkgName = options.pkgName ?? packageName();
|
|
3606
|
+
(isJsonMode() ? console.error : console.log)(chalk.green(`Cleaning Typescript [${pkgName}]`));
|
|
3607
|
+
const files = [
|
|
3608
|
+
PATH.join(pkg, "*.tsbuildinfo"),
|
|
3609
|
+
PATH.join(pkg, ".tsconfig.*"),
|
|
3610
|
+
PATH.join(pkg, ".eslintcache")
|
|
3611
|
+
];
|
|
3612
|
+
for (const file of files) deleteGlob(file);
|
|
3613
|
+
return 0;
|
|
3614
|
+
};
|
|
3615
|
+
//#endregion
|
|
3616
|
+
//#region src/actions/package/clean.ts
|
|
3617
|
+
const packageClean = (options = {}) => {
|
|
3618
|
+
return [packageCleanOutputs(options), packageCleanTypescript(options)].reduce((prev, value) => prev + value, 0);
|
|
3619
|
+
};
|
|
3620
|
+
//#endregion
|
|
3621
|
+
//#region src/bin/package/clean.ts
|
|
3622
|
+
try {
|
|
3623
|
+
const exitCode = packageClean();
|
|
3624
|
+
process.exit(exitCode);
|
|
3625
|
+
} catch (error) {
|
|
3626
|
+
console.error(error);
|
|
3627
|
+
process.exit(1);
|
|
3628
|
+
}
|
|
3629
|
+
//#endregion
|
|
3630
|
+
export {};
|
|
3631
|
+
|
|
3632
|
+
//# sourceMappingURL=clean.mjs.map
|