@xylabs/ts-scripts-yarn3 5.1.14 → 6.0.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.
Files changed (171) hide show
  1. package/dist/actions/compile-types.mjs +176 -0
  2. package/dist/actions/compile-types.mjs.map +1 -0
  3. package/dist/actions/fix.mjs +2 -2
  4. package/dist/actions/fix.mjs.map +1 -1
  5. package/dist/actions/index.mjs +253 -139
  6. package/dist/actions/index.mjs.map +1 -1
  7. package/dist/actions/lint-clean.mjs +2 -2
  8. package/dist/actions/lint-clean.mjs.map +1 -1
  9. package/dist/actions/lint.mjs +2 -2
  10. package/dist/actions/lint.mjs.map +1 -1
  11. package/dist/actions/package/compile/compile.mjs +88 -64
  12. package/dist/actions/package/compile/compile.mjs.map +1 -1
  13. package/dist/actions/package/compile/compileTypes.mjs +164 -0
  14. package/dist/actions/package/compile/compileTypes.mjs.map +1 -0
  15. package/dist/actions/package/compile/deepMerge.mjs +31 -0
  16. package/dist/actions/package/compile/deepMerge.mjs.map +1 -0
  17. package/dist/actions/package/compile/index.mjs +101 -65
  18. package/dist/actions/package/compile/index.mjs.map +1 -1
  19. package/dist/actions/package/compile/packageCompileTscTypes.mjs +3 -2
  20. package/dist/actions/package/compile/packageCompileTscTypes.mjs.map +1 -1
  21. package/dist/actions/package/compile/packageCompileTsup.mjs +90 -65
  22. package/dist/actions/package/compile/packageCompileTsup.mjs.map +1 -1
  23. package/dist/actions/package/index.mjs +118 -80
  24. package/dist/actions/package/index.mjs.map +1 -1
  25. package/dist/actions/package/lint.mjs +2 -0
  26. package/dist/actions/package/lint.mjs.map +1 -1
  27. package/dist/actions/package/recompile.mjs +88 -64
  28. package/dist/actions/package/recompile.mjs.map +1 -1
  29. package/dist/bin/package/build-only.mjs +88 -64
  30. package/dist/bin/package/build-only.mjs.map +1 -1
  31. package/dist/bin/package/build.mjs +88 -64
  32. package/dist/bin/package/build.mjs.map +1 -1
  33. package/dist/bin/package/compile-only.mjs +88 -64
  34. package/dist/bin/package/compile-only.mjs.map +1 -1
  35. package/dist/bin/package/compile-tsup.mjs +88 -64
  36. package/dist/bin/package/compile-tsup.mjs.map +1 -1
  37. package/dist/bin/package/compile-types.mjs +173 -0
  38. package/dist/bin/package/compile-types.mjs.map +1 -0
  39. package/dist/bin/package/compile.mjs +88 -64
  40. package/dist/bin/package/compile.mjs.map +1 -1
  41. package/dist/bin/package/fix.mjs +2 -0
  42. package/dist/bin/package/fix.mjs.map +1 -1
  43. package/dist/bin/package/lint.mjs +2 -0
  44. package/dist/bin/package/lint.mjs.map +1 -1
  45. package/dist/bin/package/recompile.mjs +88 -64
  46. package/dist/bin/package/recompile.mjs.map +1 -1
  47. package/dist/bin/xy.mjs +132 -45
  48. package/dist/bin/xy.mjs.map +1 -1
  49. package/dist/index.d.ts +21 -1
  50. package/dist/index.mjs +277 -149
  51. package/dist/index.mjs.map +1 -1
  52. package/dist/xy/index.mjs +132 -45
  53. package/dist/xy/index.mjs.map +1 -1
  54. package/dist/xy/xy.mjs +132 -45
  55. package/dist/xy/xy.mjs.map +1 -1
  56. package/dist/xy/xyBuildCommands.mjs +92 -5
  57. package/dist/xy/xyBuildCommands.mjs.map +1 -1
  58. package/dist/xy/xyLintCommands.mjs +2 -2
  59. package/dist/xy/xyLintCommands.mjs.map +1 -1
  60. package/package.json +18 -49
  61. package/src/actions/compile-types.ts +67 -0
  62. package/src/actions/index.ts +1 -0
  63. package/src/actions/lint.ts +1 -1
  64. package/src/actions/package/compile/compileTypes.ts +13 -0
  65. package/src/actions/package/compile/deepMerge.ts +33 -0
  66. package/src/actions/package/compile/index.ts +2 -0
  67. package/src/actions/package/compile/packageCompileTscTypes.ts +3 -2
  68. package/src/actions/package/compile/packageCompileTsup.ts +39 -53
  69. package/src/actions/package/lint.ts +2 -0
  70. package/src/bin/package/compile-types.ts +16 -0
  71. package/src/bin/xy.ts +1 -1
  72. package/src/xy/xyBuildCommands.ts +19 -1
  73. package/dist/bin/build.mjs +0 -17
  74. package/dist/bin/build.mjs.map +0 -1
  75. package/dist/bin/clean.mjs +0 -17
  76. package/dist/bin/clean.mjs.map +0 -1
  77. package/dist/bin/compile-only.mjs +0 -17
  78. package/dist/bin/compile-only.mjs.map +0 -1
  79. package/dist/bin/compile.mjs +0 -17
  80. package/dist/bin/compile.mjs.map +0 -1
  81. package/dist/bin/cycle.mjs +0 -17
  82. package/dist/bin/cycle.mjs.map +0 -1
  83. package/dist/bin/dead.mjs +0 -17
  84. package/dist/bin/dead.mjs.map +0 -1
  85. package/dist/bin/deploy-major.mjs +0 -17
  86. package/dist/bin/deploy-major.mjs.map +0 -1
  87. package/dist/bin/deploy-minor.mjs +0 -17
  88. package/dist/bin/deploy-minor.mjs.map +0 -1
  89. package/dist/bin/deploy-next.mjs +0 -17
  90. package/dist/bin/deploy-next.mjs.map +0 -1
  91. package/dist/bin/deploy.mjs +0 -17
  92. package/dist/bin/deploy.mjs.map +0 -1
  93. package/dist/bin/deps.mjs +0 -17
  94. package/dist/bin/deps.mjs.map +0 -1
  95. package/dist/bin/fix.mjs +0 -17
  96. package/dist/bin/fix.mjs.map +0 -1
  97. package/dist/bin/gen-docs.mjs +0 -17
  98. package/dist/bin/gen-docs.mjs.map +0 -1
  99. package/dist/bin/gitlint-fix.mjs +0 -17
  100. package/dist/bin/gitlint-fix.mjs.map +0 -1
  101. package/dist/bin/gitlint.mjs +0 -17
  102. package/dist/bin/gitlint.mjs.map +0 -1
  103. package/dist/bin/license.mjs +0 -17
  104. package/dist/bin/license.mjs.map +0 -1
  105. package/dist/bin/lint-clean.mjs +0 -17
  106. package/dist/bin/lint-clean.mjs.map +0 -1
  107. package/dist/bin/lint-fast.mjs +0 -17
  108. package/dist/bin/lint-fast.mjs.map +0 -1
  109. package/dist/bin/lint-profile.mjs +0 -17
  110. package/dist/bin/lint-profile.mjs.map +0 -1
  111. package/dist/bin/lint.mjs +0 -17
  112. package/dist/bin/lint.mjs.map +0 -1
  113. package/dist/bin/publint.mjs +0 -17
  114. package/dist/bin/publint.mjs.map +0 -1
  115. package/dist/bin/rebuild.mjs +0 -17
  116. package/dist/bin/rebuild.mjs.map +0 -1
  117. package/dist/bin/recompile.mjs +0 -17
  118. package/dist/bin/recompile.mjs.map +0 -1
  119. package/dist/bin/reinstall.mjs +0 -17
  120. package/dist/bin/reinstall.mjs.map +0 -1
  121. package/dist/bin/relint.mjs +0 -17
  122. package/dist/bin/relint.mjs.map +0 -1
  123. package/dist/bin/sonar.mjs +0 -17
  124. package/dist/bin/sonar.mjs.map +0 -1
  125. package/dist/bin/test.mjs +0 -17
  126. package/dist/bin/test.mjs.map +0 -1
  127. package/dist/bin/up.mjs +0 -17
  128. package/dist/bin/up.mjs.map +0 -1
  129. package/dist/bin/updo.mjs +0 -17
  130. package/dist/bin/updo.mjs.map +0 -1
  131. package/dist/bin/upplug.mjs +0 -17
  132. package/dist/bin/upplug.mjs.map +0 -1
  133. package/dist/bin/upyarn.mjs +0 -17
  134. package/dist/bin/upyarn.mjs.map +0 -1
  135. package/dist/bin/xy-ts.mjs +0 -1930
  136. package/dist/bin/xy-ts.mjs.map +0 -1
  137. package/dist/bin/yarn3only.mjs +0 -17
  138. package/dist/bin/yarn3only.mjs.map +0 -1
  139. package/src/bin/build.ts +0 -5
  140. package/src/bin/clean.ts +0 -5
  141. package/src/bin/compile-only.ts +0 -5
  142. package/src/bin/compile.ts +0 -5
  143. package/src/bin/cycle.ts +0 -5
  144. package/src/bin/dead.ts +0 -5
  145. package/src/bin/deploy-major.ts +0 -5
  146. package/src/bin/deploy-minor.ts +0 -5
  147. package/src/bin/deploy-next.ts +0 -5
  148. package/src/bin/deploy.ts +0 -5
  149. package/src/bin/deps.ts +0 -5
  150. package/src/bin/fix.ts +0 -5
  151. package/src/bin/gen-docs.ts +0 -5
  152. package/src/bin/gitlint-fix.ts +0 -5
  153. package/src/bin/gitlint.ts +0 -5
  154. package/src/bin/license.ts +0 -5
  155. package/src/bin/lint-clean.ts +0 -5
  156. package/src/bin/lint-fast.ts +0 -5
  157. package/src/bin/lint-profile.ts +0 -5
  158. package/src/bin/lint.ts +0 -5
  159. package/src/bin/publint.ts +0 -5
  160. package/src/bin/rebuild.ts +0 -5
  161. package/src/bin/recompile.ts +0 -5
  162. package/src/bin/reinstall.ts +0 -5
  163. package/src/bin/relint.ts +0 -5
  164. package/src/bin/sonar.ts +0 -5
  165. package/src/bin/test.ts +0 -5
  166. package/src/bin/up.ts +0 -5
  167. package/src/bin/updo.ts +0 -5
  168. package/src/bin/upplug.ts +0 -5
  169. package/src/bin/upyarn.ts +0 -5
  170. package/src/bin/xy-ts.ts +0 -12
  171. package/src/bin/yarn3only.ts +0 -5
package/dist/index.d.ts CHANGED
@@ -48,6 +48,21 @@ declare const compile: ({ verbose, target, pkg, incremental, publint, jobs, type
48
48
  declare const compilePackage: ({ target, pkg, types, }: CompilePackageParams) => number;
49
49
  declare const compileAll: ({ jobs, verbose, target, incremental, types, }: CompileParams) => number;
50
50
 
51
+ interface CompileTypesParams {
52
+ incremental?: boolean;
53
+ jobs?: number;
54
+ pkg?: string;
55
+ verbose?: boolean;
56
+ }
57
+ interface CompileTypesPackageParams {
58
+ pkg: string;
59
+ publint?: boolean;
60
+ verbose?: boolean;
61
+ }
62
+ declare const compileTypes: ({ verbose, pkg, incremental, jobs, }: CompileTypesParams) => number;
63
+ declare const compileTypesPackage: ({ verbose, pkg }: CompileTypesPackageParams) => number;
64
+ declare const compileTypesAll: ({ jobs, verbose, incremental, }: CompileTypesParams) => number;
65
+
51
66
  interface CopyAssetsParams {
52
67
  pkg?: string;
53
68
  target?: 'esm' | 'cjs';
@@ -174,8 +189,13 @@ type XyConfig = XyTsupConfig | XyTscConfig;
174
189
 
175
190
  declare const packageCompile: (inConfig?: XyConfig, types?: "tsc" | "tsup") => Promise<number>;
176
191
 
192
+ declare const packageCompileTypes: (inConfig?: XyConfig) => Promise<number>;
193
+
177
194
  declare const packageCompileTsc: (noEmit?: boolean, config?: XyTscConfig, compilerOptionsParam?: CompilerOptions) => Promise<number>;
178
195
 
196
+ declare const packageCompileTscTypes: (folder?: string, config?: XyConfig, compilerOptionsParam?: CompilerOptions) => number;
197
+
198
+ declare const tsupOptions: (options?: Options[]) => Options;
179
199
  declare const packageCompileTsup: (config?: XyTsupConfig, types?: "tsc" | "tsup") => Promise<number>;
180
200
 
181
201
  interface PackageCopyAssetsParams {
@@ -365,4 +385,4 @@ declare const xyLintCommands: (args: Argv) => Argv<{}>;
365
385
 
366
386
  declare const xyParseOptions: () => Argv;
367
387
 
368
- export { type BuildParams, CROSS_PLATFORM_NEWLINE, type CleanPackageParams, type CleanParams, type CompileConfig, type CompileMode, type CompileParams, type CopyAssetsParams, type DepsPackageParams, type DepsParams, 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 ScriptStep, WINDOWS_NEWLINE_REGEX, type Workspace, type XyConfig, type XyConfigBase, type XyTscConfig, type XyTsupConfig, build, checkResult, clean, cleanAll, cleanDocs, cleanPackage, compile, compileAll, compilePackage, copyAssets, createBuildConfig, cycle, dead, defaultBuildConfig, defaultReadFileSyncOptions, deleteGlob, deploy, deployMajor, deployMinor, deployNext, deps, depsAll, depsPackage, detectDuplicateDependencies, dupdeps, empty, fix, genDocs, genDocsAll, genDocsPackage, generateIgnoreFiles, gitignoreGen, gitlint, gitlintFix, isYarnVersionOrGreater, license, lint, lintAll, lintAllPackages, lintClean, lintPackage, lintProfile, loadConfig, loadPackageConfig, multiLineToJSONArray, notEmpty, npmignoreGen, packageClean, packageCleanOutputs, packageCleanTypescript, packageCompile, packageCompileTsc, packageCompileTsup, packageCopyAssets, packageDeps, packageGenDocs, packageLint, packagePublint, packageRecompile, parsedPackageJSON, processEx, publint, publintAll, publintPackage, readLines, readNonEmptyLines, rebuild, recompile, recompileAll, recompilePackage, reinstall, relint, retest, runStepAsync, runSteps, runStepsAsync, runXy, runXyWithWarning, safeExit, safeExitAsync, sonar, statics, test, tryReadFileSync, union, up, updateYarnPlugins, updateYarnVersion, updo, withErrnoException, withError, writeLines, xy, xyBuildCommands, xyCommonCommands, xyDeployCommands, xyInstallCommands, xyLintCommands, xyParseOptions, yarn3Only, yarnWorkspace, yarnWorkspaces };
388
+ export { type BuildParams, CROSS_PLATFORM_NEWLINE, type CleanPackageParams, type CleanParams, type CompileConfig, type CompileMode, type CompileParams, type CompileTypesParams, type CopyAssetsParams, type DepsPackageParams, type DepsParams, 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 ScriptStep, WINDOWS_NEWLINE_REGEX, type Workspace, type XyConfig, type XyConfigBase, type XyTscConfig, type XyTsupConfig, build, checkResult, clean, cleanAll, cleanDocs, cleanPackage, compile, compileAll, compilePackage, compileTypes, compileTypesAll, compileTypesPackage, copyAssets, createBuildConfig, cycle, dead, defaultBuildConfig, defaultReadFileSyncOptions, deleteGlob, deploy, deployMajor, deployMinor, deployNext, deps, depsAll, depsPackage, detectDuplicateDependencies, dupdeps, empty, fix, genDocs, genDocsAll, genDocsPackage, generateIgnoreFiles, gitignoreGen, gitlint, gitlintFix, isYarnVersionOrGreater, license, lint, lintAll, lintAllPackages, lintClean, lintPackage, lintProfile, loadConfig, loadPackageConfig, multiLineToJSONArray, notEmpty, npmignoreGen, packageClean, packageCleanOutputs, packageCleanTypescript, packageCompile, packageCompileTsc, packageCompileTscTypes, packageCompileTsup, packageCompileTypes, packageCopyAssets, packageDeps, packageGenDocs, packageLint, packagePublint, packageRecompile, parsedPackageJSON, processEx, publint, publintAll, publintPackage, readLines, readNonEmptyLines, rebuild, recompile, recompileAll, recompilePackage, reinstall, relint, 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 };