@xylabs/ts-scripts-yarn3 7.4.21 → 7.4.23

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.
Files changed (119) hide show
  1. package/dist/actions/claude-clean.mjs +71 -0
  2. package/dist/actions/claude-clean.mjs.map +1 -0
  3. package/dist/actions/claude-commands.mjs +11 -2
  4. package/dist/actions/claude-commands.mjs.map +1 -1
  5. package/dist/actions/claude-rules.mjs +27 -7
  6. package/dist/actions/claude-rules.mjs.map +1 -1
  7. package/dist/actions/claude-settings.mjs +2 -2
  8. package/dist/actions/claude-settings.mjs.map +1 -1
  9. package/dist/actions/claude-skills.mjs.map +1 -1
  10. package/dist/actions/dupdeps.mjs +3 -2
  11. package/dist/actions/dupdeps.mjs.map +1 -1
  12. package/dist/actions/gitignore.mjs +152 -0
  13. package/dist/actions/gitignore.mjs.map +1 -0
  14. package/dist/actions/index.mjs +550 -208
  15. package/dist/actions/index.mjs.map +1 -1
  16. package/dist/actions/package-lint.mjs +178 -0
  17. package/dist/actions/package-lint.mjs.map +1 -0
  18. package/dist/bin/xy.mjs +607 -229
  19. package/dist/bin/xy.mjs.map +1 -1
  20. package/dist/index.d.ts +13 -3
  21. package/dist/index.mjs +671 -285
  22. package/dist/index.mjs.map +1 -1
  23. package/dist/lib/claudeMdTemplate.mjs +5 -1
  24. package/dist/lib/claudeMdTemplate.mjs.map +1 -1
  25. package/dist/lib/gitignoreTemplate.mjs +12 -0
  26. package/dist/lib/gitignoreTemplate.mjs.map +1 -0
  27. package/dist/lib/index.mjs +17 -3
  28. package/dist/lib/index.mjs.map +1 -1
  29. package/dist/xy/build/buildCommand.mjs +161 -0
  30. package/dist/xy/build/buildCommand.mjs.map +1 -0
  31. package/dist/xy/build/compileCommand.mjs +174 -0
  32. package/dist/xy/build/compileCommand.mjs.map +1 -0
  33. package/dist/xy/build/compileOnlyCommand.mjs +175 -0
  34. package/dist/xy/build/compileOnlyCommand.mjs.map +1 -0
  35. package/dist/xy/build/copyAssetsCommand.mjs +84 -0
  36. package/dist/xy/build/copyAssetsCommand.mjs.map +1 -0
  37. package/dist/xy/{build-commands → build}/index.mjs +45 -40
  38. package/dist/xy/build/index.mjs.map +1 -0
  39. package/dist/xy/build/rebuildCommand.mjs +114 -0
  40. package/dist/xy/build/rebuildCommand.mjs.map +1 -0
  41. package/dist/xy/build/recompileCommand.mjs +204 -0
  42. package/dist/xy/build/recompileCommand.mjs.map +1 -0
  43. package/dist/xy/common/claude/cleanCommand.mjs +79 -0
  44. package/dist/xy/common/claude/cleanCommand.mjs.map +1 -0
  45. package/dist/xy/common/claude/commandsCommand.mjs +11 -2
  46. package/dist/xy/common/claude/commandsCommand.mjs.map +1 -1
  47. package/dist/xy/common/claude/index.mjs +173 -71
  48. package/dist/xy/common/claude/index.mjs.map +1 -1
  49. package/dist/xy/common/claude/initCommand.mjs +40 -117
  50. package/dist/xy/common/claude/initCommand.mjs.map +1 -1
  51. package/dist/xy/common/claude/rulesCommand.mjs +27 -7
  52. package/dist/xy/common/claude/rulesCommand.mjs.map +1 -1
  53. package/dist/xy/common/claude/settingsCommand.mjs +2 -2
  54. package/dist/xy/common/claude/settingsCommand.mjs.map +1 -1
  55. package/dist/xy/common/claude/skillsCommand.mjs.map +1 -1
  56. package/dist/xy/common/gitignoreCommand.mjs +158 -0
  57. package/dist/xy/common/gitignoreCommand.mjs.map +1 -0
  58. package/dist/xy/common/index.mjs +306 -111
  59. package/dist/xy/common/index.mjs.map +1 -1
  60. package/dist/xy/index.mjs +607 -229
  61. package/dist/xy/index.mjs.map +1 -1
  62. package/dist/xy/install/dupdepsCommand.mjs +3 -2
  63. package/dist/xy/install/dupdepsCommand.mjs.map +1 -1
  64. package/dist/xy/install/index.mjs +3 -2
  65. package/dist/xy/install/index.mjs.map +1 -1
  66. package/dist/xy/lint/index.mjs +200 -22
  67. package/dist/xy/lint/index.mjs.map +1 -1
  68. package/dist/xy/lint/packageLintCommand.mjs +193 -0
  69. package/dist/xy/lint/packageLintCommand.mjs.map +1 -0
  70. package/dist/xy/xy.mjs +607 -229
  71. package/dist/xy/xy.mjs.map +1 -1
  72. package/package.json +2 -2
  73. package/templates/claude/CLAUDE-local.md +4 -0
  74. package/templates/claude/commands/xy-dead.md +5 -0
  75. package/templates/claude/{rules/xylabs-dependencies.md → commands/xy-deps.md} +7 -7
  76. package/templates/claude/commands/xy-dupdeps.md +5 -0
  77. package/templates/claude/commands/xy-gen-docs.md +5 -0
  78. package/templates/claude/commands/xy-gitignore.md +5 -0
  79. package/templates/claude/commands/xy-gitlint.md +5 -0
  80. package/templates/claude/commands/xy-license.md +5 -0
  81. package/templates/claude/commands/xy-lint-rules.md +44 -0
  82. package/templates/claude/commands/xy-recompile.md +5 -0
  83. package/templates/claude/commands/xy-reinstall.md +5 -0
  84. package/templates/claude/commands/xy-relint.md +5 -0
  85. package/templates/claude/commands/xy-retest.md +5 -0
  86. package/templates/claude/commands/xy-sonar.md +5 -0
  87. package/templates/claude/commands/xy-up.md +7 -0
  88. package/templates/claude/rules/xylabs-architecture.md +4 -7
  89. package/templates/claude/rules/xylabs-build.md +6 -11
  90. package/templates/claude/rules/xylabs-git-workflow.md +3 -5
  91. package/templates/claude/rules/xylabs-naming.md +4 -7
  92. package/templates/claude/rules/xylabs-style.md +14 -19
  93. package/templates/claude/skills/xylabs-e2e-setup/SKILL.md +17 -4
  94. package/templates/gitignore/template.gitignore +40 -0
  95. package/dist/actions/gitignore-gen.mjs +0 -88
  96. package/dist/actions/gitignore-gen.mjs.map +0 -1
  97. package/dist/xy/build-commands/build.mjs +0 -502
  98. package/dist/xy/build-commands/build.mjs.map +0 -1
  99. package/dist/xy/build-commands/index.mjs.map +0 -1
  100. package/dist/xy/common/gitignoreGenCommand.mjs +0 -98
  101. package/dist/xy/common/gitignoreGenCommand.mjs.map +0 -1
  102. package/templates/claude/commands/xylabs-deploy-major.md +0 -7
  103. package/templates/claude/commands/xylabs-deploy-minor.md +0 -7
  104. package/templates/claude/commands/xylabs-deploy.md +0 -7
  105. package/templates/claude/rules/xylabs-error-handling.md +0 -7
  106. package/templates/claude/rules/xylabs-frameworks.md +0 -8
  107. package/templates/claude/rules/xylabs-linting.md +0 -55
  108. package/templates/claude/rules/xylabs-typescript.md +0 -11
  109. /package/templates/claude/commands/{xylabs-build.md → xy-build.md} +0 -0
  110. /package/templates/claude/commands/{xylabs-clean.md → xy-clean.md} +0 -0
  111. /package/templates/claude/commands/{xylabs-compile.md → xy-compile.md} +0 -0
  112. /package/templates/claude/commands/{xylabs-cycle.md → xy-cycle.md} +0 -0
  113. /package/templates/claude/commands/{xylabs-deplint.md → xy-deplint.md} +0 -0
  114. /package/templates/claude/commands/{xylabs-fix.md → xy-fix.md} +0 -0
  115. /package/templates/claude/commands/{xylabs-knip.md → xy-knip.md} +0 -0
  116. /package/templates/claude/commands/{xylabs-lint.md → xy-lint.md} +0 -0
  117. /package/templates/claude/commands/{xylabs-publint.md → xy-publint.md} +0 -0
  118. /package/templates/claude/commands/{xylabs-rebuild.md → xy-rebuild.md} +0 -0
  119. /package/templates/claude/commands/{xylabs-test.md → xy-test.md} +0 -0
package/dist/index.d.ts CHANGED
@@ -15,6 +15,8 @@ interface BuildParams {
15
15
  }
16
16
  declare const build: ({ incremental, jobs, target, verbose, pkg, }: BuildParams) => Promise<number>;
17
17
 
18
+ declare function claudeClean(): number;
19
+
18
20
  declare const claudeCommands: () => number;
19
21
 
20
22
  declare const claudeRules: ({ force }?: {
@@ -84,12 +86,14 @@ declare const dead: () => number;
84
86
  declare const checkResult: (name: string, result: number, level?: "error" | "warn", exitOnFail?: boolean) => void;
85
87
 
86
88
  declare const XYLABS_RULES_PREFIX = "xylabs-";
87
- declare const XYLABS_COMMANDS_PREFIX = "xylabs-";
89
+ declare const XYLABS_COMMANDS_PREFIX = "xy-";
90
+ declare const LEGACY_COMMANDS_PREFIX = "xylabs-";
88
91
  declare const XYLABS_SKILLS_PREFIX = "xylabs-";
89
92
  declare const claudeMdRuleTemplates: () => Record<string, string>;
90
93
  declare const claudeCommandTemplates: () => Record<string, string>;
91
94
  declare const claudeSkillTemplates: () => Record<string, Record<string, string>>;
92
95
  declare const claudeMdProjectTemplate: () => string;
96
+ declare const claudeMdLocalTemplate: () => string;
93
97
 
94
98
  declare const createBuildConfig: (location: string, module: "ESNext" | "CommonJS", target: "ESNext" | "ES6", outDirSuffix: string) => Record<string, unknown> | undefined;
95
99
 
@@ -147,6 +151,8 @@ declare function resolveTemplatePath(templatePath: string | undefined): string;
147
151
  declare function scaffoldTemplate(resolvedTemplatePath: string, template: string): Promise<void>;
148
152
  declare function generateReadmeFiles({ logoLinkUrl, logoUrl, pkg, templatePath, typedoc, verbose, }: GenerateReadmeFilesParams): Promise<number>;
149
153
 
154
+ declare const gitignoreTemplate: () => string;
155
+
150
156
  declare const multiLineToJSONArray: (output: string) => any;
151
157
 
152
158
  declare const loadConfig: <T extends object>(params?: T) => Promise<T>;
@@ -248,7 +254,9 @@ declare const genDocs: ({ pkg, incremental }: GenDocsParams) => number;
248
254
  declare const genDocsPackage: ({ pkg }: GenDocsPackageParams) => number;
249
255
  declare const genDocsAll: ({ incremental }: GenDocsParams) => number;
250
256
 
251
- declare const gitignoreGen: (pkg?: string) => 1 | 0;
257
+ /** @deprecated Use gitignore instead */
258
+ declare const gitignoreGen: typeof gitignore;
259
+ declare function gitignore(): number;
252
260
 
253
261
  declare const gitlint: () => 1 | 0;
254
262
 
@@ -404,6 +412,8 @@ declare const packagePublint: ({ strict, verbose }?: PackagePublintParams) => Pr
404
412
 
405
413
  declare const packageRecompile: () => Promise<number>;
406
414
 
415
+ declare function packageLintMonorepo(fix?: boolean): number;
416
+
407
417
  interface PublintParams {
408
418
  pkg?: string;
409
419
  verbose?: boolean;
@@ -516,4 +526,4 @@ declare const xy: () => Promise<{
516
526
 
517
527
  declare const xyParseOptions: () => Argv;
518
528
 
519
- export { type BuildParams, CROSS_PLATFORM_NEWLINE, type CleanPackageParams, type CleanParams, type CompileConfig, type CompileParams, type CopyAssetsParams, type CycleParams, DEFAULT_README_BODY, DEFAULT_README_TEMPLATE, type DepLintOptions, type DeplintConfig, DuplicateDetector, type DynamicShareConfig, type EntryMode, type GenDocsPackageParams, type GenDocsParams, INIT_CWD, type LintPackageParams, type LintParams, type LiveShareConfig, type PackageCompileTscConfig, type PackageCompileTsupConfig, type PackageCopyAssetsParams, type PackageJsonEx, type PackagePublintParams, type PathConfig, type PublintPackageParams, type PublintParams, type ReadFileSyncOptions, type ReadmeConfig, type ReadmeGenParams, type ReadmeInitParams, type RebuildParams, type RecompilePackageParams, type RecompileParams, type RelintPackageParams, type RelintParams, type ScriptStep, WINDOWS_NEWLINE_REGEX, type Workspace, XYLABS_COMMANDS_PREFIX, XYLABS_RULES_PREFIX, XYLABS_SKILLS_PREFIX, type XyConfig, type XyConfigBase, type XyConfigLegacy, type XyTscConfig, type XyTsupConfig, applyLogoConfig, build, bundleDts, checkResult, claudeCommandTemplates, claudeCommands, claudeMdProjectTemplate, claudeMdRuleTemplates, claudeRules, claudeSettings, claudeSkillTemplates, claudeSkills, clean, cleanAll, cleanDocs, cleanPackage, compile, compileAll, compilePackage, copyAssets, createBuildConfig, cycle, cycleAll, cyclePackage, dead, defaultBuildConfig, defaultReadFileSyncOptions, deleteGlob, deplint, deploy, deployMajor, deployMinor, deployNext, detectDuplicateDependencies, dupdeps, empty, fix, genDocs, genDocsAll, genDocsPackage, generateIgnoreFiles, generateReadmeFiles, gitignoreGen, gitlint, gitlintFix, isYarnVersionOrGreater, knip, license, lint, lintAllPackages, lintPackage, loadConfig, loadPackageConfig, multiLineToJSONArray, notEmpty, npmignoreGen, packageClean, packageCleanOutputs, packageCleanTypescript, packageCompile, packageCompileTsc, packageCompileTscTypes, packageCompileTsup, packageCopyAssets, packageCycle, packageGenDocs, packageLint, packagePublint, packageRecompile, parsedPackageJSON, processEx, publint, publintAll, publintPackage, publish, readLines, readNonEmptyLines, readmeGen, readmeInit, rebuild, recompile, recompileAll, recompilePackage, reinstall, relint, relintAllPackages, relintPackage, resolveTemplatePath, retest, runStepAsync, runSteps, runStepsAsync, runXy, runXyWithWarning, safeExit, safeExitAsync, scaffoldTemplate, sonar, statics, test, tryReadFileSync, tsupOptions, union, up, updateYarnPlugins, updateYarnVersion, updo, withErrnoException, withError, writeLines, xy, xyBuildCommands, xyCommonCommands, xyDeployCommands, xyInstallCommands, xyLintCommands, xyParseOptions, yarn3Only, yarnWorkspace, yarnWorkspaces };
529
+ export { type BuildParams, CROSS_PLATFORM_NEWLINE, type CleanPackageParams, type CleanParams, type CompileConfig, type CompileParams, type CopyAssetsParams, type CycleParams, DEFAULT_README_BODY, DEFAULT_README_TEMPLATE, type DepLintOptions, type DeplintConfig, DuplicateDetector, type DynamicShareConfig, type EntryMode, type GenDocsPackageParams, type GenDocsParams, INIT_CWD, LEGACY_COMMANDS_PREFIX, type LintPackageParams, type LintParams, type LiveShareConfig, type PackageCompileTscConfig, type PackageCompileTsupConfig, type PackageCopyAssetsParams, type PackageJsonEx, type PackagePublintParams, type PathConfig, type PublintPackageParams, type PublintParams, type ReadFileSyncOptions, type ReadmeConfig, type ReadmeGenParams, type ReadmeInitParams, type RebuildParams, type RecompilePackageParams, type RecompileParams, type RelintPackageParams, type RelintParams, type ScriptStep, WINDOWS_NEWLINE_REGEX, type Workspace, XYLABS_COMMANDS_PREFIX, XYLABS_RULES_PREFIX, XYLABS_SKILLS_PREFIX, type XyConfig, type XyConfigBase, type XyConfigLegacy, type XyTscConfig, type XyTsupConfig, applyLogoConfig, build, bundleDts, checkResult, claudeClean, claudeCommandTemplates, claudeCommands, claudeMdLocalTemplate, claudeMdProjectTemplate, claudeMdRuleTemplates, claudeRules, claudeSettings, claudeSkillTemplates, claudeSkills, clean, cleanAll, cleanDocs, cleanPackage, compile, compileAll, compilePackage, copyAssets, createBuildConfig, cycle, cycleAll, cyclePackage, dead, defaultBuildConfig, defaultReadFileSyncOptions, deleteGlob, deplint, deploy, deployMajor, deployMinor, deployNext, detectDuplicateDependencies, dupdeps, empty, fix, genDocs, genDocsAll, genDocsPackage, generateIgnoreFiles, generateReadmeFiles, gitignore, gitignoreGen, gitignoreTemplate, gitlint, gitlintFix, isYarnVersionOrGreater, knip, license, lint, lintAllPackages, lintPackage, loadConfig, loadPackageConfig, multiLineToJSONArray, notEmpty, npmignoreGen, packageClean, packageCleanOutputs, packageCleanTypescript, packageCompile, packageCompileTsc, packageCompileTscTypes, packageCompileTsup, packageCopyAssets, packageCycle, packageGenDocs, packageLint, packageLintMonorepo, packagePublint, packageRecompile, parsedPackageJSON, processEx, publint, publintAll, publintPackage, publish, readLines, readNonEmptyLines, readmeGen, readmeInit, rebuild, recompile, recompileAll, recompilePackage, reinstall, relint, relintAllPackages, relintPackage, resolveTemplatePath, retest, runStepAsync, runSteps, runStepsAsync, runXy, runXyWithWarning, safeExit, safeExitAsync, scaffoldTemplate, sonar, statics, test, tryReadFileSync, tsupOptions, union, up, updateYarnPlugins, updateYarnVersion, updo, withErrnoException, withError, writeLines, xy, xyBuildCommands, xyCommonCommands, xyDeployCommands, xyInstallCommands, xyLintCommands, xyParseOptions, yarn3Only, yarnWorkspace, yarnWorkspaces };