@xylabs/ts-scripts-yarn3 2.19.10 → 2.19.12

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 (604) hide show
  1. package/dist/actions/build.js +115 -5
  2. package/dist/actions/build.js.map +1 -1
  3. package/dist/actions/build.mjs +113 -4
  4. package/dist/actions/build.mjs.map +1 -1
  5. package/dist/actions/clean-docs.js +19 -3
  6. package/dist/actions/clean-docs.js.map +1 -1
  7. package/dist/actions/clean-docs.mjs +17 -2
  8. package/dist/actions/clean-docs.mjs.map +1 -1
  9. package/dist/actions/clean-eslint.js +3 -1
  10. package/dist/actions/clean-eslint.js.map +1 -1
  11. package/dist/actions/clean-eslint.mjs +2 -1
  12. package/dist/actions/clean-eslint.mjs.map +1 -1
  13. package/dist/actions/clean-jest.js +107 -3
  14. package/dist/actions/clean-jest.js.map +1 -1
  15. package/dist/actions/clean-jest.mjs +93 -2
  16. package/dist/actions/clean-jest.mjs.map +1 -1
  17. package/dist/actions/clean.js +211 -9
  18. package/dist/actions/clean.js.map +1 -1
  19. package/dist/actions/clean.mjs +196 -7
  20. package/dist/actions/clean.mjs.map +1 -1
  21. package/dist/actions/compile.js +102 -8
  22. package/dist/actions/compile.js.map +1 -1
  23. package/dist/actions/compile.mjs +99 -6
  24. package/dist/actions/compile.mjs.map +1 -1
  25. package/dist/actions/copy-assets.js +21 -5
  26. package/dist/actions/copy-assets.js.map +1 -1
  27. package/dist/actions/copy-assets.mjs +19 -4
  28. package/dist/actions/copy-assets.mjs.map +1 -1
  29. package/dist/actions/cycle.js +107 -3
  30. package/dist/actions/cycle.js.map +1 -1
  31. package/dist/actions/cycle.mjs +93 -2
  32. package/dist/actions/cycle.mjs.map +1 -1
  33. package/dist/actions/dead.js +107 -3
  34. package/dist/actions/dead.js.map +1 -1
  35. package/dist/actions/dead.mjs +93 -2
  36. package/dist/actions/dead.mjs.map +1 -1
  37. package/dist/actions/deploy-major.js +107 -3
  38. package/dist/actions/deploy-major.js.map +1 -1
  39. package/dist/actions/deploy-major.mjs +93 -2
  40. package/dist/actions/deploy-major.mjs.map +1 -1
  41. package/dist/actions/deploy-minor.js +107 -3
  42. package/dist/actions/deploy-minor.js.map +1 -1
  43. package/dist/actions/deploy-minor.mjs +93 -2
  44. package/dist/actions/deploy-minor.mjs.map +1 -1
  45. package/dist/actions/deploy-next.js +107 -3
  46. package/dist/actions/deploy-next.js.map +1 -1
  47. package/dist/actions/deploy-next.mjs +93 -2
  48. package/dist/actions/deploy-next.mjs.map +1 -1
  49. package/dist/actions/deploy.js +107 -3
  50. package/dist/actions/deploy.js.map +1 -1
  51. package/dist/actions/deploy.mjs +93 -2
  52. package/dist/actions/deploy.mjs.map +1 -1
  53. package/dist/actions/deps.js +102 -8
  54. package/dist/actions/deps.js.map +1 -1
  55. package/dist/actions/deps.mjs +99 -6
  56. package/dist/actions/deps.mjs.map +1 -1
  57. package/dist/actions/dupdeps.js +175 -5
  58. package/dist/actions/dupdeps.js.map +1 -1
  59. package/dist/actions/dupdeps.mjs +172 -3
  60. package/dist/actions/dupdeps.mjs.map +1 -1
  61. package/dist/actions/fix.js +107 -3
  62. package/dist/actions/fix.js.map +1 -1
  63. package/dist/actions/fix.mjs +93 -2
  64. package/dist/actions/fix.mjs.map +1 -1
  65. package/dist/actions/gen-docs.js +110 -6
  66. package/dist/actions/gen-docs.js.map +1 -1
  67. package/dist/actions/gen-docs.mjs +95 -4
  68. package/dist/actions/gen-docs.mjs.map +1 -1
  69. package/dist/actions/gitignore-gen.js +96 -3
  70. package/dist/actions/gitignore-gen.js.map +1 -1
  71. package/dist/actions/gitignore-gen.mjs +83 -3
  72. package/dist/actions/gitignore-gen.mjs.map +1 -1
  73. package/dist/actions/gitlint-fix.js +3 -1
  74. package/dist/actions/gitlint-fix.js.map +1 -1
  75. package/dist/actions/gitlint-fix.mjs +2 -1
  76. package/dist/actions/gitlint-fix.mjs.map +1 -1
  77. package/dist/actions/gitlint.js +3 -1
  78. package/dist/actions/gitlint.js.map +1 -1
  79. package/dist/actions/gitlint.mjs +2 -1
  80. package/dist/actions/gitlint.mjs.map +1 -1
  81. package/dist/actions/index.js +1675 -87
  82. package/dist/actions/index.js.map +1 -1
  83. package/dist/actions/index.mjs +1589 -43
  84. package/dist/actions/index.mjs.map +1 -1
  85. package/dist/actions/license.js +19 -3
  86. package/dist/actions/license.js.map +1 -1
  87. package/dist/actions/license.mjs +17 -2
  88. package/dist/actions/license.mjs.map +1 -1
  89. package/dist/actions/lint-clean.js +141 -6
  90. package/dist/actions/lint-clean.js.map +1 -1
  91. package/dist/actions/lint-clean.mjs +127 -3
  92. package/dist/actions/lint-clean.mjs.map +1 -1
  93. package/dist/actions/lint-profile.js +107 -3
  94. package/dist/actions/lint-profile.js.map +1 -1
  95. package/dist/actions/lint-profile.mjs +93 -2
  96. package/dist/actions/lint-profile.mjs.map +1 -1
  97. package/dist/actions/lint.js +115 -8
  98. package/dist/actions/lint.js.map +1 -1
  99. package/dist/actions/lint.mjs +112 -6
  100. package/dist/actions/lint.mjs.map +1 -1
  101. package/dist/actions/npmignore-gen.js +96 -3
  102. package/dist/actions/npmignore-gen.js.map +1 -1
  103. package/dist/actions/npmignore-gen.mjs +83 -3
  104. package/dist/actions/npmignore-gen.mjs.map +1 -1
  105. package/dist/actions/package/clean-outputs.js +3 -1
  106. package/dist/actions/package/clean-outputs.js.map +1 -1
  107. package/dist/actions/package/clean-outputs.mjs +2 -1
  108. package/dist/actions/package/clean-outputs.mjs.map +1 -1
  109. package/dist/actions/package/clean-typescript.js +3 -1
  110. package/dist/actions/package/clean-typescript.js.map +1 -1
  111. package/dist/actions/package/clean-typescript.mjs +2 -1
  112. package/dist/actions/package/clean-typescript.mjs.map +1 -1
  113. package/dist/actions/package/clean.js +46 -4
  114. package/dist/actions/package/clean.js.map +1 -1
  115. package/dist/actions/package/clean.mjs +32 -3
  116. package/dist/actions/package/clean.mjs.map +1 -1
  117. package/dist/actions/package/compile-cjs.js +236 -7
  118. package/dist/actions/package/compile-cjs.js.map +1 -1
  119. package/dist/actions/package/compile-cjs.mjs +220 -4
  120. package/dist/actions/package/compile-cjs.mjs.map +1 -1
  121. package/dist/actions/package/compile-esm.js +238 -7
  122. package/dist/actions/package/compile-esm.js.map +1 -1
  123. package/dist/actions/package/compile-esm.mjs +222 -4
  124. package/dist/actions/package/compile-esm.mjs.map +1 -1
  125. package/dist/actions/package/compile.js +286 -5
  126. package/dist/actions/package/compile.js.map +1 -1
  127. package/dist/actions/package/compile.mjs +274 -4
  128. package/dist/actions/package/compile.mjs.map +1 -1
  129. package/dist/actions/package/copy-assets.js +4 -2
  130. package/dist/actions/package/copy-assets.js.map +1 -1
  131. package/dist/actions/package/copy-assets.mjs +3 -2
  132. package/dist/actions/package/copy-assets.mjs.map +1 -1
  133. package/dist/actions/package/deps.js +32 -16
  134. package/dist/actions/package/deps.js.map +1 -1
  135. package/dist/actions/package/deps.mjs +30 -15
  136. package/dist/actions/package/deps.mjs.map +1 -1
  137. package/dist/actions/package/gen-docs.js +7 -5
  138. package/dist/actions/package/gen-docs.js.map +1 -1
  139. package/dist/actions/package/gen-docs.mjs +4 -3
  140. package/dist/actions/package/gen-docs.mjs.map +1 -1
  141. package/dist/actions/package/index.js +572 -27
  142. package/dist/actions/package/index.js.map +1 -1
  143. package/dist/actions/package/index.mjs +542 -13
  144. package/dist/actions/package/index.mjs.map +1 -1
  145. package/dist/actions/package/publint.js +3 -1
  146. package/dist/actions/package/publint.js.map +1 -1
  147. package/dist/actions/package/publint.mjs +2 -1
  148. package/dist/actions/package/publint.mjs.map +1 -1
  149. package/dist/actions/package/recompile.js +334 -4
  150. package/dist/actions/package/recompile.js.map +1 -1
  151. package/dist/actions/package/recompile.mjs +320 -3
  152. package/dist/actions/package/recompile.mjs.map +1 -1
  153. package/dist/actions/package/tsconfig-gen-cjs.js +50 -5
  154. package/dist/actions/package/tsconfig-gen-cjs.js.map +1 -1
  155. package/dist/actions/package/tsconfig-gen-cjs.mjs +48 -4
  156. package/dist/actions/package/tsconfig-gen-cjs.mjs.map +1 -1
  157. package/dist/actions/package/tsconfig-gen-esm.js +50 -5
  158. package/dist/actions/package/tsconfig-gen-esm.js.map +1 -1
  159. package/dist/actions/package/tsconfig-gen-esm.mjs +48 -4
  160. package/dist/actions/package/tsconfig-gen-esm.mjs.map +1 -1
  161. package/dist/actions/publint.js +169 -6
  162. package/dist/actions/publint.js.map +1 -1
  163. package/dist/actions/publint.mjs +154 -4
  164. package/dist/actions/publint.mjs.map +1 -1
  165. package/dist/actions/rebuild.js +107 -3
  166. package/dist/actions/rebuild.js.map +1 -1
  167. package/dist/actions/rebuild.mjs +93 -2
  168. package/dist/actions/rebuild.mjs.map +1 -1
  169. package/dist/actions/recompile.js +118 -8
  170. package/dist/actions/recompile.js.map +1 -1
  171. package/dist/actions/recompile.mjs +115 -6
  172. package/dist/actions/recompile.mjs.map +1 -1
  173. package/dist/actions/reinstall.js +123 -6
  174. package/dist/actions/reinstall.js.map +1 -1
  175. package/dist/actions/reinstall.mjs +108 -2
  176. package/dist/actions/reinstall.mjs.map +1 -1
  177. package/dist/actions/relint.js +122 -5
  178. package/dist/actions/relint.js.map +1 -1
  179. package/dist/actions/relint.mjs +108 -2
  180. package/dist/actions/relint.mjs.map +1 -1
  181. package/dist/actions/retest.js +107 -3
  182. package/dist/actions/retest.js.map +1 -1
  183. package/dist/actions/retest.mjs +93 -2
  184. package/dist/actions/retest.mjs.map +1 -1
  185. package/dist/actions/sonar.js +107 -3
  186. package/dist/actions/sonar.js.map +1 -1
  187. package/dist/actions/sonar.mjs +93 -2
  188. package/dist/actions/sonar.mjs.map +1 -1
  189. package/dist/actions/statics.js +176 -6
  190. package/dist/actions/statics.js.map +1 -1
  191. package/dist/actions/statics.mjs +173 -4
  192. package/dist/actions/statics.mjs.map +1 -1
  193. package/dist/actions/test.js +107 -3
  194. package/dist/actions/test.js.map +1 -1
  195. package/dist/actions/test.mjs +93 -2
  196. package/dist/actions/test.mjs.map +1 -1
  197. package/dist/actions/tsconfig-gen-cjs.js +73 -7
  198. package/dist/actions/tsconfig-gen-cjs.js.map +1 -1
  199. package/dist/actions/tsconfig-gen-cjs.mjs +69 -4
  200. package/dist/actions/tsconfig-gen-cjs.mjs.map +1 -1
  201. package/dist/actions/tsconfig-gen-clean.js +27 -3
  202. package/dist/actions/tsconfig-gen-clean.js.map +1 -1
  203. package/dist/actions/tsconfig-gen-clean.mjs +25 -2
  204. package/dist/actions/tsconfig-gen-clean.mjs.map +1 -1
  205. package/dist/actions/tsconfig-gen-esm.js +72 -6
  206. package/dist/actions/tsconfig-gen-esm.js.map +1 -1
  207. package/dist/actions/tsconfig-gen-esm.mjs +69 -4
  208. package/dist/actions/tsconfig-gen-esm.mjs.map +1 -1
  209. package/dist/actions/tsconfig-gen-test.js +29 -5
  210. package/dist/actions/tsconfig-gen-test.js.map +1 -1
  211. package/dist/actions/tsconfig-gen-test.mjs +27 -4
  212. package/dist/actions/tsconfig-gen-test.mjs.map +1 -1
  213. package/dist/actions/tsconfig-gen.js +181 -7
  214. package/dist/actions/tsconfig-gen.js.map +1 -1
  215. package/dist/actions/tsconfig-gen.mjs +165 -4
  216. package/dist/actions/tsconfig-gen.mjs.map +1 -1
  217. package/dist/actions/up.js +107 -3
  218. package/dist/actions/up.js.map +1 -1
  219. package/dist/actions/up.mjs +93 -2
  220. package/dist/actions/up.mjs.map +1 -1
  221. package/dist/actions/updo.js +107 -3
  222. package/dist/actions/updo.js.map +1 -1
  223. package/dist/actions/updo.mjs +93 -2
  224. package/dist/actions/updo.mjs.map +1 -1
  225. package/dist/actions/upplug.js +107 -3
  226. package/dist/actions/upplug.js.map +1 -1
  227. package/dist/actions/upplug.mjs +93 -2
  228. package/dist/actions/upplug.mjs.map +1 -1
  229. package/dist/actions/upyarn.js +107 -3
  230. package/dist/actions/upyarn.js.map +1 -1
  231. package/dist/actions/upyarn.mjs +93 -2
  232. package/dist/actions/upyarn.mjs.map +1 -1
  233. package/dist/actions/yarn3only.js +65 -4
  234. package/dist/actions/yarn3only.js.map +1 -1
  235. package/dist/actions/yarn3only.mjs +50 -2
  236. package/dist/actions/yarn3only.mjs.map +1 -1
  237. package/dist/bin/build.js +33 -2
  238. package/dist/bin/build.js.map +1 -1
  239. package/dist/bin/build.mjs +10 -1
  240. package/dist/bin/build.mjs.map +1 -1
  241. package/dist/bin/clean.js +33 -2
  242. package/dist/bin/clean.js.map +1 -1
  243. package/dist/bin/clean.mjs +10 -1
  244. package/dist/bin/clean.mjs.map +1 -1
  245. package/dist/bin/compile.js +33 -2
  246. package/dist/bin/compile.js.map +1 -1
  247. package/dist/bin/compile.mjs +10 -1
  248. package/dist/bin/compile.mjs.map +1 -1
  249. package/dist/bin/cycle.js +33 -2
  250. package/dist/bin/cycle.js.map +1 -1
  251. package/dist/bin/cycle.mjs +10 -1
  252. package/dist/bin/cycle.mjs.map +1 -1
  253. package/dist/bin/dead.js +33 -2
  254. package/dist/bin/dead.js.map +1 -1
  255. package/dist/bin/dead.mjs +10 -1
  256. package/dist/bin/dead.mjs.map +1 -1
  257. package/dist/bin/deploy-major.js +33 -2
  258. package/dist/bin/deploy-major.js.map +1 -1
  259. package/dist/bin/deploy-major.mjs +10 -1
  260. package/dist/bin/deploy-major.mjs.map +1 -1
  261. package/dist/bin/deploy-minor.js +33 -2
  262. package/dist/bin/deploy-minor.js.map +1 -1
  263. package/dist/bin/deploy-minor.mjs +10 -1
  264. package/dist/bin/deploy-minor.mjs.map +1 -1
  265. package/dist/bin/deploy-next.js +33 -2
  266. package/dist/bin/deploy-next.js.map +1 -1
  267. package/dist/bin/deploy-next.mjs +10 -1
  268. package/dist/bin/deploy-next.mjs.map +1 -1
  269. package/dist/bin/deploy.js +33 -2
  270. package/dist/bin/deploy.js.map +1 -1
  271. package/dist/bin/deploy.mjs +10 -1
  272. package/dist/bin/deploy.mjs.map +1 -1
  273. package/dist/bin/deps.js +33 -2
  274. package/dist/bin/deps.js.map +1 -1
  275. package/dist/bin/deps.mjs +10 -1
  276. package/dist/bin/deps.mjs.map +1 -1
  277. package/dist/bin/fix.js +33 -2
  278. package/dist/bin/fix.js.map +1 -1
  279. package/dist/bin/fix.mjs +10 -1
  280. package/dist/bin/fix.mjs.map +1 -1
  281. package/dist/bin/gen-docs.js +33 -2
  282. package/dist/bin/gen-docs.js.map +1 -1
  283. package/dist/bin/gen-docs.mjs +10 -1
  284. package/dist/bin/gen-docs.mjs.map +1 -1
  285. package/dist/bin/gitlint-fix.js +33 -2
  286. package/dist/bin/gitlint-fix.js.map +1 -1
  287. package/dist/bin/gitlint-fix.mjs +10 -1
  288. package/dist/bin/gitlint-fix.mjs.map +1 -1
  289. package/dist/bin/gitlint.js +33 -2
  290. package/dist/bin/gitlint.js.map +1 -1
  291. package/dist/bin/gitlint.mjs +10 -1
  292. package/dist/bin/gitlint.mjs.map +1 -1
  293. package/dist/bin/license.js +33 -2
  294. package/dist/bin/license.js.map +1 -1
  295. package/dist/bin/license.mjs +10 -1
  296. package/dist/bin/license.mjs.map +1 -1
  297. package/dist/bin/lint-clean.js +33 -2
  298. package/dist/bin/lint-clean.js.map +1 -1
  299. package/dist/bin/lint-clean.mjs +10 -1
  300. package/dist/bin/lint-clean.mjs.map +1 -1
  301. package/dist/bin/lint-fast.js +33 -2
  302. package/dist/bin/lint-fast.js.map +1 -1
  303. package/dist/bin/lint-fast.mjs +10 -1
  304. package/dist/bin/lint-fast.mjs.map +1 -1
  305. package/dist/bin/lint-profile.js +33 -2
  306. package/dist/bin/lint-profile.js.map +1 -1
  307. package/dist/bin/lint-profile.mjs +10 -1
  308. package/dist/bin/lint-profile.mjs.map +1 -1
  309. package/dist/bin/lint.js +33 -2
  310. package/dist/bin/lint.js.map +1 -1
  311. package/dist/bin/lint.mjs +10 -1
  312. package/dist/bin/lint.mjs.map +1 -1
  313. package/dist/bin/package/clean-outputs.js +40 -2
  314. package/dist/bin/package/clean-outputs.js.map +1 -1
  315. package/dist/bin/package/clean-outputs.mjs +17 -1
  316. package/dist/bin/package/clean-outputs.mjs.map +1 -1
  317. package/dist/bin/package/clean-typescript.js +40 -2
  318. package/dist/bin/package/clean-typescript.js.map +1 -1
  319. package/dist/bin/package/clean-typescript.mjs +17 -1
  320. package/dist/bin/package/clean-typescript.mjs.map +1 -1
  321. package/dist/bin/package/clean.js +60 -2
  322. package/dist/bin/package/clean.js.map +1 -1
  323. package/dist/bin/package/clean.mjs +37 -1
  324. package/dist/bin/package/clean.mjs.map +1 -1
  325. package/dist/bin/package/compile-cjs.js +234 -3
  326. package/dist/bin/package/compile-cjs.js.map +1 -1
  327. package/dist/bin/package/compile-cjs.mjs +233 -2
  328. package/dist/bin/package/compile-cjs.mjs.map +1 -1
  329. package/dist/bin/package/compile-esm.js +236 -3
  330. package/dist/bin/package/compile-esm.js.map +1 -1
  331. package/dist/bin/package/compile-esm.mjs +235 -2
  332. package/dist/bin/package/compile-esm.mjs.map +1 -1
  333. package/dist/bin/package/compile.js +289 -3
  334. package/dist/bin/package/compile.js.map +1 -1
  335. package/dist/bin/package/compile.mjs +288 -2
  336. package/dist/bin/package/compile.mjs.map +1 -1
  337. package/dist/bin/package/copy-assets-cjs.js +46 -3
  338. package/dist/bin/package/copy-assets-cjs.js.map +1 -1
  339. package/dist/bin/package/copy-assets-cjs.mjs +45 -2
  340. package/dist/bin/package/copy-assets-cjs.mjs.map +1 -1
  341. package/dist/bin/package/copy-assets-esm.js +46 -3
  342. package/dist/bin/package/copy-assets-esm.js.map +1 -1
  343. package/dist/bin/package/copy-assets-esm.mjs +45 -2
  344. package/dist/bin/package/copy-assets-esm.mjs.map +1 -1
  345. package/dist/bin/package/deps.js +97 -3
  346. package/dist/bin/package/deps.js.map +1 -1
  347. package/dist/bin/package/deps.mjs +96 -2
  348. package/dist/bin/package/deps.mjs.map +1 -1
  349. package/dist/bin/package/gen-docs.js +134 -2
  350. package/dist/bin/package/gen-docs.js.map +1 -1
  351. package/dist/bin/package/gen-docs.mjs +111 -1
  352. package/dist/bin/package/gen-docs.mjs.map +1 -1
  353. package/dist/bin/package/publint.js +23 -2
  354. package/dist/bin/package/publint.js.map +1 -1
  355. package/dist/bin/package/publint.mjs +22 -1
  356. package/dist/bin/package/publint.mjs.map +1 -1
  357. package/dist/bin/package/recompile.js +329 -3
  358. package/dist/bin/package/recompile.js.map +1 -1
  359. package/dist/bin/package/recompile.mjs +328 -2
  360. package/dist/bin/package/recompile.mjs.map +1 -1
  361. package/dist/bin/package/tsconfig-gen-cjs.js +96 -2
  362. package/dist/bin/package/tsconfig-gen-cjs.js.map +1 -1
  363. package/dist/bin/package/tsconfig-gen-cjs.mjs +73 -1
  364. package/dist/bin/package/tsconfig-gen-cjs.mjs.map +1 -1
  365. package/dist/bin/package/tsconfig-gen-esm.js +98 -2
  366. package/dist/bin/package/tsconfig-gen-esm.js.map +1 -1
  367. package/dist/bin/package/tsconfig-gen-esm.mjs +75 -1
  368. package/dist/bin/package/tsconfig-gen-esm.mjs.map +1 -1
  369. package/dist/bin/package/tsconfig-gen.js +128 -3
  370. package/dist/bin/package/tsconfig-gen.js.map +1 -1
  371. package/dist/bin/package/tsconfig-gen.mjs +104 -1
  372. package/dist/bin/package/tsconfig-gen.mjs.map +1 -1
  373. package/dist/bin/publint.js +33 -2
  374. package/dist/bin/publint.js.map +1 -1
  375. package/dist/bin/publint.mjs +10 -1
  376. package/dist/bin/publint.mjs.map +1 -1
  377. package/dist/bin/rebuild.js +33 -2
  378. package/dist/bin/rebuild.js.map +1 -1
  379. package/dist/bin/rebuild.mjs +10 -1
  380. package/dist/bin/rebuild.mjs.map +1 -1
  381. package/dist/bin/recompile.js +33 -2
  382. package/dist/bin/recompile.js.map +1 -1
  383. package/dist/bin/recompile.mjs +10 -1
  384. package/dist/bin/recompile.mjs.map +1 -1
  385. package/dist/bin/reinstall.js +33 -2
  386. package/dist/bin/reinstall.js.map +1 -1
  387. package/dist/bin/reinstall.mjs +10 -1
  388. package/dist/bin/reinstall.mjs.map +1 -1
  389. package/dist/bin/relint.js +33 -2
  390. package/dist/bin/relint.js.map +1 -1
  391. package/dist/bin/relint.mjs +10 -1
  392. package/dist/bin/relint.mjs.map +1 -1
  393. package/dist/bin/sonar.js +33 -2
  394. package/dist/bin/sonar.js.map +1 -1
  395. package/dist/bin/sonar.mjs +10 -1
  396. package/dist/bin/sonar.mjs.map +1 -1
  397. package/dist/bin/test.js +33 -2
  398. package/dist/bin/test.js.map +1 -1
  399. package/dist/bin/test.mjs +10 -1
  400. package/dist/bin/test.mjs.map +1 -1
  401. package/dist/bin/tsconfig-gen-clean.js +33 -2
  402. package/dist/bin/tsconfig-gen-clean.js.map +1 -1
  403. package/dist/bin/tsconfig-gen-clean.mjs +10 -1
  404. package/dist/bin/tsconfig-gen-clean.mjs.map +1 -1
  405. package/dist/bin/tsconfig-gen.js +33 -2
  406. package/dist/bin/tsconfig-gen.js.map +1 -1
  407. package/dist/bin/tsconfig-gen.mjs +10 -1
  408. package/dist/bin/tsconfig-gen.mjs.map +1 -1
  409. package/dist/bin/up.js +33 -2
  410. package/dist/bin/up.js.map +1 -1
  411. package/dist/bin/up.mjs +10 -1
  412. package/dist/bin/up.mjs.map +1 -1
  413. package/dist/bin/updo.js +33 -2
  414. package/dist/bin/updo.js.map +1 -1
  415. package/dist/bin/updo.mjs +10 -1
  416. package/dist/bin/updo.mjs.map +1 -1
  417. package/dist/bin/upplug.js +33 -2
  418. package/dist/bin/upplug.js.map +1 -1
  419. package/dist/bin/upplug.mjs +10 -1
  420. package/dist/bin/upplug.mjs.map +1 -1
  421. package/dist/bin/upyarn.js +33 -2
  422. package/dist/bin/upyarn.js.map +1 -1
  423. package/dist/bin/upyarn.mjs +10 -1
  424. package/dist/bin/upyarn.mjs.map +1 -1
  425. package/dist/bin/xy-ts.js +1680 -2
  426. package/dist/bin/xy-ts.js.map +1 -1
  427. package/dist/bin/xy-ts.mjs +1657 -1
  428. package/dist/bin/xy-ts.mjs.map +1 -1
  429. package/dist/bin/xy.js +1680 -2
  430. package/dist/bin/xy.js.map +1 -1
  431. package/dist/bin/xy.mjs +1657 -1
  432. package/dist/bin/xy.mjs.map +1 -1
  433. package/dist/bin/yarn3only.js +33 -2
  434. package/dist/bin/yarn3only.js.map +1 -1
  435. package/dist/bin/yarn3only.mjs +10 -1
  436. package/dist/bin/yarn3only.mjs.map +1 -1
  437. package/dist/index.js +2315 -5
  438. package/dist/index.js.map +1 -1
  439. package/dist/index.mjs +2190 -2
  440. package/dist/index.mjs.map +1 -1
  441. package/dist/lib/checkResult.js +3 -1
  442. package/dist/lib/checkResult.js.map +1 -1
  443. package/dist/lib/checkResult.mjs +2 -1
  444. package/dist/lib/checkResult.mjs.map +1 -1
  445. package/dist/lib/createBuildConfig.js +19 -6
  446. package/dist/lib/createBuildConfig.js.map +1 -1
  447. package/dist/lib/createBuildConfig.mjs +15 -3
  448. package/dist/lib/createBuildConfig.mjs.map +1 -1
  449. package/dist/lib/defaultBuildConfig.js +3 -1
  450. package/dist/lib/defaultBuildConfig.js.map +1 -1
  451. package/dist/lib/defaultBuildConfig.mjs +2 -1
  452. package/dist/lib/defaultBuildConfig.mjs.map +1 -1
  453. package/dist/lib/dependencies/DuplicateDetector.js +18 -7
  454. package/dist/lib/dependencies/DuplicateDetector.js.map +1 -1
  455. package/dist/lib/dependencies/DuplicateDetector.mjs +16 -6
  456. package/dist/lib/dependencies/DuplicateDetector.mjs.map +1 -1
  457. package/dist/lib/dependencies/detectDuplicateDependencies.js +137 -5
  458. package/dist/lib/dependencies/detectDuplicateDependencies.js.map +1 -1
  459. package/dist/lib/dependencies/detectDuplicateDependencies.mjs +124 -3
  460. package/dist/lib/dependencies/detectDuplicateDependencies.mjs.map +1 -1
  461. package/dist/lib/dependencies/index.js +181 -5
  462. package/dist/lib/dependencies/index.js.map +1 -1
  463. package/dist/lib/dependencies/index.mjs +162 -2
  464. package/dist/lib/dependencies/index.mjs.map +1 -1
  465. package/dist/lib/file/ReadFileSyncOptions.js +3 -1
  466. package/dist/lib/file/ReadFileSyncOptions.js.map +1 -1
  467. package/dist/lib/file/ReadFileSyncOptions.mjs +2 -1
  468. package/dist/lib/file/ReadFileSyncOptions.mjs.map +1 -1
  469. package/dist/lib/file/constants.js +4 -2
  470. package/dist/lib/file/constants.js.map +1 -1
  471. package/dist/lib/file/constants.mjs +3 -2
  472. package/dist/lib/file/constants.mjs.map +1 -1
  473. package/dist/lib/file/fileLines.js +20 -8
  474. package/dist/lib/file/fileLines.js.map +1 -1
  475. package/dist/lib/file/fileLines.mjs +17 -6
  476. package/dist/lib/file/fileLines.mjs.map +1 -1
  477. package/dist/lib/file/index.js +52 -9
  478. package/dist/lib/file/index.js.map +1 -1
  479. package/dist/lib/file/index.mjs +38 -4
  480. package/dist/lib/file/index.mjs.map +1 -1
  481. package/dist/lib/file/tryReadFileSync.js +9 -3
  482. package/dist/lib/file/tryReadFileSync.js.map +1 -1
  483. package/dist/lib/file/tryReadFileSync.mjs +7 -2
  484. package/dist/lib/file/tryReadFileSync.mjs.map +1 -1
  485. package/dist/lib/generateIgnoreFiles.js +65 -9
  486. package/dist/lib/generateIgnoreFiles.js.map +1 -1
  487. package/dist/lib/generateIgnoreFiles.mjs +60 -5
  488. package/dist/lib/generateIgnoreFiles.mjs.map +1 -1
  489. package/dist/lib/index.js +1770 -39
  490. package/dist/lib/index.js.map +1 -1
  491. package/dist/lib/index.mjs +1714 -19
  492. package/dist/lib/index.mjs.map +1 -1
  493. package/dist/lib/jsonFormatters.js +3 -1
  494. package/dist/lib/jsonFormatters.js.map +1 -1
  495. package/dist/lib/jsonFormatters.mjs +2 -1
  496. package/dist/lib/jsonFormatters.mjs.map +1 -1
  497. package/dist/lib/parsedPackageJSON.js +3 -1
  498. package/dist/lib/parsedPackageJSON.js.map +1 -1
  499. package/dist/lib/parsedPackageJSON.mjs +2 -1
  500. package/dist/lib/parsedPackageJSON.mjs.map +1 -1
  501. package/dist/lib/processEx.js +17 -5
  502. package/dist/lib/processEx.js.map +1 -1
  503. package/dist/lib/processEx.mjs +14 -3
  504. package/dist/lib/processEx.mjs.map +1 -1
  505. package/dist/lib/runSteps.js +69 -8
  506. package/dist/lib/runSteps.js.map +1 -1
  507. package/dist/lib/runSteps.mjs +66 -6
  508. package/dist/lib/runSteps.mjs.map +1 -1
  509. package/dist/lib/runStepsAsync.js +72 -11
  510. package/dist/lib/runStepsAsync.js.map +1 -1
  511. package/dist/lib/runStepsAsync.mjs +69 -9
  512. package/dist/lib/runStepsAsync.mjs.map +1 -1
  513. package/dist/lib/runXy.js +109 -3
  514. package/dist/lib/runXy.js.map +1 -1
  515. package/dist/lib/runXy.mjs +95 -2
  516. package/dist/lib/runXy.mjs.map +1 -1
  517. package/dist/lib/runXyWithWarning.js +3 -1
  518. package/dist/lib/runXyWithWarning.js.map +1 -1
  519. package/dist/lib/runXyWithWarning.mjs +2 -1
  520. package/dist/lib/runXyWithWarning.mjs.map +1 -1
  521. package/dist/lib/safeExit.js +51 -5
  522. package/dist/lib/safeExit.js.map +1 -1
  523. package/dist/lib/safeExit.mjs +36 -3
  524. package/dist/lib/safeExit.mjs.map +1 -1
  525. package/dist/lib/string/empty.js +4 -2
  526. package/dist/lib/string/empty.js.map +1 -1
  527. package/dist/lib/string/empty.mjs +3 -2
  528. package/dist/lib/string/empty.mjs.map +1 -1
  529. package/dist/lib/string/index.js +21 -5
  530. package/dist/lib/string/index.js.map +1 -1
  531. package/dist/lib/string/index.mjs +11 -2
  532. package/dist/lib/string/index.mjs.map +1 -1
  533. package/dist/lib/string/union.js +3 -1
  534. package/dist/lib/string/union.js.map +1 -1
  535. package/dist/lib/string/union.mjs +2 -1
  536. package/dist/lib/string/union.mjs.map +1 -1
  537. package/dist/lib/withErrnoException.js +11 -3
  538. package/dist/lib/withErrnoException.js.map +1 -1
  539. package/dist/lib/withErrnoException.mjs +7 -2
  540. package/dist/lib/withErrnoException.mjs.map +1 -1
  541. package/dist/lib/withError.js +3 -1
  542. package/dist/lib/withError.js.map +1 -1
  543. package/dist/lib/withError.mjs +2 -1
  544. package/dist/lib/withError.mjs.map +1 -1
  545. package/dist/lib/xy/index.js +1689 -15
  546. package/dist/lib/xy/index.js.map +1 -1
  547. package/dist/lib/xy/index.mjs +1665 -7
  548. package/dist/lib/xy/index.mjs.map +1 -1
  549. package/dist/lib/xy/xy.js +1654 -11
  550. package/dist/lib/xy/xy.js.map +1 -1
  551. package/dist/lib/xy/xy.mjs +1651 -9
  552. package/dist/lib/xy/xy.mjs.map +1 -1
  553. package/dist/lib/xy/xyBuildCommands.js +329 -17
  554. package/dist/lib/xy/xyBuildCommands.js.map +1 -1
  555. package/dist/lib/xy/xyBuildCommands.mjs +311 -12
  556. package/dist/lib/xy/xyBuildCommands.mjs.map +1 -1
  557. package/dist/lib/xy/xyCommonCommands.js +652 -46
  558. package/dist/lib/xy/xyCommonCommands.js.map +1 -1
  559. package/dist/lib/xy/xyCommonCommands.mjs +624 -48
  560. package/dist/lib/xy/xyCommonCommands.mjs.map +1 -1
  561. package/dist/lib/xy/xyDeployCommands.js +167 -14
  562. package/dist/lib/xy/xyDeployCommands.js.map +1 -1
  563. package/dist/lib/xy/xyDeployCommands.mjs +150 -10
  564. package/dist/lib/xy/xyDeployCommands.mjs.map +1 -1
  565. package/dist/lib/xy/xyInstallCommands.js +412 -20
  566. package/dist/lib/xy/xyInstallCommands.js.map +1 -1
  567. package/dist/lib/xy/xyInstallCommands.mjs +393 -14
  568. package/dist/lib/xy/xyInstallCommands.mjs.map +1 -1
  569. package/dist/lib/xy/xyLintCommands.js +264 -26
  570. package/dist/lib/xy/xyLintCommands.js.map +1 -1
  571. package/dist/lib/xy/xyLintCommands.mjs +257 -20
  572. package/dist/lib/xy/xyLintCommands.mjs.map +1 -1
  573. package/dist/lib/xy/xyParseOptions.js +3 -1
  574. package/dist/lib/xy/xyParseOptions.js.map +1 -1
  575. package/dist/lib/xy/xyParseOptions.mjs +2 -1
  576. package/dist/lib/xy/xyParseOptions.mjs.map +1 -1
  577. package/dist/lib/yarn/index.js +59 -7
  578. package/dist/lib/yarn/index.js.map +1 -1
  579. package/dist/lib/yarn/index.mjs +48 -3
  580. package/dist/lib/yarn/index.mjs.map +1 -1
  581. package/dist/lib/yarn/isYarnVersionOrGreater.js +3 -1
  582. package/dist/lib/yarn/isYarnVersionOrGreater.js.map +1 -1
  583. package/dist/lib/yarn/isYarnVersionOrGreater.mjs +2 -1
  584. package/dist/lib/yarn/isYarnVersionOrGreater.mjs.map +1 -1
  585. package/dist/lib/yarn/workspace/Workspace.js +2 -0
  586. package/dist/lib/yarn/workspace/Workspace.js.map +1 -1
  587. package/dist/lib/yarn/workspace/index.js +33 -7
  588. package/dist/lib/yarn/workspace/index.js.map +1 -1
  589. package/dist/lib/yarn/workspace/index.mjs +24 -3
  590. package/dist/lib/yarn/workspace/index.mjs.map +1 -1
  591. package/dist/lib/yarn/workspace/yarnWorkspace.js +19 -3
  592. package/dist/lib/yarn/workspace/yarnWorkspace.js.map +1 -1
  593. package/dist/lib/yarn/workspace/yarnWorkspace.mjs +15 -2
  594. package/dist/lib/yarn/workspace/yarnWorkspace.mjs.map +1 -1
  595. package/dist/lib/yarn/workspace/yarnWorkspaces.js +3 -1
  596. package/dist/lib/yarn/workspace/yarnWorkspaces.js.map +1 -1
  597. package/dist/lib/yarn/workspace/yarnWorkspaces.mjs +2 -1
  598. package/dist/lib/yarn/workspace/yarnWorkspaces.mjs.map +1 -1
  599. package/dist/lib/yarn/yarnInitCwd.js +3 -1
  600. package/dist/lib/yarn/yarnInitCwd.js.map +1 -1
  601. package/dist/lib/yarn/yarnInitCwd.mjs +2 -1
  602. package/dist/lib/yarn/yarnInitCwd.mjs.map +1 -1
  603. package/package.json +4 -4
  604. package/tsup.config.ts +2 -2
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
+ var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
5
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
8
  var __export = (target, all) => {
7
9
  for (var name in all)
@@ -15,186 +17,790 @@ var __copyProps = (to, from, except, desc) => {
15
17
  }
16
18
  return to;
17
19
  };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
18
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/lib/xy/xyCommonCommands.ts
19
31
  var xyCommonCommands_exports = {};
20
32
  __export(xyCommonCommands_exports, {
21
33
  xyCommonCommands: () => xyCommonCommands
22
34
  });
23
35
  module.exports = __toCommonJS(xyCommonCommands_exports);
24
- var import_actions = require("../../actions");
25
- const xyCommonCommands = (args) => {
36
+
37
+ // src/lib/checkResult.ts
38
+ var import_chalk = __toESM(require("chalk"));
39
+ var checkResult = (name, result, level = "error", exitOnFail = false) => {
40
+ if (result) {
41
+ const exiting = exitOnFail ? "[Exiting Process]" : "[Continuing]";
42
+ const chalkFunc = level === "error" ? import_chalk.default.red : import_chalk.default.yellow;
43
+ console[level](chalkFunc(`${name} had ${result} failures ${exiting}`));
44
+ if (exitOnFail) {
45
+ process.exit(result);
46
+ }
47
+ }
48
+ };
49
+
50
+ // src/lib/createBuildConfig.ts
51
+ var import_fs = require("fs");
52
+
53
+ // src/lib/defaultBuildConfig.ts
54
+ var defaultBuildConfig = {
55
+ compilerOptions: {
56
+ rootDir: "src",
57
+ rootDirs: ["package.json"]
58
+ },
59
+ exclude: ["**/build", "**/dist", "**/node_modules", "**/*.spec.*", "**/*.spec", "**/*.stories.*", "**/*.example.*", "**/spec/*", "**/stories/*"],
60
+ include: ["src"]
61
+ };
62
+
63
+ // src/lib/createBuildConfig.ts
64
+ var getGeneralTypescriptConfig = (location) => {
65
+ let generalConfig;
66
+ try {
67
+ generalConfig = (0, import_fs.readFileSync)(`${location}/tsconfig.json`, { encoding: "utf8" });
68
+ } catch (ex) {
69
+ return false;
70
+ }
71
+ return JSON.parse(generalConfig);
72
+ };
73
+ var createBuildConfig = (location, module2, target, outDirSuffix) => {
74
+ const generalConfigObject = getGeneralTypescriptConfig(location);
75
+ if (generalConfigObject === false) {
76
+ return void 0;
77
+ }
78
+ return {
79
+ ...generalConfigObject,
80
+ compilerOptions: {
81
+ ...defaultBuildConfig.compilerOptions,
82
+ ...generalConfigObject.compilerOptions ?? {},
83
+ module: module2,
84
+ outDir: `./${generalConfigObject.compilerOptions?.outDir ?? "dist"}/${outDirSuffix}`,
85
+ target
86
+ },
87
+ exclude: [...generalConfigObject.exclude ?? [], ...defaultBuildConfig.exclude],
88
+ include: [...generalConfigObject.include ?? [], ...defaultBuildConfig.include]
89
+ };
90
+ };
91
+
92
+ // src/lib/processEx.ts
93
+ var import_chalk2 = __toESM(require("chalk"));
94
+
95
+ // src/lib/withError.ts
96
+ var withError = (ex, closure, predicate = (ex2) => ex2.name !== void 0 && ex2.message !== void 0) => {
97
+ return predicate(ex) ? closure(ex) : void 0;
98
+ };
99
+
100
+ // src/lib/withErrnoException.ts
101
+ var withErrnoException = (ex, closure) => {
102
+ return withError(ex, closure, (ex2) => ex2.errno !== void 0);
103
+ };
104
+
105
+ // src/lib/processEx.ts
106
+ var processEx = (ex) => {
107
+ const error = typeof ex === "string" ? Error(ex) : ex;
108
+ const exitCode = withErrnoException(error, (error2) => {
109
+ if (error2.code === "ENOENT") {
110
+ console.error(import_chalk2.default.red(`'${error2.path}' not found.`));
111
+ } else {
112
+ console.error(import_chalk2.default.red(`Errno: ${error2.code}`));
113
+ }
114
+ return error2.errno ?? -1;
115
+ }) ?? withError(error, (error2) => {
116
+ console.error(import_chalk2.default.red(`${error2.name}: ${error2.message}`));
117
+ return -1;
118
+ }) ?? (() => {
119
+ console.error(import_chalk2.default.red(`Unexpected Error: ${JSON.stringify(ex, null, 2)}`));
120
+ return -1;
121
+ })();
122
+ process.exit(process.exitCode ?? exitCode);
123
+ };
124
+
125
+ // src/lib/safeExit.ts
126
+ var safeExit = (func, exitOnFail = true) => {
127
+ try {
128
+ const result = func();
129
+ if (result && exitOnFail) {
130
+ process.exit(result);
131
+ }
132
+ return result;
133
+ } catch (ex) {
134
+ return processEx(ex);
135
+ }
136
+ };
137
+
138
+ // src/lib/file/constants.ts
139
+ var WINDOWS_NEWLINE_REGEX = /\r\n/g;
140
+ var CROSS_PLATFORM_NEWLINE = "\n";
141
+
142
+ // src/lib/file/fileLines.ts
143
+ var import_node_fs = require("fs");
144
+
145
+ // src/lib/string/empty.ts
146
+ var empty = (value) => value?.trim().length === 0;
147
+ var notEmpty = (value) => !empty(value);
148
+
149
+ // src/lib/string/union.ts
150
+ var union = (a, b) => /* @__PURE__ */ new Set([...new Set(a), ...new Set(b)]);
151
+
152
+ // src/lib/file/ReadFileSyncOptions.ts
153
+ var defaultReadFileSyncOptions = { encoding: "utf-8" };
154
+
155
+ // src/lib/file/fileLines.ts
156
+ var readLines = (uri, options = defaultReadFileSyncOptions) => (0, import_node_fs.existsSync)(uri) ? (0, import_node_fs.readFileSync)(uri, options).replace(WINDOWS_NEWLINE_REGEX, CROSS_PLATFORM_NEWLINE).split(CROSS_PLATFORM_NEWLINE) : [];
157
+ var readNonEmptyLines = (uri, options = defaultReadFileSyncOptions) => readLines(uri, options).filter(notEmpty);
158
+ var writeLines = (uri, lines, options = defaultReadFileSyncOptions) => {
159
+ const existing = (0, import_node_fs.existsSync)(uri) ? (0, import_node_fs.readFileSync)(uri, options) : void 0;
160
+ const desired = lines.join(CROSS_PLATFORM_NEWLINE);
161
+ if (existing !== desired)
162
+ (0, import_node_fs.writeFileSync)(uri, desired, options);
163
+ };
164
+
165
+ // src/lib/generateIgnoreFiles.ts
166
+ var import_chalk3 = __toESM(require("chalk"));
167
+
168
+ // src/lib/yarn/isYarnVersionOrGreater.ts
169
+ var import_child_process = require("child_process");
170
+ var isYarnVersionOrGreater = (major, minor, patch) => {
171
+ const result = (0, import_child_process.spawnSync)("yarn", ["-v"], { encoding: "utf8", shell: true });
172
+ const version = result.stdout.toString().replaceAll("\n", "");
173
+ const versionNumbers = version.split(".").map((ver) => parseInt(ver));
174
+ const majorDelta = versionNumbers[0] - major;
175
+ const minorDelta = versionNumbers[1] - (minor ?? versionNumbers[1]);
176
+ const patchDelta = versionNumbers[2] - (patch ?? versionNumbers[2]);
177
+ const majorOk = majorDelta >= 0;
178
+ const minorOk = majorDelta > 0 || minorDelta >= 0;
179
+ const patchOk = majorDelta > 0 || minorDelta > 0 || patchDelta >= 0;
180
+ return [majorOk && minorOk && patchOk, version];
181
+ };
182
+
183
+ // src/lib/yarn/workspace/yarnWorkspaces.ts
184
+ var import_child_process2 = require("child_process");
185
+ var yarnWorkspaces = () => {
186
+ const result = (0, import_child_process2.spawnSync)("yarn", ["workspaces", "list", "--json", "--recursive"], { encoding: "utf8", shell: true });
187
+ if (result.error) {
188
+ throw result.error;
189
+ }
190
+ const list = result.stdout.toString().split("\n").slice(0, -1).map((item) => {
191
+ return JSON.parse(item);
192
+ });
193
+ return list;
194
+ };
195
+
196
+ // src/lib/yarn/workspace/yarnWorkspace.ts
197
+ var yarnWorkspace = (pkg) => {
198
+ const workspace = yarnWorkspaces().find(({ name }) => name === pkg);
199
+ if (!workspace)
200
+ throw new Error(`Workspace ${pkg} not found`);
201
+ return workspace;
202
+ };
203
+
204
+ // src/lib/yarn/yarnInitCwd.ts
205
+ var INIT_CWD = () => {
206
+ if (!process.env.INIT_CWD)
207
+ console.error("Missing INIT_CWD");
208
+ return process.env.INIT_CWD;
209
+ };
210
+
211
+ // src/lib/generateIgnoreFiles.ts
212
+ var mergeEntries = (a, b) => [...union(a, b)].sort();
213
+ var generateIgnoreFiles = (filename3, pkg) => {
214
+ console.log(import_chalk3.default.green(`Generate ${filename3} Files`));
215
+ const cwd = INIT_CWD() ?? ".";
216
+ const workspaces = pkg ? [yarnWorkspace(pkg)] : yarnWorkspaces();
217
+ const readEntries = (location) => readNonEmptyLines(`${location}/${filename3}`);
218
+ const writeEntries = (location, entries) => writeLines(`${location}/${filename3}`, entries);
219
+ const results = workspaces.map(({ location, name }) => {
220
+ try {
221
+ writeEntries(location, mergeEntries(readEntries(cwd), readEntries(location)));
222
+ return 0;
223
+ } catch (ex) {
224
+ const error = ex;
225
+ console.error(`Generate ${filename3} Files [${name}] [${error.message}]`);
226
+ return 1;
227
+ }
228
+ });
229
+ const succeeded = results.every((result) => result === 0);
230
+ return succeeded ? 0 : 1;
231
+ };
232
+
233
+ // src/lib/runSteps.ts
234
+ var import_chalk4 = __toESM(require("chalk"));
235
+ var import_child_process3 = require("child_process");
236
+ var import_fs2 = require("fs");
237
+ var runSteps = (name, steps, exitOnFail = true, messages) => {
238
+ return safeExit(() => {
239
+ const pkgName = process.env.npm_package_name;
240
+ console.log(import_chalk4.default.green(`${name} [${pkgName}]`));
241
+ let totalStatus = 0;
242
+ for (let i = 0; i < steps.length; i++) {
243
+ const [command, args, config] = steps[i];
244
+ if (messages?.[i]) {
245
+ console.log(import_chalk4.default.gray(messages?.[i]));
246
+ }
247
+ const argList = Array.isArray(args) ? args : args.split(" ");
248
+ if (command === "node" && !(0, import_fs2.existsSync)(argList[0])) {
249
+ throw Error(`File not found [${argList[0]}]`);
250
+ }
251
+ const status = (0, import_child_process3.spawnSync)(command, Array.isArray(args) ? args : args.split(" "), {
252
+ ...config,
253
+ encoding: "utf8",
254
+ env: { FORCE_COLOR: "3", ...process.env },
255
+ shell: true,
256
+ stdio: "inherit"
257
+ }).status ?? 0;
258
+ checkResult(name, status, "error", exitOnFail);
259
+ totalStatus += status ?? 0;
260
+ }
261
+ return totalStatus;
262
+ }, !!exitOnFail);
263
+ };
264
+
265
+ // src/actions/clean-docs.ts
266
+ var import_chalk5 = __toESM(require("chalk"));
267
+ var import_path = __toESM(require("path"));
268
+ var import_rimraf = require("rimraf");
269
+ var cleanDocs = () => {
270
+ const pkgName = process.env.npm_package_name;
271
+ console.log(import_chalk5.default.green(`Cleaning Docs [${pkgName}]`));
272
+ yarnWorkspaces().map(({ location }) => (0, import_rimraf.rimrafSync)(import_path.default.join(location, "docs"), { glob: true }));
273
+ return 0;
274
+ };
275
+
276
+ // src/actions/dead.ts
277
+ var dead = () => {
278
+ return runSteps("Dead", [["yarn", ["ts-prune", "-p", "tsconfig.json"]]]);
279
+ };
280
+
281
+ // src/actions/deps.ts
282
+ var import_chalk6 = __toESM(require("chalk"));
283
+ var deps = ({ pkg, incremental }) => {
284
+ pkg ? depsPackage({ pkg }) : depsAll({ incremental });
285
+ return 0;
286
+ };
287
+ var depsPackage = ({ pkg }) => {
288
+ const steps = [["yarn", ["workspace", pkg, "run", "package-deps"]]];
289
+ return runSteps(`Deps [${pkg}]`, [...steps]);
290
+ };
291
+ var depsAll = ({ incremental, jobs }) => {
292
+ const start = Date.now();
293
+ const jobsOptions = jobs ? ["-j", `${jobs}`] : [];
294
+ if (jobs) {
295
+ console.log(import_chalk6.default.blue(`Jobs set to [${jobs}]`));
296
+ }
297
+ const incrementalOptions = incremental ? ["--since", "-pA"] : ["-pA"];
298
+ const steps = [["yarn", ["workspaces", "foreach", ...jobsOptions, ...incrementalOptions, "run", "package-deps"]]];
299
+ const result = runSteps(`Deps${incremental ? "-Incremental" : ""} [All]`, [...steps]);
300
+ console.log(`${import_chalk6.default.gray("Dep checked in")} [${import_chalk6.default.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${import_chalk6.default.gray("seconds")}`);
301
+ return result;
302
+ };
303
+
304
+ // src/actions/gen-docs.ts
305
+ var genDocs = ({ pkg, incremental }) => {
306
+ return pkg ? genDocsPackage({ pkg }) : genDocsAll({ incremental });
307
+ };
308
+ var genDocsPackage = ({ pkg }) => {
309
+ const steps = [["yarn", ["workspace", pkg, "run", "package-gen-docs"]]];
310
+ return runSteps(`GenDocs [${pkg}]`, [...steps]);
311
+ };
312
+ var genDocsAll = ({ incremental }) => {
313
+ const incrementalOptions = incremental ? ["--since", "-pA"] : ["-pA"];
314
+ const steps = [["yarn", ["workspaces", "foreach", ...incrementalOptions, "run", "package-gen-docs"]]];
315
+ return runSteps(`GenDocs [All${incremental ? "-Incremental" : ""}]`, [...steps]);
316
+ };
317
+
318
+ // src/actions/gitignore-gen.ts
319
+ var filename = ".gitignore";
320
+ var gitignoreGen = (pkg) => generateIgnoreFiles(filename, pkg);
321
+
322
+ // src/actions/gitlint.ts
323
+ var import_chalk7 = __toESM(require("chalk"));
324
+ var import_parse_git_config = require("parse-git-config");
325
+ var gitlint = () => {
326
+ console.log(`
327
+ Gitlint Start [${process.cwd()}]
328
+ `);
329
+ let valid = 0;
330
+ let warnings = 0;
331
+ const errors = 0;
332
+ const gitConfig = (0, import_parse_git_config.sync)();
333
+ const warn = (message) => {
334
+ console.warn(import_chalk7.default.yellow(`Warning: ${message}`));
335
+ warnings++;
336
+ };
337
+ if (gitConfig.core.ignorecase) {
338
+ warn("Please set core.ignorecase to FALSE in .git/config file [run yarn gitlint-fix]");
339
+ } else {
340
+ valid++;
341
+ }
342
+ if (gitConfig.core.autocrlf !== false) {
343
+ warn("Please set core.autocrlf to FALSE in .git/config file [run yarn gitlint-fix]");
344
+ } else {
345
+ valid++;
346
+ }
347
+ if (gitConfig.core.eol !== "lf") {
348
+ warn('Please set core.eol to "lf" in .git/config file [run yarn gitlint-fix]');
349
+ } else {
350
+ valid++;
351
+ }
352
+ const resultMessages = [];
353
+ if (valid > 0) {
354
+ resultMessages.push(import_chalk7.default.green(`Passed: ${valid}`));
355
+ }
356
+ if (warnings > 0) {
357
+ resultMessages.push(import_chalk7.default.yellow(`Warnings: ${warnings}`));
358
+ }
359
+ if (errors > 0) {
360
+ resultMessages.push(import_chalk7.default.red(` Errors: ${errors}`));
361
+ }
362
+ console.warn(`Gitlint Finish [ ${resultMessages.join(" | ")} ]
363
+ `);
364
+ return warnings + errors === 0 ? 1 : 0;
365
+ };
366
+
367
+ // src/actions/gitlint-fix.ts
368
+ var import_chalk8 = __toESM(require("chalk"));
369
+ var import_child_process4 = require("child_process");
370
+ var import_parse_git_config2 = require("parse-git-config");
371
+ var gitlintFix = () => {
372
+ console.log(`
373
+ Gitlint Fix Start [${process.cwd()}]
374
+ `);
375
+ const gitConfig = (0, import_parse_git_config2.sync)();
376
+ if (gitConfig.core.ignorecase) {
377
+ (0, import_child_process4.execSync)("git config core.ignorecase false", { stdio: "inherit" });
378
+ console.warn(import_chalk8.default.yellow("\nGitlint Fix: Updated core.ignorecase to be false\n"));
379
+ }
380
+ if (gitConfig.core.autocrlf !== false) {
381
+ (0, import_child_process4.execSync)("git config core.autocrlf false", { stdio: "inherit" });
382
+ console.warn(import_chalk8.default.yellow("\nGitlint Fix: Updated core.autocrlf to be false\n"));
383
+ }
384
+ if (gitConfig.core.eol !== "lf") {
385
+ (0, import_child_process4.execSync)("git config core.eol lf", { stdio: "inherit" });
386
+ console.warn(import_chalk8.default.yellow('\nGitlint Fix: Updated core.eol to be "lf"\n'));
387
+ }
388
+ return 1;
389
+ };
390
+
391
+ // src/actions/license.ts
392
+ var import_chalk9 = __toESM(require("chalk"));
393
+ var import_license_checker = require("license-checker");
394
+ var license = async (pkg) => {
395
+ const workspaces = yarnWorkspaces();
396
+ const workspaceList = workspaces.filter(({ name }) => {
397
+ return pkg === void 0 || name === pkg;
398
+ });
399
+ const exclude = [
400
+ "MIT",
401
+ "MIT*",
402
+ "ISC",
403
+ "Apache-2.0",
404
+ "BSD",
405
+ "BSD*",
406
+ "BSD-2-Clause",
407
+ "BSD-3-Clause",
408
+ "CC-BY-4.0",
409
+ "Unlicense",
410
+ "CC-BY-3.0",
411
+ "CC0-1.0",
412
+ "LGPL-3.0-only",
413
+ "LGPL-3.0",
414
+ "LGPL-3.0-or-later",
415
+ "Python-2.0"
416
+ ];
417
+ console.log(import_chalk9.default.green("License Checker"));
418
+ return (await Promise.all(
419
+ workspaceList.map(({ location, name }) => {
420
+ return new Promise((resolve) => {
421
+ (0, import_license_checker.init)({ production: true, start: location }, (error, packages) => {
422
+ if (error) {
423
+ console.error(import_chalk9.default.red(`License Checker [${name}] Error`));
424
+ console.error(import_chalk9.default.gray(error));
425
+ console.log("\n");
426
+ resolve(1);
427
+ } else {
428
+ console.log(import_chalk9.default.green(`License Checker [${name}]`));
429
+ let count = 0;
430
+ Object.entries(packages).forEach(([name2, info]) => {
431
+ const licenses = Array.isArray(info.licenses) ? info.licenses : [info.licenses];
432
+ licenses.forEach((license2) => {
433
+ if (license2) {
434
+ if (license2[0] === "(" && license2[license2.length - 1] === ")") {
435
+ license2 = license2.substring(1, license2.length - 2);
436
+ }
437
+ const orLicenses = license2.split(" OR ");
438
+ let orLicenseFound = false;
439
+ orLicenses.forEach((orLicense) => {
440
+ if (exclude.includes(orLicense)) {
441
+ orLicenseFound = true;
442
+ }
443
+ });
444
+ if (!orLicenseFound) {
445
+ count++;
446
+ console.warn(import_chalk9.default.yellow(`${name2}: Package License not allowed [${license2}]`));
447
+ }
448
+ }
449
+ });
450
+ });
451
+ console.log("\n");
452
+ resolve(count);
453
+ }
454
+ });
455
+ });
456
+ })
457
+ )).reduce((prev, value) => prev || value, 0);
458
+ };
459
+
460
+ // src/actions/npmignore-gen.ts
461
+ var filename2 = ".npmignore";
462
+ var npmignoreGen = (pkg) => generateIgnoreFiles(filename2, pkg);
463
+
464
+ // src/actions/retest.ts
465
+ var retest = () => {
466
+ return runSteps("Test", [
467
+ ["yarn", ["jest", "--clearCache"]],
468
+ ["yarn", ["jest", "."]]
469
+ ]);
470
+ };
471
+
472
+ // src/actions/test.ts
473
+ var test = () => {
474
+ return runSteps("Test", [["yarn", ["jest", "."]]]);
475
+ };
476
+
477
+ // src/actions/tsconfig-gen-cjs.ts
478
+ var import_chalk10 = __toESM(require("chalk"));
479
+ var import_fs3 = require("fs");
480
+ var tsconfigGenCjs = (pkg) => {
481
+ const workspaces = pkg ? [yarnWorkspace(pkg)] : yarnWorkspaces();
482
+ console.log(import_chalk10.default.green("Generate Configs [CJS]"));
483
+ return workspaces.map(({ location, name }) => {
484
+ try {
485
+ const configObject = createBuildConfig(location, "CommonJS", "ES6", "cjs");
486
+ if (configObject) {
487
+ const config = JSON.stringify(createBuildConfig(location, "CommonJS", "ES6", "cjs"), null, 2);
488
+ let currentConfig;
489
+ try {
490
+ currentConfig = (0, import_fs3.readFileSync)(`${location}/.tsconfig.build.cjs.json`, { encoding: "utf8" });
491
+ } catch (ex) {
492
+ currentConfig = void 0;
493
+ }
494
+ if (currentConfig !== config) {
495
+ console.log(import_chalk10.default.gray(`Updating CJS tsconfig [${name}]`));
496
+ (0, import_fs3.writeFileSync)(`${location}/.tsconfig.build.cjs.json`, config, { encoding: "utf8" });
497
+ }
498
+ }
499
+ return 0;
500
+ } catch (ex) {
501
+ const error = ex;
502
+ console.error(`tsconfig (CJS) generate failed [${name}] [${error.message}]`);
503
+ return 1;
504
+ }
505
+ }).reduce((prev, value) => prev || value, 0);
506
+ };
507
+
508
+ // src/actions/tsconfig-gen-esm.ts
509
+ var import_chalk11 = __toESM(require("chalk"));
510
+ var import_fs4 = require("fs");
511
+ var tsconfigGenEsm = (pkg) => {
512
+ const workspaces = pkg ? [yarnWorkspace(pkg)] : yarnWorkspaces();
513
+ console.log(import_chalk11.default.green("Generate Configs [ESM]"));
514
+ return workspaces.map(({ location, name }) => {
515
+ try {
516
+ const configObject = createBuildConfig(location, "ESNext", "ESNext", "esm");
517
+ if (configObject) {
518
+ const config = JSON.stringify(configObject, null, 2);
519
+ let currentConfig;
520
+ try {
521
+ currentConfig = (0, import_fs4.readFileSync)(`${location}/.tsconfig.build.esm.json`, { encoding: "utf8" });
522
+ } catch (ex) {
523
+ currentConfig = void 0;
524
+ }
525
+ if (currentConfig !== config) {
526
+ console.log(import_chalk11.default.gray(`Updating ESM tsconfig [${name}]`));
527
+ (0, import_fs4.writeFileSync)(`${location}/.tsconfig.build.esm.json`, config, { encoding: "utf8" });
528
+ }
529
+ }
530
+ return 0;
531
+ } catch (ex) {
532
+ const error = ex;
533
+ console.error(`tsconfig (ESM) generate failed [${name}] [${error.message}]`);
534
+ return 1;
535
+ }
536
+ }).reduce((prev, value) => prev || value, 0);
537
+ };
538
+
539
+ // src/actions/tsconfig-gen-test.ts
540
+ var import_chalk12 = __toESM(require("chalk"));
541
+ var import_fs5 = require("fs");
542
+ var tsconfigName = ".tsconfig.build.test.json";
543
+ var tsconfig = JSON.stringify(
544
+ {
545
+ extends: "./tsconfig.json",
546
+ include: ["src/**/*.spec.ts"]
547
+ },
548
+ null,
549
+ 2
550
+ );
551
+ var tsconfigGenTest = (pkg) => {
552
+ const workspaces = pkg ? [yarnWorkspace(pkg)] : yarnWorkspaces();
553
+ console.log(import_chalk12.default.green("Generate Configs [Test]"));
554
+ return workspaces.map(({ location, name }) => {
555
+ try {
556
+ let currentConfig;
557
+ try {
558
+ currentConfig = (0, import_fs5.readFileSync)(`${location}/${tsconfigName}`, { encoding: "utf8" });
559
+ } catch (ex) {
560
+ currentConfig = void 0;
561
+ }
562
+ if (currentConfig !== tsconfig) {
563
+ console.log(import_chalk12.default.gray(`Updating TEST tsconfig [${name}]`));
564
+ (0, import_fs5.writeFileSync)(`${location}/${tsconfigName}`, tsconfig, { encoding: "utf8" });
565
+ }
566
+ return 0;
567
+ } catch (ex) {
568
+ const error = ex;
569
+ console.error(`tsconfig (TEST) generate failed [${name}] [${error.message}]`);
570
+ return 1;
571
+ }
572
+ }).reduce((prev, value) => prev || value, 0);
573
+ };
574
+
575
+ // src/actions/tsconfig-gen.ts
576
+ var tsconfigGen = ({ target, pkg }) => {
577
+ switch (target) {
578
+ case "esm":
579
+ return tsconfigGenEsm(pkg) || tsconfigGenTest(pkg);
580
+ case "cjs":
581
+ return tsconfigGenCjs(pkg) || tsconfigGenTest(pkg);
582
+ default:
583
+ return tsconfigGenEsm(pkg) || tsconfigGenCjs(pkg) || tsconfigGenTest(pkg);
584
+ }
585
+ };
586
+
587
+ // src/actions/tsconfig-gen-clean.ts
588
+ var import_chalk13 = __toESM(require("chalk"));
589
+ var import_fs6 = require("fs");
590
+ var tsconfigGenClean = (pkg) => {
591
+ const workspaces = pkg ? [yarnWorkspace(pkg)] : yarnWorkspaces();
592
+ console.log(import_chalk13.default.green("Clean TSConfigs"));
593
+ return workspaces.map(({ location, name }) => {
594
+ const dist = `${location}/**/.tsconfig*`;
595
+ try {
596
+ (0, import_fs6.rmSync)(dist, { force: true, recursive: true });
597
+ return 0;
598
+ } catch (ex) {
599
+ const error = ex;
600
+ console.error(`Clean Failed [${name}, ${error.message}]`);
601
+ return 1;
602
+ }
603
+ }).reduce((prev, result) => prev || result, 0);
604
+ };
605
+
606
+ // src/actions/upplug.ts
607
+ var updateYarnPlugins = () => {
608
+ return runSteps("Update Yarn Plugins", [
609
+ ["yarn", ["plugin", "import", "https://mskelton.dev/yarn-outdated/v3"]],
610
+ ["yarn", ["plugin", "import", "version"]],
611
+ ["yarn", ["plugin", "import", "interactive-tools"]],
612
+ ["yarn", ["plugin", "import", "workspace-tools"]]
613
+ ]);
614
+ };
615
+
616
+ // src/actions/upyarn.ts
617
+ var updateYarnVersion = () => {
618
+ return runSteps("Update Yarn Version", [["yarn", ["set", "version", "latest"]]]);
619
+ };
620
+
621
+ // src/actions/yarn3only.ts
622
+ var yarn3Only = () => {
623
+ const [valid, version] = isYarnVersionOrGreater(3);
624
+ if (!valid) {
625
+ processEx(`Invalid Yarn version [${version}]`);
626
+ }
627
+ return 0;
628
+ };
629
+
630
+ // src/lib/xy/xyCommonCommands.ts
631
+ var xyCommonCommands = (args) => {
26
632
  return args.command(
27
633
  "license [package]",
28
634
  "License - Check licenses of dependencies",
29
- (yargs2) => {
30
- return yargs2.positional("package", {
635
+ (yargs) => {
636
+ return yargs.positional("package", {
31
637
  describe: "Specific package to check"
32
638
  });
33
639
  },
34
640
  async (argv) => {
35
641
  if (argv.verbose)
36
642
  console.log(`License: ${argv.package ?? "all"}`);
37
- process.exitCode = await (0, import_actions.license)();
643
+ process.exitCode = await license();
38
644
  }
39
645
  ).command(
40
646
  "dead [package]",
41
647
  "Dead - Check for dead code",
42
- (yargs2) => {
43
- return yargs2.positional("package", {
648
+ (yargs) => {
649
+ return yargs.positional("package", {
44
650
  describe: "Specific package to check"
45
651
  });
46
652
  },
47
653
  (argv) => {
48
654
  if (argv.verbose)
49
655
  console.log("Dead");
50
- process.exitCode = (0, import_actions.dead)();
656
+ process.exitCode = dead();
51
657
  }
52
658
  ).command(
53
659
  "deps [package]",
54
660
  "Deps - Check for unused or missing dependencies",
55
- (yargs2) => {
56
- return yargs2.positional("package", {
661
+ (yargs) => {
662
+ return yargs.positional("package", {
57
663
  describe: "Specific package to check"
58
664
  });
59
665
  },
60
666
  (argv) => {
61
667
  if (argv.verbose)
62
668
  console.log(`Checking Dependencies: ${argv.package ?? "all"}`);
63
- process.exitCode = (0, import_actions.deps)({ incremental: !!argv.incremental, jobs: argv.jobs, pkg: argv.package });
669
+ process.exitCode = deps({ incremental: !!argv.incremental, jobs: argv.jobs, pkg: argv.package });
64
670
  }
65
671
  ).command(
66
672
  "gen-docs [package]",
67
673
  "GenDocs - Generate TypeDocs",
68
- (yargs2) => {
69
- return yargs2.positional("package", {
674
+ (yargs) => {
675
+ return yargs.positional("package", {
70
676
  describe: "Specific package to generate docs for"
71
677
  });
72
678
  },
73
679
  (argv) => {
74
680
  if (argv.verbose)
75
681
  console.log(`Generating TypeDocs: ${argv.package ?? "all"}`);
76
- process.exitCode = (0, import_actions.genDocs)({ incremental: !!argv.incremental, pkg: argv.package });
682
+ process.exitCode = genDocs({ incremental: !!argv.incremental, pkg: argv.package });
77
683
  }
78
684
  ).command(
79
685
  "clean-docs",
80
686
  "CleanDocs - Clean TypeDocs",
81
- (yargs2) => yargs2,
687
+ (yargs) => yargs,
82
688
  (argv) => {
83
689
  if (argv.verbose)
84
690
  console.log("Cleaning TypeDocs: all");
85
- process.exitCode = (0, import_actions.cleanDocs)();
691
+ process.exitCode = cleanDocs();
86
692
  }
87
693
  ).command(
88
694
  "gitlint [package]",
89
695
  "Gitlint - Lint your git config",
90
- (yargs2) => {
91
- return yargs2;
696
+ (yargs) => {
697
+ return yargs;
92
698
  },
93
699
  (argv) => {
94
700
  if (argv.verbose)
95
701
  console.log("Gitlint");
96
- process.exitCode = argv.fix ? (0, import_actions.gitlintFix)() : (0, import_actions.gitlint)();
702
+ process.exitCode = argv.fix ? gitlintFix() : gitlint();
97
703
  }
98
704
  ).command(
99
705
  "gitignore-gen",
100
706
  "GitIgnore Gen - Generate .gitignore files",
101
- (yargs2) => {
102
- return yargs2;
707
+ (yargs) => {
708
+ return yargs;
103
709
  },
104
710
  (argv) => {
105
711
  if (argv.verbose)
106
712
  console.log("GitIgnore Gen");
107
- process.exitCode = (0, import_actions.gitignoreGen)();
713
+ process.exitCode = gitignoreGen();
108
714
  }
109
715
  ).command(
110
716
  "npmignore-gen",
111
717
  "NpmIgnore Gen - Generate .npmignore files",
112
- (yargs2) => {
113
- return yargs2;
718
+ (yargs) => {
719
+ return yargs;
114
720
  },
115
721
  (argv) => {
116
722
  if (argv.verbose)
117
723
  console.log("NpmIgnore Gen");
118
- process.exitCode = (0, import_actions.npmignoreGen)();
724
+ process.exitCode = npmignoreGen();
119
725
  }
120
726
  ).command(
121
727
  "retest",
122
728
  "Re-Test - Run Jest Tests with cleaned cache",
123
- (yargs2) => {
124
- return yargs2;
729
+ (yargs) => {
730
+ return yargs;
125
731
  },
126
732
  (argv) => {
127
733
  if (argv.verbose)
128
734
  console.log("Re-Testing");
129
- process.exitCode = (0, import_actions.retest)();
735
+ process.exitCode = retest();
130
736
  }
131
737
  ).command(
132
738
  "test",
133
739
  "Test - Run Jest Tests",
134
- (yargs2) => {
135
- return yargs2;
740
+ (yargs) => {
741
+ return yargs;
136
742
  },
137
743
  (argv) => {
138
744
  if (argv.verbose)
139
745
  console.log("Testing");
140
- process.exitCode = (0, import_actions.test)();
746
+ process.exitCode = test();
141
747
  }
142
748
  ).command(
143
749
  "tsconfig-gen [package]",
144
750
  "Tsconfig Gen - Generate tsconfig.json file for building",
145
- (yargs2) => {
146
- return yargs2.positional("package", {
751
+ (yargs) => {
752
+ return yargs.positional("package", {
147
753
  describe: "Specific package for generation"
148
754
  });
149
755
  },
150
756
  (argv) => {
151
757
  if (argv.verbose)
152
758
  console.log(`TsconfigGen: ${argv.package ?? "all"}`);
153
- process.exitCode = (0, import_actions.tsconfigGen)({ pkg: argv.package, target: argv.target });
759
+ process.exitCode = tsconfigGen({ pkg: argv.package, target: argv.target });
154
760
  }
155
761
  ).command(
156
762
  "tsconfig-clean",
157
763
  "Tsconfig Clean - Remove generated tsconfig.json files",
158
- (yargs2) => {
159
- return yargs2;
764
+ (yargs) => {
765
+ return yargs;
160
766
  },
161
767
  (argv) => {
162
768
  if (argv.verbose)
163
769
  console.log("Tsconfig Clean");
164
- process.exitCode = (0, import_actions.tsconfigGenClean)();
770
+ process.exitCode = tsconfigGenClean();
165
771
  }
166
772
  ).command(
167
773
  "upplug",
168
774
  "UpPlug - Update Yarn Plugins",
169
- (yargs2) => {
170
- return yargs2;
775
+ (yargs) => {
776
+ return yargs;
171
777
  },
172
778
  (argv) => {
173
779
  if (argv.verbose)
174
780
  console.log("UpPlug");
175
- process.exitCode = (0, import_actions.updateYarnPlugins)();
781
+ process.exitCode = updateYarnPlugins();
176
782
  }
177
783
  ).command(
178
784
  "upyarn",
179
785
  "UpYarn - Update Yarn Version",
180
- (yargs2) => {
181
- return yargs2;
786
+ (yargs) => {
787
+ return yargs;
182
788
  },
183
789
  (argv) => {
184
790
  if (argv.verbose)
185
791
  console.log("UpYarn");
186
- process.exitCode = (0, import_actions.updateYarnVersion)();
792
+ process.exitCode = updateYarnVersion();
187
793
  }
188
794
  ).command(
189
795
  "yarn3only",
190
796
  "Yarn3Only - Check if using Yarn v3",
191
- (yargs2) => {
192
- return yargs2;
797
+ (yargs) => {
798
+ return yargs;
193
799
  },
194
800
  (argv) => {
195
801
  if (argv.verbose)
196
802
  console.log("Yarn 3 Check");
197
- process.exitCode = (0, import_actions.yarn3Only)();
803
+ process.exitCode = yarn3Only();
198
804
  }
199
805
  );
200
806
  };