@xylabs/ts-scripts-yarn3 7.4.28 → 7.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/deploy-major.mjs +1 -90
- package/dist/actions/deploy-major.mjs.map +1 -1
- package/dist/actions/deploy-minor.mjs +1 -90
- package/dist/actions/deploy-minor.mjs.map +1 -1
- package/dist/actions/deploy-next.mjs +1 -90
- package/dist/actions/deploy-next.mjs.map +1 -1
- package/dist/actions/deploy.mjs +1 -90
- package/dist/actions/deploy.mjs.map +1 -1
- package/dist/actions/index.mjs +128 -3840
- package/dist/actions/index.mjs.map +1 -1
- package/dist/actions/publish.mjs +1 -90
- package/dist/actions/publish.mjs.map +1 -1
- package/dist/actions/reinstall.mjs +1 -90
- package/dist/actions/reinstall.mjs.map +1 -1
- package/dist/actions/up.mjs +1 -90
- package/dist/actions/up.mjs.map +1 -1
- package/dist/actions/updo.mjs +1 -90
- package/dist/actions/updo.mjs.map +1 -1
- package/dist/actions/upplug.mjs +1 -90
- package/dist/actions/upplug.mjs.map +1 -1
- package/dist/actions/upyarn.mjs +1 -90
- package/dist/actions/upyarn.mjs.map +1 -1
- package/dist/actions/yarn3only.mjs +2 -32
- package/dist/actions/yarn3only.mjs.map +1 -1
- package/dist/bin/xy.mjs +222 -3684
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/index.d.ts +24 -502
- package/dist/index.mjs +224 -4659
- package/dist/index.mjs.map +1 -1
- package/dist/lib/index.mjs +0 -804
- package/dist/lib/index.mjs.map +1 -1
- package/dist/lib/yarn/index.mjs +0 -7
- package/dist/lib/yarn/index.mjs.map +1 -1
- package/dist/pm/index.mjs +82 -0
- package/dist/pm/index.mjs.map +1 -0
- package/dist/pm/yarnPackageManager.mjs +82 -0
- package/dist/pm/yarnPackageManager.mjs.map +1 -0
- package/dist/xy/common/index.mjs +7 -1459
- package/dist/xy/common/index.mjs.map +1 -1
- package/dist/xy/common/upplugCommand.mjs +1 -90
- package/dist/xy/common/upplugCommand.mjs.map +1 -1
- package/dist/xy/common/upyarnCommand.mjs +1 -90
- package/dist/xy/common/upyarnCommand.mjs.map +1 -1
- package/dist/xy/common/yarn3OnlyCommand.mjs +1 -33
- package/dist/xy/common/yarn3OnlyCommand.mjs.map +1 -1
- package/dist/xy/deploy/deployCommand.mjs +3 -90
- package/dist/xy/deploy/deployCommand.mjs.map +1 -1
- package/dist/xy/deploy/deployMajorCommand.mjs +1 -90
- package/dist/xy/deploy/deployMajorCommand.mjs.map +1 -1
- package/dist/xy/deploy/deployMinorCommand.mjs +1 -90
- package/dist/xy/deploy/deployMinorCommand.mjs.map +1 -1
- package/dist/xy/deploy/deployNextCommand.mjs +1 -90
- package/dist/xy/deploy/deployNextCommand.mjs.map +1 -1
- package/dist/xy/deploy/index.mjs +11 -94
- package/dist/xy/deploy/index.mjs.map +1 -1
- package/dist/xy/deploy/publishCommand.mjs +1 -90
- package/dist/xy/deploy/publishCommand.mjs.map +1 -1
- package/dist/xy/index.mjs +183 -3717
- package/dist/xy/index.mjs.map +1 -1
- package/dist/xy/install/cleanCommand.mjs +6 -118
- package/dist/xy/install/cleanCommand.mjs.map +1 -1
- package/dist/xy/install/dupdepsCommand.mjs +6 -178
- package/dist/xy/install/dupdepsCommand.mjs.map +1 -1
- package/dist/xy/install/index.mjs +12 -305
- package/dist/xy/install/index.mjs.map +1 -1
- package/dist/xy/install/reinstallCommand.mjs +1 -90
- package/dist/xy/install/reinstallCommand.mjs.map +1 -1
- package/dist/xy/install/staticsCommand.mjs +6 -177
- package/dist/xy/install/staticsCommand.mjs.map +1 -1
- package/dist/xy/install/upCommand.mjs +1 -90
- package/dist/xy/install/upCommand.mjs.map +1 -1
- package/dist/xy/install/updoCommand.mjs +1 -90
- package/dist/xy/install/updoCommand.mjs.map +1 -1
- package/dist/xy/xy.mjs +64 -3595
- package/dist/xy/xy.mjs.map +1 -1
- package/dist/xy/yarnCommands.mjs +80 -0
- package/dist/xy/yarnCommands.mjs.map +1 -0
- package/package.json +5 -47
- package/dist/actions/build.mjs +0 -140
- package/dist/actions/build.mjs.map +0 -1
- package/dist/actions/claude-clean.mjs +0 -71
- package/dist/actions/claude-clean.mjs.map +0 -1
- package/dist/actions/claude-commands.mjs +0 -112
- package/dist/actions/claude-commands.mjs.map +0 -1
- package/dist/actions/claude-rules.mjs +0 -137
- package/dist/actions/claude-rules.mjs.map +0 -1
- package/dist/actions/claude-settings.mjs +0 -85
- package/dist/actions/claude-settings.mjs.map +0 -1
- package/dist/actions/claude-skills.mjs +0 -120
- package/dist/actions/claude-skills.mjs.map +0 -1
- package/dist/actions/clean-docs.mjs +0 -37
- package/dist/actions/clean-docs.mjs.map +0 -1
- package/dist/actions/clean-eslint.mjs +0 -26
- package/dist/actions/clean-eslint.mjs.map +0 -1
- package/dist/actions/clean.mjs +0 -124
- package/dist/actions/clean.mjs.map +0 -1
- package/dist/actions/compile.mjs +0 -157
- package/dist/actions/compile.mjs.map +0 -1
- package/dist/actions/copy-assets.mjs +0 -73
- package/dist/actions/copy-assets.mjs.map +0 -1
- package/dist/actions/cycle.mjs +0 -144
- package/dist/actions/cycle.mjs.map +0 -1
- package/dist/actions/dead.mjs +0 -98
- package/dist/actions/dead.mjs.map +0 -1
- package/dist/actions/deplint/checkPackage/checkPackage.mjs +0 -672
- package/dist/actions/deplint/checkPackage/checkPackage.mjs.map +0 -1
- package/dist/actions/deplint/checkPackage/checkPackageTypes.mjs +0 -1
- package/dist/actions/deplint/checkPackage/checkPackageTypes.mjs.map +0 -1
- package/dist/actions/deplint/checkPackage/getUnlistedDependencies.mjs +0 -48
- package/dist/actions/deplint/checkPackage/getUnlistedDependencies.mjs.map +0 -1
- package/dist/actions/deplint/checkPackage/getUnlistedDevDependencies.mjs +0 -33
- package/dist/actions/deplint/checkPackage/getUnlistedDevDependencies.mjs.map +0 -1
- package/dist/actions/deplint/checkPackage/getUnusedDependencies.mjs +0 -30
- package/dist/actions/deplint/checkPackage/getUnusedDependencies.mjs.map +0 -1
- package/dist/actions/deplint/checkPackage/getUnusedDevDependencies.mjs +0 -309
- package/dist/actions/deplint/checkPackage/getUnusedDevDependencies.mjs.map +0 -1
- package/dist/actions/deplint/checkPackage/getUnusedPeerDependencies.mjs +0 -26
- package/dist/actions/deplint/checkPackage/getUnusedPeerDependencies.mjs.map +0 -1
- package/dist/actions/deplint/checkPackage/index.mjs +0 -672
- package/dist/actions/deplint/checkPackage/index.mjs.map +0 -1
- package/dist/actions/deplint/deplint.mjs +0 -764
- package/dist/actions/deplint/deplint.mjs.map +0 -1
- package/dist/actions/deplint/findFiles.mjs +0 -39
- package/dist/actions/deplint/findFiles.mjs.map +0 -1
- package/dist/actions/deplint/findFilesByGlob.mjs +0 -14
- package/dist/actions/deplint/findFilesByGlob.mjs.map +0 -1
- package/dist/actions/deplint/getBasePackageName.mjs +0 -13
- package/dist/actions/deplint/getBasePackageName.mjs.map +0 -1
- package/dist/actions/deplint/getCliReferencedPackagesFromFiles.mjs +0 -140
- package/dist/actions/deplint/getCliReferencedPackagesFromFiles.mjs.map +0 -1
- package/dist/actions/deplint/getDependenciesFromPackageJson.mjs +0 -20
- package/dist/actions/deplint/getDependenciesFromPackageJson.mjs.map +0 -1
- package/dist/actions/deplint/getExtendsFromTsconfigs.mjs +0 -44
- package/dist/actions/deplint/getExtendsFromTsconfigs.mjs.map +0 -1
- package/dist/actions/deplint/getExternalImportsFromFiles.mjs +0 -122
- package/dist/actions/deplint/getExternalImportsFromFiles.mjs.map +0 -1
- package/dist/actions/deplint/getImportsFromFile.mjs +0 -85
- package/dist/actions/deplint/getImportsFromFile.mjs.map +0 -1
- package/dist/actions/deplint/getRequiredPeerDependencies.mjs +0 -36
- package/dist/actions/deplint/getRequiredPeerDependencies.mjs.map +0 -1
- package/dist/actions/deplint/getScriptReferencedPackages.mjs +0 -83
- package/dist/actions/deplint/getScriptReferencedPackages.mjs.map +0 -1
- package/dist/actions/deplint/implicitDevDependencies.mjs +0 -80
- package/dist/actions/deplint/implicitDevDependencies.mjs.map +0 -1
- package/dist/actions/deplint/index.mjs +0 -764
- package/dist/actions/deplint/index.mjs.map +0 -1
- package/dist/actions/dupdeps.mjs +0 -184
- package/dist/actions/dupdeps.mjs.map +0 -1
- package/dist/actions/fix.mjs +0 -147
- package/dist/actions/fix.mjs.map +0 -1
- package/dist/actions/gen-docs.mjs +0 -109
- package/dist/actions/gen-docs.mjs.map +0 -1
- package/dist/actions/gitignore.mjs +0 -152
- package/dist/actions/gitignore.mjs.map +0 -1
- package/dist/actions/gitlint-fix.mjs +0 -27
- package/dist/actions/gitlint-fix.mjs.map +0 -1
- package/dist/actions/gitlint.mjs +0 -48
- package/dist/actions/gitlint.mjs.map +0 -1
- package/dist/actions/knip.mjs +0 -98
- package/dist/actions/knip.mjs.map +0 -1
- package/dist/actions/license.mjs +0 -84
- package/dist/actions/license.mjs.map +0 -1
- package/dist/actions/lint.mjs +0 -144
- package/dist/actions/lint.mjs.map +0 -1
- package/dist/actions/lintlint.mjs +0 -230
- package/dist/actions/lintlint.mjs.map +0 -1
- package/dist/actions/npmignore-gen.mjs +0 -88
- package/dist/actions/npmignore-gen.mjs.map +0 -1
- package/dist/actions/package/clean-outputs.mjs +0 -29
- package/dist/actions/package/clean-outputs.mjs.map +0 -1
- package/dist/actions/package/clean-typescript.mjs +0 -29
- package/dist/actions/package/clean-typescript.mjs.map +0 -1
- package/dist/actions/package/clean.mjs +0 -48
- package/dist/actions/package/clean.mjs.map +0 -1
- package/dist/actions/package/compile/XyConfig.mjs +0 -1
- package/dist/actions/package/compile/XyConfig.mjs.map +0 -1
- package/dist/actions/package/compile/buildEntries.mjs +0 -53
- package/dist/actions/package/compile/buildEntries.mjs.map +0 -1
- package/dist/actions/package/compile/compile.mjs +0 -433
- package/dist/actions/package/compile/compile.mjs.map +0 -1
- package/dist/actions/package/compile/copyTypeFiles.mjs +0 -34
- package/dist/actions/package/compile/copyTypeFiles.mjs.map +0 -1
- package/dist/actions/package/compile/deepMerge.mjs +0 -26
- package/dist/actions/package/compile/deepMerge.mjs.map +0 -1
- package/dist/actions/package/compile/getCompilerOptions.mjs +0 -12
- package/dist/actions/package/compile/getCompilerOptions.mjs.map +0 -1
- package/dist/actions/package/compile/index.mjs +0 -436
- package/dist/actions/package/compile/index.mjs.map +0 -1
- package/dist/actions/package/compile/inputs.mjs +0 -22
- package/dist/actions/package/compile/inputs.mjs.map +0 -1
- package/dist/actions/package/compile/packageCompileTsc.mjs +0 -94
- package/dist/actions/package/compile/packageCompileTsc.mjs.map +0 -1
- package/dist/actions/package/compile/packageCompileTscTypes.mjs +0 -92
- package/dist/actions/package/compile/packageCompileTscTypes.mjs.map +0 -1
- package/dist/actions/package/compile/packageCompileTsup.mjs +0 -402
- package/dist/actions/package/compile/packageCompileTsup.mjs.map +0 -1
- package/dist/actions/package/copy-assets.mjs +0 -46
- package/dist/actions/package/copy-assets.mjs.map +0 -1
- package/dist/actions/package/cycle.mjs +0 -39
- package/dist/actions/package/cycle.mjs.map +0 -1
- package/dist/actions/package/gen-docs.mjs +0 -114
- package/dist/actions/package/gen-docs.mjs.map +0 -1
- package/dist/actions/package/index.mjs +0 -825
- package/dist/actions/package/index.mjs.map +0 -1
- package/dist/actions/package/lint.mjs +0 -80
- package/dist/actions/package/lint.mjs.map +0 -1
- package/dist/actions/package/publint.mjs +0 -66
- package/dist/actions/package/publint.mjs.map +0 -1
- package/dist/actions/package/recompile.mjs +0 -483
- package/dist/actions/package/recompile.mjs.map +0 -1
- package/dist/actions/package-lint.mjs +0 -178
- package/dist/actions/package-lint.mjs.map +0 -1
- package/dist/actions/publint.mjs +0 -166
- package/dist/actions/publint.mjs.map +0 -1
- package/dist/actions/readme-gen.mjs +0 -289
- package/dist/actions/readme-gen.mjs.map +0 -1
- package/dist/actions/readme-init.mjs +0 -83
- package/dist/actions/readme-init.mjs.map +0 -1
- package/dist/actions/rebuild.mjs +0 -101
- package/dist/actions/rebuild.mjs.map +0 -1
- package/dist/actions/recompile.mjs +0 -187
- package/dist/actions/recompile.mjs.map +0 -1
- package/dist/actions/relint.mjs +0 -144
- package/dist/actions/relint.mjs.map +0 -1
- package/dist/actions/retest.mjs +0 -123
- package/dist/actions/retest.mjs.map +0 -1
- package/dist/actions/sonar.mjs +0 -98
- package/dist/actions/sonar.mjs.map +0 -1
- package/dist/actions/statics.mjs +0 -183
- package/dist/actions/statics.mjs.map +0 -1
- package/dist/actions/test.mjs +0 -117
- package/dist/actions/test.mjs.map +0 -1
- package/dist/bin/package/build-only.mjs +0 -445
- package/dist/bin/package/build-only.mjs.map +0 -1
- package/dist/bin/package/build.mjs +0 -445
- package/dist/bin/package/build.mjs.map +0 -1
- package/dist/bin/package/clean-outputs.mjs +0 -29
- package/dist/bin/package/clean-outputs.mjs.map +0 -1
- package/dist/bin/package/clean-typescript.mjs +0 -29
- package/dist/bin/package/clean-typescript.mjs.map +0 -1
- package/dist/bin/package/clean.mjs +0 -53
- package/dist/bin/package/clean.mjs.map +0 -1
- package/dist/bin/package/compile-only.mjs +0 -441
- package/dist/bin/package/compile-only.mjs.map +0 -1
- package/dist/bin/package/compile-tsup.mjs +0 -409
- package/dist/bin/package/compile-tsup.mjs.map +0 -1
- package/dist/bin/package/compile.mjs +0 -445
- package/dist/bin/package/compile.mjs.map +0 -1
- package/dist/bin/package/copy-assets-cjs.mjs +0 -54
- package/dist/bin/package/copy-assets-cjs.mjs.map +0 -1
- package/dist/bin/package/copy-assets-esm.mjs +0 -54
- package/dist/bin/package/copy-assets-esm.mjs.map +0 -1
- package/dist/bin/package/cycle.mjs +0 -51
- package/dist/bin/package/cycle.mjs.map +0 -1
- package/dist/bin/package/fix.mjs +0 -92
- package/dist/bin/package/fix.mjs.map +0 -1
- package/dist/bin/package/gen-docs.mjs +0 -121
- package/dist/bin/package/gen-docs.mjs.map +0 -1
- package/dist/bin/package/lint-verbose.mjs +0 -92
- package/dist/bin/package/lint-verbose.mjs.map +0 -1
- package/dist/bin/package/lint.mjs +0 -92
- package/dist/bin/package/lint.mjs.map +0 -1
- package/dist/bin/package/publint.mjs +0 -75
- package/dist/bin/package/publint.mjs.map +0 -1
- package/dist/bin/package/recompile.mjs +0 -489
- package/dist/bin/package/recompile.mjs.map +0 -1
- package/dist/bin/package/relint.mjs +0 -92
- package/dist/bin/package/relint.mjs.map +0 -1
- package/dist/lib/checkResult.mjs +0 -16
- package/dist/lib/checkResult.mjs.map +0 -1
- package/dist/lib/claudeMdTemplate.mjs +0 -65
- package/dist/lib/claudeMdTemplate.mjs.map +0 -1
- package/dist/lib/createBuildConfig.mjs +0 -55
- package/dist/lib/createBuildConfig.mjs.map +0 -1
- package/dist/lib/defaultBuildConfig.mjs +0 -23
- package/dist/lib/defaultBuildConfig.mjs.map +0 -1
- package/dist/lib/deleteGlob.mjs +0 -13
- package/dist/lib/deleteGlob.mjs.map +0 -1
- package/dist/lib/dependencies/DuplicateDetector.mjs +0 -81
- package/dist/lib/dependencies/DuplicateDetector.mjs.map +0 -1
- package/dist/lib/dependencies/detectDuplicateDependencies.mjs +0 -164
- package/dist/lib/dependencies/detectDuplicateDependencies.mjs.map +0 -1
- package/dist/lib/dependencies/index.mjs +0 -165
- package/dist/lib/dependencies/index.mjs.map +0 -1
- package/dist/lib/file/ReadFileSyncOptions.mjs +0 -6
- package/dist/lib/file/ReadFileSyncOptions.mjs.map +0 -1
- package/dist/lib/file/constants.mjs +0 -8
- package/dist/lib/file/constants.mjs.map +0 -1
- package/dist/lib/file/fileLines.mjs +0 -32
- package/dist/lib/file/fileLines.mjs.map +0 -1
- package/dist/lib/file/index.mjs +0 -42
- package/dist/lib/file/index.mjs.map +0 -1
- package/dist/lib/file/tryReadFileSync.mjs +0 -14
- package/dist/lib/file/tryReadFileSync.mjs.map +0 -1
- package/dist/lib/generateIgnoreFiles.mjs +0 -84
- package/dist/lib/generateIgnoreFiles.mjs.map +0 -1
- package/dist/lib/generateReadmeFiles.mjs +0 -257
- package/dist/lib/generateReadmeFiles.mjs.map +0 -1
- package/dist/lib/gitignoreTemplate.mjs +0 -12
- package/dist/lib/gitignoreTemplate.mjs.map +0 -1
- package/dist/lib/jsonFormatters.mjs +0 -11
- package/dist/lib/jsonFormatters.mjs.map +0 -1
- package/dist/lib/loadConfig.mjs +0 -24
- package/dist/lib/loadConfig.mjs.map +0 -1
- package/dist/lib/parsedPackageJSON.mjs +0 -11
- package/dist/lib/parsedPackageJSON.mjs.map +0 -1
- package/dist/lib/processEx.mjs +0 -36
- package/dist/lib/processEx.mjs.map +0 -1
- package/dist/lib/runSteps.mjs +0 -95
- package/dist/lib/runSteps.mjs.map +0 -1
- package/dist/lib/runStepsAsync.mjs +0 -113
- package/dist/lib/runStepsAsync.mjs.map +0 -1
- package/dist/lib/runXy.mjs +0 -103
- package/dist/lib/runXy.mjs.map +0 -1
- package/dist/lib/runXyWithWarning.mjs +0 -13
- package/dist/lib/runXyWithWarning.mjs.map +0 -1
- package/dist/lib/safeExit.mjs +0 -61
- package/dist/lib/safeExit.mjs.map +0 -1
- package/dist/lib/string/empty.mjs +0 -8
- package/dist/lib/string/empty.mjs.map +0 -1
- package/dist/lib/string/index.mjs +0 -12
- package/dist/lib/string/index.mjs.map +0 -1
- package/dist/lib/string/union.mjs +0 -6
- package/dist/lib/string/union.mjs.map +0 -1
- package/dist/lib/tryRunLocalScript.mjs +0 -33
- package/dist/lib/tryRunLocalScript.mjs.map +0 -1
- package/dist/lib/withErrnoException.mjs +0 -13
- package/dist/lib/withErrnoException.mjs.map +0 -1
- package/dist/lib/withError.mjs +0 -8
- package/dist/lib/withError.mjs.map +0 -1
- package/dist/loadPackageConfig.mjs +0 -11
- package/dist/loadPackageConfig.mjs.map +0 -1
- package/dist/types.d.mjs +0 -1
- package/dist/types.d.mjs.map +0 -1
- package/dist/xy/build/buildCommand.mjs +0 -161
- package/dist/xy/build/buildCommand.mjs.map +0 -1
- package/dist/xy/build/compileCommand.mjs +0 -174
- package/dist/xy/build/compileCommand.mjs.map +0 -1
- package/dist/xy/build/compileOnlyCommand.mjs +0 -175
- package/dist/xy/build/compileOnlyCommand.mjs.map +0 -1
- package/dist/xy/build/copyAssetsCommand.mjs +0 -84
- package/dist/xy/build/copyAssetsCommand.mjs.map +0 -1
- package/dist/xy/build/index.mjs +0 -507
- package/dist/xy/build/index.mjs.map +0 -1
- package/dist/xy/build/rebuildCommand.mjs +0 -114
- package/dist/xy/build/rebuildCommand.mjs.map +0 -1
- package/dist/xy/build/recompileCommand.mjs +0 -204
- package/dist/xy/build/recompileCommand.mjs.map +0 -1
- package/dist/xy/common/claude/cleanCommand.mjs +0 -79
- package/dist/xy/common/claude/cleanCommand.mjs.map +0 -1
- package/dist/xy/common/claude/commandsCommand.mjs +0 -120
- package/dist/xy/common/claude/commandsCommand.mjs.map +0 -1
- package/dist/xy/common/claude/index.mjs +0 -546
- package/dist/xy/common/claude/index.mjs.map +0 -1
- package/dist/xy/common/claude/initCommand.mjs +0 -319
- package/dist/xy/common/claude/initCommand.mjs.map +0 -1
- package/dist/xy/common/claude/rulesCommand.mjs +0 -153
- package/dist/xy/common/claude/rulesCommand.mjs.map +0 -1
- package/dist/xy/common/claude/settingsCommand.mjs +0 -93
- package/dist/xy/common/claude/settingsCommand.mjs.map +0 -1
- package/dist/xy/common/claude/skillsCommand.mjs +0 -129
- package/dist/xy/common/claude/skillsCommand.mjs.map +0 -1
- package/dist/xy/common/cleanDocsCommand.mjs +0 -45
- package/dist/xy/common/cleanDocsCommand.mjs.map +0 -1
- package/dist/xy/common/deadCommand.mjs +0 -116
- package/dist/xy/common/deadCommand.mjs.map +0 -1
- package/dist/xy/common/genDocsCommand.mjs +0 -125
- package/dist/xy/common/genDocsCommand.mjs.map +0 -1
- package/dist/xy/common/gitignoreCommand.mjs +0 -158
- package/dist/xy/common/gitignoreCommand.mjs.map +0 -1
- package/dist/xy/common/gitlintCommand.mjs +0 -82
- package/dist/xy/common/gitlintCommand.mjs.map +0 -1
- package/dist/xy/common/licenseCommand.mjs +0 -100
- package/dist/xy/common/licenseCommand.mjs.map +0 -1
- package/dist/xy/common/npmignoreGenCommand.mjs +0 -98
- package/dist/xy/common/npmignoreGenCommand.mjs.map +0 -1
- package/dist/xy/common/readme/genCommand.mjs +0 -321
- package/dist/xy/common/readme/genCommand.mjs.map +0 -1
- package/dist/xy/common/readme/index.mjs +0 -361
- package/dist/xy/common/readme/index.mjs.map +0 -1
- package/dist/xy/common/readme/initCommand.mjs +0 -103
- package/dist/xy/common/readme/initCommand.mjs.map +0 -1
- package/dist/xy/common/retestCommand.mjs +0 -136
- package/dist/xy/common/retestCommand.mjs.map +0 -1
- package/dist/xy/common/testCommand.mjs +0 -130
- package/dist/xy/common/testCommand.mjs.map +0 -1
- package/dist/xy/lint/cycleCommand.mjs +0 -163
- package/dist/xy/lint/cycleCommand.mjs.map +0 -1
- package/dist/xy/lint/deplintCommand.mjs +0 -814
- package/dist/xy/lint/deplintCommand.mjs.map +0 -1
- package/dist/xy/lint/fixCommand.mjs +0 -168
- package/dist/xy/lint/fixCommand.mjs.map +0 -1
- package/dist/xy/lint/index.mjs +0 -1691
- package/dist/xy/lint/index.mjs.map +0 -1
- package/dist/xy/lint/knipCommand.mjs +0 -121
- package/dist/xy/lint/knipCommand.mjs.map +0 -1
- package/dist/xy/lint/lintCommand.mjs +0 -186
- package/dist/xy/lint/lintCommand.mjs.map +0 -1
- package/dist/xy/lint/lintlintCommand.mjs +0 -250
- package/dist/xy/lint/lintlintCommand.mjs.map +0 -1
- package/dist/xy/lint/packageLintCommand.mjs +0 -193
- package/dist/xy/lint/packageLintCommand.mjs.map +0 -1
- package/dist/xy/lint/publintCommand.mjs +0 -187
- package/dist/xy/lint/publintCommand.mjs.map +0 -1
- package/dist/xy/lint/relintCommand.mjs +0 -163
- package/dist/xy/lint/relintCommand.mjs.map +0 -1
- package/dist/xy/lint/sonarCommand.mjs +0 -121
- package/dist/xy/lint/sonarCommand.mjs.map +0 -1
- package/dist/xy/param.mjs +0 -8
- package/dist/xy/param.mjs.map +0 -1
- package/dist/xy/xyParseOptions.mjs +0 -70
- package/dist/xy/xyParseOptions.mjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,227 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { SpawnSyncOptionsWithBufferEncoding } from 'node:child_process';
|
|
5
|
-
import { PackageJson } from 'types-package-json';
|
|
1
|
+
import { Workspace, PackageManager, ScriptStep, WorkspaceForeachOptions } from '@xylabs/ts-scripts-common';
|
|
2
|
+
export * from '@xylabs/ts-scripts-common';
|
|
3
|
+
export { Workspace, clean, dupdeps, statics } from '@xylabs/ts-scripts-common';
|
|
6
4
|
import { Argv } from 'yargs';
|
|
7
5
|
|
|
8
|
-
interface BuildParams {
|
|
9
|
-
incremental?: boolean;
|
|
10
|
-
jobs?: number;
|
|
11
|
-
pkg?: string;
|
|
12
|
-
target?: 'esm' | 'cjs';
|
|
13
|
-
verbose?: boolean;
|
|
14
|
-
}
|
|
15
|
-
declare const build: ({ incremental, jobs, target, verbose, pkg, }: BuildParams) => Promise<number>;
|
|
16
|
-
|
|
17
|
-
declare function claudeClean(): number;
|
|
18
|
-
|
|
19
|
-
declare const claudeCommands: () => number;
|
|
20
|
-
|
|
21
|
-
declare const claudeRules: ({ force }?: {
|
|
22
|
-
force?: boolean;
|
|
23
|
-
}) => number;
|
|
24
|
-
|
|
25
|
-
declare function claudeSettings(): Promise<number>;
|
|
26
|
-
|
|
27
|
-
declare const claudeSkills: () => number;
|
|
28
|
-
|
|
29
|
-
interface CleanParams {
|
|
30
|
-
pkg?: string;
|
|
31
|
-
verbose?: boolean;
|
|
32
|
-
}
|
|
33
|
-
interface CleanPackageParams {
|
|
34
|
-
pkg: string;
|
|
35
|
-
verbose?: boolean;
|
|
36
|
-
}
|
|
37
|
-
declare const clean: ({ verbose, pkg }: CleanParams) => Promise<number>;
|
|
38
|
-
declare const cleanPackage: ({ pkg }: CleanPackageParams) => Promise<number>;
|
|
39
|
-
declare const cleanAll: ({ verbose }: CleanParams) => Promise<number>;
|
|
40
|
-
|
|
41
|
-
declare const cleanDocs: () => number;
|
|
42
|
-
|
|
43
|
-
interface CompileParams {
|
|
44
|
-
incremental?: boolean;
|
|
45
|
-
jobs?: number;
|
|
46
|
-
pkg?: string;
|
|
47
|
-
publint?: boolean;
|
|
48
|
-
target?: 'esm' | 'cjs';
|
|
49
|
-
verbose?: boolean;
|
|
50
|
-
}
|
|
51
|
-
interface CompilePackageParams {
|
|
52
|
-
pkg: string;
|
|
53
|
-
publint?: boolean;
|
|
54
|
-
target?: 'esm' | 'cjs';
|
|
55
|
-
verbose?: boolean;
|
|
56
|
-
}
|
|
57
|
-
declare const compile: ({ verbose, target, pkg, incremental, publint, jobs, }: CompileParams) => number;
|
|
58
|
-
declare const compilePackage: ({ target, pkg }: CompilePackageParams) => number;
|
|
59
|
-
declare const compileAll: ({ jobs, verbose, target, incremental, }: CompileParams) => number;
|
|
60
|
-
|
|
61
|
-
interface CopyAssetsParams {
|
|
62
|
-
pkg?: string;
|
|
63
|
-
target?: 'esm' | 'cjs';
|
|
64
|
-
}
|
|
65
|
-
declare const copyAssets: ({ target, pkg }: CopyAssetsParams) => Promise<0 | 1>;
|
|
66
|
-
|
|
67
|
-
interface CycleParams {
|
|
68
|
-
incremental?: boolean;
|
|
69
|
-
jobs?: number;
|
|
70
|
-
pkg?: string;
|
|
71
|
-
verbose?: boolean;
|
|
72
|
-
}
|
|
73
|
-
interface CyclePackageParams {
|
|
74
|
-
pkg: string;
|
|
75
|
-
verbose?: boolean;
|
|
76
|
-
}
|
|
77
|
-
declare const cycle: ({ verbose, pkg }?: CycleParams) => Promise<number>;
|
|
78
|
-
declare const cyclePackage: ({ pkg, verbose }: CyclePackageParams) => number;
|
|
79
|
-
declare const cycleAll: ({ verbose }: {
|
|
80
|
-
verbose?: boolean;
|
|
81
|
-
}) => Promise<number>;
|
|
82
|
-
|
|
83
|
-
declare const dead: () => number;
|
|
84
|
-
|
|
85
|
-
declare const checkResult: (name: string, result: number, level?: "error" | "warn", exitOnFail?: boolean) => void;
|
|
86
|
-
|
|
87
|
-
declare const XYLABS_RULES_PREFIX = "xylabs-";
|
|
88
|
-
declare const XYLABS_COMMANDS_PREFIX = "xy-";
|
|
89
|
-
declare const LEGACY_COMMANDS_PREFIX = "xylabs-";
|
|
90
|
-
declare const XYLABS_SKILLS_PREFIX = "xylabs-";
|
|
91
|
-
declare const claudeMdRuleTemplates: () => Record<string, string>;
|
|
92
|
-
declare const claudeCommandTemplates: () => Record<string, string>;
|
|
93
|
-
declare const claudeSkillTemplates: () => Record<string, Record<string, string>>;
|
|
94
|
-
declare const claudeMdProjectTemplate: () => string;
|
|
95
|
-
declare const claudeMdLocalTemplate: () => string;
|
|
96
|
-
|
|
97
|
-
declare const createBuildConfig: (location: string, module: "ESNext" | "CommonJS", target: "ESNext" | "ES6", outDirSuffix: string) => Record<string, unknown> | undefined;
|
|
98
|
-
|
|
99
|
-
declare const defaultBuildConfig: {
|
|
100
|
-
compilerOptions: {
|
|
101
|
-
rootDir: string;
|
|
102
|
-
rootDirs: string[];
|
|
103
|
-
};
|
|
104
|
-
exclude: string[];
|
|
105
|
-
include: string[];
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
declare const deleteGlob: (globPath: string) => void;
|
|
109
|
-
|
|
110
|
-
declare const detectDuplicateDependencies: (depsFromPackageJSON?: string[], DefaultDependencies?: string[]) => number;
|
|
111
|
-
|
|
112
|
-
declare class DuplicateDetector {
|
|
113
|
-
private dependency;
|
|
114
|
-
private dependencyEntries;
|
|
115
|
-
constructor(output: string, dependency: string);
|
|
116
|
-
detect(): 1 | 0;
|
|
117
|
-
private detectReducer;
|
|
118
|
-
private resultsFactory;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
declare const WINDOWS_NEWLINE_REGEX: RegExp;
|
|
122
|
-
declare const CROSS_PLATFORM_NEWLINE = "\n";
|
|
123
|
-
|
|
124
|
-
type ReadFileSyncOptions = BufferEncoding | {
|
|
125
|
-
encoding: BufferEncoding;
|
|
126
|
-
flags?: string;
|
|
127
|
-
};
|
|
128
|
-
declare const defaultReadFileSyncOptions: ReadFileSyncOptions;
|
|
129
|
-
|
|
130
|
-
declare const readLines: (uri: PathLike, options?: ReadFileSyncOptions) => string[];
|
|
131
|
-
declare const readNonEmptyLines: (uri: PathLike, options?: ReadFileSyncOptions) => string[];
|
|
132
|
-
declare const writeLines: (uri: PathLike, lines: string[], options?: WriteFileOptions) => void;
|
|
133
|
-
|
|
134
|
-
declare const tryReadFileSync: (uri: PathLike, options?: ReadFileSyncOptions) => string | undefined;
|
|
135
|
-
|
|
136
|
-
declare const generateIgnoreFiles: (filename: string, pkg?: string) => 1 | 0;
|
|
137
|
-
|
|
138
|
-
interface GenerateReadmeFilesParams {
|
|
139
|
-
logoLinkUrl?: string;
|
|
140
|
-
logoUrl?: string;
|
|
141
|
-
pkg?: string;
|
|
142
|
-
templatePath?: string;
|
|
143
|
-
typedoc?: boolean;
|
|
144
|
-
verbose?: boolean;
|
|
145
|
-
}
|
|
146
|
-
declare const DEFAULT_README_TEMPLATE: string;
|
|
147
|
-
declare const DEFAULT_README_BODY: string;
|
|
148
|
-
declare function applyLogoConfig(template: string, logoUrl?: string, logoLinkUrl?: string): string;
|
|
149
|
-
declare function resolveTemplatePath(templatePath: string | undefined): string;
|
|
150
|
-
declare function scaffoldTemplate(resolvedTemplatePath: string, template: string): Promise<void>;
|
|
151
|
-
declare function generateReadmeFiles({ logoLinkUrl, logoUrl, pkg, templatePath, typedoc, verbose, }: GenerateReadmeFilesParams): Promise<number>;
|
|
152
|
-
|
|
153
|
-
declare const gitignoreTemplate: () => string;
|
|
154
|
-
|
|
155
|
-
declare const multiLineToJSONArray: (output: string) => any;
|
|
156
|
-
|
|
157
|
-
declare const loadConfig: <T extends object>(params?: T) => Promise<T>;
|
|
158
|
-
|
|
159
|
-
declare const parsedPackageJSON: (path?: string) => any;
|
|
160
|
-
|
|
161
|
-
declare const processEx: (ex: unknown) => never;
|
|
162
|
-
|
|
163
|
-
type ScriptStep = [/* command */ /* command */ 'yarn' | 'node' | 'ts-node-script' | 'tsc' | 'npm' | 'vitest', /* arg */ /* arg */ string | string[]] | [/* command */ string, /* arg */ /* arg */ string | string[], /* config */ SpawnSyncOptionsWithBufferEncoding];
|
|
164
|
-
declare const runSteps: (name: string, steps: ScriptStep[], exitOnFail?: boolean, messages?: string[]) => number;
|
|
165
|
-
|
|
166
|
-
declare const runStepAsync: (name: string, step: ScriptStep, exitOnFail?: boolean, message?: string) => Promise<number>;
|
|
167
|
-
declare const runStepsAsync: (name: string, steps: ScriptStep[], exitOnFail?: boolean, messages?: string[]) => Promise<number>;
|
|
168
|
-
|
|
169
|
-
declare const runXy: (command: string) => number;
|
|
170
|
-
|
|
171
|
-
declare const runXyWithWarning: (command: string) => number;
|
|
172
|
-
|
|
173
|
-
/** Catch child process a crash and returns the code */
|
|
174
|
-
declare const safeExit: (func: () => number, exitOnFail?: boolean) => number;
|
|
175
|
-
declare const safeExitAsync: (func: () => Promise<number>, exitOnFail?: boolean) => Promise<number>;
|
|
176
|
-
|
|
177
|
-
declare const empty: (value?: string | undefined) => boolean;
|
|
178
|
-
declare const notEmpty: (value?: string | undefined) => boolean;
|
|
179
|
-
|
|
180
|
-
declare const union: (a: string[], b: string[]) => Set<string>;
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* Attempts to run a local root package.json script instead of the built-in
|
|
184
|
-
* xy command. Returns the exit code if the override ran, or undefined if
|
|
185
|
-
* no override applies (no matching script or recursion guard).
|
|
186
|
-
*/
|
|
187
|
-
declare function tryRunLocalScript(commandName: string): number | undefined;
|
|
188
|
-
|
|
189
|
-
declare const withErrnoException: <T extends NodeJS.ErrnoException = NodeJS.ErrnoException>(ex: unknown, closure: (error: T) => number) => number | undefined;
|
|
190
|
-
|
|
191
|
-
declare const withError: <T extends Error = Error>(ex: any, closure: (error: T) => number, predicate?: (ex: T) => boolean) => number | undefined;
|
|
192
|
-
|
|
193
|
-
declare const isYarnVersionOrGreater: (major: number, minor?: number, patch?: number) => [boolean, string];
|
|
194
|
-
|
|
195
|
-
interface Workspace {
|
|
196
|
-
location: string;
|
|
197
|
-
name: string;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
declare const yarnWorkspace: (pkg: string) => Workspace;
|
|
201
|
-
|
|
202
|
-
declare const yarnWorkspaces: () => Workspace[];
|
|
203
|
-
|
|
204
|
-
declare const INIT_CWD: () => string | undefined;
|
|
205
|
-
|
|
206
|
-
interface CheckPackageOptions {
|
|
207
|
-
deps?: boolean;
|
|
208
|
-
devDeps?: boolean;
|
|
209
|
-
/**
|
|
210
|
-
* Set of package names to exclude from unused-dependency checks.
|
|
211
|
-
* Loaded from xy.config's deplint.exclude field.
|
|
212
|
-
*/
|
|
213
|
-
exclude?: Set<string>;
|
|
214
|
-
peerDeps?: boolean;
|
|
215
|
-
verbose?: boolean;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
interface DepLintOptions extends CheckPackageOptions {
|
|
219
|
-
/** Package names to exclude, passed via --exclude on the command line */
|
|
220
|
-
cliExclude?: string[];
|
|
221
|
-
pkg?: string;
|
|
222
|
-
}
|
|
223
|
-
declare const deplint: ({ pkg, deps, devDeps, peerDeps, verbose, cliExclude, }: DepLintOptions) => Promise<number>;
|
|
224
|
-
|
|
225
6
|
declare const deploy: () => number;
|
|
226
7
|
|
|
227
8
|
declare const deployMajor: () => number;
|
|
@@ -230,280 +11,10 @@ declare const deployMinor: () => number;
|
|
|
230
11
|
|
|
231
12
|
declare const deployNext: () => number;
|
|
232
13
|
|
|
233
|
-
declare const dupdeps: () => number;
|
|
234
|
-
|
|
235
|
-
interface LintParams {
|
|
236
|
-
cache?: boolean;
|
|
237
|
-
fix?: boolean;
|
|
238
|
-
incremental?: boolean;
|
|
239
|
-
pkg?: string;
|
|
240
|
-
verbose?: boolean;
|
|
241
|
-
}
|
|
242
|
-
interface LintPackageParams {
|
|
243
|
-
pkg: string;
|
|
244
|
-
verbose?: boolean;
|
|
245
|
-
}
|
|
246
|
-
declare const lintPackage: ({ pkg, fix, verbose, }: LintParams & Required<Pick<LintParams, "pkg">>) => number;
|
|
247
|
-
declare const lint: ({ pkg, verbose, incremental, fix, }?: LintParams) => number;
|
|
248
|
-
declare const lintAllPackages: ({ fix }?: LintParams) => number;
|
|
249
|
-
|
|
250
|
-
declare const fix: (params?: LintParams) => number;
|
|
251
|
-
|
|
252
|
-
interface GenDocsParams {
|
|
253
|
-
incremental?: boolean;
|
|
254
|
-
pkg?: string;
|
|
255
|
-
}
|
|
256
|
-
interface GenDocsPackageParams {
|
|
257
|
-
pkg: string;
|
|
258
|
-
}
|
|
259
|
-
declare const genDocs: ({ pkg, incremental }: GenDocsParams) => number;
|
|
260
|
-
declare const genDocsPackage: ({ pkg }: GenDocsPackageParams) => number;
|
|
261
|
-
declare const genDocsAll: ({ incremental }: GenDocsParams) => number;
|
|
262
|
-
|
|
263
|
-
/** @deprecated Use gitignore instead */
|
|
264
|
-
declare const gitignoreGen: typeof gitignore;
|
|
265
|
-
declare function gitignore(): number;
|
|
266
|
-
|
|
267
|
-
declare const gitlint: () => 1 | 0;
|
|
268
|
-
|
|
269
|
-
declare const gitlintFix: () => number;
|
|
270
|
-
|
|
271
|
-
declare const knip: () => number;
|
|
272
|
-
|
|
273
|
-
declare const license: (pkg?: string) => Promise<number>;
|
|
274
|
-
|
|
275
|
-
interface LintlintParams {
|
|
276
|
-
fix?: boolean;
|
|
277
|
-
verbose?: boolean;
|
|
278
|
-
}
|
|
279
|
-
declare function lintlint({ fix, verbose }?: LintlintParams): Promise<number>;
|
|
280
|
-
|
|
281
|
-
declare const npmignoreGen: (pkg?: string) => 1 | 0;
|
|
282
|
-
|
|
283
|
-
declare const packageClean: () => Promise<number>;
|
|
284
|
-
|
|
285
|
-
declare const packageCleanOutputs: () => number;
|
|
286
|
-
|
|
287
|
-
declare const packageCleanTypescript: () => number;
|
|
288
|
-
|
|
289
|
-
type EntryMode = 'all' | 'single' | 'auto' | 'platform' | 'custom';
|
|
290
|
-
/**
|
|
291
|
-
* Configuration for specifying which paths are targeted.
|
|
292
|
-
*/
|
|
293
|
-
interface PathConfig {
|
|
294
|
-
/**
|
|
295
|
-
* Glob patterns to exclude (takes precedence over include).
|
|
296
|
-
*/
|
|
297
|
-
exclude?: string[];
|
|
298
|
-
/**
|
|
299
|
-
* Glob patterns to include.
|
|
300
|
-
*/
|
|
301
|
-
include?: string[];
|
|
302
|
-
}
|
|
303
|
-
/**
|
|
304
|
-
* Configuration for Dynamic Share.
|
|
305
|
-
*/
|
|
306
|
-
interface DynamicShareConfig extends PathConfig {
|
|
307
|
-
}
|
|
308
|
-
/**
|
|
309
|
-
* Configuration for Live Share.
|
|
310
|
-
*/
|
|
311
|
-
interface LiveShareConfig extends PathConfig {
|
|
312
|
-
}
|
|
313
|
-
interface CompileConfig {
|
|
314
|
-
bundleTypes?: boolean;
|
|
315
|
-
/** @param entryMode all, single, custom, platform, or auto */
|
|
316
|
-
entryMode?: EntryMode;
|
|
317
|
-
/** @param when building types with tsc, should it use the outDir to write to? */
|
|
318
|
-
outDirAsBuildDir?: boolean;
|
|
319
|
-
}
|
|
320
|
-
type PackageCompileTsupConfig = CompileConfig & {
|
|
321
|
-
browser?: Record<string, Options | boolean>;
|
|
322
|
-
neutral?: Record<string, Options | boolean>;
|
|
323
|
-
node?: Record<string, Options | boolean>;
|
|
324
|
-
tsup?: {
|
|
325
|
-
options?: Options;
|
|
326
|
-
};
|
|
327
|
-
verbose?: boolean;
|
|
328
|
-
};
|
|
329
|
-
type PackageCompileTscConfig = CompileConfig & {
|
|
330
|
-
mode: 'tsc';
|
|
331
|
-
};
|
|
332
|
-
/**
|
|
333
|
-
* Configuration for deplint (dependency linting).
|
|
334
|
-
*/
|
|
335
|
-
interface DeplintConfig {
|
|
336
|
-
/**
|
|
337
|
-
* Package names to exclude from unused-dependency checks.
|
|
338
|
-
* Packages listed here will never be reported as "unused" by deplint,
|
|
339
|
-
* even if no import for them is detected in source or dist files.
|
|
340
|
-
* Useful for packages that are used implicitly (e.g. runtime plugins,
|
|
341
|
-
* CSS-in-JS themes, or polyfills that have side effects on import).
|
|
342
|
-
*/
|
|
343
|
-
exclude?: string[];
|
|
344
|
-
}
|
|
345
|
-
/**
|
|
346
|
-
* Configuration for readme generation.
|
|
347
|
-
*/
|
|
348
|
-
interface ReadmeConfig {
|
|
349
|
-
/**
|
|
350
|
-
* URL that the logo links to when clicked.
|
|
351
|
-
* Replaces the placeholder in the template's [![logo][]](url) link.
|
|
352
|
-
*/
|
|
353
|
-
logoLinkUrl?: string;
|
|
354
|
-
/**
|
|
355
|
-
* Public URL for the logo image displayed at the top of generated READMEs.
|
|
356
|
-
* Replaces the placeholder in the template's [logo] reference link.
|
|
357
|
-
*/
|
|
358
|
-
logoUrl?: string;
|
|
359
|
-
}
|
|
360
|
-
interface XyConfigBase {
|
|
361
|
-
compile?: CompileConfig;
|
|
362
|
-
deplint?: DeplintConfig;
|
|
363
|
-
dynamicShare?: DynamicShareConfig;
|
|
364
|
-
liveShare?: LiveShareConfig;
|
|
365
|
-
/** @deprecated */
|
|
366
|
-
publint?: boolean;
|
|
367
|
-
readme?: ReadmeConfig;
|
|
368
|
-
verbose?: boolean;
|
|
369
|
-
}
|
|
370
|
-
interface XyTsupConfig extends XyConfigBase {
|
|
371
|
-
compile?: PackageCompileTsupConfig;
|
|
372
|
-
}
|
|
373
|
-
interface XyTscConfig extends XyConfigBase {
|
|
374
|
-
compile?: PackageCompileTscConfig;
|
|
375
|
-
}
|
|
376
|
-
type XyConfigLegacy = XyTsupConfig | XyTscConfig;
|
|
377
|
-
type XyConfig = XyConfigLegacy & {
|
|
378
|
-
dev?: {
|
|
379
|
-
build?: {
|
|
380
|
-
clean?: boolean;
|
|
381
|
-
compile?: boolean;
|
|
382
|
-
deplint?: boolean;
|
|
383
|
-
gendocs?: boolean;
|
|
384
|
-
gitlint?: boolean;
|
|
385
|
-
knip?: boolean;
|
|
386
|
-
license?: boolean;
|
|
387
|
-
lint?: boolean;
|
|
388
|
-
publint?: boolean;
|
|
389
|
-
statics?: boolean;
|
|
390
|
-
verbose?: boolean;
|
|
391
|
-
};
|
|
392
|
-
compile?: PackageCompileTsupConfig;
|
|
393
|
-
verbose?: boolean;
|
|
394
|
-
};
|
|
395
|
-
verbose?: boolean;
|
|
396
|
-
};
|
|
397
|
-
|
|
398
|
-
declare const packageCompile: (inConfig?: XyConfig) => Promise<number>;
|
|
399
|
-
|
|
400
|
-
declare const packageCompileTsc: (platform: "browser" | "neutral" | "node", entries: string[], srcDir?: string, outDir?: string, compilerOptionsParam?: CompilerOptions, verbose?: boolean) => number;
|
|
401
|
-
|
|
402
|
-
declare const tsupOptions: (options?: Options[]) => Options;
|
|
403
|
-
declare const packageCompileTsup: (config?: XyTsupConfig) => Promise<number>;
|
|
404
|
-
|
|
405
|
-
interface PackageCopyAssetsParams {
|
|
406
|
-
target?: 'esm' | 'cjs';
|
|
407
|
-
}
|
|
408
|
-
declare const packageCopyAssets: ({ target }: PackageCopyAssetsParams) => Promise<1 | 0>;
|
|
409
|
-
|
|
410
|
-
declare const packageCycle: () => Promise<number>;
|
|
411
|
-
|
|
412
|
-
declare const packageGenDocs: () => Promise<number | undefined>;
|
|
413
|
-
|
|
414
|
-
declare const packageLint: (fix?: boolean, verbose?: boolean, cache?: boolean) => Promise<number>;
|
|
415
|
-
|
|
416
|
-
interface PackagePublintParams {
|
|
417
|
-
strict?: boolean;
|
|
418
|
-
verbose?: boolean;
|
|
419
|
-
}
|
|
420
|
-
declare const packagePublint: ({ strict, verbose }?: PackagePublintParams) => Promise<number>;
|
|
421
|
-
|
|
422
|
-
declare const packageRecompile: () => Promise<number>;
|
|
423
|
-
|
|
424
|
-
declare function packageLintMonorepo(fix?: boolean): number;
|
|
425
|
-
|
|
426
|
-
interface PublintParams {
|
|
427
|
-
pkg?: string;
|
|
428
|
-
verbose?: boolean;
|
|
429
|
-
}
|
|
430
|
-
interface PublintPackageParams {
|
|
431
|
-
pkg: string;
|
|
432
|
-
verbose?: boolean;
|
|
433
|
-
}
|
|
434
|
-
declare const publint: ({ verbose, pkg }: PublintParams) => Promise<number>;
|
|
435
|
-
declare const publintPackage: ({ pkg }: PublintPackageParams) => Promise<number>;
|
|
436
|
-
declare const publintAll: ({ verbose }: PublintParams) => number;
|
|
437
|
-
|
|
438
14
|
declare const publish: () => number;
|
|
439
15
|
|
|
440
|
-
interface ReadmeGenParams {
|
|
441
|
-
pkg?: string;
|
|
442
|
-
templatePath?: string;
|
|
443
|
-
typedoc?: boolean;
|
|
444
|
-
verbose?: boolean;
|
|
445
|
-
}
|
|
446
|
-
declare function readmeGen({ pkg, templatePath, typedoc, verbose, }: ReadmeGenParams): Promise<number>;
|
|
447
|
-
|
|
448
|
-
interface ReadmeInitParams {
|
|
449
|
-
templatePath?: string;
|
|
450
|
-
verbose?: boolean;
|
|
451
|
-
}
|
|
452
|
-
declare function readmeInit({ templatePath }: ReadmeInitParams): Promise<number>;
|
|
453
|
-
|
|
454
|
-
interface RebuildParams {
|
|
455
|
-
pkg?: string;
|
|
456
|
-
target?: 'esm' | 'cjs';
|
|
457
|
-
}
|
|
458
|
-
declare const rebuild: ({ target }: RebuildParams) => number;
|
|
459
|
-
|
|
460
|
-
interface RecompileParams {
|
|
461
|
-
incremental?: boolean;
|
|
462
|
-
jobs?: number;
|
|
463
|
-
pkg?: string;
|
|
464
|
-
target?: 'esm' | 'cjs';
|
|
465
|
-
verbose?: boolean;
|
|
466
|
-
}
|
|
467
|
-
interface RecompilePackageParams {
|
|
468
|
-
pkg: string;
|
|
469
|
-
target?: 'esm' | 'cjs';
|
|
470
|
-
verbose?: boolean;
|
|
471
|
-
}
|
|
472
|
-
declare const recompile: ({ verbose, target, pkg, incremental, }: RecompileParams) => Promise<number>;
|
|
473
|
-
declare const recompilePackage: ({ target, pkg }: RecompilePackageParams) => Promise<number>;
|
|
474
|
-
declare const recompileAll: ({ jobs, verbose, target, incremental, }: RecompileParams) => Promise<number>;
|
|
475
|
-
|
|
476
16
|
declare const reinstall: () => number;
|
|
477
17
|
|
|
478
|
-
interface RelintParams {
|
|
479
|
-
cache?: boolean;
|
|
480
|
-
fix?: boolean;
|
|
481
|
-
incremental?: boolean;
|
|
482
|
-
pkg?: string;
|
|
483
|
-
verbose?: boolean;
|
|
484
|
-
}
|
|
485
|
-
interface RelintPackageParams {
|
|
486
|
-
pkg: string;
|
|
487
|
-
verbose?: boolean;
|
|
488
|
-
}
|
|
489
|
-
declare const relintPackage: ({ pkg, fix, verbose, }: RelintParams & Required<Pick<RelintParams, "pkg">>) => number;
|
|
490
|
-
declare const relint: ({ pkg, verbose, incremental, fix, }?: RelintParams) => number;
|
|
491
|
-
declare const relintAllPackages: ({ fix }?: RelintParams) => number;
|
|
492
|
-
|
|
493
|
-
interface RetestParams {
|
|
494
|
-
target?: string;
|
|
495
|
-
}
|
|
496
|
-
declare const retest: ({ target }?: RetestParams) => number;
|
|
497
|
-
|
|
498
|
-
declare const sonar: () => number;
|
|
499
|
-
|
|
500
|
-
declare const statics: () => number;
|
|
501
|
-
|
|
502
|
-
interface TestParams {
|
|
503
|
-
target?: string;
|
|
504
|
-
}
|
|
505
|
-
declare const test: ({ target }?: TestParams) => number;
|
|
506
|
-
|
|
507
18
|
declare const up: () => number;
|
|
508
19
|
|
|
509
20
|
declare const updo: () => number;
|
|
@@ -514,21 +25,32 @@ declare const updateYarnVersion: () => number;
|
|
|
514
25
|
|
|
515
26
|
declare const yarn3Only: () => number;
|
|
516
27
|
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
declare const loadPackageConfig: () => Promise<PackageJsonEx>;
|
|
28
|
+
declare const isYarnVersionOrGreater: (major: number, minor?: number, patch?: number) => [boolean, string];
|
|
29
|
+
|
|
30
|
+
declare const yarnWorkspace: (pkg: string) => Workspace;
|
|
521
31
|
|
|
522
|
-
declare const
|
|
32
|
+
declare const yarnWorkspaces: () => Workspace[];
|
|
523
33
|
|
|
524
|
-
declare
|
|
34
|
+
declare class YarnPackageManager implements PackageManager {
|
|
35
|
+
readonly command = "yarn";
|
|
36
|
+
readonly lockfile = "yarn.lock";
|
|
37
|
+
readonly name: "yarn";
|
|
38
|
+
dedupe(): ScriptStep;
|
|
39
|
+
findWorkspace(name: string): Workspace | undefined;
|
|
40
|
+
foreachWorkspace(script: string, args?: string[], options?: WorkspaceForeachOptions): ScriptStep;
|
|
41
|
+
install(): ScriptStep;
|
|
42
|
+
listWorkspaces(): Workspace[];
|
|
43
|
+
outdated(): ScriptStep;
|
|
44
|
+
runInWorkspace(pkg: string, script: string, args?: string[]): ScriptStep;
|
|
45
|
+
runXy(args: string[]): ScriptStep;
|
|
46
|
+
versionApply(): ScriptStep;
|
|
47
|
+
versionBump(type: 'major' | 'minor' | 'patch' | 'prerelease'): ScriptStep[];
|
|
48
|
+
}
|
|
525
49
|
|
|
526
50
|
declare const xyDeployCommands: (args: Argv) => Argv<{}>;
|
|
527
51
|
|
|
528
52
|
declare const xyInstallCommands: (args: Argv) => Argv<{}>;
|
|
529
53
|
|
|
530
|
-
declare const xyLintCommands: (args: Argv) => Argv<{}>;
|
|
531
|
-
|
|
532
54
|
declare const xy: () => Promise<{
|
|
533
55
|
[x: string]: unknown;
|
|
534
56
|
_: (string | number)[];
|
|
@@ -539,6 +61,6 @@ declare const xy: () => Promise<{
|
|
|
539
61
|
$0: string;
|
|
540
62
|
}>;
|
|
541
63
|
|
|
542
|
-
declare const
|
|
64
|
+
declare const xyYarnCommands: (args: Argv) => Argv<{}>;
|
|
543
65
|
|
|
544
|
-
export {
|
|
66
|
+
export { YarnPackageManager, deploy, deployMajor, deployMinor, deployNext, isYarnVersionOrGreater, publish, reinstall, up, updateYarnPlugins, updateYarnVersion, updo, xy, xyDeployCommands, xyInstallCommands, xyYarnCommands, yarn3Only, yarnWorkspace, yarnWorkspaces };
|