@xylabs/ts-scripts-yarn3 3.15.16 → 4.0.0-rc.11

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 (360) hide show
  1. package/dist/actions/compile.mjs +3 -2
  2. package/dist/actions/compile.mjs.map +1 -1
  3. package/dist/actions/cycle.mjs +32 -110
  4. package/dist/actions/cycle.mjs.map +1 -1
  5. package/dist/actions/index.mjs +131 -307
  6. package/dist/actions/index.mjs.map +1 -1
  7. package/dist/actions/package/compile/compile.mjs +57 -259
  8. package/dist/actions/package/compile/compile.mjs.map +1 -1
  9. package/dist/actions/package/compile/index.mjs +57 -259
  10. package/dist/actions/package/compile/index.mjs.map +1 -1
  11. package/dist/actions/package/compile/packageCompileTsc.mjs +1 -1
  12. package/dist/actions/package/compile/packageCompileTsc.mjs.map +1 -1
  13. package/dist/actions/package/compile/packageCompileTscTypes.mjs +2 -36
  14. package/dist/actions/package/compile/packageCompileTscTypes.mjs.map +1 -1
  15. package/dist/actions/package/compile/packageCompileTsup.mjs +54 -339
  16. package/dist/actions/package/compile/packageCompileTsup.mjs.map +1 -1
  17. package/dist/actions/package/index.mjs +72 -277
  18. package/dist/actions/package/index.mjs.map +1 -1
  19. package/dist/actions/package/recompile.mjs +58 -263
  20. package/dist/actions/package/recompile.mjs.map +1 -1
  21. package/dist/actions/recompile.mjs +14 -1
  22. package/dist/actions/recompile.mjs.map +1 -1
  23. package/dist/bin/package/compile-only.mjs +59 -261
  24. package/dist/bin/package/compile-only.mjs.map +1 -1
  25. package/dist/bin/package/compile-tsup.mjs +56 -341
  26. package/dist/bin/package/compile-tsup.mjs.map +1 -1
  27. package/dist/bin/package/compile.mjs +59 -261
  28. package/dist/bin/package/compile.mjs.map +1 -1
  29. package/dist/bin/package/recompile.mjs +60 -265
  30. package/dist/bin/package/recompile.mjs.map +1 -1
  31. package/dist/bin/xy-ts.mjs +56 -27
  32. package/dist/bin/xy-ts.mjs.map +1 -1
  33. package/dist/bin/xy.mjs +56 -27
  34. package/dist/bin/xy.mjs.map +1 -1
  35. package/dist/index.d.ts +2 -2
  36. package/dist/index.mjs +143 -319
  37. package/dist/index.mjs.map +1 -1
  38. package/dist/xy/index.mjs +56 -27
  39. package/dist/xy/index.mjs.map +1 -1
  40. package/dist/xy/xy.mjs +56 -27
  41. package/dist/xy/xy.mjs.map +1 -1
  42. package/dist/xy/xyBuildCommands.mjs +17 -3
  43. package/dist/xy/xyBuildCommands.mjs.map +1 -1
  44. package/dist/xy/xyLintCommands.mjs +37 -22
  45. package/dist/xy/xyLintCommands.mjs.map +1 -1
  46. package/package.json +11 -20
  47. package/src/actions/compile.ts +2 -2
  48. package/src/actions/cycle.ts +21 -4
  49. package/src/actions/package/compile/XyConfig.ts +2 -2
  50. package/src/actions/package/compile/packageCompileTsc.ts +1 -1
  51. package/src/actions/package/compile/packageCompileTscTypes.ts +3 -8
  52. package/src/actions/package/compile/packageCompileTsup.ts +54 -130
  53. package/src/actions/package/recompile.ts +1 -1
  54. package/src/actions/recompile.ts +2 -1
  55. package/src/types.d.ts +23 -0
  56. package/src/xy/xyLintCommands.ts +2 -2
  57. package/tsup.config.ts +1 -1
  58. package/dist/actions/build.cjs +0 -208
  59. package/dist/actions/build.cjs.map +0 -1
  60. package/dist/actions/clean-docs.cjs +0 -74
  61. package/dist/actions/clean-docs.cjs.map +0 -1
  62. package/dist/actions/clean-eslint.cjs +0 -53
  63. package/dist/actions/clean-eslint.cjs.map +0 -1
  64. package/dist/actions/clean-jest.cjs +0 -147
  65. package/dist/actions/clean-jest.cjs.map +0 -1
  66. package/dist/actions/clean.cjs +0 -192
  67. package/dist/actions/clean.cjs.map +0 -1
  68. package/dist/actions/compile.cjs +0 -217
  69. package/dist/actions/compile.cjs.map +0 -1
  70. package/dist/actions/copy-assets.cjs +0 -121
  71. package/dist/actions/copy-assets.cjs.map +0 -1
  72. package/dist/actions/cycle.cjs +0 -156
  73. package/dist/actions/cycle.cjs.map +0 -1
  74. package/dist/actions/dead.cjs +0 -148
  75. package/dist/actions/dead.cjs.map +0 -1
  76. package/dist/actions/deploy-major.cjs +0 -160
  77. package/dist/actions/deploy-major.cjs.map +0 -1
  78. package/dist/actions/deploy-minor.cjs +0 -160
  79. package/dist/actions/deploy-minor.cjs.map +0 -1
  80. package/dist/actions/deploy-next.cjs +0 -160
  81. package/dist/actions/deploy-next.cjs.map +0 -1
  82. package/dist/actions/deploy.cjs +0 -160
  83. package/dist/actions/deploy.cjs.map +0 -1
  84. package/dist/actions/deps.cjs +0 -205
  85. package/dist/actions/deps.cjs.map +0 -1
  86. package/dist/actions/dupdeps.cjs +0 -226
  87. package/dist/actions/dupdeps.cjs.map +0 -1
  88. package/dist/actions/fix.cjs +0 -149
  89. package/dist/actions/fix.cjs.map +0 -1
  90. package/dist/actions/gen-docs.cjs +0 -186
  91. package/dist/actions/gen-docs.cjs.map +0 -1
  92. package/dist/actions/gitignore-gen.cjs +0 -138
  93. package/dist/actions/gitignore-gen.cjs.map +0 -1
  94. package/dist/actions/gitlint-fix.cjs +0 -69
  95. package/dist/actions/gitlint-fix.cjs.map +0 -1
  96. package/dist/actions/gitlint.cjs +0 -84
  97. package/dist/actions/gitlint.cjs.map +0 -1
  98. package/dist/actions/index.cjs +0 -2600
  99. package/dist/actions/index.cjs.map +0 -1
  100. package/dist/actions/license.cjs +0 -133
  101. package/dist/actions/license.cjs.map +0 -1
  102. package/dist/actions/lint-clean.cjs +0 -227
  103. package/dist/actions/lint-clean.cjs.map +0 -1
  104. package/dist/actions/lint-profile.cjs +0 -153
  105. package/dist/actions/lint-profile.cjs.map +0 -1
  106. package/dist/actions/lint.cjs +0 -217
  107. package/dist/actions/lint.cjs.map +0 -1
  108. package/dist/actions/npmignore-gen.cjs +0 -138
  109. package/dist/actions/npmignore-gen.cjs.map +0 -1
  110. package/dist/actions/package/clean-outputs.cjs +0 -56
  111. package/dist/actions/package/clean-outputs.cjs.map +0 -1
  112. package/dist/actions/package/clean-typescript.cjs +0 -56
  113. package/dist/actions/package/clean-typescript.cjs.map +0 -1
  114. package/dist/actions/package/clean.cjs +0 -83
  115. package/dist/actions/package/clean.cjs.map +0 -1
  116. package/dist/actions/package/compile/XyConfig.cjs +0 -19
  117. package/dist/actions/package/compile/XyConfig.cjs.map +0 -1
  118. package/dist/actions/package/compile/buildEntries.cjs +0 -68
  119. package/dist/actions/package/compile/buildEntries.cjs.map +0 -1
  120. package/dist/actions/package/compile/compile.cjs +0 -565
  121. package/dist/actions/package/compile/compile.cjs.map +0 -1
  122. package/dist/actions/package/compile/copyTypeFiles.cjs +0 -60
  123. package/dist/actions/package/compile/copyTypeFiles.cjs.map +0 -1
  124. package/dist/actions/package/compile/getCompilerOptions.cjs +0 -67
  125. package/dist/actions/package/compile/getCompilerOptions.cjs.map +0 -1
  126. package/dist/actions/package/compile/index.cjs +0 -571
  127. package/dist/actions/package/compile/index.cjs.map +0 -1
  128. package/dist/actions/package/compile/inputs.cjs +0 -79
  129. package/dist/actions/package/compile/inputs.cjs.map +0 -1
  130. package/dist/actions/package/compile/packageCompileTsc.cjs +0 -164
  131. package/dist/actions/package/compile/packageCompileTsc.cjs.map +0 -1
  132. package/dist/actions/package/compile/packageCompileTscTypes.cjs +0 -199
  133. package/dist/actions/package/compile/packageCompileTscTypes.cjs.map +0 -1
  134. package/dist/actions/package/compile/packageCompileTsup.cjs +0 -521
  135. package/dist/actions/package/compile/packageCompileTsup.cjs.map +0 -1
  136. package/dist/actions/package/copy-assets.cjs +0 -88
  137. package/dist/actions/package/copy-assets.cjs.map +0 -1
  138. package/dist/actions/package/deps.cjs +0 -214
  139. package/dist/actions/package/deps.cjs.map +0 -1
  140. package/dist/actions/package/gen-docs.cjs +0 -148
  141. package/dist/actions/package/gen-docs.cjs.map +0 -1
  142. package/dist/actions/package/index.cjs +0 -968
  143. package/dist/actions/package/index.cjs.map +0 -1
  144. package/dist/actions/package/publint.cjs +0 -80
  145. package/dist/actions/package/publint.cjs.map +0 -1
  146. package/dist/actions/package/recompile.cjs +0 -617
  147. package/dist/actions/package/recompile.cjs.map +0 -1
  148. package/dist/actions/publint.cjs +0 -237
  149. package/dist/actions/publint.cjs.map +0 -1
  150. package/dist/actions/rebuild.cjs +0 -148
  151. package/dist/actions/rebuild.cjs.map +0 -1
  152. package/dist/actions/recompile.cjs +0 -232
  153. package/dist/actions/recompile.cjs.map +0 -1
  154. package/dist/actions/reinstall.cjs +0 -183
  155. package/dist/actions/reinstall.cjs.map +0 -1
  156. package/dist/actions/relint.cjs +0 -185
  157. package/dist/actions/relint.cjs.map +0 -1
  158. package/dist/actions/retest.cjs +0 -154
  159. package/dist/actions/retest.cjs.map +0 -1
  160. package/dist/actions/sonar.cjs +0 -149
  161. package/dist/actions/sonar.cjs.map +0 -1
  162. package/dist/actions/statics.cjs +0 -234
  163. package/dist/actions/statics.cjs.map +0 -1
  164. package/dist/actions/test.cjs +0 -147
  165. package/dist/actions/test.cjs.map +0 -1
  166. package/dist/actions/up.cjs +0 -144
  167. package/dist/actions/up.cjs.map +0 -1
  168. package/dist/actions/updo.cjs +0 -152
  169. package/dist/actions/updo.cjs.map +0 -1
  170. package/dist/actions/upplug.cjs +0 -172
  171. package/dist/actions/upplug.cjs.map +0 -1
  172. package/dist/actions/upyarn.cjs +0 -148
  173. package/dist/actions/upyarn.cjs.map +0 -1
  174. package/dist/actions/yarn3only.cjs +0 -106
  175. package/dist/actions/yarn3only.cjs.map +0 -1
  176. package/dist/bin/build.cjs +0 -39
  177. package/dist/bin/build.cjs.map +0 -1
  178. package/dist/bin/clean.cjs +0 -39
  179. package/dist/bin/clean.cjs.map +0 -1
  180. package/dist/bin/compile-only.cjs +0 -39
  181. package/dist/bin/compile-only.cjs.map +0 -1
  182. package/dist/bin/compile.cjs +0 -39
  183. package/dist/bin/compile.cjs.map +0 -1
  184. package/dist/bin/cycle.cjs +0 -39
  185. package/dist/bin/cycle.cjs.map +0 -1
  186. package/dist/bin/dead.cjs +0 -39
  187. package/dist/bin/dead.cjs.map +0 -1
  188. package/dist/bin/deploy-major.cjs +0 -39
  189. package/dist/bin/deploy-major.cjs.map +0 -1
  190. package/dist/bin/deploy-minor.cjs +0 -39
  191. package/dist/bin/deploy-minor.cjs.map +0 -1
  192. package/dist/bin/deploy-next.cjs +0 -39
  193. package/dist/bin/deploy-next.cjs.map +0 -1
  194. package/dist/bin/deploy.cjs +0 -39
  195. package/dist/bin/deploy.cjs.map +0 -1
  196. package/dist/bin/deps.cjs +0 -39
  197. package/dist/bin/deps.cjs.map +0 -1
  198. package/dist/bin/fix.cjs +0 -39
  199. package/dist/bin/fix.cjs.map +0 -1
  200. package/dist/bin/gen-docs.cjs +0 -39
  201. package/dist/bin/gen-docs.cjs.map +0 -1
  202. package/dist/bin/gitlint-fix.cjs +0 -39
  203. package/dist/bin/gitlint-fix.cjs.map +0 -1
  204. package/dist/bin/gitlint.cjs +0 -39
  205. package/dist/bin/gitlint.cjs.map +0 -1
  206. package/dist/bin/license.cjs +0 -39
  207. package/dist/bin/license.cjs.map +0 -1
  208. package/dist/bin/lint-clean.cjs +0 -39
  209. package/dist/bin/lint-clean.cjs.map +0 -1
  210. package/dist/bin/lint-fast.cjs +0 -39
  211. package/dist/bin/lint-fast.cjs.map +0 -1
  212. package/dist/bin/lint-profile.cjs +0 -39
  213. package/dist/bin/lint-profile.cjs.map +0 -1
  214. package/dist/bin/lint.cjs +0 -39
  215. package/dist/bin/lint.cjs.map +0 -1
  216. package/dist/bin/package/clean-outputs.cjs +0 -51
  217. package/dist/bin/package/clean-outputs.cjs.map +0 -1
  218. package/dist/bin/package/clean-typescript.cjs +0 -51
  219. package/dist/bin/package/clean-typescript.cjs.map +0 -1
  220. package/dist/bin/package/clean.cjs +0 -76
  221. package/dist/bin/package/clean.cjs.map +0 -1
  222. package/dist/bin/package/compile-only.cjs +0 -564
  223. package/dist/bin/package/compile-only.cjs.map +0 -1
  224. package/dist/bin/package/compile-tsup.cjs +0 -519
  225. package/dist/bin/package/compile-tsup.cjs.map +0 -1
  226. package/dist/bin/package/compile.cjs +0 -567
  227. package/dist/bin/package/compile.cjs.map +0 -1
  228. package/dist/bin/package/copy-assets-cjs.cjs +0 -86
  229. package/dist/bin/package/copy-assets-cjs.cjs.map +0 -1
  230. package/dist/bin/package/copy-assets-esm.cjs +0 -86
  231. package/dist/bin/package/copy-assets-esm.cjs.map +0 -1
  232. package/dist/bin/package/deps.cjs +0 -208
  233. package/dist/bin/package/deps.cjs.map +0 -1
  234. package/dist/bin/package/gen-docs.cjs +0 -143
  235. package/dist/bin/package/gen-docs.cjs.map +0 -1
  236. package/dist/bin/package/publint.cjs +0 -77
  237. package/dist/bin/package/publint.cjs.map +0 -1
  238. package/dist/bin/package/recompile.cjs +0 -611
  239. package/dist/bin/package/recompile.cjs.map +0 -1
  240. package/dist/bin/publint.cjs +0 -39
  241. package/dist/bin/publint.cjs.map +0 -1
  242. package/dist/bin/rebuild.cjs +0 -39
  243. package/dist/bin/rebuild.cjs.map +0 -1
  244. package/dist/bin/recompile.cjs +0 -39
  245. package/dist/bin/recompile.cjs.map +0 -1
  246. package/dist/bin/reinstall.cjs +0 -39
  247. package/dist/bin/reinstall.cjs.map +0 -1
  248. package/dist/bin/relint.cjs +0 -39
  249. package/dist/bin/relint.cjs.map +0 -1
  250. package/dist/bin/sonar.cjs +0 -39
  251. package/dist/bin/sonar.cjs.map +0 -1
  252. package/dist/bin/test.cjs +0 -39
  253. package/dist/bin/test.cjs.map +0 -1
  254. package/dist/bin/up.cjs +0 -39
  255. package/dist/bin/up.cjs.map +0 -1
  256. package/dist/bin/updo.cjs +0 -39
  257. package/dist/bin/updo.cjs.map +0 -1
  258. package/dist/bin/upplug.cjs +0 -39
  259. package/dist/bin/upplug.cjs.map +0 -1
  260. package/dist/bin/upyarn.cjs +0 -39
  261. package/dist/bin/upyarn.cjs.map +0 -1
  262. package/dist/bin/xy-ts.cjs +0 -1890
  263. package/dist/bin/xy-ts.cjs.map +0 -1
  264. package/dist/bin/xy.cjs +0 -1890
  265. package/dist/bin/xy.cjs.map +0 -1
  266. package/dist/bin/yarn3only.cjs +0 -39
  267. package/dist/bin/yarn3only.cjs.map +0 -1
  268. package/dist/index.cjs +0 -3129
  269. package/dist/index.cjs.map +0 -1
  270. package/dist/index.d.cts +0 -359
  271. package/dist/lib/checkResult.cjs +0 -52
  272. package/dist/lib/checkResult.cjs.map +0 -1
  273. package/dist/lib/createBuildConfig.cjs +0 -93
  274. package/dist/lib/createBuildConfig.cjs.map +0 -1
  275. package/dist/lib/defaultBuildConfig.cjs +0 -52
  276. package/dist/lib/defaultBuildConfig.cjs.map +0 -1
  277. package/dist/lib/dependencies/DuplicateDetector.cjs +0 -124
  278. package/dist/lib/dependencies/DuplicateDetector.cjs.map +0 -1
  279. package/dist/lib/dependencies/detectDuplicateDependencies.cjs +0 -207
  280. package/dist/lib/dependencies/detectDuplicateDependencies.cjs.map +0 -1
  281. package/dist/lib/dependencies/index.cjs +0 -211
  282. package/dist/lib/dependencies/index.cjs.map +0 -1
  283. package/dist/lib/file/ReadFileSyncOptions.cjs +0 -33
  284. package/dist/lib/file/ReadFileSyncOptions.cjs.map +0 -1
  285. package/dist/lib/file/constants.cjs +0 -34
  286. package/dist/lib/file/constants.cjs.map +0 -1
  287. package/dist/lib/file/fileLines.cjs +0 -58
  288. package/dist/lib/file/fileLines.cjs.map +0 -1
  289. package/dist/lib/file/index.cjs +0 -74
  290. package/dist/lib/file/index.cjs.map +0 -1
  291. package/dist/lib/file/tryReadFileSync.cjs +0 -42
  292. package/dist/lib/file/tryReadFileSync.cjs.map +0 -1
  293. package/dist/lib/generateIgnoreFiles.cjs +0 -132
  294. package/dist/lib/generateIgnoreFiles.cjs.map +0 -1
  295. package/dist/lib/index.cjs +0 -614
  296. package/dist/lib/index.cjs.map +0 -1
  297. package/dist/lib/jsonFormatters.cjs +0 -37
  298. package/dist/lib/jsonFormatters.cjs.map +0 -1
  299. package/dist/lib/loadConfig.cjs +0 -59
  300. package/dist/lib/loadConfig.cjs.map +0 -1
  301. package/dist/lib/parsedPackageJSON.cjs +0 -37
  302. package/dist/lib/parsedPackageJSON.cjs.map +0 -1
  303. package/dist/lib/processEx.cjs +0 -72
  304. package/dist/lib/processEx.cjs.map +0 -1
  305. package/dist/lib/runSteps.cjs +0 -134
  306. package/dist/lib/runSteps.cjs.map +0 -1
  307. package/dist/lib/runStepsAsync.cjs +0 -147
  308. package/dist/lib/runStepsAsync.cjs.map +0 -1
  309. package/dist/lib/runXy.cjs +0 -150
  310. package/dist/lib/runXy.cjs.map +0 -1
  311. package/dist/lib/runXyWithWarning.cjs +0 -49
  312. package/dist/lib/runXyWithWarning.cjs.map +0 -1
  313. package/dist/lib/safeExit.cjs +0 -100
  314. package/dist/lib/safeExit.cjs.map +0 -1
  315. package/dist/lib/string/empty.cjs +0 -35
  316. package/dist/lib/string/empty.cjs.map +0 -1
  317. package/dist/lib/string/index.cjs +0 -45
  318. package/dist/lib/string/index.cjs.map +0 -1
  319. package/dist/lib/string/union.cjs +0 -35
  320. package/dist/lib/string/union.cjs.map +0 -1
  321. package/dist/lib/withErrnoException.cjs +0 -41
  322. package/dist/lib/withErrnoException.cjs.map +0 -1
  323. package/dist/lib/withError.cjs +0 -34
  324. package/dist/lib/withError.cjs.map +0 -1
  325. package/dist/lib/yarn/index.cjs +0 -93
  326. package/dist/lib/yarn/index.cjs.map +0 -1
  327. package/dist/lib/yarn/isYarnVersionOrGreater.cjs +0 -52
  328. package/dist/lib/yarn/isYarnVersionOrGreater.cjs.map +0 -1
  329. package/dist/lib/yarn/workspace/Workspace.cjs +0 -19
  330. package/dist/lib/yarn/workspace/Workspace.cjs.map +0 -1
  331. package/dist/lib/yarn/workspace/index.cjs +0 -60
  332. package/dist/lib/yarn/workspace/index.cjs.map +0 -1
  333. package/dist/lib/yarn/workspace/yarnWorkspace.cjs +0 -58
  334. package/dist/lib/yarn/workspace/yarnWorkspace.cjs.map +0 -1
  335. package/dist/lib/yarn/workspace/yarnWorkspaces.cjs +0 -49
  336. package/dist/lib/yarn/workspace/yarnWorkspaces.cjs.map +0 -1
  337. package/dist/lib/yarn/yarnInitCwd.cjs +0 -35
  338. package/dist/lib/yarn/yarnInitCwd.cjs.map +0 -1
  339. package/dist/loadPackageConfig.cjs +0 -39
  340. package/dist/loadPackageConfig.cjs.map +0 -1
  341. package/dist/types.d.cjs +0 -2
  342. package/dist/types.d.cjs.map +0 -1
  343. package/dist/xy/index.cjs +0 -1909
  344. package/dist/xy/index.cjs.map +0 -1
  345. package/dist/xy/param.cjs +0 -36
  346. package/dist/xy/param.cjs.map +0 -1
  347. package/dist/xy/xy.cjs +0 -1895
  348. package/dist/xy/xy.cjs.map +0 -1
  349. package/dist/xy/xyBuildCommands.cjs +0 -595
  350. package/dist/xy/xyBuildCommands.cjs.map +0 -1
  351. package/dist/xy/xyCommonCommands.cjs +0 -723
  352. package/dist/xy/xyCommonCommands.cjs.map +0 -1
  353. package/dist/xy/xyDeployCommands.cjs +0 -263
  354. package/dist/xy/xyDeployCommands.cjs.map +0 -1
  355. package/dist/xy/xyInstallCommands.cjs +0 -508
  356. package/dist/xy/xyInstallCommands.cjs.map +0 -1
  357. package/dist/xy/xyLintCommands.cjs +0 -466
  358. package/dist/xy/xyLintCommands.cjs.map +0 -1
  359. package/dist/xy/xyParseOptions.cjs +0 -84
  360. package/dist/xy/xyParseOptions.cjs.map +0 -1
@@ -539,7 +539,7 @@ var cleanDocs = /* @__PURE__ */ __name(() => {
539
539
 
540
540
  // src/actions/compile.ts
541
541
  import chalk10 from "chalk";
542
- var compile = /* @__PURE__ */ __name(({ verbose, target, pkg, incremental, publint: publint2 }) => {
542
+ var compile = /* @__PURE__ */ __name(({ verbose, target, pkg, incremental, publint: publint2, jobs }) => {
543
543
  return pkg ? compilePackage({
544
544
  pkg,
545
545
  publint: publint2,
@@ -549,7 +549,8 @@ var compile = /* @__PURE__ */ __name(({ verbose, target, pkg, incremental, publi
549
549
  incremental,
550
550
  publint: publint2,
551
551
  target,
552
- verbose
552
+ verbose,
553
+ jobs
553
554
  });
554
555
  }, "compile");
555
556
  var compilePackage = /* @__PURE__ */ __name(({ target, pkg }) => {
@@ -677,25 +678,40 @@ var copyAssets = /* @__PURE__ */ __name(async ({ target, pkg }) => {
677
678
  }, "copyAssets");
678
679
 
679
680
  // src/actions/cycle.ts
680
- var cycle = /* @__PURE__ */ __name(() => {
681
- const rules = [
682
- `"'import/no-cycle': [1, { maxDepth: 6 }]"`,
683
- `"'import/no-internal-modules': ['off']"`
684
- ];
685
- return runSteps("Cycle", [
686
- [
687
- "yarn",
688
- [
689
- "eslint",
690
- ...rules.flatMap((rule) => [
691
- "--rule",
692
- rule
693
- ]),
694
- "--cache",
695
- "."
696
- ]
697
- ]
681
+ import { cwd } from "node:process";
682
+ import { ESLint } from "eslint";
683
+ import importPlugin from "eslint-plugin-import";
684
+ var cycle = /* @__PURE__ */ __name(async () => {
685
+ const eslint = new ESLint({
686
+ fix: false,
687
+ overrideConfig: {
688
+ plugins: {
689
+ import: importPlugin
690
+ },
691
+ rules: {
692
+ "import/no-cycle": [
693
+ "error",
694
+ {
695
+ maxDepth: 10
696
+ }
697
+ ]
698
+ }
699
+ }
700
+ });
701
+ const configFile = await eslint.findConfigFile();
702
+ console.log("Config file:", configFile);
703
+ const results = await eslint.lintFiles([
704
+ "src/**/*.ts*",
705
+ "packages/**/src/**/*.ts*"
698
706
  ]);
707
+ const formatter = await eslint.loadFormatter("stylish");
708
+ const resultText = formatter.format(results, {
709
+ cwd: cwd(),
710
+ rulesMeta: {}
711
+ });
712
+ console.log(resultText);
713
+ console.log("Lint Errors:", results.length);
714
+ return results.length;
699
715
  }, "cycle");
700
716
 
701
717
  // src/actions/dead.ts
@@ -1108,7 +1124,7 @@ var license = /* @__PURE__ */ __name(async (pkg) => {
1108
1124
 
1109
1125
  // src/actions/lint.ts
1110
1126
  import chalk17 from "chalk";
1111
- import { ESLint } from "eslint";
1127
+ import { ESLint as ESLint2 } from "eslint";
1112
1128
  var dumpMessages = /* @__PURE__ */ __name((lintResults) => {
1113
1129
  const colors = [
1114
1130
  "white",
@@ -1135,7 +1151,7 @@ var lintPackage = /* @__PURE__ */ __name(async ({ pkg }) => {
1135
1151
  console.error(chalk17.red(`Unable to locate package [${chalk17.magenta(pkg)}]`));
1136
1152
  process.exit(1);
1137
1153
  }
1138
- const engine = new ESLint({
1154
+ const engine = new ESLint2({
1139
1155
  cache: true
1140
1156
  });
1141
1157
  const lintResults = await engine.lintFiles(workspace.location);
@@ -1143,7 +1159,7 @@ var lintPackage = /* @__PURE__ */ __name(async ({ pkg }) => {
1143
1159
  return lintResults.reduce((prev, lintResult) => prev + lintResult.errorCount, 0);
1144
1160
  }, "lintPackage");
1145
1161
  var lintAll = /* @__PURE__ */ __name(async () => {
1146
- const engine = new ESLint({
1162
+ const engine = new ESLint2({
1147
1163
  cache: true
1148
1164
  });
1149
1165
  const lintResults = await engine.lintFiles("./**/*.*");
@@ -1253,7 +1269,7 @@ var packageClean = /* @__PURE__ */ __name(async () => {
1253
1269
  }, "packageClean");
1254
1270
 
1255
1271
  // src/actions/package/compile/compile.ts
1256
- import chalk23 from "chalk";
1272
+ import chalk22 from "chalk";
1257
1273
 
1258
1274
  // src/actions/package/publint.ts
1259
1275
  import { promises as fs } from "node:fs";
@@ -1297,7 +1313,7 @@ var packagePublint = /* @__PURE__ */ __name(async (params) => {
1297
1313
  }, "packagePublint");
1298
1314
 
1299
1315
  // src/actions/package/compile/packageCompileTsc.ts
1300
- import { cwd } from "node:process";
1316
+ import { cwd as cwd2 } from "node:process";
1301
1317
  import chalk21 from "chalk";
1302
1318
  import { createProgramFromConfig } from "tsc-prog";
1303
1319
  import { DiagnosticCategory, formatDiagnosticsWithColorAndContext, getLineAndCharacterOfPosition, getPreEmitDiagnostics } from "typescript";
@@ -1329,7 +1345,7 @@ var getCompilerOptions = /* @__PURE__ */ __name((options, tsconfig = "tsconfig.j
1329
1345
 
1330
1346
  // src/actions/package/compile/packageCompileTsc.ts
1331
1347
  var packageCompileTsc = /* @__PURE__ */ __name(async (noEmit, config2, compilerOptionsParam) => {
1332
- const pkg = process.env.INIT_CWD ?? cwd();
1348
+ const pkg = process.env.INIT_CWD ?? cwd2();
1333
1349
  const publint2 = config2?.publint ?? true;
1334
1350
  const verbose = config2?.verbose ?? false;
1335
1351
  const formatHost = {
@@ -1341,7 +1357,7 @@ var packageCompileTsc = /* @__PURE__ */ __name(async (noEmit, config2, compilerO
1341
1357
  console.log(`Compiling with NoEmit TSC [${pkg}]`);
1342
1358
  }
1343
1359
  const compilerOptions = {
1344
- ...await getCompilerOptions({
1360
+ ...getCompilerOptions({
1345
1361
  outDir: "dist",
1346
1362
  removeComments: true,
1347
1363
  rootDir: "src"
@@ -1352,7 +1368,7 @@ var packageCompileTsc = /* @__PURE__ */ __name(async (noEmit, config2, compilerO
1352
1368
  }
1353
1369
  };
1354
1370
  const program = createProgramFromConfig({
1355
- basePath: pkg ?? cwd(),
1371
+ basePath: pkg ?? cwd2(),
1356
1372
  compilerOptions,
1357
1373
  exclude: [
1358
1374
  "dist",
@@ -1380,7 +1396,6 @@ var packageCompileTsc = /* @__PURE__ */ __name(async (noEmit, config2, compilerO
1380
1396
  }, "packageCompileTsc");
1381
1397
 
1382
1398
  // src/actions/package/compile/packageCompileTsup.ts
1383
- import merge3 from "lodash/merge.js";
1384
1399
  import { build as build2, defineConfig } from "tsup";
1385
1400
 
1386
1401
  // src/actions/package/compile/inputs.ts
@@ -1419,123 +1434,23 @@ var buildEntries = /* @__PURE__ */ __name((folder, entryMode, verbose = false) =
1419
1434
  }
1420
1435
  }, "buildEntries");
1421
1436
 
1422
- // src/actions/package/compile/packageCompileTscTypes.ts
1423
- import { cwd as cwd2 } from "node:process";
1424
- import chalk22 from "chalk";
1425
- import { createProgramFromConfig as createProgramFromConfig2 } from "tsc-prog";
1426
- import { DiagnosticCategory as DiagnosticCategory2 } from "typescript";
1427
-
1428
- // src/actions/package/compile/copyTypeFiles.ts
1429
- import { copyFile, readdir } from "node:fs/promises";
1430
- import { Mutex } from "async-mutex";
1431
- var copyFileMutex = new Mutex();
1432
- var getDistTypeFiles = /* @__PURE__ */ __name(async (compilerOptions) => {
1433
- const outDir = compilerOptions.outDir ?? "dist";
1434
- return (await readdir(outDir, {
1435
- recursive: true
1436
- })).filter((file) => file.endsWith("d.ts")).map((file) => `${outDir}/${file}`);
1437
- }, "getDistTypeFiles");
1438
- var getDistTypeMapFiles = /* @__PURE__ */ __name(async (compilerOptions) => {
1439
- const outDir = compilerOptions.outDir ?? "dist";
1440
- return (await readdir(outDir, {
1441
- recursive: true
1442
- })).filter((file) => file.endsWith("d.ts.map")).map((file) => `${outDir}/${file}`);
1443
- }, "getDistTypeMapFiles");
1444
- var copyTypeFiles = /* @__PURE__ */ __name(async (compilerOptions) => {
1445
- await copyFileMutex.runExclusive(async () => {
1446
- const distTypeFiles = await getDistTypeFiles(compilerOptions);
1447
- await Promise.all(distTypeFiles.map(async (file) => {
1448
- await copyFile(file, file.replace("d.ts", "d.mts"));
1449
- await copyFile(file, file.replace("d.ts", "d.cts"));
1450
- }));
1451
- const distTypeMapFiles = await getDistTypeMapFiles(compilerOptions);
1452
- await Promise.all(distTypeMapFiles.map(async (file) => {
1453
- await copyFile(file, file.replace("d.ts.map", "d.mts.map"));
1454
- await copyFile(file, file.replace("d.ts.map", "d.cts.map"));
1455
- }));
1456
- });
1457
- }, "copyTypeFiles");
1458
-
1459
- // src/actions/package/compile/packageCompileTscTypes.ts
1460
- var packageCompileTscTypes = /* @__PURE__ */ __name(async (folder = "src", { verbose } = {}, compilerOptionsParam, generateMts = true) => {
1461
- const pkg = process.env.INIT_CWD ?? cwd2();
1462
- if (verbose) {
1463
- console.log(`Compiling types with TSC [${pkg}]`);
1464
- }
1465
- const compilerOptions = {
1466
- ...await getCompilerOptions({
1467
- declaration: true,
1468
- emitDeclarationOnly: true,
1469
- outDir: "dist",
1470
- removeComments: true,
1471
- skipDefaultLibCheck: true,
1472
- skipLibCheck: true,
1473
- sourceMap: true
1474
- }),
1475
- ...compilerOptionsParam
1476
- };
1477
- const files = buildEntries(folder, "all");
1478
- const result = createProgramFromConfig2({
1479
- basePath: pkg ?? cwd2(),
1480
- compilerOptions,
1481
- exclude: [
1482
- "dist",
1483
- "docs",
1484
- "**/*.spec.*",
1485
- "**/*.stories.*",
1486
- "src/**/spec/**/*"
1487
- ],
1488
- files
1489
- }).emit();
1490
- const diagResults = result.diagnostics.length;
1491
- for (const diag of result.diagnostics) {
1492
- switch (diag.category) {
1493
- case DiagnosticCategory2.Error: {
1494
- console.error(chalk22.red(diag.messageText));
1495
- console.error(chalk22.grey(pkg));
1496
- console.error(chalk22.blue(diag.file?.fileName));
1497
- break;
1498
- }
1499
- case DiagnosticCategory2.Warning: {
1500
- console.error(chalk22.yellow(diag.messageText));
1501
- console.error(chalk22.grey(pkg));
1502
- console.error(chalk22.blue(diag.file?.fileName));
1503
- break;
1504
- }
1505
- case DiagnosticCategory2.Suggestion: {
1506
- console.error(chalk22.white(diag.messageText));
1507
- console.error(chalk22.grey(pkg));
1508
- console.error(chalk22.blue(diag.file?.fileName));
1509
- break;
1510
- }
1511
- }
1512
- }
1513
- if (generateMts) {
1514
- await copyTypeFiles(compilerOptions);
1515
- }
1516
- return diagResults;
1517
- }, "packageCompileTscTypes");
1518
-
1519
1437
  // src/actions/package/compile/packageCompileTsup.ts
1520
- var compileFolder = /* @__PURE__ */ __name(async (folder, entryMode = "single", options, verbose) => {
1438
+ var compileFolder = /* @__PURE__ */ __name(async (folder, entryMode = "single", options, _verbose) => {
1521
1439
  const outDir = options?.outDir ?? "dist";
1522
1440
  const entry = buildEntries(folder, entryMode);
1523
1441
  const optionsResult = defineConfig({
1524
1442
  bundle: true,
1525
1443
  cjsInterop: true,
1526
1444
  clean: true,
1527
- dts: false,
1445
+ dts: true,
1528
1446
  entry,
1529
1447
  format: [
1530
- "cjs",
1531
1448
  "esm"
1532
1449
  ],
1533
- // minify: true,
1534
1450
  outDir,
1535
1451
  silent: true,
1536
1452
  sourcemap: true,
1537
1453
  splitting: false,
1538
- // terserOptions: { format: { comments: false } },
1539
1454
  tsconfig: "tsconfig.json",
1540
1455
  ...options
1541
1456
  });
@@ -1550,11 +1465,6 @@ var compileFolder = /* @__PURE__ */ __name(async (folder, entryMode = "single",
1550
1465
  ];
1551
1466
  }))).flat();
1552
1467
  await Promise.all(optionsList.map((options2) => build2(options2)));
1553
- await packageCompileTscTypes(folder, {
1554
- verbose
1555
- }, {
1556
- outDir
1557
- });
1558
1468
  return 0;
1559
1469
  }, "compileFolder");
1560
1470
  var packageCompileTsup = /* @__PURE__ */ __name(async (config2) => {
@@ -1573,172 +1483,76 @@ var packageCompileTsup = /* @__PURE__ */ __name(async (config2) => {
1573
1483
  const compileForNeutral = compile2?.neutral ?? {
1574
1484
  src: {}
1575
1485
  };
1576
- return await packageCompileTsc(true, {
1577
- publint: false,
1578
- verbose
1579
- }) || (await Promise.all(Object.entries(compileForNode).map(async ([folder, options]) => {
1486
+ const standardLoaders = {
1487
+ ".gif": "copy",
1488
+ ".html": "copy",
1489
+ ".jpg": "copy",
1490
+ ".json": "json",
1491
+ ".png": "copy",
1492
+ ".svg": "copy",
1493
+ ".webp": "copy"
1494
+ };
1495
+ const standardOptions = {
1496
+ bundle: true,
1497
+ format: [
1498
+ "esm"
1499
+ ],
1500
+ loader: standardLoaders,
1501
+ outExtension: /* @__PURE__ */ __name(({ format }) => format === "esm" ? {
1502
+ js: ".mjs"
1503
+ } : {
1504
+ js: ".cjs"
1505
+ }, "outExtension"),
1506
+ skipNodeModulesBundle: true,
1507
+ sourcemap: true,
1508
+ target: "esnext"
1509
+ };
1510
+ return (await Promise.all(Object.entries(compileForNode).map(async ([folder, options]) => {
1580
1511
  const inEsBuildOptions = typeof compile2?.node?.esbuildOptions === "object" ? compile2?.node?.esbuildOptions : {};
1581
1512
  return folder ? await compileFolder(folder, compile2?.entryMode, {
1582
- bundle: true,
1583
- format: [
1584
- "cjs",
1585
- "esm"
1586
- ],
1587
- loader: merge3({}, {
1588
- ".gif": "copy",
1589
- ".html": "copy",
1590
- ".jpg": "copy",
1591
- ".json": "json",
1592
- ".png": "copy",
1593
- ".svg": "copy",
1594
- ".webp": "copy"
1595
- }, inEsBuildOptions?.loader),
1596
- // minify: true,
1513
+ ...standardOptions,
1514
+ loader: {
1515
+ ...standardOptions.loader,
1516
+ ...inEsBuildOptions?.loader
1517
+ },
1597
1518
  outDir: "dist/node",
1598
- outExtension: /* @__PURE__ */ __name(({ format }) => format === "esm" ? {
1599
- js: ".mjs"
1600
- } : {
1601
- js: ".cjs"
1602
- }, "outExtension"),
1603
1519
  platform: "node",
1604
- skipNodeModulesBundle: true,
1605
- sourcemap: true,
1606
- target: "node16",
1607
- // terserOptions: { format: { comments: false } },
1608
1520
  ...compile2?.tsup?.options,
1609
1521
  ...typeof options === "object" ? options : {}
1610
1522
  }, verbose) : 0;
1611
1523
  }))).reduce((prev, value) => prev + value, 0) || (await Promise.all(Object.entries(compileForBrowser).map(async ([folder, options]) => {
1612
1524
  const inEsBuildOptions = typeof compile2?.browser?.esbuildOptions === "object" ? compile2?.browser?.esbuildOptions : {};
1613
- return folder ? (await Promise.all([
1614
- compileFolder(folder, compile2?.entryMode, {
1615
- bundle: true,
1616
- format: [
1617
- "cjs"
1618
- ],
1619
- loader: merge3({}, {
1620
- ".gif": "copy",
1621
- ".html": "copy",
1622
- ".jpg": "copy",
1623
- ".json": "json",
1624
- ".png": "copy",
1625
- ".svg": "copy",
1626
- ".webp": "copy"
1627
- }, inEsBuildOptions?.loader),
1628
- // minify: true,
1629
- outDir: "dist/browser",
1630
- outExtension: /* @__PURE__ */ __name(({ format }) => format === "esm" ? {
1631
- js: ".mjs"
1632
- } : {
1633
- js: ".cjs"
1634
- }, "outExtension"),
1635
- platform: "browser",
1636
- skipNodeModulesBundle: true,
1637
- sourcemap: true,
1638
- target: "esnext",
1639
- // terserOptions: { format: { comments: false } },
1640
- ...compile2?.tsup?.options,
1641
- ...typeof options === "object" ? options : {}
1642
- }, verbose),
1643
- compileFolder(folder, compile2?.entryMode, {
1644
- bundle: true,
1645
- format: [
1646
- "esm"
1647
- ],
1648
- loader: merge3({}, {
1649
- ".gif": "copy",
1650
- ".html": "copy",
1651
- ".jpg": "copy",
1652
- ".json": "json",
1653
- ".png": "copy",
1654
- ".svg": "copy",
1655
- ".webp": "copy"
1656
- }, inEsBuildOptions?.loader),
1657
- // minify: true,
1658
- outDir: "dist/browser",
1659
- outExtension: /* @__PURE__ */ __name(({ format }) => format === "esm" ? {
1660
- js: ".mjs"
1661
- } : {
1662
- js: ".cjs"
1663
- }, "outExtension"),
1664
- platform: "browser",
1665
- skipNodeModulesBundle: true,
1666
- sourcemap: true,
1667
- target: "esnext",
1668
- // terserOptions: { format: { comments: false } },
1669
- ...compile2?.tsup?.options,
1670
- ...typeof options === "object" ? options : {}
1671
- }, verbose)
1672
- ])).reduce((prev, value) => prev + value, 0) : 0;
1525
+ return folder ? await compileFolder(folder, compile2?.entryMode, {
1526
+ ...standardOptions,
1527
+ loader: {
1528
+ ...standardOptions.loader,
1529
+ ...inEsBuildOptions?.loader
1530
+ },
1531
+ outDir: "dist/browser",
1532
+ platform: "browser",
1533
+ ...compile2?.tsup?.options,
1534
+ ...typeof options === "object" ? options : {}
1535
+ }, verbose) : 0;
1673
1536
  }))).reduce((prev, value) => prev + value, 0) || (await Promise.all(Object.entries(compileForNeutral).map(async ([folder, options]) => {
1674
1537
  const inEsBuildOptions = typeof compile2?.neutral?.esbuildOptions === "object" ? compile2?.neutral?.esbuildOptions : {};
1675
- return folder ? (await Promise.all([
1676
- compileFolder(folder, compile2?.entryMode, {
1677
- bundle: true,
1678
- format: [
1679
- "cjs"
1680
- ],
1681
- loader: merge3({}, {
1682
- ".gif": "copy",
1683
- ".html": "copy",
1684
- ".jpg": "copy",
1685
- ".json": "json",
1686
- ".png": "copy",
1687
- ".svg": "copy",
1688
- ".webp": "copy"
1689
- }, inEsBuildOptions?.loader),
1690
- // minify: true,
1691
- outDir: "dist/neutral",
1692
- outExtension: /* @__PURE__ */ __name(({ format }) => format === "esm" ? {
1693
- js: ".mjs"
1694
- } : {
1695
- js: ".cjs"
1696
- }, "outExtension"),
1697
- platform: "neutral",
1698
- skipNodeModulesBundle: true,
1699
- sourcemap: true,
1700
- target: "esnext",
1701
- // terserOptions: { format: { comments: false } },
1702
- ...compile2?.tsup?.options,
1703
- ...typeof options === "object" ? options : {}
1704
- }, verbose),
1705
- compileFolder(folder, compile2?.entryMode, {
1706
- bundle: true,
1707
- format: [
1708
- "esm"
1709
- ],
1710
- loader: merge3({}, {
1711
- ".gif": "copy",
1712
- ".html": "copy",
1713
- ".jpg": "copy",
1714
- ".json": "json",
1715
- ".png": "copy",
1716
- ".svg": "copy",
1717
- ".webp": "copy"
1718
- }, inEsBuildOptions?.loader),
1719
- // minify: true,
1720
- outDir: "dist/neutral",
1721
- outExtension: /* @__PURE__ */ __name(({ format }) => format === "esm" ? {
1722
- js: ".mjs"
1723
- } : {
1724
- js: ".cjs"
1725
- }, "outExtension"),
1726
- platform: "neutral",
1727
- skipNodeModulesBundle: true,
1728
- sourcemap: true,
1729
- target: "esnext",
1730
- // terserOptions: { format: { comments: false } },
1731
- ...compile2?.tsup?.options,
1732
- ...typeof options === "object" ? options : {}
1733
- }, verbose)
1734
- ])).reduce((prev, value) => prev + value, 0) : 0;
1538
+ return folder ? await compileFolder(folder, compile2?.entryMode, {
1539
+ ...standardOptions,
1540
+ loader: {
1541
+ ...standardOptions.loader,
1542
+ ...inEsBuildOptions?.loader
1543
+ },
1544
+ outDir: "dist/neutral",
1545
+ platform: "neutral",
1546
+ ...compile2?.tsup?.options,
1547
+ ...typeof options === "object" ? options : {}
1548
+ }, verbose) : 0;
1735
1549
  }))).reduce((prev, value) => prev + value, 0) || (publint2 ? await packagePublint() : 0);
1736
1550
  }, "packageCompileTsup");
1737
1551
 
1738
1552
  // src/actions/package/compile/compile.ts
1739
1553
  var packageCompile = /* @__PURE__ */ __name(async (inConfig = {}) => {
1740
1554
  const pkg = process.env.INIT_CWD;
1741
- console.log(chalk23.green(`Compiling ${pkg}`));
1555
+ console.log(chalk22.green(`Compiling ${pkg}`));
1742
1556
  const config2 = await loadConfig(inConfig);
1743
1557
  const publint2 = config2.publint;
1744
1558
  const mode = config2.compile?.mode ?? "tsup";
@@ -1758,7 +1572,7 @@ var packageCompile = /* @__PURE__ */ __name(async (inConfig = {}) => {
1758
1572
 
1759
1573
  // src/actions/package/copy-assets.ts
1760
1574
  import path5 from "node:path/posix";
1761
- import chalk24 from "chalk";
1575
+ import chalk23 from "chalk";
1762
1576
  import cpy2 from "cpy";
1763
1577
  var copyTargetAssets2 = /* @__PURE__ */ __name(async (target, name, location) => {
1764
1578
  try {
@@ -1777,7 +1591,7 @@ var copyTargetAssets2 = /* @__PURE__ */ __name(async (target, name, location) =>
1777
1591
  flat: false
1778
1592
  });
1779
1593
  if (values.length > 0) {
1780
- console.log(chalk24.green(`Copying Assets [${target.toUpperCase()}] - ${name} - ${location}`));
1594
+ console.log(chalk23.green(`Copying Assets [${target.toUpperCase()}] - ${name} - ${location}`));
1781
1595
  }
1782
1596
  for (const value of values) {
1783
1597
  console.log(`${value.split("/").pop()} => ./dist/${target}`);
@@ -1808,7 +1622,7 @@ var packageCopyAssets = /* @__PURE__ */ __name(async ({ target }) => {
1808
1622
  // src/actions/package/deps.ts
1809
1623
  import { existsSync as existsSync4, readFileSync as readFileSync3 } from "node:fs";
1810
1624
  import { cwd as cwd3 } from "node:process";
1811
- import chalk25 from "chalk";
1625
+ import chalk24 from "chalk";
1812
1626
  import depcheck from "depcheck";
1813
1627
  var special = depcheck.special;
1814
1628
  var defaultIgnorePatterns = [
@@ -1835,21 +1649,21 @@ var defaultIgnoreDevPatterns = [
1835
1649
  var reportUnused = /* @__PURE__ */ __name((name, unused) => {
1836
1650
  if (unused.length > 0) {
1837
1651
  const message = [
1838
- chalk25.yellow(`${unused.length} Unused ${name}`)
1652
+ chalk24.yellow(`${unused.length} Unused ${name}`)
1839
1653
  ];
1840
- for (const value of unused) message.push(chalk25.gray(` ${value}`));
1654
+ for (const value of unused) message.push(chalk24.gray(` ${value}`));
1841
1655
  console.log(message.join("\n"));
1842
1656
  }
1843
1657
  }, "reportUnused");
1844
1658
  var reportMissing = /* @__PURE__ */ __name((name, missing) => {
1845
1659
  if (Object.keys(missing).length > 0) {
1846
1660
  const message = [
1847
- chalk25.yellow(`${Object.entries(missing).length} Missing ${name}`)
1661
+ chalk24.yellow(`${Object.entries(missing).length} Missing ${name}`)
1848
1662
  ];
1849
1663
  for (const [key, value] of Object.entries(missing)) {
1850
- message.push(`${key}`, chalk25.gray(` ${value.at(0)}`));
1664
+ message.push(`${key}`, chalk24.gray(` ${value.at(0)}`));
1851
1665
  }
1852
- console.log(chalk25.yellow(message.join("\n")));
1666
+ console.log(chalk24.yellow(message.join("\n")));
1853
1667
  }
1854
1668
  }, "reportMissing");
1855
1669
  var analyzeDeps = /* @__PURE__ */ __name(async (pkg, ignoreMatches) => {
@@ -1954,10 +1768,10 @@ var packageDeps = /* @__PURE__ */ __name(async () => {
1954
1768
  reportUnused("dependencies", unusedDeps);
1955
1769
  reportUnused("devDependencies", unusedDevDeps);
1956
1770
  if (Object.entries(invalidDirs).length > 0) {
1957
- for (const [key, value] of Object.entries(invalidDirs)) console.warn(chalk25.gray(`Invalid Dir: ${key}: ${value}`));
1771
+ for (const [key, value] of Object.entries(invalidDirs)) console.warn(chalk24.gray(`Invalid Dir: ${key}: ${value}`));
1958
1772
  }
1959
1773
  if (Object.entries(invalidFiles).length > 0) {
1960
- for (const [key, value] of Object.entries(invalidFiles)) console.warn(chalk25.gray(`Invalid File: ${key}: ${value}`));
1774
+ for (const [key, value] of Object.entries(invalidFiles)) console.warn(chalk24.gray(`Invalid File: ${key}: ${value}`));
1961
1775
  }
1962
1776
  reportMissing("dependencies", missingDepsObject);
1963
1777
  reportMissing("devDependencies", missingDevDepsObject);
@@ -1968,7 +1782,7 @@ var packageDeps = /* @__PURE__ */ __name(async () => {
1968
1782
  // src/actions/package/gen-docs.ts
1969
1783
  import { existsSync as existsSync5 } from "node:fs";
1970
1784
  import path6 from "node:path";
1971
- import chalk26 from "chalk";
1785
+ import chalk25 from "chalk";
1972
1786
  import { Application, ArgumentsReader, TSConfigReader, TypeDocReader } from "typedoc";
1973
1787
  var ExitCodes = {
1974
1788
  CompileError: 3,
@@ -2070,16 +1884,13 @@ var runTypeDoc = /* @__PURE__ */ __name(async (app) => {
2070
1884
  return ExitCodes.OutputError;
2071
1885
  }
2072
1886
  }
2073
- console.log(chalk26.green(`${pkgName} - Ok`));
1887
+ console.log(chalk25.green(`${pkgName} - Ok`));
2074
1888
  return ExitCodes.Ok;
2075
1889
  }, "runTypeDoc");
2076
1890
 
2077
1891
  // src/actions/package/recompile.ts
2078
1892
  var packageRecompile = /* @__PURE__ */ __name(async () => {
2079
- return (await Promise.all([
2080
- packageClean(),
2081
- packageCompile()
2082
- ])).reduce((prev, value) => prev + value, 0);
1893
+ return await packageClean() || await packageCompile();
2083
1894
  }, "packageRecompile");
2084
1895
 
2085
1896
  // src/actions/publint.ts
@@ -2140,7 +1951,7 @@ var rebuild = /* @__PURE__ */ __name(({ target }) => {
2140
1951
  }, "rebuild");
2141
1952
 
2142
1953
  // src/actions/recompile.ts
2143
- import chalk27 from "chalk";
1954
+ import chalk26 from "chalk";
2144
1955
  var recompile = /* @__PURE__ */ __name(async ({ verbose, target, pkg, incremental }) => {
2145
1956
  return pkg ? await recompilePackage({
2146
1957
  pkg,
@@ -2201,7 +2012,7 @@ var recompileAll = /* @__PURE__ */ __name(async ({ jobs, verbose, target, increm
2201
2012
  `${jobs}`
2202
2013
  ] : [];
2203
2014
  if (jobs) {
2204
- console.log(chalk27.blue(`Jobs set to [${jobs}]`));
2015
+ console.log(chalk26.blue(`Jobs set to [${jobs}]`));
2205
2016
  }
2206
2017
  const result = await runStepsAsync(`Recompile${incremental ? "-Incremental" : ""} [All]`, [
2207
2018
  [
@@ -2213,12 +2024,25 @@ var recompileAll = /* @__PURE__ */ __name(async ({ jobs, verbose, target, increm
2213
2024
  ...jobsOptions,
2214
2025
  ...verboseOptions,
2215
2026
  "run",
2216
- "package-recompile",
2027
+ "package-clean",
2028
+ ...targetOptions
2029
+ ]
2030
+ ],
2031
+ [
2032
+ "yarn",
2033
+ [
2034
+ "workspaces",
2035
+ "foreach",
2036
+ ...incrementalOptions,
2037
+ ...jobsOptions,
2038
+ ...verboseOptions,
2039
+ "run",
2040
+ "package-compile",
2217
2041
  ...targetOptions
2218
2042
  ]
2219
2043
  ]
2220
2044
  ]);
2221
- console.log(`${chalk27.gray("Recompiled in")} [${chalk27.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk27.gray("seconds")}`);
2045
+ console.log(`${chalk26.gray("Recompiled in")} [${chalk26.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk26.gray("seconds")}`);
2222
2046
  return result;
2223
2047
  }, "recompileAll");
2224
2048
 
@@ -2318,7 +2142,7 @@ var sonar = /* @__PURE__ */ __name(() => {
2318
2142
  }, "sonar");
2319
2143
 
2320
2144
  // src/actions/statics.ts
2321
- import chalk28 from "chalk";
2145
+ import chalk27 from "chalk";
2322
2146
  var DefaultDependencies = [
2323
2147
  "axios",
2324
2148
  "@xylabs/pixel",
@@ -2329,7 +2153,7 @@ var DefaultDependencies = [
2329
2153
  "@mui/system"
2330
2154
  ];
2331
2155
  var statics = /* @__PURE__ */ __name(() => {
2332
- console.log(chalk28.green("Check Required Static Dependencies"));
2156
+ console.log(chalk27.green("Check Required Static Dependencies"));
2333
2157
  const statics2 = parsedPackageJSON()?.xy?.deps?.statics;
2334
2158
  return detectDuplicateDependencies(statics2, DefaultDependencies);
2335
2159
  }, "statics");