@xylabs/ts-scripts-yarn3 6.0.5 → 6.0.7

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 (316) hide show
  1. package/dist/actions/build.mjs +11 -0
  2. package/dist/actions/build.mjs.map +1 -1
  3. package/dist/actions/compile-types.mjs +2 -2
  4. package/dist/actions/compile-types.mjs.map +1 -1
  5. package/dist/actions/compile.mjs +7 -9
  6. package/dist/actions/compile.mjs.map +1 -1
  7. package/dist/actions/index.mjs +198 -214
  8. package/dist/actions/index.mjs.map +1 -1
  9. package/dist/actions/package/compile/compile.mjs +97 -169
  10. package/dist/actions/package/compile/compile.mjs.map +1 -1
  11. package/dist/actions/package/compile/compileTypes.mjs +16 -31
  12. package/dist/actions/package/compile/compileTypes.mjs.map +1 -1
  13. package/dist/actions/package/compile/index.mjs +152 -177
  14. package/dist/actions/package/compile/index.mjs.map +1 -1
  15. package/dist/actions/package/compile/packageCompileTscTypes.mjs +14 -29
  16. package/dist/actions/package/compile/packageCompileTscTypes.mjs.map +1 -1
  17. package/dist/actions/package/compile/packageCompileTsup.mjs +94 -82
  18. package/dist/actions/package/compile/packageCompileTsup.mjs.map +1 -1
  19. package/dist/actions/package/index.mjs +168 -193
  20. package/dist/actions/package/index.mjs.map +1 -1
  21. package/dist/actions/package/recompile.mjs +97 -169
  22. package/dist/actions/package/recompile.mjs.map +1 -1
  23. package/dist/bin/package/build-only.mjs +100 -172
  24. package/dist/bin/package/build-only.mjs.map +1 -1
  25. package/dist/bin/package/build.mjs +100 -172
  26. package/dist/bin/package/build.mjs.map +1 -1
  27. package/dist/bin/package/clean-outputs.mjs +1 -6
  28. package/dist/bin/package/clean-outputs.mjs.map +1 -1
  29. package/dist/bin/package/clean-typescript.mjs +1 -6
  30. package/dist/bin/package/clean-typescript.mjs.map +1 -1
  31. package/dist/bin/package/compile-only.mjs +99 -171
  32. package/dist/bin/package/compile-only.mjs.map +1 -1
  33. package/dist/bin/package/compile-tsup.mjs +110 -96
  34. package/dist/bin/package/compile-tsup.mjs.map +1 -1
  35. package/dist/bin/package/compile-types.mjs +44 -55
  36. package/dist/bin/package/compile-types.mjs.map +1 -1
  37. package/dist/bin/package/compile.mjs +99 -171
  38. package/dist/bin/package/compile.mjs.map +1 -1
  39. package/dist/bin/package/recompile.mjs +99 -171
  40. package/dist/bin/package/recompile.mjs.map +1 -1
  41. package/dist/bin/xy.mjs +20 -12
  42. package/dist/bin/xy.mjs.map +1 -1
  43. package/dist/index.d.ts +6 -11
  44. package/dist/index.mjs +208 -225
  45. package/dist/index.mjs.map +1 -1
  46. package/dist/types/actions/build.d.ts +9 -0
  47. package/dist/types/actions/build.d.ts.map +1 -0
  48. package/dist/types/actions/clean-docs.d.ts +2 -0
  49. package/dist/types/actions/clean-docs.d.ts.map +1 -0
  50. package/dist/types/actions/clean-eslint.d.ts +2 -0
  51. package/dist/types/actions/clean-eslint.d.ts.map +1 -0
  52. package/dist/types/actions/clean-jest.d.ts +2 -0
  53. package/dist/types/actions/clean-jest.d.ts.map +1 -0
  54. package/dist/types/actions/clean.d.ts +12 -0
  55. package/dist/types/actions/clean.d.ts.map +1 -0
  56. package/dist/types/actions/compile-types.d.ts +16 -0
  57. package/dist/types/actions/compile-types.d.ts.map +1 -0
  58. package/dist/types/actions/compile.d.ts +19 -0
  59. package/dist/types/actions/compile.d.ts.map +1 -0
  60. package/dist/types/actions/copy-assets.d.ts +6 -0
  61. package/dist/types/actions/copy-assets.d.ts.map +1 -0
  62. package/dist/types/actions/cycle.d.ts +2 -0
  63. package/dist/types/actions/cycle.d.ts.map +1 -0
  64. package/dist/types/actions/dead.d.ts +2 -0
  65. package/dist/types/actions/dead.d.ts.map +1 -0
  66. package/dist/types/actions/deploy-major.d.ts +2 -0
  67. package/dist/types/actions/deploy-major.d.ts.map +1 -0
  68. package/dist/types/actions/deploy-minor.d.ts +2 -0
  69. package/dist/types/actions/deploy-minor.d.ts.map +1 -0
  70. package/dist/types/actions/deploy-next.d.ts +2 -0
  71. package/dist/types/actions/deploy-next.d.ts.map +1 -0
  72. package/dist/types/actions/deploy.d.ts +2 -0
  73. package/dist/types/actions/deploy.d.ts.map +1 -0
  74. package/dist/types/actions/deps.d.ts +13 -0
  75. package/dist/types/actions/deps.d.ts.map +1 -0
  76. package/dist/types/actions/dupdeps.d.ts +2 -0
  77. package/dist/types/actions/dupdeps.d.ts.map +1 -0
  78. package/dist/types/actions/fix.d.ts +3 -0
  79. package/dist/types/actions/fix.d.ts.map +1 -0
  80. package/dist/types/actions/gen-docs.d.ts +11 -0
  81. package/dist/types/actions/gen-docs.d.ts.map +1 -0
  82. package/dist/types/actions/gitignore-gen.d.ts +2 -0
  83. package/dist/types/actions/gitignore-gen.d.ts.map +1 -0
  84. package/dist/types/actions/gitlint-fix.d.ts +2 -0
  85. package/dist/types/actions/gitlint-fix.d.ts.map +1 -0
  86. package/dist/types/actions/gitlint.d.ts +2 -0
  87. package/dist/types/actions/gitlint.d.ts.map +1 -0
  88. package/dist/types/actions/index.d.ts +38 -0
  89. package/dist/types/actions/index.d.ts.map +1 -0
  90. package/dist/types/actions/license.d.ts +2 -0
  91. package/dist/types/actions/license.d.ts.map +1 -0
  92. package/dist/types/actions/lint.d.ts +14 -0
  93. package/dist/types/actions/lint.d.ts.map +1 -0
  94. package/dist/types/actions/npmignore-gen.d.ts +2 -0
  95. package/dist/types/actions/npmignore-gen.d.ts.map +1 -0
  96. package/dist/types/actions/package/clean-outputs.d.ts +2 -0
  97. package/dist/types/actions/package/clean-outputs.d.ts.map +1 -0
  98. package/dist/types/actions/package/clean-typescript.d.ts +2 -0
  99. package/dist/types/actions/package/clean-typescript.d.ts.map +1 -0
  100. package/dist/types/actions/package/clean.d.ts +2 -0
  101. package/dist/types/actions/package/clean.d.ts.map +1 -0
  102. package/dist/types/actions/package/compile/XyConfig.d.ts +58 -0
  103. package/dist/types/actions/package/compile/XyConfig.d.ts.map +1 -0
  104. package/dist/types/actions/package/compile/buildEntries.d.ts +3 -0
  105. package/dist/types/actions/package/compile/buildEntries.d.ts.map +1 -0
  106. package/dist/types/actions/package/compile/compile.d.ts +3 -0
  107. package/dist/types/actions/package/compile/compile.d.ts.map +1 -0
  108. package/dist/types/actions/package/compile/compileTypes.d.ts +3 -0
  109. package/dist/types/actions/package/compile/compileTypes.d.ts.map +1 -0
  110. package/dist/types/actions/package/compile/copyTypeFiles.d.ts +3 -0
  111. package/dist/types/actions/package/compile/copyTypeFiles.d.ts.map +1 -0
  112. package/dist/types/actions/package/compile/deepMerge.d.ts +4 -0
  113. package/dist/types/actions/package/compile/deepMerge.d.ts.map +1 -0
  114. package/dist/types/actions/package/compile/getCompilerOptions.d.ts +3 -0
  115. package/dist/types/actions/package/compile/getCompilerOptions.d.ts.map +1 -0
  116. package/dist/types/actions/package/compile/index.d.ts +7 -0
  117. package/dist/types/actions/package/compile/index.d.ts.map +1 -0
  118. package/dist/types/actions/package/compile/inputs.d.ts +2 -0
  119. package/dist/types/actions/package/compile/inputs.d.ts.map +1 -0
  120. package/dist/types/actions/package/compile/packageCompileTsc.d.ts +4 -0
  121. package/dist/types/actions/package/compile/packageCompileTsc.d.ts.map +1 -0
  122. package/dist/types/actions/package/compile/packageCompileTscTypes.d.ts +4 -0
  123. package/dist/types/actions/package/compile/packageCompileTscTypes.d.ts.map +1 -0
  124. package/dist/types/actions/package/compile/packageCompileTsup.d.ts +5 -0
  125. package/dist/types/actions/package/compile/packageCompileTsup.d.ts.map +1 -0
  126. package/dist/types/actions/package/copy-assets.d.ts +5 -0
  127. package/dist/types/actions/package/copy-assets.d.ts.map +1 -0
  128. package/dist/types/actions/package/deps.d.ts +2 -0
  129. package/dist/types/actions/package/deps.d.ts.map +1 -0
  130. package/dist/types/actions/package/gen-docs.d.ts +2 -0
  131. package/dist/types/actions/package/gen-docs.d.ts.map +1 -0
  132. package/dist/types/actions/package/index.d.ts +11 -0
  133. package/dist/types/actions/package/index.d.ts.map +1 -0
  134. package/dist/types/actions/package/lint.d.ts +2 -0
  135. package/dist/types/actions/package/lint.d.ts.map +1 -0
  136. package/dist/types/actions/package/publint.d.ts +5 -0
  137. package/dist/types/actions/package/publint.d.ts.map +1 -0
  138. package/dist/types/actions/package/recompile.d.ts +2 -0
  139. package/dist/types/actions/package/recompile.d.ts.map +1 -0
  140. package/dist/types/actions/publint.d.ts +12 -0
  141. package/dist/types/actions/publint.d.ts.map +1 -0
  142. package/dist/types/actions/rebuild.d.ts +6 -0
  143. package/dist/types/actions/rebuild.d.ts.map +1 -0
  144. package/dist/types/actions/recompile.d.ts +16 -0
  145. package/dist/types/actions/recompile.d.ts.map +1 -0
  146. package/dist/types/actions/reinstall.d.ts +2 -0
  147. package/dist/types/actions/reinstall.d.ts.map +1 -0
  148. package/dist/types/actions/relint.d.ts +13 -0
  149. package/dist/types/actions/relint.d.ts.map +1 -0
  150. package/dist/types/actions/retest.d.ts +2 -0
  151. package/dist/types/actions/retest.d.ts.map +1 -0
  152. package/dist/types/actions/sonar.d.ts +2 -0
  153. package/dist/types/actions/sonar.d.ts.map +1 -0
  154. package/dist/types/actions/statics.d.ts +2 -0
  155. package/dist/types/actions/statics.d.ts.map +1 -0
  156. package/dist/types/actions/test.d.ts +2 -0
  157. package/dist/types/actions/test.d.ts.map +1 -0
  158. package/dist/types/actions/up.d.ts +2 -0
  159. package/dist/types/actions/up.d.ts.map +1 -0
  160. package/dist/types/actions/updo.d.ts +2 -0
  161. package/dist/types/actions/updo.d.ts.map +1 -0
  162. package/dist/types/actions/upplug.d.ts +2 -0
  163. package/dist/types/actions/upplug.d.ts.map +1 -0
  164. package/dist/types/actions/upyarn.d.ts +2 -0
  165. package/dist/types/actions/upyarn.d.ts.map +1 -0
  166. package/dist/types/actions/yarn3only.d.ts +2 -0
  167. package/dist/types/actions/yarn3only.d.ts.map +1 -0
  168. package/dist/types/bin/package/build-only.d.ts +3 -0
  169. package/dist/types/bin/package/build-only.d.ts.map +1 -0
  170. package/dist/types/bin/package/build.d.ts +3 -0
  171. package/dist/types/bin/package/build.d.ts.map +1 -0
  172. package/dist/types/bin/package/clean-outputs.d.ts +3 -0
  173. package/dist/types/bin/package/clean-outputs.d.ts.map +1 -0
  174. package/dist/types/bin/package/clean-typescript.d.ts +3 -0
  175. package/dist/types/bin/package/clean-typescript.d.ts.map +1 -0
  176. package/dist/types/bin/package/clean.d.ts +3 -0
  177. package/dist/types/bin/package/clean.d.ts.map +1 -0
  178. package/dist/types/bin/package/compile-only.d.ts +3 -0
  179. package/dist/types/bin/package/compile-only.d.ts.map +1 -0
  180. package/dist/types/bin/package/compile-tsup.d.ts +3 -0
  181. package/dist/types/bin/package/compile-tsup.d.ts.map +1 -0
  182. package/dist/types/bin/package/compile-types.d.ts +3 -0
  183. package/dist/types/bin/package/compile-types.d.ts.map +1 -0
  184. package/dist/types/bin/package/compile.d.ts +3 -0
  185. package/dist/types/bin/package/compile.d.ts.map +1 -0
  186. package/dist/types/bin/package/copy-assets-cjs.d.ts +3 -0
  187. package/dist/types/bin/package/copy-assets-cjs.d.ts.map +1 -0
  188. package/dist/types/bin/package/copy-assets-esm.d.ts +3 -0
  189. package/dist/types/bin/package/copy-assets-esm.d.ts.map +1 -0
  190. package/dist/types/bin/package/deps.d.ts +3 -0
  191. package/dist/types/bin/package/deps.d.ts.map +1 -0
  192. package/dist/types/bin/package/fix.d.ts +3 -0
  193. package/dist/types/bin/package/fix.d.ts.map +1 -0
  194. package/dist/types/bin/package/gen-docs.d.ts +3 -0
  195. package/dist/types/bin/package/gen-docs.d.ts.map +1 -0
  196. package/dist/types/bin/package/lint.d.ts +3 -0
  197. package/dist/types/bin/package/lint.d.ts.map +1 -0
  198. package/dist/types/bin/package/publint.d.ts +3 -0
  199. package/dist/types/bin/package/publint.d.ts.map +1 -0
  200. package/dist/types/bin/package/recompile.d.ts +3 -0
  201. package/dist/types/bin/package/recompile.d.ts.map +1 -0
  202. package/dist/types/bin/package/relint.d.ts +3 -0
  203. package/dist/types/bin/package/relint.d.ts.map +1 -0
  204. package/dist/types/bin/xy.d.ts +3 -0
  205. package/dist/types/bin/xy.d.ts.map +1 -0
  206. package/dist/types/index.d.ts +5 -0
  207. package/dist/types/index.d.ts.map +1 -0
  208. package/dist/types/lib/checkResult.d.ts +2 -0
  209. package/dist/types/lib/checkResult.d.ts.map +1 -0
  210. package/dist/types/lib/createBuildConfig.d.ts +2 -0
  211. package/dist/types/lib/createBuildConfig.d.ts.map +1 -0
  212. package/dist/types/lib/defaultBuildConfig.d.ts +9 -0
  213. package/dist/types/lib/defaultBuildConfig.d.ts.map +1 -0
  214. package/dist/types/lib/deleteGlob.d.ts +2 -0
  215. package/dist/types/lib/deleteGlob.d.ts.map +1 -0
  216. package/dist/types/lib/dependencies/DuplicateDetector.d.ts +9 -0
  217. package/dist/types/lib/dependencies/DuplicateDetector.d.ts.map +1 -0
  218. package/dist/types/lib/dependencies/detectDuplicateDependencies.d.ts +2 -0
  219. package/dist/types/lib/dependencies/detectDuplicateDependencies.d.ts.map +1 -0
  220. package/dist/types/lib/dependencies/index.d.ts +3 -0
  221. package/dist/types/lib/dependencies/index.d.ts.map +1 -0
  222. package/dist/types/lib/file/ReadFileSyncOptions.d.ts +6 -0
  223. package/dist/types/lib/file/ReadFileSyncOptions.d.ts.map +1 -0
  224. package/dist/types/lib/file/constants.d.ts +3 -0
  225. package/dist/types/lib/file/constants.d.ts.map +1 -0
  226. package/dist/types/lib/file/fileLines.d.ts +6 -0
  227. package/dist/types/lib/file/fileLines.d.ts.map +1 -0
  228. package/dist/types/lib/file/index.d.ts +5 -0
  229. package/dist/types/lib/file/index.d.ts.map +1 -0
  230. package/dist/types/lib/file/tryReadFileSync.d.ts +4 -0
  231. package/dist/types/lib/file/tryReadFileSync.d.ts.map +1 -0
  232. package/dist/types/lib/generateIgnoreFiles.d.ts +2 -0
  233. package/dist/types/lib/generateIgnoreFiles.d.ts.map +1 -0
  234. package/dist/types/lib/index.d.ts +21 -0
  235. package/dist/types/lib/index.d.ts.map +1 -0
  236. package/dist/types/lib/jsonFormatters.d.ts +2 -0
  237. package/dist/types/lib/jsonFormatters.d.ts.map +1 -0
  238. package/dist/types/lib/loadConfig.d.ts +2 -0
  239. package/dist/types/lib/loadConfig.d.ts.map +1 -0
  240. package/dist/types/lib/parsedPackageJSON.d.ts +2 -0
  241. package/dist/types/lib/parsedPackageJSON.d.ts.map +1 -0
  242. package/dist/types/lib/processEx.d.ts +2 -0
  243. package/dist/types/lib/processEx.d.ts.map +1 -0
  244. package/dist/types/lib/runSteps.d.ts +4 -0
  245. package/dist/types/lib/runSteps.d.ts.map +1 -0
  246. package/dist/types/lib/runStepsAsync.d.ts +4 -0
  247. package/dist/types/lib/runStepsAsync.d.ts.map +1 -0
  248. package/dist/types/lib/runXy.d.ts +2 -0
  249. package/dist/types/lib/runXy.d.ts.map +1 -0
  250. package/dist/types/lib/runXyWithWarning.d.ts +2 -0
  251. package/dist/types/lib/runXyWithWarning.d.ts.map +1 -0
  252. package/dist/types/lib/safeExit.d.ts +5 -0
  253. package/dist/types/lib/safeExit.d.ts.map +1 -0
  254. package/dist/types/lib/string/empty.d.ts +3 -0
  255. package/dist/types/lib/string/empty.d.ts.map +1 -0
  256. package/dist/types/lib/string/index.d.ts +3 -0
  257. package/dist/types/lib/string/index.d.ts.map +1 -0
  258. package/dist/types/lib/string/union.d.ts +2 -0
  259. package/dist/types/lib/string/union.d.ts.map +1 -0
  260. package/dist/types/lib/withErrnoException.d.ts +2 -0
  261. package/dist/types/lib/withErrnoException.d.ts.map +1 -0
  262. package/dist/types/lib/withError.d.ts +2 -0
  263. package/dist/types/lib/withError.d.ts.map +1 -0
  264. package/dist/types/lib/yarn/index.d.ts +4 -0
  265. package/dist/types/lib/yarn/index.d.ts.map +1 -0
  266. package/dist/types/lib/yarn/isYarnVersionOrGreater.d.ts +2 -0
  267. package/dist/types/lib/yarn/isYarnVersionOrGreater.d.ts.map +1 -0
  268. package/dist/types/lib/yarn/workspace/Workspace.d.ts +5 -0
  269. package/dist/types/lib/yarn/workspace/Workspace.d.ts.map +1 -0
  270. package/dist/types/lib/yarn/workspace/index.d.ts +4 -0
  271. package/dist/types/lib/yarn/workspace/index.d.ts.map +1 -0
  272. package/dist/types/lib/yarn/workspace/yarnWorkspace.d.ts +3 -0
  273. package/dist/types/lib/yarn/workspace/yarnWorkspace.d.ts.map +1 -0
  274. package/dist/types/lib/yarn/workspace/yarnWorkspaces.d.ts +3 -0
  275. package/dist/types/lib/yarn/workspace/yarnWorkspaces.d.ts.map +1 -0
  276. package/dist/types/lib/yarn/yarnInitCwd.d.ts +2 -0
  277. package/dist/types/lib/yarn/yarnInitCwd.d.ts.map +1 -0
  278. package/dist/types/loadPackageConfig.d.ts +6 -0
  279. package/dist/types/loadPackageConfig.d.ts.map +1 -0
  280. package/dist/types/xy/index.d.ts +8 -0
  281. package/dist/types/xy/index.d.ts.map +1 -0
  282. package/dist/types/xy/param.d.ts +5 -0
  283. package/dist/types/xy/param.d.ts.map +1 -0
  284. package/dist/types/xy/xy.d.ts +10 -0
  285. package/dist/types/xy/xy.d.ts.map +1 -0
  286. package/dist/types/xy/xyBuildCommands.d.ts +3 -0
  287. package/dist/types/xy/xyBuildCommands.d.ts.map +1 -0
  288. package/dist/types/xy/xyCommonCommands.d.ts +3 -0
  289. package/dist/types/xy/xyCommonCommands.d.ts.map +1 -0
  290. package/dist/types/xy/xyDeployCommands.d.ts +3 -0
  291. package/dist/types/xy/xyDeployCommands.d.ts.map +1 -0
  292. package/dist/types/xy/xyInstallCommands.d.ts +3 -0
  293. package/dist/types/xy/xyInstallCommands.d.ts.map +1 -0
  294. package/dist/types/xy/xyLintCommands.d.ts +3 -0
  295. package/dist/types/xy/xyLintCommands.d.ts.map +1 -0
  296. package/dist/types/xy/xyParseOptions.d.ts +3 -0
  297. package/dist/types/xy/xyParseOptions.d.ts.map +1 -0
  298. package/dist/xy/index.mjs +20 -12
  299. package/dist/xy/index.mjs.map +1 -1
  300. package/dist/xy/xy.mjs +20 -12
  301. package/dist/xy/xy.mjs.map +1 -1
  302. package/dist/xy/xyBuildCommands.mjs +20 -12
  303. package/dist/xy/xyBuildCommands.mjs.map +1 -1
  304. package/package.json +4 -4
  305. package/src/actions/build.ts +1 -0
  306. package/src/actions/compile-types.ts +1 -1
  307. package/src/actions/compile.ts +7 -11
  308. package/src/actions/package/compile/XyConfig.ts +0 -4
  309. package/src/actions/package/compile/compile.ts +8 -17
  310. package/src/actions/package/compile/packageCompileTscTypes.ts +21 -29
  311. package/src/actions/package/compile/packageCompileTsup.ts +12 -19
  312. package/src/bin/package/build-only.ts +1 -1
  313. package/src/bin/package/build.ts +1 -1
  314. package/src/bin/package/clean-outputs.ts +1 -8
  315. package/src/bin/package/clean-typescript.ts +1 -8
  316. package/src/xy/xyBuildCommands.ts +0 -1
package/dist/index.mjs CHANGED
@@ -586,6 +586,17 @@ var build = /* @__PURE__ */ __name(async ({ incremental, jobs, target, verbose,
586
586
  ...jobsOptions,
587
587
  ...incrementalOptions
588
588
  ]
589
+ ],
590
+ [
591
+ "yarn",
592
+ [
593
+ "xy",
594
+ "publint",
595
+ ...pkgOptions,
596
+ ...verboseOptions,
597
+ ...jobsOptions,
598
+ ...incrementalOptions
599
+ ]
589
600
  ]
590
601
  ]);
591
602
  console.log(`${chalk9.gray("Built in")} [${chalk9.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk9.gray("seconds")}`);
@@ -647,23 +658,21 @@ var cleanDocs = /* @__PURE__ */ __name(() => {
647
658
 
648
659
  // src/actions/compile.ts
649
660
  import chalk11 from "chalk";
650
- var compile = /* @__PURE__ */ __name(({ verbose, target, pkg, incremental, publint: publint2, jobs, types }) => {
661
+ var compile = /* @__PURE__ */ __name(({ verbose, target, pkg, incremental, publint: publint2, jobs }) => {
651
662
  return pkg ? compilePackage({
652
663
  pkg,
653
664
  publint: publint2,
654
665
  target,
655
- verbose,
656
- types
666
+ verbose
657
667
  }) : compileAll({
658
668
  incremental,
659
669
  publint: publint2,
660
670
  target,
661
671
  verbose,
662
- jobs,
663
- types
672
+ jobs
664
673
  });
665
674
  }, "compile");
666
- var compilePackage = /* @__PURE__ */ __name(({ target, pkg, types }) => {
675
+ var compilePackage = /* @__PURE__ */ __name(({ target, pkg }) => {
667
676
  const targetOptions = target ? [
668
677
  "-t",
669
678
  target
@@ -675,13 +684,13 @@ var compilePackage = /* @__PURE__ */ __name(({ target, pkg, types }) => {
675
684
  "workspace",
676
685
  pkg,
677
686
  "run",
678
- types === "tsup" ? "package-compile" : "package-build",
687
+ "package-compile",
679
688
  ...targetOptions
680
689
  ]
681
690
  ]
682
691
  ]);
683
692
  }, "compilePackage");
684
- var compileAll = /* @__PURE__ */ __name(({ jobs, verbose, target, incremental, types }) => {
693
+ var compileAll = /* @__PURE__ */ __name(({ jobs, verbose, target, incremental }) => {
685
694
  const start = Date.now();
686
695
  const verboseOptions = verbose ? [
687
696
  "--verbose"
@@ -718,7 +727,7 @@ var compileAll = /* @__PURE__ */ __name(({ jobs, verbose, target, incremental, t
718
727
  ...jobsOptions,
719
728
  ...verboseOptions,
720
729
  "run",
721
- types === "tsup" ? "package-compile" : "package-build",
730
+ "package-compile",
722
731
  ...targetOptions
723
732
  ]
724
733
  ]
@@ -770,10 +779,10 @@ var compileTypesAll = /* @__PURE__ */ __name(({ jobs, verbose, incremental }) =>
770
779
  ];
771
780
  const incrementalOptions = incremental ? [
772
781
  "--since",
773
- "-Ap"
782
+ "-Apt"
774
783
  ] : [
775
784
  "--parallel",
776
- "-Ap"
785
+ "-Apt"
777
786
  ];
778
787
  const jobsOptions = jobs ? [
779
788
  "-j",
@@ -1395,7 +1404,7 @@ var packageClean = /* @__PURE__ */ __name(async () => {
1395
1404
  }, "packageClean");
1396
1405
 
1397
1406
  // src/actions/package/compile/compile.ts
1398
- import chalk25 from "chalk";
1407
+ import chalk24 from "chalk";
1399
1408
 
1400
1409
  // src/actions/package/publint.ts
1401
1410
  import { promises as fs2 } from "node:fs";
@@ -1441,86 +1450,6 @@ var packagePublint = /* @__PURE__ */ __name(async (params) => {
1441
1450
  return validMessages.filter((message) => message.type === "error").length;
1442
1451
  }, "packagePublint");
1443
1452
 
1444
- // src/actions/package/compile/packageCompileTsc.ts
1445
- import { cwd } from "node:process";
1446
- import chalk23 from "chalk";
1447
- import { createProgramFromConfig } from "tsc-prog";
1448
- import { DiagnosticCategory, formatDiagnosticsWithColorAndContext, getLineAndCharacterOfPosition, getPreEmitDiagnostics } from "typescript";
1449
-
1450
- // src/actions/package/compile/getCompilerOptions.ts
1451
- import { createRequire } from "node:module";
1452
- import deepmerge2 from "deepmerge";
1453
- import { findConfigFile, readConfigFile, sys } from "typescript";
1454
- var getNested = /* @__PURE__ */ __name((config2) => {
1455
- if (config2.extends) {
1456
- const require2 = createRequire(import.meta.url);
1457
- const opts = require2(config2.extends);
1458
- return deepmerge2(getNested(opts), config2.compilerOptions ?? {});
1459
- }
1460
- return config2.compilerOptions;
1461
- }, "getNested");
1462
- var getCompilerOptionsJSONFollowExtends = /* @__PURE__ */ __name((filename3) => {
1463
- const config2 = readConfigFile(filename3, sys.readFile).config;
1464
- return getNested(config2);
1465
- }, "getCompilerOptionsJSONFollowExtends");
1466
- var getCompilerOptions = /* @__PURE__ */ __name((options = {}, tsconfig = "tsconfig.json") => {
1467
- const configFileName = findConfigFile("./", sys.fileExists, tsconfig);
1468
- const configFileCompilerOptions = (configFileName ? getCompilerOptionsJSONFollowExtends(configFileName) : void 0) ?? {};
1469
- return deepmerge2(configFileCompilerOptions, options);
1470
- }, "getCompilerOptions");
1471
-
1472
- // src/actions/package/compile/packageCompileTsc.ts
1473
- var packageCompileTsc = /* @__PURE__ */ __name(async (noEmit, config2, compilerOptionsParam) => {
1474
- const pkg = process.env.INIT_CWD ?? cwd();
1475
- const publint2 = config2?.publint ?? true;
1476
- const verbose = config2?.verbose ?? false;
1477
- const formatHost = {
1478
- getCanonicalFileName: /* @__PURE__ */ __name((fileName) => fileName, "getCanonicalFileName"),
1479
- getCurrentDirectory: /* @__PURE__ */ __name(() => pkg, "getCurrentDirectory"),
1480
- getNewLine: /* @__PURE__ */ __name(() => "\n", "getNewLine")
1481
- };
1482
- if (verbose) {
1483
- console.log(`Compiling with NoEmit TSC [${pkg}]`);
1484
- }
1485
- const compilerOptions = {
1486
- ...getCompilerOptions({
1487
- outDir: "dist",
1488
- removeComments: true,
1489
- rootDir: "src"
1490
- }),
1491
- ...compilerOptionsParam,
1492
- ...noEmit === void 0 ? {} : {
1493
- noEmit
1494
- }
1495
- };
1496
- const program = createProgramFromConfig({
1497
- basePath: pkg ?? cwd(),
1498
- compilerOptions,
1499
- exclude: [
1500
- "dist",
1501
- "docs",
1502
- "**/*.spec.*",
1503
- "**/*.stories.*",
1504
- "src/**/spec/**/*"
1505
- ],
1506
- include: [
1507
- "src"
1508
- ]
1509
- });
1510
- const results = getPreEmitDiagnostics(program);
1511
- for (const diag of results) {
1512
- const lineAndChar = diag.file ? getLineAndCharacterOfPosition(diag.file, diag.start ?? 0) : {
1513
- character: 0,
1514
- line: 0
1515
- };
1516
- console.log(chalk23.cyan(`${diag.file?.fileName}:${lineAndChar.line + 1}:${lineAndChar.character + 1}`));
1517
- console.log(formatDiagnosticsWithColorAndContext([
1518
- diag
1519
- ], formatHost));
1520
- }
1521
- return results.reduce((prev, diag) => prev + diag.category === DiagnosticCategory.Error ? 1 : 0, 0) || (publint2 ? await packagePublint() : 0);
1522
- }, "packageCompileTsc");
1523
-
1524
1453
  // src/actions/package/compile/packageCompileTsup.ts
1525
1454
  import { build as build2, defineConfig } from "tsup";
1526
1455
 
@@ -1563,45 +1492,45 @@ var buildEntries = /* @__PURE__ */ __name((folder, entryMode = "single", verbose
1563
1492
  return entries;
1564
1493
  }, "buildEntries");
1565
1494
 
1566
- // src/actions/package/compile/deepMerge.ts
1567
- function deepMerge(target, source) {
1568
- if (!source || typeof source !== "object") return target;
1569
- for (const key of Object.keys(source)) {
1570
- if (typeof source[key] === "object" && source[key] !== null && !Array.isArray(source[key])) {
1571
- if (!target[key] || typeof target[key] !== "object") {
1572
- target[key] = {};
1573
- }
1574
- deepMerge(target[key], source[key]);
1575
- } else {
1576
- target[key] = source[key];
1577
- }
1578
- }
1579
- return target;
1580
- }
1581
- __name(deepMerge, "deepMerge");
1582
- function deepMergeObjects(objects) {
1583
- const result = {};
1584
- for (const obj of objects) {
1585
- deepMerge(result, obj);
1495
+ // src/actions/package/compile/compileTypes.ts
1496
+ import chalk23 from "chalk";
1497
+
1498
+ // src/actions/package/compile/packageCompileTscTypes.ts
1499
+ import { cwd } from "node:process";
1500
+ import { createProgramFromConfig } from "tsc-prog";
1501
+ import { DiagnosticCategory, formatDiagnosticsWithColorAndContext, getPreEmitDiagnostics, sys as sys2 } from "typescript";
1502
+
1503
+ // src/actions/package/compile/getCompilerOptions.ts
1504
+ import { createRequire } from "node:module";
1505
+ import deepmerge2 from "deepmerge";
1506
+ import { findConfigFile, readConfigFile, sys } from "typescript";
1507
+ var getNested = /* @__PURE__ */ __name((config2) => {
1508
+ if (config2.extends) {
1509
+ const require2 = createRequire(import.meta.url);
1510
+ const opts = require2(config2.extends);
1511
+ return deepmerge2(getNested(opts), config2.compilerOptions ?? {});
1586
1512
  }
1587
- return result;
1588
- }
1589
- __name(deepMergeObjects, "deepMergeObjects");
1513
+ return config2.compilerOptions;
1514
+ }, "getNested");
1515
+ var getCompilerOptionsJSONFollowExtends = /* @__PURE__ */ __name((filename3) => {
1516
+ const config2 = readConfigFile(filename3, sys.readFile).config;
1517
+ return getNested(config2);
1518
+ }, "getCompilerOptionsJSONFollowExtends");
1519
+ var getCompilerOptions = /* @__PURE__ */ __name((options = {}, tsconfig = "tsconfig.json") => {
1520
+ const configFileName = findConfigFile("./", sys.fileExists, tsconfig);
1521
+ const configFileCompilerOptions = (configFileName ? getCompilerOptionsJSONFollowExtends(configFileName) : void 0) ?? {};
1522
+ return deepmerge2(configFileCompilerOptions, options);
1523
+ }, "getCompilerOptions");
1590
1524
 
1591
1525
  // src/actions/package/compile/packageCompileTscTypes.ts
1592
- import { cwd as cwd2 } from "node:process";
1593
- import chalk24 from "chalk";
1594
- import { createProgramFromConfig as createProgramFromConfig2 } from "tsc-prog";
1595
- import { DiagnosticCategory as DiagnosticCategory2 } from "typescript";
1596
1526
  var packageCompileTscTypes = /* @__PURE__ */ __name((folder = "src", config2 = {}, compilerOptionsParam) => {
1597
- const pkg = process.env.INIT_CWD ?? cwd2();
1527
+ const pkg = process.env.INIT_CWD ?? cwd();
1598
1528
  const verbose = config2?.verbose ?? false;
1599
1529
  if (verbose) {
1600
- console.log(`Compiling types with TSC [${pkg}]`);
1530
+ console.log(`Compiling types [${pkg}]`);
1601
1531
  }
1602
1532
  const compilerOptions = {
1603
1533
  ...getCompilerOptions({
1604
- declaration: true,
1605
1534
  emitDeclarationOnly: true,
1606
1535
  outDir: "dist/types",
1607
1536
  removeComments: false,
@@ -1614,8 +1543,8 @@ var packageCompileTscTypes = /* @__PURE__ */ __name((folder = "src", config2 = {
1614
1543
  noEmit: false
1615
1544
  };
1616
1545
  const files = buildEntries(folder, "all", verbose);
1617
- const result = createProgramFromConfig2({
1618
- basePath: pkg ?? cwd2(),
1546
+ const program = createProgramFromConfig({
1547
+ basePath: pkg ?? cwd(),
1619
1548
  compilerOptions,
1620
1549
  exclude: [
1621
1550
  "dist",
@@ -1625,35 +1554,55 @@ var packageCompileTscTypes = /* @__PURE__ */ __name((folder = "src", config2 = {
1625
1554
  "src/**/spec/**/*"
1626
1555
  ],
1627
1556
  files
1628
- }).emit();
1629
- const diagResults = result.diagnostics.length;
1630
- for (const diag of result.diagnostics) {
1631
- switch (diag.category) {
1632
- case DiagnosticCategory2.Error: {
1633
- console.error(chalk24.red(diag.messageText));
1634
- console.error(chalk24.grey(pkg));
1635
- console.error(chalk24.blue(diag.file?.fileName));
1636
- break;
1637
- }
1638
- case DiagnosticCategory2.Warning: {
1639
- console.error(chalk24.yellow(diag.messageText));
1640
- console.error(chalk24.grey(pkg));
1641
- console.error(chalk24.blue(diag.file?.fileName));
1642
- break;
1643
- }
1644
- case DiagnosticCategory2.Suggestion: {
1645
- console.error(chalk24.white(diag.messageText));
1646
- console.error(chalk24.grey(pkg));
1647
- console.error(chalk24.blue(diag.file?.fileName));
1648
- break;
1557
+ });
1558
+ const diagnostics = getPreEmitDiagnostics(program);
1559
+ if (diagnostics.length > 0) {
1560
+ const formattedDiagnostics = formatDiagnosticsWithColorAndContext(diagnostics, {
1561
+ getCanonicalFileName: /* @__PURE__ */ __name((fileName) => fileName, "getCanonicalFileName"),
1562
+ getCurrentDirectory: /* @__PURE__ */ __name(() => folder, "getCurrentDirectory"),
1563
+ getNewLine: /* @__PURE__ */ __name(() => sys2.newLine, "getNewLine")
1564
+ });
1565
+ console.error(formattedDiagnostics);
1566
+ }
1567
+ program.emit();
1568
+ return diagnostics.reduce((acc, diag) => acc + (diag.category === DiagnosticCategory.Error ? 1 : 0), 0);
1569
+ }, "packageCompileTscTypes");
1570
+
1571
+ // src/actions/package/compile/compileTypes.ts
1572
+ var packageCompileTypes = /* @__PURE__ */ __name(async (inConfig = {}) => {
1573
+ const pkg = process.env.INIT_CWD;
1574
+ console.log(chalk23.green(`Compiling Types ${pkg}`));
1575
+ const config2 = await loadConfig(inConfig);
1576
+ return packageCompileTscTypes(void 0, config2);
1577
+ }, "packageCompileTypes");
1578
+
1579
+ // src/actions/package/compile/deepMerge.ts
1580
+ function deepMerge(target, source) {
1581
+ if (!source || typeof source !== "object") return target;
1582
+ for (const key of Object.keys(source)) {
1583
+ if (typeof source[key] === "object" && source[key] !== null && !Array.isArray(source[key])) {
1584
+ if (!target[key] || typeof target[key] !== "object") {
1585
+ target[key] = {};
1649
1586
  }
1587
+ deepMerge(target[key], source[key]);
1588
+ } else {
1589
+ target[key] = source[key];
1650
1590
  }
1651
1591
  }
1652
- return diagResults;
1653
- }, "packageCompileTscTypes");
1592
+ return target;
1593
+ }
1594
+ __name(deepMerge, "deepMerge");
1595
+ function deepMergeObjects(objects) {
1596
+ const result = {};
1597
+ for (const obj of objects) {
1598
+ deepMerge(result, obj);
1599
+ }
1600
+ return result;
1601
+ }
1602
+ __name(deepMergeObjects, "deepMergeObjects");
1654
1603
 
1655
1604
  // src/actions/package/compile/packageCompileTsup.ts
1656
- var compileFolder = /* @__PURE__ */ __name(async (folder, entryMode = "single", options, types = "tsc", verbose) => {
1605
+ var compileFolder = /* @__PURE__ */ __name(async (folder, entryMode = "single", options, verbose) => {
1657
1606
  const outDir = options?.outDir ?? "dist";
1658
1607
  if (verbose) {
1659
1608
  console.log(`compileFolder [${folder}]`);
@@ -1663,7 +1612,7 @@ var compileFolder = /* @__PURE__ */ __name(async (folder, entryMode = "single",
1663
1612
  bundle: true,
1664
1613
  cjsInterop: true,
1665
1614
  clean: true,
1666
- dts: types === "tsup",
1615
+ dts: false,
1667
1616
  entry,
1668
1617
  format: [
1669
1618
  "esm"
@@ -1686,11 +1635,11 @@ var compileFolder = /* @__PURE__ */ __name(async (folder, entryMode = "single",
1686
1635
  ];
1687
1636
  }))).flat();
1688
1637
  if (verbose) {
1689
- console.log(`TSUP:build:start [${folder}] ${types}`);
1638
+ console.log(`TSUP:build:start [${folder}]`);
1690
1639
  }
1691
1640
  await Promise.all(optionsList.map((options2) => build2(options2)));
1692
1641
  if (verbose) {
1693
- console.log(`TSUP:build:stop [${folder}] ${types}`);
1642
+ console.log(`TSUP:build:stop [${folder}]`);
1694
1643
  }
1695
1644
  return 0;
1696
1645
  }, "compileFolder");
@@ -1724,8 +1673,8 @@ var tsupOptions = /* @__PURE__ */ __name((options = []) => {
1724
1673
  ...options
1725
1674
  ]);
1726
1675
  }, "tsupOptions");
1727
- var packageCompileTsup = /* @__PURE__ */ __name(async (config2, types = "tsc") => {
1728
- console.warn("packageCompileTsup-types", types);
1676
+ var packageCompileTsup = /* @__PURE__ */ __name(async (config2) => {
1677
+ console.log("packageCompileTsup-types");
1729
1678
  const compile2 = config2?.compile;
1730
1679
  const verbose = config2?.verbose ?? false;
1731
1680
  if (verbose) {
@@ -1740,16 +1689,12 @@ var packageCompileTsup = /* @__PURE__ */ __name(async (config2, types = "tsc") =
1740
1689
  const compileForNeutral = compile2?.neutral ?? {
1741
1690
  src: {}
1742
1691
  };
1743
- if (types === "tsc") {
1744
- if (verbose) {
1745
- console.log(`Calling packageCompileTscTypes [${types}`);
1746
- }
1747
- const errors = packageCompileTscTypes("src", {
1748
- verbose
1749
- });
1750
- if (errors) {
1751
- return errors;
1752
- }
1692
+ if (verbose) {
1693
+ console.log("Calling packageCompileTscTypes");
1694
+ }
1695
+ const errors = await packageCompileTypes(config2);
1696
+ if (errors > 0) {
1697
+ return errors;
1753
1698
  }
1754
1699
  return (await Promise.all(Object.entries(compileForNode).map(async ([folder, options]) => {
1755
1700
  const inEsBuildOptions = typeof compile2?.node?.esbuildOptions === "object" ? compile2?.node?.esbuildOptions : {};
@@ -1761,7 +1706,7 @@ var packageCompileTsup = /* @__PURE__ */ __name(async (config2, types = "tsc") =
1761
1706
  platform: "node",
1762
1707
  outDir: "dist/node"
1763
1708
  }
1764
- ]), types, verbose) : 0;
1709
+ ]), verbose) : 0;
1765
1710
  }))).reduce((prev, value) => prev + value, 0) || (await Promise.all(Object.entries(compileForBrowser).map(async ([folder, options]) => {
1766
1711
  const inEsBuildOptions = typeof compile2?.browser?.esbuildOptions === "object" ? compile2?.browser?.esbuildOptions : {};
1767
1712
  return folder ? await compileFolder(folder, compile2?.entryMode, tsupOptions([
@@ -1772,7 +1717,7 @@ var packageCompileTsup = /* @__PURE__ */ __name(async (config2, types = "tsc") =
1772
1717
  platform: "browser",
1773
1718
  outDir: "dist/browser"
1774
1719
  }
1775
- ]), types, verbose) : 0;
1720
+ ]), verbose) : 0;
1776
1721
  }))).reduce((prev, value) => prev + value, 0) || (await Promise.all(Object.entries(compileForNeutral).map(async ([folder, options]) => {
1777
1722
  const inEsBuildOptions = typeof compile2?.neutral?.esbuildOptions === "object" ? compile2?.neutral?.esbuildOptions : {};
1778
1723
  return folder ? await compileFolder(folder, compile2?.entryMode, tsupOptions([
@@ -1783,43 +1728,82 @@ var packageCompileTsup = /* @__PURE__ */ __name(async (config2, types = "tsc") =
1783
1728
  platform: "neutral",
1784
1729
  outDir: "dist/neutral"
1785
1730
  }
1786
- ]), types, verbose) : 0;
1731
+ ]), verbose) : 0;
1787
1732
  }))).reduce((prev, value) => prev + value, 0) || 0;
1788
1733
  }, "packageCompileTsup");
1789
1734
 
1790
1735
  // src/actions/package/compile/compile.ts
1791
- var packageCompile = /* @__PURE__ */ __name(async (inConfig = {}, types) => {
1736
+ var packageCompile = /* @__PURE__ */ __name(async (inConfig = {}) => {
1792
1737
  const pkg = process.env.INIT_CWD;
1793
- console.log(chalk25.green(`Compiling ${pkg}`));
1738
+ console.log(chalk24.green(`Compiling ${pkg}`));
1794
1739
  const config2 = await loadConfig(inConfig);
1795
1740
  const publint2 = config2.publint;
1796
- const mode = config2.compile?.mode ?? "tsup";
1797
- let result = 0;
1798
- switch (mode) {
1799
- case "tsc": {
1800
- result += await packageCompileTsc(void 0, config2);
1801
- break;
1802
- }
1803
- case "tsup": {
1804
- result += await packageCompileTsup(config2, types);
1805
- break;
1806
- }
1741
+ const tsupResults = await packageCompileTsup(config2);
1742
+ if (tsupResults > 0) {
1743
+ return tsupResults;
1807
1744
  }
1808
- return result + (publint2 ? await packagePublint(config2) : 0);
1745
+ return publint2 ? await packagePublint(config2) : 0;
1809
1746
  }, "packageCompile");
1810
1747
 
1811
- // src/actions/package/compile/compileTypes.ts
1812
- import chalk26 from "chalk";
1813
- var packageCompileTypes = /* @__PURE__ */ __name(async (inConfig = {}) => {
1814
- const pkg = process.env.INIT_CWD;
1815
- console.log(chalk26.green(`Compiling Types ${pkg}`));
1816
- const config2 = await loadConfig(inConfig);
1817
- return packageCompileTscTypes(void 0, config2);
1818
- }, "packageCompileTypes");
1748
+ // src/actions/package/compile/packageCompileTsc.ts
1749
+ import { cwd as cwd2 } from "node:process";
1750
+ import chalk25 from "chalk";
1751
+ import { createProgramFromConfig as createProgramFromConfig2 } from "tsc-prog";
1752
+ import { DiagnosticCategory as DiagnosticCategory2, formatDiagnosticsWithColorAndContext as formatDiagnosticsWithColorAndContext2, getLineAndCharacterOfPosition, getPreEmitDiagnostics as getPreEmitDiagnostics2 } from "typescript";
1753
+ var packageCompileTsc = /* @__PURE__ */ __name(async (noEmit, config2, compilerOptionsParam) => {
1754
+ const pkg = process.env.INIT_CWD ?? cwd2();
1755
+ const publint2 = config2?.publint ?? true;
1756
+ const verbose = config2?.verbose ?? false;
1757
+ const formatHost = {
1758
+ getCanonicalFileName: /* @__PURE__ */ __name((fileName) => fileName, "getCanonicalFileName"),
1759
+ getCurrentDirectory: /* @__PURE__ */ __name(() => pkg, "getCurrentDirectory"),
1760
+ getNewLine: /* @__PURE__ */ __name(() => "\n", "getNewLine")
1761
+ };
1762
+ if (verbose) {
1763
+ console.log(`Compiling with NoEmit TSC [${pkg}]`);
1764
+ }
1765
+ const compilerOptions = {
1766
+ ...getCompilerOptions({
1767
+ outDir: "dist",
1768
+ removeComments: true,
1769
+ rootDir: "src"
1770
+ }),
1771
+ ...compilerOptionsParam,
1772
+ ...noEmit === void 0 ? {} : {
1773
+ noEmit
1774
+ }
1775
+ };
1776
+ const program = createProgramFromConfig2({
1777
+ basePath: pkg ?? cwd2(),
1778
+ compilerOptions,
1779
+ exclude: [
1780
+ "dist",
1781
+ "docs",
1782
+ "**/*.spec.*",
1783
+ "**/*.stories.*",
1784
+ "src/**/spec/**/*"
1785
+ ],
1786
+ include: [
1787
+ "src"
1788
+ ]
1789
+ });
1790
+ const results = getPreEmitDiagnostics2(program);
1791
+ for (const diag of results) {
1792
+ const lineAndChar = diag.file ? getLineAndCharacterOfPosition(diag.file, diag.start ?? 0) : {
1793
+ character: 0,
1794
+ line: 0
1795
+ };
1796
+ console.log(chalk25.cyan(`${diag.file?.fileName}:${lineAndChar.line + 1}:${lineAndChar.character + 1}`));
1797
+ console.log(formatDiagnosticsWithColorAndContext2([
1798
+ diag
1799
+ ], formatHost));
1800
+ }
1801
+ return results.reduce((prev, diag) => prev + diag.category === DiagnosticCategory2.Error ? 1 : 0, 0) || (publint2 ? await packagePublint() : 0);
1802
+ }, "packageCompileTsc");
1819
1803
 
1820
1804
  // src/actions/package/copy-assets.ts
1821
1805
  import path5 from "node:path/posix";
1822
- import chalk27 from "chalk";
1806
+ import chalk26 from "chalk";
1823
1807
  import cpy2 from "cpy";
1824
1808
  var copyTargetAssets2 = /* @__PURE__ */ __name(async (target, name, location) => {
1825
1809
  try {
@@ -1838,7 +1822,7 @@ var copyTargetAssets2 = /* @__PURE__ */ __name(async (target, name, location) =>
1838
1822
  flat: false
1839
1823
  });
1840
1824
  if (values.length > 0) {
1841
- console.log(chalk27.green(`Copying Assets [${target.toUpperCase()}] - ${name} - ${location}`));
1825
+ console.log(chalk26.green(`Copying Assets [${target.toUpperCase()}] - ${name} - ${location}`));
1842
1826
  }
1843
1827
  for (const value of values) {
1844
1828
  console.log(`${value.split("/").pop()} => ./dist/${target}`);
@@ -1869,7 +1853,7 @@ var packageCopyAssets = /* @__PURE__ */ __name(async ({ target }) => {
1869
1853
  // src/actions/package/deps.ts
1870
1854
  import { existsSync as existsSync5, readFileSync as readFileSync5 } from "node:fs";
1871
1855
  import { cwd as cwd3 } from "node:process";
1872
- import chalk28 from "chalk";
1856
+ import chalk27 from "chalk";
1873
1857
  import depcheck from "depcheck";
1874
1858
  var special = depcheck.special;
1875
1859
  var defaultIgnorePatterns = [
@@ -1895,21 +1879,21 @@ var defaultIgnoreDevPatterns = [
1895
1879
  var reportUnused = /* @__PURE__ */ __name((name, unused) => {
1896
1880
  if (unused.length > 0) {
1897
1881
  const message = [
1898
- chalk28.yellow(`${unused.length} Unused ${name}`)
1882
+ chalk27.yellow(`${unused.length} Unused ${name}`)
1899
1883
  ];
1900
- for (const value of unused) message.push(chalk28.gray(` ${value}`));
1884
+ for (const value of unused) message.push(chalk27.gray(` ${value}`));
1901
1885
  console.log(message.join("\n"));
1902
1886
  }
1903
1887
  }, "reportUnused");
1904
1888
  var reportMissing = /* @__PURE__ */ __name((name, missing) => {
1905
1889
  if (Object.keys(missing).length > 0) {
1906
1890
  const message = [
1907
- chalk28.yellow(`${Object.entries(missing).length} Missing ${name}`)
1891
+ chalk27.yellow(`${Object.entries(missing).length} Missing ${name}`)
1908
1892
  ];
1909
1893
  for (const [key, value] of Object.entries(missing)) {
1910
- message.push(`${key}`, chalk28.gray(` ${value.at(0)}`));
1894
+ message.push(`${key}`, chalk27.gray(` ${value.at(0)}`));
1911
1895
  }
1912
- console.log(chalk28.yellow(message.join("\n")));
1896
+ console.log(chalk27.yellow(message.join("\n")));
1913
1897
  }
1914
1898
  }, "reportMissing");
1915
1899
  var analyzeDeps = /* @__PURE__ */ __name(async (pkg, ignoreMatches) => {
@@ -2014,10 +1998,10 @@ var packageDeps = /* @__PURE__ */ __name(async () => {
2014
1998
  reportUnused("dependencies", unusedDeps);
2015
1999
  reportUnused("devDependencies", unusedDevDeps);
2016
2000
  if (Object.entries(invalidDirs).length > 0) {
2017
- for (const [key, value] of Object.entries(invalidDirs)) console.warn(chalk28.gray(`Invalid Dir: ${key}: ${value}`));
2001
+ for (const [key, value] of Object.entries(invalidDirs)) console.warn(chalk27.gray(`Invalid Dir: ${key}: ${value}`));
2018
2002
  }
2019
2003
  if (Object.entries(invalidFiles).length > 0) {
2020
- for (const [key, value] of Object.entries(invalidFiles)) console.warn(chalk28.gray(`Invalid File: ${key}: ${value}`));
2004
+ for (const [key, value] of Object.entries(invalidFiles)) console.warn(chalk27.gray(`Invalid File: ${key}: ${value}`));
2021
2005
  }
2022
2006
  reportMissing("dependencies", missingDepsObject);
2023
2007
  reportMissing("devDependencies", missingDevDepsObject);
@@ -2028,7 +2012,7 @@ var packageDeps = /* @__PURE__ */ __name(async () => {
2028
2012
  // src/actions/package/gen-docs.ts
2029
2013
  import { existsSync as existsSync6 } from "node:fs";
2030
2014
  import path6 from "node:path";
2031
- import chalk29 from "chalk";
2015
+ import chalk28 from "chalk";
2032
2016
  import { Application, ArgumentsReader, TSConfigReader, TypeDocReader } from "typedoc";
2033
2017
  var ExitCodes = {
2034
2018
  CompileError: 3,
@@ -2130,7 +2114,7 @@ var runTypeDoc = /* @__PURE__ */ __name(async (app) => {
2130
2114
  return ExitCodes.OutputError;
2131
2115
  }
2132
2116
  }
2133
- console.log(chalk29.green(`${pkgName} - Ok`));
2117
+ console.log(chalk28.green(`${pkgName} - Ok`));
2134
2118
  return ExitCodes.Ok;
2135
2119
  }, "runTypeDoc");
2136
2120
 
@@ -2139,7 +2123,7 @@ import { readdirSync } from "node:fs";
2139
2123
  import path7 from "node:path";
2140
2124
  import { cwd as cwd4 } from "node:process";
2141
2125
  import { pathToFileURL } from "node:url";
2142
- import chalk30 from "chalk";
2126
+ import chalk29 from "chalk";
2143
2127
  import { ESLint as ESLint2 } from "eslint";
2144
2128
  import { findUp } from "find-up";
2145
2129
  import picomatch from "picomatch";
@@ -2156,10 +2140,10 @@ var dumpMessages = /* @__PURE__ */ __name((lintResults) => {
2156
2140
  ];
2157
2141
  for (const lintResult of lintResults) {
2158
2142
  if (lintResult.messages.length > 0) {
2159
- console.log(chalk30.gray(`
2143
+ console.log(chalk29.gray(`
2160
2144
  ${lintResult.filePath}`));
2161
2145
  for (const message of lintResult.messages) {
2162
- console.log(chalk30.gray(` ${message.line}:${message.column}`), chalk30[colors[message.severity]](` ${severity[message.severity]}`), chalk30.white(` ${message.message}`), chalk30.gray(` ${message.ruleId}`));
2146
+ console.log(chalk29.gray(` ${message.line}:${message.column}`), chalk29[colors[message.severity]](` ${severity[message.severity]}`), chalk29.white(` ${message.message}`), chalk29.gray(` ${message.ruleId}`));
2163
2147
  }
2164
2148
  }
2165
2149
  }
@@ -2213,7 +2197,7 @@ var packageLint = /* @__PURE__ */ __name(async (fix2 = false, verbose = false, c
2213
2197
  });
2214
2198
  const files = getFiles(cwd4(), ignoreFolders);
2215
2199
  if (verbose) {
2216
- console.log(chalk30.green(`Linting ${pkg} [files = ${files.length}]`));
2200
+ console.log(chalk29.green(`Linting ${pkg} [files = ${files.length}]`));
2217
2201
  }
2218
2202
  const lintResults = await engine.lintFiles(files);
2219
2203
  dumpMessages(lintResults);
@@ -2286,7 +2270,7 @@ var rebuild = /* @__PURE__ */ __name(({ target }) => {
2286
2270
  }, "rebuild");
2287
2271
 
2288
2272
  // src/actions/recompile.ts
2289
- import chalk31 from "chalk";
2273
+ import chalk30 from "chalk";
2290
2274
  var recompile = /* @__PURE__ */ __name(async ({ verbose, target, pkg, incremental }) => {
2291
2275
  return pkg ? await recompilePackage({
2292
2276
  pkg,
@@ -2341,7 +2325,7 @@ var recompileAll = /* @__PURE__ */ __name(async ({ jobs, verbose, target, increm
2341
2325
  `${jobs}`
2342
2326
  ] : [];
2343
2327
  if (jobs) {
2344
- console.log(chalk31.blue(`Jobs set to [${jobs}]`));
2328
+ console.log(chalk30.blue(`Jobs set to [${jobs}]`));
2345
2329
  }
2346
2330
  const result = await runStepsAsync(`Recompile${incremental ? "-Incremental" : ""} [All]`, [
2347
2331
  [
@@ -2371,7 +2355,7 @@ var recompileAll = /* @__PURE__ */ __name(async ({ jobs, verbose, target, increm
2371
2355
  ]
2372
2356
  ]
2373
2357
  ]);
2374
- console.log(`${chalk31.gray("Recompiled in")} [${chalk31.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk31.gray("seconds")}`);
2358
+ console.log(`${chalk30.gray("Recompiled in")} [${chalk30.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk30.gray("seconds")}`);
2375
2359
  return result;
2376
2360
  }, "recompileAll");
2377
2361
 
@@ -2405,9 +2389,9 @@ var reinstall = /* @__PURE__ */ __name(() => {
2405
2389
  }, "reinstall");
2406
2390
 
2407
2391
  // src/actions/relint.ts
2408
- import chalk32 from "chalk";
2392
+ import chalk31 from "chalk";
2409
2393
  var relintPackage = /* @__PURE__ */ __name(({ pkg }) => {
2410
- console.log(chalk32.gray(`${"Relint"} [All-Packages]`));
2394
+ console.log(chalk31.gray(`${"Relint"} [All-Packages]`));
2411
2395
  const start = Date.now();
2412
2396
  const result = runSteps("Relint [All-Packages]", [
2413
2397
  [
@@ -2420,7 +2404,7 @@ var relintPackage = /* @__PURE__ */ __name(({ pkg }) => {
2420
2404
  ]
2421
2405
  ]
2422
2406
  ]);
2423
- console.log(chalk32.gray(`${"Relinted in"} [${chalk32.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk32.gray("seconds")}`));
2407
+ console.log(chalk31.gray(`${"Relinted in"} [${chalk31.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk31.gray("seconds")}`));
2424
2408
  return result;
2425
2409
  }, "relintPackage");
2426
2410
  var relint = /* @__PURE__ */ __name(({ pkg, verbose, incremental } = {}) => {
@@ -2432,7 +2416,7 @@ var relint = /* @__PURE__ */ __name(({ pkg, verbose, incremental } = {}) => {
2432
2416
  });
2433
2417
  }, "relint");
2434
2418
  var relintAllPackages = /* @__PURE__ */ __name(({ verbose = true, incremental } = {}) => {
2435
- console.log(chalk32.gray(`${"Relint"} [All-Packages]`));
2419
+ console.log(chalk31.gray(`${"Relint"} [All-Packages]`));
2436
2420
  const start = Date.now();
2437
2421
  const verboseOptions = verbose ? [
2438
2422
  "--verbose"
@@ -2459,7 +2443,7 @@ var relintAllPackages = /* @__PURE__ */ __name(({ verbose = true, incremental }
2459
2443
  ]
2460
2444
  ]
2461
2445
  ]);
2462
- console.log(chalk32.gray(`Relinted in [${chalk32.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk32.gray("seconds")}`));
2446
+ console.log(chalk31.gray(`Relinted in [${chalk31.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk31.gray("seconds")}`));
2463
2447
  return result;
2464
2448
  }, "relintAllPackages");
2465
2449
 
@@ -2499,7 +2483,7 @@ var sonar = /* @__PURE__ */ __name(() => {
2499
2483
  }, "sonar");
2500
2484
 
2501
2485
  // src/actions/statics.ts
2502
- import chalk33 from "chalk";
2486
+ import chalk32 from "chalk";
2503
2487
  var DefaultDependencies = [
2504
2488
  "axios",
2505
2489
  "@xylabs/pixel",
@@ -2510,7 +2494,7 @@ var DefaultDependencies = [
2510
2494
  "@mui/system"
2511
2495
  ];
2512
2496
  var statics = /* @__PURE__ */ __name(() => {
2513
- console.log(chalk33.green("Check Required Static Dependencies"));
2497
+ console.log(chalk32.green("Check Required Static Dependencies"));
2514
2498
  const statics2 = parsedPackageJSON()?.xy?.deps?.statics;
2515
2499
  return detectDuplicateDependencies(statics2, DefaultDependencies);
2516
2500
  }, "statics");
@@ -2628,7 +2612,7 @@ var loadPackageConfig = /* @__PURE__ */ __name(async () => {
2628
2612
  }, "loadPackageConfig");
2629
2613
 
2630
2614
  // src/xy/xy.ts
2631
- import chalk35 from "chalk";
2615
+ import chalk34 from "chalk";
2632
2616
 
2633
2617
  // src/xy/xyBuildCommands.ts
2634
2618
  var xyBuildCommands = /* @__PURE__ */ __name((args) => {
@@ -2660,7 +2644,6 @@ var xyBuildCommands = /* @__PURE__ */ __name((args) => {
2660
2644
  jobs: argv.jobs,
2661
2645
  pkg: argv.package,
2662
2646
  target: argv.target,
2663
- types: argv.types,
2664
2647
  verbose: !!argv.verbose
2665
2648
  });
2666
2649
  }).command("compile-types [package]", "Compile types with Typescript", (yargs2) => {
@@ -2879,7 +2862,7 @@ var xyInstallCommands = /* @__PURE__ */ __name((args) => {
2879
2862
  }, "xyInstallCommands");
2880
2863
 
2881
2864
  // src/xy/xyLintCommands.ts
2882
- import chalk34 from "chalk";
2865
+ import chalk33 from "chalk";
2883
2866
  var xyLintCommands = /* @__PURE__ */ __name((args) => {
2884
2867
  return args.command("cycle [package]", "Cycle - Check for dependency cycles", (yargs2) => {
2885
2868
  return packagePositionalParam(yargs2);
@@ -2887,7 +2870,7 @@ var xyLintCommands = /* @__PURE__ */ __name((args) => {
2887
2870
  const start = Date.now();
2888
2871
  if (argv.verbose) console.log("Cycle");
2889
2872
  process.exitCode = await cycle();
2890
- console.log(chalk34.blue(`Finished in ${Date.now() - start}ms`));
2873
+ console.log(chalk33.blue(`Finished in ${Date.now() - start}ms`));
2891
2874
  }).command("lint [package]", "Lint - Run Eslint", (yargs2) => {
2892
2875
  return packagePositionalParam(yargs2);
2893
2876
  }, (argv) => {
@@ -2898,21 +2881,21 @@ var xyLintCommands = /* @__PURE__ */ __name((args) => {
2898
2881
  }) : lint({
2899
2882
  pkg: argv.package
2900
2883
  });
2901
- console.log(chalk34.blue(`Finished in ${Date.now() - start}ms`));
2884
+ console.log(chalk33.blue(`Finished in ${Date.now() - start}ms`));
2902
2885
  }).command("fix [package]", "Fix - Run Eslint w/fix", (yargs2) => {
2903
2886
  return packagePositionalParam(yargs2);
2904
2887
  }, (argv) => {
2905
2888
  const start = Date.now();
2906
2889
  if (argv.verbose) console.log("Fix");
2907
2890
  process.exitCode = fix();
2908
- console.log(chalk34.blue(`Finished in ${Date.now() - start}ms`));
2891
+ console.log(chalk33.blue(`Finished in ${Date.now() - start}ms`));
2909
2892
  }).command("relint [package]", "Relint - Clean & Lint", (yargs2) => {
2910
2893
  return packagePositionalParam(yargs2);
2911
2894
  }, (argv) => {
2912
2895
  if (argv.verbose) console.log("Relinting");
2913
2896
  const start = Date.now();
2914
2897
  process.exitCode = relint();
2915
- console.log(chalk34.blue(`Finished in ${Date.now() - start}ms`));
2898
+ console.log(chalk33.blue(`Finished in ${Date.now() - start}ms`));
2916
2899
  }).command("publint [package]", "Publint - Run Publint", (yargs2) => {
2917
2900
  return packagePositionalParam(yargs2);
2918
2901
  }, async (argv) => {
@@ -2922,14 +2905,14 @@ var xyLintCommands = /* @__PURE__ */ __name((args) => {
2922
2905
  pkg: argv.package,
2923
2906
  verbose: !!argv.verbose
2924
2907
  });
2925
- console.log(chalk34.blue(`Finished in ${Date.now() - start}ms`));
2908
+ console.log(chalk33.blue(`Finished in ${Date.now() - start}ms`));
2926
2909
  }).command("sonar", "Sonar - Run Sonar Check", (yargs2) => {
2927
2910
  return packagePositionalParam(yargs2);
2928
2911
  }, (argv) => {
2929
2912
  const start = Date.now();
2930
2913
  if (argv.verbose) console.log("Sonar Check");
2931
2914
  process.exitCode = sonar();
2932
- console.log(chalk34.blue(`Finished in ${Date.now() - start}ms`));
2915
+ console.log(chalk33.blue(`Finished in ${Date.now() - start}ms`));
2933
2916
  });
2934
2917
  }, "xyLintCommands");
2935
2918
 
@@ -2991,8 +2974,8 @@ var xyParseOptions = /* @__PURE__ */ __name(() => {
2991
2974
  var xy = /* @__PURE__ */ __name(async () => {
2992
2975
  const options = xyParseOptions();
2993
2976
  return await xyBuildCommands(xyCommonCommands(xyInstallCommands(xyDeployCommands(xyLintCommands(options))))).demandCommand(1).command("*", "", () => {
2994
- console.error(chalk35.yellow(`Command not found [${chalk35.magenta(process.argv[2])}]`));
2995
- console.log(chalk35.gray("Try 'yarn xy --help' for list of commands"));
2977
+ console.error(chalk34.yellow(`Command not found [${chalk34.magenta(process.argv[2])}]`));
2978
+ console.log(chalk34.gray("Try 'yarn xy --help' for list of commands"));
2996
2979
  }).version().help().argv;
2997
2980
  }, "xy");
2998
2981
  export {