@storm-software/workspace-tools 1.228.0 → 1.229.0

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 (541) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/chunk-2EGD2QSN.js +183 -0
  3. package/dist/chunk-2JA7WAH7.mjs +93 -0
  4. package/dist/chunk-34LSWMWV.mjs +20 -0
  5. package/dist/chunk-35B5C22H.mjs +50 -0
  6. package/dist/chunk-36FMHXUD.js +988 -0
  7. package/dist/chunk-3GQAWCBQ.js +13 -0
  8. package/dist/chunk-3GVBGSCQ.js +86 -0
  9. package/dist/chunk-3IZ3O4OK.js +30 -0
  10. package/dist/chunk-3J53KHVV.js +1 -0
  11. package/dist/chunk-3ORCJSUT.mjs +37 -0
  12. package/dist/chunk-45GU4HW2.js +267 -0
  13. package/dist/chunk-4NOLUAQN.js +43 -0
  14. package/dist/chunk-5CPYNJT2.js +61 -0
  15. package/dist/chunk-5MKQX2FE.js +82 -0
  16. package/dist/chunk-6267MSX4.mjs +118 -0
  17. package/dist/chunk-66TYTM73.mjs +102 -0
  18. package/dist/chunk-6B6IVIMQ.js +31 -0
  19. package/dist/chunk-6QO3KMZA.js +93 -0
  20. package/dist/chunk-6TSAUSG4.mjs +18 -0
  21. package/dist/chunk-6YZ3OUJB.mjs +0 -0
  22. package/dist/chunk-6ZQ3QYXH.mjs +93 -0
  23. package/dist/chunk-7AXFMX2T.js +37 -0
  24. package/dist/chunk-7CJRMBX3.js +20 -0
  25. package/dist/chunk-7MZQTO7J.js +726 -0
  26. package/dist/chunk-7YRW5HNX.js +102 -0
  27. package/dist/chunk-B3KIYNGT.mjs +88 -0
  28. package/dist/chunk-B7LWGAUI.js +50 -0
  29. package/dist/chunk-BO44O7D2.mjs +43 -0
  30. package/dist/chunk-BWFTYFWM.js +59 -0
  31. package/dist/chunk-CT7IVPJY.js +384 -0
  32. package/dist/chunk-CZJW5H5T.mjs +183 -0
  33. package/dist/chunk-DGC5L3Z7.mjs +22 -0
  34. package/dist/chunk-DHGZTMND.js +26 -0
  35. package/dist/chunk-DIODSFGH.js +1045 -0
  36. package/dist/chunk-DLO5NZQI.mjs +1046 -0
  37. package/dist/chunk-DLQLZTCZ.mjs +69 -0
  38. package/dist/chunk-DMUTOQCB.mjs +82 -0
  39. package/dist/chunk-EK75QNMS.mjs +40 -0
  40. package/dist/chunk-ESRRKJO5.mjs +51 -0
  41. package/dist/chunk-F5WI7VDM.js +42 -0
  42. package/dist/chunk-F7QTSVDJ.mjs +130 -0
  43. package/dist/chunk-FBLF4KJF.js +306 -0
  44. package/dist/chunk-FFBZYD6R.mjs +59 -0
  45. package/dist/chunk-FP4PPOO6.js +32 -0
  46. package/dist/chunk-GGGO542M.js +93 -0
  47. package/dist/chunk-GV44QHV3.mjs +32 -0
  48. package/dist/chunk-GZPCM2GI.mjs +413 -0
  49. package/dist/chunk-HAT7PSQD.mjs +509 -0
  50. package/dist/chunk-HI4G4OOG.js +40 -0
  51. package/dist/chunk-I734UVDT.js +22 -0
  52. package/dist/chunk-I7OZOKTH.js +65 -0
  53. package/dist/chunk-INAG73GE.js +69 -0
  54. package/dist/chunk-INERRJ6Q.js +1 -0
  55. package/dist/chunk-J5SXKBBU.mjs +30 -0
  56. package/dist/chunk-JEV3GSS7.js +51 -0
  57. package/dist/chunk-JGP4YWZY.js +1 -0
  58. package/dist/chunk-JGTW4AJ7.mjs +32 -0
  59. package/dist/chunk-KLEKFCL2.js +58 -0
  60. package/dist/chunk-LIYZBMAM.mjs +13 -0
  61. package/dist/chunk-MF4RRA4Q.mjs +726 -0
  62. package/dist/chunk-MSENNRAY.js +118 -0
  63. package/dist/chunk-NCVJPQSP.js +88 -0
  64. package/dist/chunk-NDDXQD7R.mjs +61 -0
  65. package/dist/chunk-OA7KWN7D.mjs +66 -0
  66. package/dist/chunk-OESA3G7F.mjs +31 -0
  67. package/dist/chunk-OJ3R7YBK.js +302 -0
  68. package/dist/chunk-PMDV5GKD.js +240 -0
  69. package/dist/chunk-PS2NPPRM.mjs +267 -0
  70. package/dist/chunk-PS55UN6T.mjs +59 -0
  71. package/dist/chunk-PVTEDLBL.mjs +26 -0
  72. package/dist/chunk-PY52QA2R.js +130 -0
  73. package/dist/chunk-QMJ7P54Z.mjs +241 -0
  74. package/dist/chunk-QZHIWK5Z.mjs +190 -0
  75. package/dist/chunk-RKOOM5R5.js +509 -0
  76. package/dist/chunk-RLIZVCIN.mjs +0 -0
  77. package/dist/chunk-RPECQQG4.mjs +288 -0
  78. package/dist/chunk-SFT3A33D.mjs +32 -0
  79. package/dist/chunk-T7IVGU7T.mjs +302 -0
  80. package/dist/chunk-TILR7372.js +48 -0
  81. package/dist/chunk-TYAPQ46X.js +353 -0
  82. package/dist/chunk-UDAQKEJS.mjs +384 -0
  83. package/dist/chunk-ULBTYC2B.js +190 -0
  84. package/dist/chunk-USUT2GLD.mjs +26 -0
  85. package/dist/chunk-V7YZ3666.mjs +0 -0
  86. package/dist/chunk-VYH45FO6.mjs +55 -0
  87. package/dist/chunk-W4QV74K2.mjs +87 -0
  88. package/dist/chunk-WJ5TU6JU.mjs +988 -0
  89. package/dist/chunk-WTHELTBU.mjs +48 -0
  90. package/dist/chunk-XCSSYTCU.js +26 -0
  91. package/dist/chunk-XID4OBY2.mjs +353 -0
  92. package/dist/chunk-XITP2BX2.js +13 -0
  93. package/dist/chunk-XONECYS4.js +413 -0
  94. package/dist/chunk-XSCTGWRG.mjs +42 -0
  95. package/dist/chunk-XSRDTQ5C.mjs +306 -0
  96. package/dist/chunk-XUV4U54K.mjs +21 -0
  97. package/dist/chunk-ZCZVVZBX.js +32 -0
  98. package/dist/chunk-ZFIZ5Q46.js +288 -0
  99. package/dist/chunk-ZMFVKBRM.js +55 -0
  100. package/dist/chunk-ZPWY4RXH.js +18 -0
  101. package/dist/chunk-ZXT33DDB.js +32 -0
  102. package/dist/executor-5Wog21g_.d.mts +34 -0
  103. package/dist/executor-B8D-FX1j.d.mts +132 -0
  104. package/dist/executor-B8D-FX1j.d.ts +132 -0
  105. package/dist/executor-B8unq_QL.d.mts +150 -0
  106. package/dist/executor-BD3oxCXJ.d.mts +96 -0
  107. package/dist/executor-BD3oxCXJ.d.ts +96 -0
  108. package/dist/executor-BKdjKo-J.d.mts +93 -0
  109. package/dist/executor-BKdjKo-J.d.ts +93 -0
  110. package/dist/executor-BSXWmnE3.d.mts +263 -0
  111. package/dist/executor-Bt8koUTv.d.mts +104 -0
  112. package/dist/executor-Bt8koUTv.d.ts +104 -0
  113. package/dist/executor-BuS0IH1B.d.mts +96 -0
  114. package/dist/executor-BuS0IH1B.d.ts +96 -0
  115. package/dist/executor-C5AtaKvj.d.mts +148 -0
  116. package/dist/executor-CpcXNDfG.d.mts +122 -0
  117. package/dist/executor-CpcXNDfG.d.ts +122 -0
  118. package/dist/executor-D5hcfG7B.d.ts +57 -0
  119. package/dist/executor-D8m1bXgk.d.mts +57 -0
  120. package/dist/executor-DTcKLfcw.d.mts +67 -0
  121. package/dist/executor-DTcKLfcw.d.ts +67 -0
  122. package/dist/executor-DlTSIchw.d.ts +148 -0
  123. package/dist/executor-U929Bp8J.d.ts +34 -0
  124. package/dist/executor-sYaxQf5n.d.ts +150 -0
  125. package/dist/executor-wWkM11v5.d.ts +263 -0
  126. package/dist/executors.d.mts +16 -0
  127. package/dist/executors.d.ts +16 -0
  128. package/dist/executors.js +62 -0
  129. package/dist/executors.mjs +62 -0
  130. package/dist/generator-48_WHnGL.d.mts +184 -0
  131. package/dist/generator-BOj8XBVt.d.mts +322 -0
  132. package/dist/generator-C392qNd1.d.ts +322 -0
  133. package/dist/generator-CNiN6sul.d.mts +322 -0
  134. package/dist/generator-CgdrKFcO.d.mts +108 -0
  135. package/dist/generator-CtMFNmXP.d.ts +108 -0
  136. package/dist/generator-DX0frURz.d.ts +322 -0
  137. package/dist/generator-Dc6RWp26.d.ts +322 -0
  138. package/dist/generator-DeNfAL1R.d.ts +184 -0
  139. package/dist/generator-DmJcSdfk.d.mts +38 -0
  140. package/dist/generator-VyYYXMy4.d.mts +322 -0
  141. package/dist/generator-WuasfjoA.d.ts +38 -0
  142. package/dist/generators.d.mts +13 -0
  143. package/dist/generators.d.ts +13 -0
  144. package/dist/generators.js +41 -0
  145. package/dist/generators.mjs +41 -0
  146. package/dist/index.d.mts +367 -0
  147. package/dist/index.d.ts +367 -0
  148. package/dist/index.js +259 -0
  149. package/dist/index.mjs +259 -0
  150. package/dist/init-6Nmtv8d5.d.mts +19 -0
  151. package/dist/init-6Nmtv8d5.d.ts +19 -0
  152. package/dist/schema.d-CRz8jtUC.d.mts +60 -0
  153. package/dist/schema.d-CRz8jtUC.d.ts +60 -0
  154. package/dist/src/base/base-executor.d.mts +9 -0
  155. package/dist/src/base/base-executor.d.ts +7 -15
  156. package/dist/src/base/base-executor.js +12 -0
  157. package/dist/src/base/base-executor.mjs +12 -0
  158. package/dist/src/base/base-executor.schema.d.ts +17 -0
  159. package/dist/src/base/base-executor.untyped.d.mts +5 -0
  160. package/dist/src/base/base-executor.untyped.d.ts +5 -0
  161. package/dist/src/base/base-executor.untyped.js +7 -0
  162. package/dist/src/base/base-executor.untyped.mjs +7 -0
  163. package/dist/src/base/base-generator.d.mts +9 -0
  164. package/dist/src/base/base-generator.d.ts +7 -12
  165. package/dist/src/base/base-generator.js +11 -0
  166. package/dist/src/base/base-generator.mjs +11 -0
  167. package/dist/src/base/base-generator.schema.d.ts +14 -0
  168. package/dist/src/base/base-generator.untyped.d.mts +5 -0
  169. package/dist/src/base/base-generator.untyped.d.ts +5 -0
  170. package/dist/src/base/base-generator.untyped.js +7 -0
  171. package/dist/src/base/base-generator.untyped.mjs +7 -0
  172. package/dist/src/base/cargo-base-executor.untyped.d.mts +5 -0
  173. package/dist/src/base/cargo-base-executor.untyped.d.ts +5 -0
  174. package/dist/src/base/cargo-base-executor.untyped.js +8 -0
  175. package/dist/src/base/cargo-base-executor.untyped.mjs +8 -0
  176. package/dist/src/base/typescript-build-executor.untyped.d.mts +5 -0
  177. package/dist/src/base/typescript-build-executor.untyped.d.ts +5 -0
  178. package/dist/src/base/typescript-build-executor.untyped.js +8 -0
  179. package/dist/src/base/typescript-build-executor.untyped.mjs +8 -0
  180. package/dist/src/base/typescript-library-generator.untyped.d.mts +5 -0
  181. package/dist/src/base/typescript-library-generator.untyped.d.ts +5 -0
  182. package/dist/src/base/typescript-library-generator.untyped.js +8 -0
  183. package/dist/src/base/typescript-library-generator.untyped.mjs +8 -0
  184. package/dist/src/executors/cargo-build/executor.d.mts +2 -0
  185. package/dist/src/executors/cargo-build/executor.d.ts +2 -0
  186. package/dist/src/executors/cargo-build/executor.js +16 -0
  187. package/dist/src/executors/cargo-build/executor.mjs +16 -0
  188. package/dist/src/executors/cargo-build/schema.d.ts +86 -0
  189. package/dist/src/executors/cargo-build/schema.json +85 -0
  190. package/dist/src/executors/cargo-build/schema.md +89 -0
  191. package/dist/src/executors/cargo-build/untyped.d.mts +5 -0
  192. package/dist/src/executors/cargo-build/untyped.d.ts +5 -0
  193. package/dist/src/executors/cargo-build/untyped.js +26 -0
  194. package/dist/src/executors/cargo-build/untyped.mjs +26 -0
  195. package/dist/src/executors/cargo-check/executor.d.mts +2 -0
  196. package/dist/src/executors/cargo-check/executor.d.ts +2 -0
  197. package/dist/src/executors/cargo-check/executor.js +16 -0
  198. package/dist/src/executors/cargo-check/executor.mjs +16 -0
  199. package/dist/src/executors/cargo-check/schema.d.ts +89 -0
  200. package/dist/src/executors/cargo-check/schema.json +88 -0
  201. package/dist/src/executors/cargo-check/schema.md +90 -0
  202. package/dist/src/executors/cargo-check/untyped.d.mts +5 -0
  203. package/dist/src/executors/cargo-check/untyped.d.ts +5 -0
  204. package/dist/src/executors/cargo-check/untyped.js +19 -0
  205. package/dist/src/executors/cargo-check/untyped.mjs +19 -0
  206. package/dist/src/executors/cargo-clippy/executor.d.mts +2 -0
  207. package/dist/src/executors/cargo-clippy/executor.d.ts +2 -0
  208. package/dist/src/executors/cargo-clippy/executor.js +16 -0
  209. package/dist/src/executors/cargo-clippy/executor.mjs +16 -0
  210. package/dist/src/executors/cargo-clippy/schema.d.ts +97 -0
  211. package/dist/src/executors/cargo-clippy/schema.json +94 -0
  212. package/dist/src/executors/cargo-clippy/schema.md +99 -0
  213. package/dist/src/executors/cargo-clippy/untyped.d.mts +5 -0
  214. package/dist/src/executors/cargo-clippy/untyped.d.ts +5 -0
  215. package/dist/src/executors/cargo-clippy/untyped.js +26 -0
  216. package/dist/src/executors/cargo-clippy/untyped.mjs +26 -0
  217. package/dist/src/executors/cargo-doc/executor.d.mts +2 -0
  218. package/dist/src/executors/cargo-doc/executor.d.ts +2 -0
  219. package/dist/src/executors/cargo-doc/executor.js +16 -0
  220. package/dist/src/executors/cargo-doc/executor.mjs +16 -0
  221. package/dist/src/executors/cargo-doc/schema.d.ts +125 -0
  222. package/dist/src/executors/cargo-doc/schema.json +164 -0
  223. package/dist/src/executors/cargo-doc/schema.md +130 -0
  224. package/dist/src/executors/cargo-doc/untyped.d.mts +5 -0
  225. package/dist/src/executors/cargo-doc/untyped.d.ts +5 -0
  226. package/dist/src/executors/cargo-doc/untyped.js +51 -0
  227. package/dist/src/executors/cargo-doc/untyped.mjs +51 -0
  228. package/dist/src/executors/cargo-format/executor.d.mts +2 -0
  229. package/dist/src/executors/cargo-format/executor.d.ts +2 -0
  230. package/dist/src/executors/cargo-format/executor.js +16 -0
  231. package/dist/src/executors/cargo-format/executor.mjs +16 -0
  232. package/dist/src/executors/cargo-format/schema.d.ts +89 -0
  233. package/dist/src/executors/cargo-format/schema.json +88 -0
  234. package/dist/src/executors/cargo-format/schema.md +90 -0
  235. package/dist/src/executors/cargo-format/untyped.d.mts +5 -0
  236. package/dist/src/executors/cargo-format/untyped.d.ts +5 -0
  237. package/dist/src/executors/cargo-format/untyped.js +19 -0
  238. package/dist/src/executors/cargo-format/untyped.mjs +19 -0
  239. package/dist/src/executors/cargo-publish/executor.d.mts +2 -0
  240. package/dist/src/executors/cargo-publish/executor.d.ts +2 -0
  241. package/dist/src/executors/cargo-publish/executor.js +10 -0
  242. package/dist/src/executors/cargo-publish/executor.mjs +10 -0
  243. package/dist/src/executors/cargo-publish/schema.d.ts +115 -0
  244. package/dist/src/executors/cargo-publish/schema.json +107 -0
  245. package/dist/src/executors/cargo-publish/schema.md +117 -0
  246. package/dist/src/executors/cargo-publish/untyped.d.mts +5 -0
  247. package/dist/src/executors/cargo-publish/untyped.d.ts +5 -0
  248. package/dist/src/executors/cargo-publish/untyped.js +41 -0
  249. package/dist/src/executors/cargo-publish/untyped.mjs +41 -0
  250. package/dist/src/executors/clean-package/executor.d.mts +12 -0
  251. package/dist/src/executors/clean-package/executor.d.ts +12 -0
  252. package/dist/src/executors/clean-package/executor.js +303 -0
  253. package/dist/src/executors/clean-package/executor.mjs +303 -0
  254. package/dist/src/executors/clean-package/schema.d.ts +60 -0
  255. package/dist/src/executors/clean-package/schema.json +57 -0
  256. package/dist/src/executors/clean-package/schema.md +65 -0
  257. package/dist/src/executors/clean-package/untyped.d.mts +5 -0
  258. package/dist/src/executors/clean-package/untyped.d.ts +5 -0
  259. package/dist/src/executors/clean-package/untyped.js +68 -0
  260. package/dist/src/executors/clean-package/untyped.mjs +68 -0
  261. package/dist/src/executors/esbuild/executor.d.mts +4 -0
  262. package/dist/src/executors/esbuild/executor.d.ts +4 -0
  263. package/dist/src/executors/esbuild/executor.js +16 -0
  264. package/dist/src/executors/esbuild/executor.mjs +16 -0
  265. package/dist/src/executors/esbuild/schema.d.ts +141 -0
  266. package/dist/src/executors/esbuild/schema.json +173 -0
  267. package/dist/src/executors/esbuild/schema.md +130 -0
  268. package/dist/src/executors/esbuild/untyped.d.mts +5 -0
  269. package/dist/src/executors/esbuild/untyped.d.ts +5 -0
  270. package/dist/src/executors/esbuild/untyped.js +32 -0
  271. package/dist/src/executors/esbuild/untyped.mjs +32 -0
  272. package/dist/src/executors/npm-publish/executor.d.mts +2 -0
  273. package/dist/src/executors/npm-publish/executor.d.ts +2 -0
  274. package/dist/src/executors/npm-publish/executor.js +11 -0
  275. package/dist/src/executors/npm-publish/executor.mjs +11 -0
  276. package/dist/src/executors/npm-publish/schema.d.ts +60 -0
  277. package/dist/src/executors/npm-publish/schema.json +55 -0
  278. package/dist/src/executors/npm-publish/schema.md +64 -0
  279. package/dist/src/executors/npm-publish/untyped.d.mts +5 -0
  280. package/dist/src/executors/npm-publish/untyped.d.ts +5 -0
  281. package/dist/src/executors/npm-publish/untyped.js +61 -0
  282. package/dist/src/executors/npm-publish/untyped.mjs +61 -0
  283. package/dist/src/executors/size-limit/executor.d.mts +4 -0
  284. package/dist/src/executors/size-limit/executor.d.ts +4 -0
  285. package/dist/src/executors/size-limit/executor.js +15 -0
  286. package/dist/src/executors/size-limit/executor.mjs +15 -0
  287. package/dist/src/executors/size-limit/schema.d.ts +25 -0
  288. package/dist/src/executors/size-limit/schema.json +29 -0
  289. package/dist/src/executors/size-limit/schema.md +25 -0
  290. package/dist/src/executors/size-limit/untyped.d.mts +5 -0
  291. package/dist/src/executors/size-limit/untyped.d.ts +5 -0
  292. package/dist/src/executors/size-limit/untyped.js +29 -0
  293. package/dist/src/executors/size-limit/untyped.mjs +29 -0
  294. package/dist/src/executors/tsdown/executor.d.mts +4 -0
  295. package/dist/src/executors/tsdown/executor.d.ts +4 -0
  296. package/dist/src/executors/tsdown/executor.js +16 -0
  297. package/dist/src/executors/tsdown/executor.mjs +16 -0
  298. package/dist/src/executors/tsdown/schema.d.ts +139 -0
  299. package/dist/src/executors/tsdown/schema.json +182 -0
  300. package/dist/src/executors/tsdown/schema.md +130 -0
  301. package/dist/src/executors/tsdown/untyped.d.mts +5 -0
  302. package/dist/src/executors/tsdown/untyped.d.ts +5 -0
  303. package/dist/src/executors/tsdown/untyped.js +19 -0
  304. package/dist/src/executors/tsdown/untyped.mjs +19 -0
  305. package/dist/src/executors/typia/executor.d.mts +4 -0
  306. package/dist/src/executors/typia/executor.d.ts +4 -0
  307. package/dist/src/executors/typia/executor.js +15 -0
  308. package/dist/src/executors/typia/executor.mjs +15 -0
  309. package/dist/src/executors/typia/schema.d.ts +48 -0
  310. package/dist/src/executors/typia/schema.json +57 -0
  311. package/dist/src/executors/typia/schema.md +46 -0
  312. package/dist/src/executors/typia/untyped.d.mts +5 -0
  313. package/dist/src/executors/typia/untyped.d.ts +5 -0
  314. package/dist/src/executors/typia/untyped.js +63 -0
  315. package/dist/src/executors/typia/untyped.mjs +63 -0
  316. package/dist/src/executors/unbuild/executor.d.mts +4 -0
  317. package/dist/src/executors/unbuild/executor.d.ts +4 -0
  318. package/dist/src/executors/unbuild/executor.js +16 -0
  319. package/dist/src/executors/unbuild/executor.mjs +16 -0
  320. package/dist/src/executors/unbuild/schema.d.ts +254 -0
  321. package/dist/src/executors/unbuild/schema.json +305 -0
  322. package/dist/src/executors/unbuild/schema.md +220 -0
  323. package/dist/src/executors/unbuild/untyped.d.mts +5 -0
  324. package/dist/src/executors/unbuild/untyped.d.ts +5 -0
  325. package/dist/src/executors/unbuild/untyped.js +138 -0
  326. package/dist/src/executors/unbuild/untyped.mjs +138 -0
  327. package/dist/src/generators/browser-library/files/README.md +58 -0
  328. package/dist/src/generators/browser-library/files/jest.config.ts +3 -0
  329. package/dist/src/generators/browser-library/files/tsconfig.spec.json +13 -0
  330. package/dist/src/generators/browser-library/generator.d.mts +6 -0
  331. package/dist/src/generators/browser-library/generator.d.ts +6 -0
  332. package/dist/src/generators/browser-library/generator.js +17 -0
  333. package/dist/src/generators/browser-library/generator.mjs +17 -0
  334. package/dist/src/generators/browser-library/schema.d.ts +314 -0
  335. package/dist/src/generators/browser-library/schema.json +262 -0
  336. package/dist/src/generators/browser-library/schema.md +297 -0
  337. package/dist/src/generators/browser-library/untyped.d.mts +5 -0
  338. package/dist/src/generators/browser-library/untyped.d.ts +5 -0
  339. package/dist/src/generators/browser-library/untyped.js +43 -0
  340. package/dist/src/generators/browser-library/untyped.mjs +43 -0
  341. package/dist/src/generators/config-schema/generator.d.mts +6 -0
  342. package/dist/src/generators/config-schema/generator.d.ts +6 -0
  343. package/dist/src/generators/config-schema/generator.js +14 -0
  344. package/dist/src/generators/config-schema/generator.mjs +14 -0
  345. package/dist/src/generators/config-schema/schema.d.ts +23 -0
  346. package/dist/src/generators/config-schema/schema.json +24 -0
  347. package/dist/src/generators/config-schema/schema.md +25 -0
  348. package/dist/src/generators/config-schema/untyped.d.mts +5 -0
  349. package/dist/src/generators/config-schema/untyped.d.ts +5 -0
  350. package/dist/src/generators/config-schema/untyped.js +26 -0
  351. package/dist/src/generators/config-schema/untyped.mjs +26 -0
  352. package/dist/src/generators/init/init.d.mts +2 -0
  353. package/dist/src/generators/init/init.d.ts +2 -0
  354. package/dist/src/generators/init/init.js +9 -0
  355. package/dist/src/generators/init/init.mjs +9 -0
  356. package/dist/src/generators/init/schema.d.ts +14 -0
  357. package/dist/src/generators/init/schema.json +15 -0
  358. package/dist/src/generators/init/schema.md +15 -0
  359. package/dist/src/generators/init/untyped.d.mts +5 -0
  360. package/dist/src/generators/init/untyped.d.ts +5 -0
  361. package/dist/src/generators/init/untyped.js +21 -0
  362. package/dist/src/generators/init/untyped.mjs +21 -0
  363. package/dist/src/generators/neutral-library/files/README.md +58 -0
  364. package/dist/src/generators/neutral-library/files/jest.config.ts +3 -0
  365. package/dist/src/generators/neutral-library/files/tsconfig.spec.json +13 -0
  366. package/dist/src/generators/neutral-library/generator.d.mts +6 -0
  367. package/dist/src/generators/neutral-library/generator.d.ts +6 -0
  368. package/dist/src/generators/neutral-library/generator.js +17 -0
  369. package/dist/src/generators/neutral-library/generator.mjs +17 -0
  370. package/dist/src/generators/neutral-library/schema.d.ts +314 -0
  371. package/dist/src/generators/neutral-library/schema.json +261 -0
  372. package/dist/src/generators/neutral-library/schema.md +297 -0
  373. package/dist/src/generators/neutral-library/untyped.d.mts +5 -0
  374. package/dist/src/generators/neutral-library/untyped.d.ts +5 -0
  375. package/dist/src/generators/neutral-library/untyped.js +42 -0
  376. package/dist/src/generators/neutral-library/untyped.mjs +42 -0
  377. package/dist/src/generators/node-library/files/README.md +58 -0
  378. package/dist/src/generators/node-library/files/jest.config.ts +3 -0
  379. package/dist/src/generators/node-library/files/tsconfig.spec.json +13 -0
  380. package/dist/src/generators/node-library/generator.d.mts +6 -0
  381. package/dist/src/generators/node-library/generator.d.ts +6 -0
  382. package/dist/src/generators/node-library/generator.js +17 -0
  383. package/dist/src/generators/node-library/generator.mjs +17 -0
  384. package/dist/src/generators/node-library/schema.d.ts +314 -0
  385. package/dist/src/generators/node-library/schema.json +262 -0
  386. package/dist/src/generators/node-library/schema.md +297 -0
  387. package/dist/src/generators/node-library/untyped.d.mts +5 -0
  388. package/dist/src/generators/node-library/untyped.d.ts +5 -0
  389. package/dist/src/generators/node-library/untyped.js +43 -0
  390. package/dist/src/generators/node-library/untyped.mjs +43 -0
  391. package/dist/src/generators/preset/files/LICENSE +201 -0
  392. package/dist/src/generators/preset/files/README.md.template +282 -0
  393. package/dist/src/generators/preset/files/docs/readme-templates/README.footer.md.template +123 -0
  394. package/dist/src/generators/preset/files/docs/readme-templates/README.header.md.template +22 -0
  395. package/dist/src/generators/preset/files/eslint.config.js.template +24 -0
  396. package/dist/src/generators/preset/files/knip.json +20 -0
  397. package/dist/src/generators/preset/files/lefthook.json +106 -0
  398. package/dist/src/generators/preset/files/nx.json +7 -0
  399. package/dist/src/generators/preset/files/pnpm-workspace.yaml +6 -0
  400. package/dist/src/generators/preset/files/socket.yaml +20 -0
  401. package/dist/src/generators/preset/files/storm.json.template +12 -0
  402. package/dist/src/generators/preset/files/tsconfig.base.json.template +11 -0
  403. package/dist/src/generators/preset/generator.d.mts +6 -0
  404. package/dist/src/generators/preset/generator.d.ts +6 -0
  405. package/dist/src/generators/preset/generator.js +15 -0
  406. package/dist/src/generators/preset/generator.mjs +15 -0
  407. package/dist/src/generators/preset/schema.d.ts +101 -0
  408. package/dist/src/generators/preset/schema.json +96 -0
  409. package/dist/src/generators/preset/schema.md +110 -0
  410. package/dist/src/generators/preset/untyped.d.mts +5 -0
  411. package/dist/src/generators/preset/untyped.d.ts +5 -0
  412. package/dist/src/generators/preset/untyped.js +103 -0
  413. package/dist/src/generators/preset/untyped.mjs +103 -0
  414. package/dist/src/generators/release-version/generator.d.mts +5 -0
  415. package/dist/src/generators/release-version/generator.d.ts +5 -0
  416. package/dist/src/generators/release-version/generator.js +13 -0
  417. package/dist/src/generators/release-version/generator.mjs +13 -0
  418. package/dist/src/generators/release-version/schema.d.ts +178 -0
  419. package/dist/src/generators/release-version/schema.json +154 -0
  420. package/dist/src/generators/release-version/schema.md +158 -0
  421. package/dist/src/generators/release-version/untyped.d.mts +5 -0
  422. package/dist/src/generators/release-version/untyped.d.ts +5 -0
  423. package/dist/src/generators/release-version/untyped.js +170 -0
  424. package/dist/src/generators/release-version/untyped.mjs +170 -0
  425. package/dist/src/plugins/rust/cargo-toml.d.mts +23 -0
  426. package/dist/src/plugins/rust/cargo-toml.d.ts +23 -0
  427. package/dist/src/plugins/rust/cargo-toml.js +19 -0
  428. package/dist/src/plugins/rust/cargo-toml.mjs +19 -0
  429. package/dist/src/plugins/rust/index.d.mts +2 -0
  430. package/dist/src/plugins/rust/index.d.ts +2 -0
  431. package/dist/src/plugins/rust/index.js +19 -0
  432. package/dist/src/plugins/rust/index.mjs +19 -0
  433. package/dist/src/plugins/typescript/index.d.mts +2 -0
  434. package/dist/src/plugins/typescript/index.d.ts +2 -0
  435. package/dist/src/plugins/typescript/index.js +10 -0
  436. package/dist/src/plugins/typescript/index.mjs +10 -0
  437. package/dist/src/plugins/typescript/project-config.d.mts +9 -0
  438. package/dist/src/plugins/typescript/project-config.d.ts +9 -0
  439. package/dist/src/plugins/typescript/project-config.js +10 -0
  440. package/dist/src/plugins/typescript/project-config.mjs +10 -0
  441. package/dist/src/plugins/typescript/tsdown.d.mts +8 -0
  442. package/dist/src/plugins/typescript/tsdown.d.ts +8 -0
  443. package/dist/src/plugins/typescript/tsdown.js +142 -0
  444. package/dist/src/plugins/typescript/tsdown.mjs +142 -0
  445. package/dist/src/plugins/typescript/tsup.d.mts +8 -0
  446. package/dist/src/plugins/typescript/tsup.d.ts +8 -0
  447. package/dist/src/plugins/typescript/tsup.js +142 -0
  448. package/dist/src/plugins/typescript/tsup.mjs +142 -0
  449. package/dist/src/types.d.mts +4 -0
  450. package/dist/src/types.d.ts +4 -0
  451. package/dist/src/types.js +17 -0
  452. package/dist/src/types.mjs +17 -0
  453. package/dist/src/utils/apply-workspace-tokens.d.mts +17 -0
  454. package/dist/src/utils/apply-workspace-tokens.d.ts +17 -0
  455. package/dist/src/utils/apply-workspace-tokens.js +9 -0
  456. package/dist/src/utils/apply-workspace-tokens.mjs +9 -0
  457. package/dist/src/utils/cargo.d.mts +119 -0
  458. package/dist/src/utils/cargo.d.ts +119 -0
  459. package/dist/src/utils/cargo.js +23 -0
  460. package/dist/src/utils/cargo.mjs +23 -0
  461. package/dist/src/utils/create-cli-options.d.mts +3 -0
  462. package/dist/src/utils/create-cli-options.d.ts +3 -0
  463. package/dist/src/utils/create-cli-options.js +7 -0
  464. package/dist/src/utils/create-cli-options.mjs +7 -0
  465. package/dist/src/utils/get-project-configurations.d.mts +16 -0
  466. package/dist/src/utils/get-project-configurations.d.ts +16 -0
  467. package/dist/src/utils/get-project-configurations.js +11 -0
  468. package/dist/src/utils/get-project-configurations.mjs +11 -0
  469. package/dist/src/utils/index.d.mts +20 -0
  470. package/dist/src/utils/index.d.ts +20 -0
  471. package/dist/src/utils/index.js +146 -0
  472. package/dist/src/utils/index.mjs +146 -0
  473. package/dist/src/utils/lock-file.d.mts +26 -0
  474. package/dist/src/utils/lock-file.d.ts +26 -0
  475. package/dist/src/utils/lock-file.js +27 -0
  476. package/dist/src/utils/lock-file.mjs +27 -0
  477. package/dist/src/utils/package-helpers.d.mts +16 -0
  478. package/dist/src/utils/package-helpers.d.ts +16 -0
  479. package/dist/src/utils/package-helpers.js +11 -0
  480. package/dist/src/utils/package-helpers.mjs +11 -0
  481. package/dist/src/utils/pnpm-deps-update.d.mts +9 -0
  482. package/dist/src/utils/pnpm-deps-update.d.ts +9 -0
  483. package/dist/src/utils/pnpm-deps-update.js +8 -0
  484. package/dist/src/utils/pnpm-deps-update.mjs +8 -0
  485. package/dist/src/utils/project-tags.d.mts +54 -0
  486. package/dist/src/utils/project-tags.d.ts +54 -0
  487. package/dist/src/utils/project-tags.js +21 -0
  488. package/dist/src/utils/project-tags.mjs +21 -0
  489. package/dist/src/utils/toml.d.mts +136 -0
  490. package/dist/src/utils/toml.d.ts +136 -0
  491. package/dist/src/utils/toml.js +15 -0
  492. package/dist/src/utils/toml.mjs +15 -0
  493. package/dist/src/utils/typia-transform.d.mts +5 -0
  494. package/dist/src/utils/typia-transform.d.ts +5 -0
  495. package/dist/src/utils/typia-transform.js +7 -0
  496. package/dist/src/utils/typia-transform.mjs +7 -0
  497. package/dist/src/utils/versions.d.mts +20 -0
  498. package/dist/src/utils/versions.d.ts +20 -0
  499. package/dist/src/utils/versions.js +41 -0
  500. package/dist/src/utils/versions.mjs +41 -0
  501. package/dist/types-CMFSY9ut.d.mts +101 -0
  502. package/dist/types-D9vU63tt.d.mts +1185 -0
  503. package/dist/types-D9vU63tt.d.ts +1185 -0
  504. package/dist/types-Dbr7XMO3.d.ts +101 -0
  505. package/docs/api/base/base-executor.schema.md +16 -0
  506. package/docs/api/base/base-generator.schema.md +15 -0
  507. package/docs/api/base/cargo-base-executor.schema.md +90 -0
  508. package/docs/api/base/typescript-build-executor.schema.md +130 -0
  509. package/docs/api/base/typescript-library-generator.schema.md +297 -0
  510. package/docs/api/executors/cargo-build/schema.md +89 -0
  511. package/docs/api/executors/cargo-check/schema.md +90 -0
  512. package/docs/api/executors/cargo-clippy/schema.md +99 -0
  513. package/docs/api/executors/cargo-doc/schema.md +130 -0
  514. package/docs/api/executors/cargo-format/schema.md +90 -0
  515. package/docs/api/executors/cargo-publish/schema.md +117 -0
  516. package/docs/api/executors/clean-package/schema.md +65 -0
  517. package/docs/api/executors/esbuild/schema.md +130 -0
  518. package/docs/api/executors/npm-publish/schema.md +64 -0
  519. package/docs/api/executors/size-limit/schema.md +25 -0
  520. package/docs/api/executors/tsdown/schema.md +130 -0
  521. package/docs/api/executors/typia/schema.md +46 -0
  522. package/docs/api/executors/unbuild/schema.md +220 -0
  523. package/docs/api/generators/browser-library/files/README.md +58 -0
  524. package/docs/api/generators/browser-library/schema.md +297 -0
  525. package/docs/api/generators/config-schema/schema.md +25 -0
  526. package/docs/api/generators/init/schema.md +15 -0
  527. package/docs/api/generators/neutral-library/files/README.md +58 -0
  528. package/docs/api/generators/neutral-library/schema.md +297 -0
  529. package/docs/api/generators/node-library/files/README.md +58 -0
  530. package/docs/api/generators/node-library/schema.md +297 -0
  531. package/docs/api/generators/preset/schema.md +110 -0
  532. package/docs/api/generators/release-version/schema.md +158 -0
  533. package/package.json +1 -1
  534. /package/{docs/api/base/base-executor.md → dist/src/base/base-executor.schema.md} +0 -0
  535. /package/{docs/api/base/base-generator.md → dist/src/base/base-generator.schema.md} +0 -0
  536. /package/dist/src/base/{cargo-base-executor.d.ts → cargo-base-executor.schema.d.ts} +0 -0
  537. /package/{docs/api/base/cargo-base-executor.md → dist/src/base/cargo-base-executor.schema.md} +0 -0
  538. /package/dist/src/base/{typescript-build-executor.d.ts → typescript-build-executor.schema.d.ts} +0 -0
  539. /package/{docs/api/base/typescript-build-executor.md → dist/src/base/typescript-build-executor.schema.md} +0 -0
  540. /package/dist/src/base/{typescript-library-generator.d.ts → typescript-library-generator.schema.d.ts} +0 -0
  541. /package/{docs/api/base/typescript-library-generator.md → dist/src/base/typescript-library-generator.schema.md} +0 -0
@@ -0,0 +1,118 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
+
3
+ var _chunkBWFTYFWMjs = require('./chunk-BWFTYFWM.js');
4
+
5
+
6
+ var _chunk5CPYNJT2js = require('./chunk-5CPYNJT2.js');
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+ var _chunk36FMHXUDjs = require('./chunk-36FMHXUD.js');
18
+
19
+
20
+ var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
21
+
22
+
23
+ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
24
+
25
+ // src/base/base-executor.ts
26
+ var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, executorFn, executorOptions = {}) => async (_options, context) => {
27
+ const stopwatch = _chunk36FMHXUDjs.getStopwatch.call(void 0, name);
28
+ let options = _options;
29
+ let config = {};
30
+ try {
31
+ _chunk36FMHXUDjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor...
32
+ `, config);
33
+ if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
34
+ throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
35
+ }
36
+ const workspaceRoot = _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, );
37
+ const projectRoot = _nullishCoalesce(_optionalChain([context, 'access', _3 => _3.projectsConfigurations, 'access', _4 => _4.projects, 'access', _5 => _5[context.projectName], 'optionalAccess', _6 => _6.root]), () => ( workspaceRoot));
38
+ const sourceRoot = _nullishCoalesce(_optionalChain([context, 'access', _7 => _7.projectsConfigurations, 'access', _8 => _8.projects, 'access', _9 => _9[context.projectName], 'optionalAccess', _10 => _10.sourceRoot]), () => ( workspaceRoot));
39
+ const projectName = _nullishCoalesce(_optionalChain([context, 'access', _11 => _11.projectsConfigurations, 'access', _12 => _12.projects, 'access', _13 => _13[context.projectName], 'optionalAccess', _14 => _14.name]), () => ( context.projectName));
40
+ config.workspaceRoot = workspaceRoot;
41
+ if (!executorOptions.skipReadingConfig) {
42
+ _chunk36FMHXUDjs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
43
+ - workspaceRoot: ${workspaceRoot}
44
+ - projectRoot: ${projectRoot}
45
+ - sourceRoot: ${sourceRoot}
46
+ - projectName: ${projectName}
47
+ `, config);
48
+ config = await _chunk36FMHXUDjs.loadStormConfig.call(void 0, workspaceRoot);
49
+ }
50
+ if (_optionalChain([executorOptions, 'optionalAccess', _15 => _15.hooks, 'optionalAccess', _16 => _16.applyDefaultOptions])) {
51
+ _chunk36FMHXUDjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
52
+ options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
53
+ _chunk36FMHXUDjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
54
+ }
55
+ _chunk36FMHXUDjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
56
+ ${Object.keys(options).map((key) => ` - ${key}=${_isFunction(options[key]) ? "<function>" : JSON.stringify(options[key])}`).join("\n")}`, config);
57
+ const tokenized = await _chunk5CPYNJT2js.applyWorkspaceTokens.call(void 0, options, {
58
+ config,
59
+ workspaceRoot,
60
+ projectRoot,
61
+ sourceRoot,
62
+ projectName,
63
+ ...context.projectsConfigurations.projects[context.projectName],
64
+ ...executorOptions
65
+ }, _chunkBWFTYFWMjs.applyWorkspaceExecutorTokens);
66
+ if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.preProcess])) {
67
+ _chunk36FMHXUDjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
68
+ await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
69
+ _chunk36FMHXUDjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
70
+ }
71
+ const ret = executorFn(tokenized, context, config);
72
+ if (_isFunction(_optionalChain([ret, 'optionalAccess', _19 => _19.next]))) {
73
+ const asyncGen = ret;
74
+ for await (const iter of asyncGen) {
75
+ }
76
+ }
77
+ const result = await Promise.resolve(ret);
78
+ if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _20 => _20.error, 'optionalAccess', _21 => _21.message]) && typeof _optionalChain([result, 'optionalAccess', _22 => _22.error, 'optionalAccess', _23 => _23.message]) === "string" && _optionalChain([result, 'optionalAccess', _24 => _24.error, 'optionalAccess', _25 => _25.name]) && typeof _optionalChain([result, 'optionalAccess', _26 => _26.error, 'optionalAccess', _27 => _27.name]) === "string")) {
79
+ _chunk36FMHXUDjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
80
+ ${_chunk36FMHXUDjs.formatLogMessage.call(void 0, result)}`, config);
81
+ console.error(result);
82
+ throw new Error(`The ${name} executor failed to run`, {
83
+ cause: _optionalChain([result, 'optionalAccess', _28 => _28.error])
84
+ });
85
+ }
86
+ if (_optionalChain([executorOptions, 'optionalAccess', _29 => _29.hooks, 'optionalAccess', _30 => _30.postProcess])) {
87
+ _chunk36FMHXUDjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
88
+ await Promise.resolve(executorOptions.hooks.postProcess(config));
89
+ _chunk36FMHXUDjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
90
+ }
91
+ _chunk36FMHXUDjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
92
+ `, config);
93
+ return {
94
+ success: true
95
+ };
96
+ } catch (error) {
97
+ _chunk36FMHXUDjs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
98
+ _chunk36FMHXUDjs.writeError.call(void 0, `An exception was thrown in the executor's process
99
+ - Details: ${error.message}
100
+ - Stacktrace: ${error.stack}`, config);
101
+ return {
102
+ success: false
103
+ };
104
+ } finally {
105
+ stopwatch();
106
+ }
107
+ }, "withRunExecutor");
108
+ var _isFunction = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (value) => {
109
+ try {
110
+ return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _31 => _31.constructor]) && _optionalChain([value, 'optionalAccess', _32 => _32.call]) && _optionalChain([value, 'optionalAccess', _33 => _33.apply]));
111
+ } catch (e) {
112
+ return false;
113
+ }
114
+ }, "_isFunction");
115
+
116
+
117
+
118
+ exports.withRunExecutor = withRunExecutor;
@@ -0,0 +1,88 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
+
3
+
4
+ var _chunk5CPYNJT2js = require('./chunk-5CPYNJT2.js');
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+ var _chunk36FMHXUDjs = require('./chunk-36FMHXUD.js');
15
+
16
+
17
+ var _chunk5MKQX2FEjs = require('./chunk-5MKQX2FE.js');
18
+
19
+
20
+ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
21
+
22
+ // src/base/base-generator.ts
23
+ var withRunGenerator = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, generatorFn, generatorOptions = {
24
+ skipReadingConfig: false
25
+ }) => async (tree, _options) => {
26
+ const stopwatch = _chunk36FMHXUDjs.getStopwatch.call(void 0, name);
27
+ let options = _options;
28
+ let config;
29
+ try {
30
+ _chunk36FMHXUDjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
31
+
32
+ `, config);
33
+ const workspaceRoot = _chunk5MKQX2FEjs.findWorkspaceRoot.call(void 0, );
34
+ if (!generatorOptions.skipReadingConfig) {
35
+ _chunk36FMHXUDjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
36
+ - workspaceRoot: ${workspaceRoot}`, config);
37
+ config = await _chunk36FMHXUDjs.loadStormConfig.call(void 0, workspaceRoot);
38
+ }
39
+ if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
40
+ _chunk36FMHXUDjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
41
+ options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
42
+ _chunk36FMHXUDjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
43
+ }
44
+ _chunk36FMHXUDjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
45
+ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
46
+ const tokenized = await _chunk5CPYNJT2js.applyWorkspaceTokens.call(void 0, options, {
47
+ workspaceRoot: tree.root,
48
+ config
49
+ }, _chunk5CPYNJT2js.applyWorkspaceBaseTokens);
50
+ if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
51
+ _chunk36FMHXUDjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
52
+ await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
53
+ _chunk36FMHXUDjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
54
+ }
55
+ const result = await Promise.resolve(generatorFn(tree, tokenized, config));
56
+ if (result) {
57
+ if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _5 => _5.error, 'optionalAccess', _6 => _6.message]) && typeof _optionalChain([result, 'optionalAccess', _7 => _7.error, 'optionalAccess', _8 => _8.message]) === "string" && _optionalChain([result, 'optionalAccess', _9 => _9.error, 'optionalAccess', _10 => _10.name]) && typeof _optionalChain([result, 'optionalAccess', _11 => _11.error, 'optionalAccess', _12 => _12.name]) === "string") {
58
+ throw new Error(`The ${name} generator failed to run`, {
59
+ cause: _optionalChain([result, 'optionalAccess', _13 => _13.error])
60
+ });
61
+ } else if (result.success && result.data) {
62
+ return result;
63
+ }
64
+ }
65
+ if (_optionalChain([generatorOptions, 'optionalAccess', _14 => _14.hooks, 'optionalAccess', _15 => _15.postProcess])) {
66
+ _chunk36FMHXUDjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
67
+ await Promise.resolve(generatorOptions.hooks.postProcess(config));
68
+ _chunk36FMHXUDjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
69
+ }
70
+ return () => {
71
+ _chunk36FMHXUDjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
72
+ `, config);
73
+ };
74
+ } catch (error) {
75
+ return () => {
76
+ _chunk36FMHXUDjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
77
+ _chunk36FMHXUDjs.writeError.call(void 0, `An exception was thrown in the generator's process
78
+ - Details: ${error.message}
79
+ - Stacktrace: ${error.stack}`, config);
80
+ };
81
+ } finally {
82
+ stopwatch();
83
+ }
84
+ }, "withRunGenerator");
85
+
86
+
87
+
88
+ exports.withRunGenerator = withRunGenerator;
@@ -0,0 +1,61 @@
1
+ import {
2
+ findWorkspaceRoot
3
+ } from "./chunk-DMUTOQCB.mjs";
4
+ import {
5
+ __name
6
+ } from "./chunk-XUV4U54K.mjs";
7
+
8
+ // ../config-tools/src/utilities/apply-workspace-tokens.ts
9
+ var applyWorkspaceBaseTokens = /* @__PURE__ */ __name(async (option, tokenizerOptions) => {
10
+ let result = option;
11
+ if (!result) {
12
+ return result;
13
+ }
14
+ if (tokenizerOptions) {
15
+ const optionKeys = Object.keys(tokenizerOptions);
16
+ if (optionKeys.some((optionKey) => result.includes(`{${optionKey}}`))) {
17
+ for (const optionKey of optionKeys) {
18
+ if (result.includes(`{${optionKey}}`)) {
19
+ result = result.replaceAll(`{${optionKey}}`, tokenizerOptions.config?.[optionKey] ?? "");
20
+ }
21
+ }
22
+ }
23
+ }
24
+ if (tokenizerOptions.config) {
25
+ const configKeys = Object.keys(tokenizerOptions.config);
26
+ if (configKeys.some((configKey) => result.includes(`{${configKey}}`))) {
27
+ for (const configKey of configKeys) {
28
+ if (result.includes(`{${configKey}}`)) {
29
+ result = result.replaceAll(`{${configKey}}`, tokenizerOptions.config[configKey]);
30
+ }
31
+ }
32
+ }
33
+ }
34
+ if (result.includes("{workspaceRoot}")) {
35
+ result = result.replaceAll("{workspaceRoot}", tokenizerOptions.workspaceRoot ?? tokenizerOptions.config?.workspaceRoot ?? findWorkspaceRoot());
36
+ }
37
+ return result;
38
+ }, "applyWorkspaceBaseTokens");
39
+ var applyWorkspaceTokens = /* @__PURE__ */ __name(async (options, config, tokenizerFn) => {
40
+ if (!options) {
41
+ return {};
42
+ }
43
+ const result = {};
44
+ for (const option of Object.keys(options)) {
45
+ if (typeof options[option] === "string") {
46
+ result[option] = await Promise.resolve(tokenizerFn(options[option], config));
47
+ } else if (Array.isArray(options[option])) {
48
+ result[option] = await Promise.all(options[option].map(async (item) => typeof item === "string" ? await Promise.resolve(tokenizerFn(item, config)) : item));
49
+ } else if (typeof options[option] === "object") {
50
+ result[option] = await applyWorkspaceTokens(options[option], config, tokenizerFn);
51
+ } else {
52
+ result[option] = options[option];
53
+ }
54
+ }
55
+ return result;
56
+ }, "applyWorkspaceTokens");
57
+
58
+ export {
59
+ applyWorkspaceBaseTokens,
60
+ applyWorkspaceTokens
61
+ };
@@ -0,0 +1,66 @@
1
+ import {
2
+ normalizeOptions,
3
+ typeScriptLibraryGeneratorFn
4
+ } from "./chunk-XSRDTQ5C.mjs";
5
+ import {
6
+ typesNodeVersion
7
+ } from "./chunk-EK75QNMS.mjs";
8
+ import {
9
+ withRunGenerator
10
+ } from "./chunk-B3KIYNGT.mjs";
11
+ import {
12
+ __dirname,
13
+ __name
14
+ } from "./chunk-XUV4U54K.mjs";
15
+
16
+ // src/generators/node-library/generator.ts
17
+ import { formatFiles, generateFiles, joinPathFragments, names, offsetFromRoot } from "@nx/devkit";
18
+ async function nodeLibraryGeneratorFn(tree, schema, config) {
19
+ const filesDir = joinPathFragments(__dirname, "./files");
20
+ const tsLibraryGeneratorOptions = {
21
+ platform: "node",
22
+ devDependencies: {
23
+ "@types/node": typesNodeVersion
24
+ },
25
+ buildExecutor: "@storm-software/workspace-tools:unbuild",
26
+ ...schema,
27
+ directory: schema.directory,
28
+ description: schema.description
29
+ };
30
+ const options = await normalizeOptions(tree, tsLibraryGeneratorOptions);
31
+ const { className, name, propertyName } = names(options.name);
32
+ generateFiles(tree, filesDir, options.projectRoot, {
33
+ ...schema,
34
+ dot: ".",
35
+ className,
36
+ name,
37
+ namespace: process.env.STORM_NAMESPACE ?? "storm-software",
38
+ description: schema.description ?? "",
39
+ propertyName,
40
+ js: !!options.js,
41
+ cliCommand: "nx",
42
+ strict: void 0,
43
+ tmpl: "",
44
+ offsetFromRoot: offsetFromRoot(options.projectRoot),
45
+ buildable: options.bundler && options.bundler !== "none",
46
+ hasUnitTestRunner: options.unitTestRunner !== "none"
47
+ });
48
+ await typeScriptLibraryGeneratorFn(tree, tsLibraryGeneratorOptions, config);
49
+ await formatFiles(tree);
50
+ return null;
51
+ }
52
+ __name(nodeLibraryGeneratorFn, "nodeLibraryGeneratorFn");
53
+ var generator_default = withRunGenerator("TypeScript Library Creator (NodeJs Platform)", nodeLibraryGeneratorFn, {
54
+ hooks: {
55
+ applyDefaultOptions: /* @__PURE__ */ __name((options) => {
56
+ options.description ??= "A library used by Storm Software to support NodeJs applications";
57
+ options.platform ??= "node";
58
+ return options;
59
+ }, "applyDefaultOptions")
60
+ }
61
+ });
62
+
63
+ export {
64
+ nodeLibraryGeneratorFn,
65
+ generator_default
66
+ };
@@ -0,0 +1,31 @@
1
+ import {
2
+ buildCargoCommand,
3
+ cargoCommand
4
+ } from "./chunk-QZHIWK5Z.mjs";
5
+ import {
6
+ withRunExecutor
7
+ } from "./chunk-6267MSX4.mjs";
8
+ import {
9
+ __name
10
+ } from "./chunk-XUV4U54K.mjs";
11
+
12
+ // src/executors/cargo-check/executor.ts
13
+ async function cargoCheckExecutor(options, context) {
14
+ const command = buildCargoCommand("check", options, context);
15
+ return await cargoCommand(...command);
16
+ }
17
+ __name(cargoCheckExecutor, "cargoCheckExecutor");
18
+ var executor_default = withRunExecutor("Cargo Check", cargoCheckExecutor, {
19
+ skipReadingConfig: false,
20
+ hooks: {
21
+ applyDefaultOptions: /* @__PURE__ */ __name((options) => {
22
+ options.toolchain ??= "stable";
23
+ return options;
24
+ }, "applyDefaultOptions")
25
+ }
26
+ });
27
+
28
+ export {
29
+ cargoCheckExecutor,
30
+ executor_default
31
+ };
@@ -0,0 +1,302 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+ var _chunkCT7IVPJYjs = require('./chunk-CT7IVPJY.js');
10
+
11
+
12
+ var _chunkMSENNRAYjs = require('./chunk-MSENNRAY.js');
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+ var _chunk36FMHXUDjs = require('./chunk-36FMHXUD.js');
23
+
24
+
25
+ var _chunkXCSSYTCUjs = require('./chunk-XCSSYTCU.js');
26
+
27
+
28
+ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
29
+
30
+ // ../tsdown/src/build.ts
31
+ var _node = require('@humanfs/node');
32
+ var _devkit = require('@nx/devkit');
33
+ var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
34
+ var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
35
+ var _tsdown = require('tsdown');
36
+
37
+ // ../tsdown/src/clean.ts
38
+
39
+ async function clean(name = "ESBuild", directory, config) {
40
+ _chunk36FMHXUDjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
41
+ const stopwatch = _chunk36FMHXUDjs.getStopwatch.call(void 0, `${name} output clean`);
42
+ await _node.hfs.deleteAll(directory);
43
+ stopwatch();
44
+ }
45
+ _chunk3GQAWCBQjs.__name.call(void 0, clean, "clean");
46
+
47
+ // ../tsdown/src/config.ts
48
+ var DEFAULT_BUILD_OPTIONS = {
49
+ platform: "node",
50
+ target: "node22",
51
+ format: [
52
+ "esm",
53
+ "cjs"
54
+ ],
55
+ tsconfig: "tsconfig.json",
56
+ envName: "production",
57
+ globalName: "globalThis",
58
+ unused: {
59
+ level: "error"
60
+ },
61
+ injectShims: true,
62
+ watch: false,
63
+ bundle: true,
64
+ treeshake: true,
65
+ clean: true,
66
+ debug: false
67
+ };
68
+
69
+ // ../tsdown/src/build.ts
70
+ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (userOptions) => {
71
+ const projectRoot = userOptions.projectRoot;
72
+ const workspaceRoot = _findworkspaceroot.findWorkspaceRoot.call(void 0, projectRoot);
73
+ if (!workspaceRoot) {
74
+ throw new Error("Cannot find Nx workspace root");
75
+ }
76
+ const config = await _chunk36FMHXUDjs.loadStormConfig.call(void 0, workspaceRoot.dir);
77
+ _chunk36FMHXUDjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
78
+ const stopwatch = _chunk36FMHXUDjs.getStopwatch.call(void 0, "Build options resolution");
79
+ const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
80
+ exitOnError: true
81
+ });
82
+ const projectJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "project.json");
83
+ if (!await _node.hfs.isFile(projectJsonPath)) {
84
+ throw new Error("Cannot find project.json configuration");
85
+ }
86
+ const projectJson = await _node.hfs.json(projectJsonPath);
87
+ const projectName = projectJson.name;
88
+ const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
89
+ if (!_optionalChain([projectConfigurations, 'optionalAccess', _ => _.projects, 'optionalAccess', _2 => _2[projectName]])) {
90
+ throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
91
+ }
92
+ const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
93
+ options.name ??= `${projectName}-${options.format}`;
94
+ options.target ??= _chunkCT7IVPJYjs.DEFAULT_TARGET;
95
+ const packageJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
96
+ if (!await _node.hfs.isFile(packageJsonPath)) {
97
+ throw new Error("Cannot find package.json configuration");
98
+ }
99
+ const env = _chunkCT7IVPJYjs.getEnv.call(void 0, "tsdown", options);
100
+ const result = {
101
+ ...options,
102
+ config,
103
+ ...userOptions,
104
+ tsconfig: _chunkXCSSYTCUjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
105
+ format: options.format || "cjs",
106
+ entryPoints: await _chunkCT7IVPJYjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
107
+ "./src/index.ts"
108
+ ], userOptions.emitOnAll),
109
+ outdir: userOptions.outputPath || _chunkXCSSYTCUjs.joinPaths.call(void 0, "dist", projectRoot),
110
+ plugins: [],
111
+ name: userOptions.name || projectName,
112
+ projectConfigurations,
113
+ projectName,
114
+ projectGraph,
115
+ sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkXCSSYTCUjs.joinPaths.call(void 0, projectRoot, "src"),
116
+ minify: userOptions.minify || !userOptions.debug,
117
+ verbose: userOptions.verbose || _chunk36FMHXUDjs.isVerbose.call(void 0, ) || userOptions.debug === true,
118
+ includeSrc: userOptions.includeSrc === true,
119
+ metafile: userOptions.metafile !== false,
120
+ generatePackageJson: userOptions.generatePackageJson !== false,
121
+ clean: userOptions.clean !== false,
122
+ emitOnAll: userOptions.emitOnAll === true,
123
+ dts: userOptions.emitTypes === true ? {
124
+ transformer: "oxc"
125
+ } : userOptions.emitTypes,
126
+ bundleDts: userOptions.emitTypes,
127
+ assets: _nullishCoalesce(userOptions.assets, () => ( [])),
128
+ shims: userOptions.injectShims !== true,
129
+ bundle: userOptions.bundle !== false,
130
+ watch: userOptions.watch === true,
131
+ define: {
132
+ STORM_FORMAT: JSON.stringify(options.format || "cjs"),
133
+ ...options.format === "cjs" && options.injectShims ? {
134
+ "import.meta.url": "importMetaUrl"
135
+ } : {},
136
+ ...Object.keys(env || {}).reduce((res, key) => {
137
+ const value = JSON.stringify(env[key]);
138
+ return {
139
+ ...res,
140
+ [`process.env.${key}`]: value,
141
+ [`import.meta.env.${key}`]: value
142
+ };
143
+ }, {}),
144
+ ...options.define
145
+ }
146
+ };
147
+ stopwatch();
148
+ return result;
149
+ }, "resolveOptions");
150
+ async function generatePackageJson(options) {
151
+ if (options.generatePackageJson !== false && await _node.hfs.isFile(_chunkXCSSYTCUjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
152
+ _chunk36FMHXUDjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
153
+ const stopwatch = _chunk36FMHXUDjs.getStopwatch.call(void 0, "Write package.json file");
154
+ const packageJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, options.projectRoot, "project.json");
155
+ if (!await _node.hfs.isFile(packageJsonPath)) {
156
+ throw new Error("Cannot find package.json configuration");
157
+ }
158
+ let packageJson = await _node.hfs.json(_chunkXCSSYTCUjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"));
159
+ if (!packageJson) {
160
+ throw new Error("Cannot find package.json configuration file");
161
+ }
162
+ packageJson = await _chunkCT7IVPJYjs.addPackageDependencies.call(void 0, options.config.workspaceRoot, options.projectRoot, options.projectName, packageJson);
163
+ packageJson = await _chunkCT7IVPJYjs.addWorkspacePackageJsonFields.call(void 0, options.config, options.projectRoot, options.sourceRoot, options.projectName, false, packageJson);
164
+ packageJson.exports ??= {};
165
+ packageJson.exports["./package.json"] ??= "./package.json";
166
+ packageJson.exports["."] ??= _chunkCT7IVPJYjs.addPackageJsonExport.call(void 0, "index", packageJson.type, options.sourceRoot);
167
+ let entryPoints = [
168
+ {
169
+ in: "./src/index.ts",
170
+ out: "./src/index.ts"
171
+ }
172
+ ];
173
+ if (options.entryPoints) {
174
+ if (Array.isArray(options.entryPoints)) {
175
+ entryPoints = options.entryPoints.map((entryPoint) => typeof entryPoint === "string" ? {
176
+ in: entryPoint,
177
+ out: entryPoint
178
+ } : entryPoint);
179
+ }
180
+ for (const entryPoint of entryPoints) {
181
+ const split = entryPoint.out.split(".");
182
+ split.pop();
183
+ const entry = split.join(".").replaceAll("\\", "/");
184
+ packageJson.exports[`./${entry}`] ??= _chunkCT7IVPJYjs.addPackageJsonExport.call(void 0, entry, packageJson.type, options.sourceRoot);
185
+ }
186
+ }
187
+ packageJson.main = packageJson.type === "commonjs" ? "./dist/index.js" : "./dist/index.cjs";
188
+ packageJson.module = packageJson.type === "module" ? "./dist/index.js" : "./dist/index.mjs";
189
+ packageJson.types = "./dist/index.d.ts";
190
+ packageJson.exports = Object.keys(packageJson.exports).reduce((ret, key) => {
191
+ if (key.endsWith("/index") && !ret[key.replace("/index", "")]) {
192
+ ret[key.replace("/index", "")] = packageJson.exports[key];
193
+ }
194
+ return ret;
195
+ }, packageJson.exports);
196
+ await _devkit.writeJsonFile.call(void 0, _chunkXCSSYTCUjs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
197
+ stopwatch();
198
+ }
199
+ return options;
200
+ }
201
+ _chunk3GQAWCBQjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
202
+ async function executeTSDown(options) {
203
+ _chunk36FMHXUDjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
204
+ const stopwatch = _chunk36FMHXUDjs.getStopwatch.call(void 0, `${options.name} build`);
205
+ await _tsdown.build.call(void 0, {
206
+ ...options,
207
+ entry: options.entryPoints,
208
+ outDir: options.outdir,
209
+ config: false
210
+ });
211
+ stopwatch();
212
+ return options;
213
+ }
214
+ _chunk3GQAWCBQjs.__name.call(void 0, executeTSDown, "executeTSDown");
215
+ async function copyBuildAssets(options) {
216
+ _chunk36FMHXUDjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
217
+ const stopwatch = _chunk36FMHXUDjs.getStopwatch.call(void 0, `${options.name} asset copy`);
218
+ await _chunkCT7IVPJYjs.copyAssets.call(void 0, options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.projectName, options.sourceRoot, true, false);
219
+ stopwatch();
220
+ return options;
221
+ }
222
+ _chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
223
+ async function reportResults(options) {
224
+ _chunk36FMHXUDjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
225
+ }
226
+ _chunk3GQAWCBQjs.__name.call(void 0, reportResults, "reportResults");
227
+ async function cleanOutputPath(options) {
228
+ if (options.clean !== false && options.outdir) {
229
+ await clean(options.name, options.outdir, options.config);
230
+ }
231
+ return options;
232
+ }
233
+ _chunk3GQAWCBQjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
234
+ async function build(options) {
235
+ _chunk36FMHXUDjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
236
+ const stopwatch = _chunk36FMHXUDjs.getStopwatch.call(void 0, "TSDown pipeline");
237
+ try {
238
+ const opts = Array.isArray(options) ? options : [
239
+ options
240
+ ];
241
+ if (opts.length === 0) {
242
+ throw new Error("No build options were provided");
243
+ }
244
+ const resolved = await Promise.all(opts.map(async (opt) => await resolveOptions(opt)));
245
+ if (resolved.length > 0) {
246
+ await cleanOutputPath(resolved[0]);
247
+ await generatePackageJson(resolved[0]);
248
+ await Promise.all(resolved.map(async (opt) => {
249
+ await executeTSDown(opt);
250
+ await copyBuildAssets(opt);
251
+ await reportResults(opt);
252
+ }));
253
+ } else {
254
+ _chunk36FMHXUDjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
255
+ }
256
+ _chunk36FMHXUDjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
257
+ } catch (error) {
258
+ _chunk36FMHXUDjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
259
+ throw error;
260
+ } finally {
261
+ stopwatch();
262
+ }
263
+ }
264
+ _chunk3GQAWCBQjs.__name.call(void 0, build, "build");
265
+
266
+ // src/executors/tsdown/executor.ts
267
+ async function tsdownExecutorFn(options, context, config) {
268
+ _chunk36FMHXUDjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
269
+ if (!_optionalChain([context, 'access', _3 => _3.projectsConfigurations, 'optionalAccess', _4 => _4.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _5 => _5.projectsConfigurations, 'access', _6 => _6.projects, 'access', _7 => _7[context.projectName], 'optionalAccess', _8 => _8.root])) {
270
+ throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
271
+ }
272
+ await build({
273
+ ...options,
274
+ projectRoot: _optionalChain([context, 'access', _9 => _9.projectsConfigurations, 'access', _10 => _10.projects, 'optionalAccess', _11 => _11[context.projectName], 'access', _12 => _12.root]),
275
+ projectName: context.projectName,
276
+ sourceRoot: _optionalChain([context, 'access', _13 => _13.projectsConfigurations, 'access', _14 => _14.projects, 'optionalAccess', _15 => _15[context.projectName], 'optionalAccess', _16 => _16.sourceRoot]),
277
+ format: options.format,
278
+ platform: options.platform
279
+ });
280
+ return {
281
+ success: true
282
+ };
283
+ }
284
+ _chunk3GQAWCBQjs.__name.call(void 0, tsdownExecutorFn, "tsdownExecutorFn");
285
+ var executor_default = _chunkMSENNRAYjs.withRunExecutor.call(void 0, "Storm TSDown build executor", tsdownExecutorFn, {
286
+ skipReadingConfig: false,
287
+ hooks: {
288
+ applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
289
+ options.entry ??= [
290
+ "src/index.ts"
291
+ ];
292
+ options.outputPath ??= "dist/{projectRoot}";
293
+ options.tsconfig ??= "{projectRoot}/tsconfig.json";
294
+ return options;
295
+ }, "applyDefaultOptions")
296
+ }
297
+ });
298
+
299
+
300
+
301
+
302
+ exports.tsdownExecutorFn = tsdownExecutorFn; exports.executor_default = executor_default;