@xylabs/ts-scripts-yarn3 7.4.3 → 7.4.5

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 (44) hide show
  1. package/dist/actions/claude-rules.mjs +113 -0
  2. package/dist/actions/claude-rules.mjs.map +1 -0
  3. package/dist/actions/deplint/checkPackage/checkPackage.mjs +3 -2
  4. package/dist/actions/deplint/checkPackage/checkPackage.mjs.map +1 -1
  5. package/dist/actions/deplint/checkPackage/index.mjs +3 -2
  6. package/dist/actions/deplint/checkPackage/index.mjs.map +1 -1
  7. package/dist/actions/deplint/deplint.mjs +3 -2
  8. package/dist/actions/deplint/deplint.mjs.map +1 -1
  9. package/dist/actions/deplint/getExternalImportsFromFiles.mjs +3 -2
  10. package/dist/actions/deplint/getExternalImportsFromFiles.mjs.map +1 -1
  11. package/dist/actions/deplint/getImportsFromFile.mjs +3 -2
  12. package/dist/actions/deplint/getImportsFromFile.mjs.map +1 -1
  13. package/dist/actions/deplint/index.mjs +3 -2
  14. package/dist/actions/deplint/index.mjs.map +1 -1
  15. package/dist/actions/index.mjs +235 -131
  16. package/dist/actions/index.mjs.map +1 -1
  17. package/dist/bin/xy.mjs +204 -86
  18. package/dist/bin/xy.mjs.map +1 -1
  19. package/dist/index.d.ts +9 -1
  20. package/dist/index.mjs +269 -147
  21. package/dist/index.mjs.map +1 -1
  22. package/dist/lib/claudeMdTemplate.mjs +24 -0
  23. package/dist/lib/claudeMdTemplate.mjs.map +1 -0
  24. package/dist/lib/index.mjs +31 -9
  25. package/dist/lib/index.mjs.map +1 -1
  26. package/dist/xy/index.mjs +204 -86
  27. package/dist/xy/index.mjs.map +1 -1
  28. package/dist/xy/xy.mjs +204 -86
  29. package/dist/xy/xy.mjs.map +1 -1
  30. package/dist/xy/xyCommonCommands.mjs +137 -20
  31. package/dist/xy/xyCommonCommands.mjs.map +1 -1
  32. package/dist/xy/xyLintCommands.mjs +3 -2
  33. package/dist/xy/xyLintCommands.mjs.map +1 -1
  34. package/package.json +4 -3
  35. package/templates/CLAUDE-project.md +4 -0
  36. package/templates/rules/xylabs-architecture.md +11 -0
  37. package/templates/rules/xylabs-build.md +14 -0
  38. package/templates/rules/xylabs-dependencies.md +24 -0
  39. package/templates/rules/xylabs-error-handling.md +7 -0
  40. package/templates/rules/xylabs-frameworks.md +8 -0
  41. package/templates/rules/xylabs-git-workflow.md +9 -0
  42. package/templates/rules/xylabs-naming.md +10 -0
  43. package/templates/rules/xylabs-style.md +22 -0
  44. package/templates/rules/xylabs-typescript.md +10 -0
package/dist/index.d.ts CHANGED
@@ -15,6 +15,10 @@ interface BuildParams {
15
15
  }
16
16
  declare const build: ({ incremental, jobs, target, verbose, pkg, }: BuildParams) => Promise<number>;
17
17
 
18
+ declare const claudeRules: ({ force }?: {
19
+ force?: boolean;
20
+ }) => number;
21
+
18
22
  interface CleanParams {
19
23
  pkg?: string;
20
24
  verbose?: boolean;
@@ -73,6 +77,10 @@ declare const dead: () => number;
73
77
 
74
78
  declare const checkResult: (name: string, result: number, level?: "error" | "warn", exitOnFail?: boolean) => void;
75
79
 
80
+ declare const XYLABS_RULES_PREFIX = "xylabs-";
81
+ declare const claudeMdRuleTemplates: () => Record<string, string>;
82
+ declare const claudeMdProjectTemplate: () => string;
83
+
76
84
  declare const createBuildConfig: (location: string, module: "ESNext" | "CommonJS", target: "ESNext" | "ES6", outDirSuffix: string) => Record<string, unknown> | undefined;
77
85
 
78
86
  declare const defaultBuildConfig: {
@@ -432,4 +440,4 @@ declare const xyLintCommands: (args: Argv) => Argv<{}>;
432
440
 
433
441
  declare const xyParseOptions: () => Argv;
434
442
 
435
- export { type BuildParams, CROSS_PLATFORM_NEWLINE, type CleanPackageParams, type CleanParams, type CompileConfig, type CompileParams, type CopyAssetsParams, type CycleParams, type DepLintOptions, 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 RebuildParams, type RecompilePackageParams, type RecompileParams, type RelintPackageParams, type RelintParams, type ScriptStep, WINDOWS_NEWLINE_REGEX, type Workspace, type XyConfig, type XyConfigBase, type XyConfigLegacy, type XyTscConfig, type XyTsupConfig, build, bundleDts, checkResult, 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, 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, rebuild, recompile, recompileAll, recompilePackage, reinstall, relint, relintAllPackages, relintPackage, retest, runStepAsync, runSteps, runStepsAsync, runXy, runXyWithWarning, safeExit, safeExitAsync, sonar, statics, test, tryReadFileSync, tsupOptions, union, up, updateYarnPlugins, updateYarnVersion, updo, withErrnoException, withError, writeLines, xy, xyBuildCommands, xyCommonCommands, xyDeployCommands, xyInstallCommands, xyLintCommands, xyParseOptions, yarn3Only, yarnWorkspace, yarnWorkspaces };
443
+ export { type BuildParams, CROSS_PLATFORM_NEWLINE, type CleanPackageParams, type CleanParams, type CompileConfig, type CompileParams, type CopyAssetsParams, type CycleParams, type DepLintOptions, 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 RebuildParams, type RecompilePackageParams, type RecompileParams, type RelintPackageParams, type RelintParams, type ScriptStep, WINDOWS_NEWLINE_REGEX, type Workspace, XYLABS_RULES_PREFIX, type XyConfig, type XyConfigBase, type XyConfigLegacy, type XyTscConfig, type XyTsupConfig, build, bundleDts, checkResult, claudeMdProjectTemplate, claudeMdRuleTemplates, claudeRules, 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, 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, rebuild, recompile, recompileAll, recompilePackage, reinstall, relint, relintAllPackages, relintPackage, retest, runStepAsync, runSteps, runStepsAsync, runXy, runXyWithWarning, safeExit, safeExitAsync, sonar, statics, test, tryReadFileSync, tsupOptions, union, up, updateYarnPlugins, updateYarnVersion, updo, withErrnoException, withError, writeLines, xy, xyBuildCommands, xyCommonCommands, xyDeployCommands, xyInstallCommands, xyLintCommands, xyParseOptions, yarn3Only, yarnWorkspace, yarnWorkspaces };