powerlines 0.36.28 → 0.37.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 (323) hide show
  1. package/dist/{context-DU4oqb6r.d.cts → api-CLQePK25.d.cts} +262 -127
  2. package/dist/{context-DmCNtNIs.d.ts → api-DClrDYWk.d.ts} +262 -127
  3. package/dist/api.cjs +4 -4
  4. package/dist/api.d.cts +7 -7
  5. package/dist/api.d.ts +7 -7
  6. package/dist/api.js +3 -3
  7. package/dist/astro.cjs +6 -6
  8. package/dist/astro.d.cts +6 -5
  9. package/dist/astro.d.ts +6 -5
  10. package/dist/astro.js +5 -5
  11. package/dist/{chunk-K4ZR45W7.cjs → chunk-2ZNVD64B.cjs} +4 -4
  12. package/dist/{chunk-7IDSUDJN.js → chunk-3JGCXWAM.js} +3 -3
  13. package/dist/chunk-42ZHOCZJ.cjs +14 -0
  14. package/dist/{chunk-PZZP3VX2.cjs → chunk-4PIVB3SY.cjs} +14 -9
  15. package/dist/{chunk-ZCMOAOQN.cjs → chunk-B6DVCLP5.cjs} +8 -7
  16. package/dist/chunk-CCJQBJKQ.js +12 -0
  17. package/dist/{chunk-VZMAJMBD.js → chunk-DVJEAUGP.js} +5 -5
  18. package/dist/{chunk-3CCAN6GY.cjs → chunk-E4QAO32M.cjs} +176 -128
  19. package/dist/chunk-FON7JDQF.cjs +12 -0
  20. package/dist/{chunk-NSHXFNIL.js → chunk-IBQ5USID.js} +12 -7
  21. package/dist/{chunk-TP4FRF4H.cjs → chunk-JQDMR7OP.cjs} +2 -2
  22. package/dist/{chunk-4VQBXIAH.js → chunk-MI5E6YZI.js} +3 -3
  23. package/dist/chunk-NITQ5IYP.js +22 -0
  24. package/dist/{chunk-JMX44J5R.js → chunk-NM3AFEVI.js} +174 -128
  25. package/dist/{chunk-AJPO5EP7.js → chunk-PQXP7XQK.js} +8 -7
  26. package/dist/{chunk-OCEXXVLR.cjs → chunk-TFRZZNXL.cjs} +6 -6
  27. package/dist/{chunk-JTK4RYSG.js → chunk-U5MNJ4XF.js} +3 -3
  28. package/dist/{chunk-EXY3RCJH.js → chunk-UNIWU6XL.js} +2 -2
  29. package/dist/chunk-V5WOGN7O.cjs +25 -0
  30. package/dist/chunk-XHOP5GXJ.cjs +12 -0
  31. package/dist/esbuild.cjs +8 -8
  32. package/dist/esbuild.d.cts +6 -5
  33. package/dist/esbuild.d.ts +6 -5
  34. package/dist/esbuild.js +5 -5
  35. package/dist/farm.cjs +5 -5
  36. package/dist/farm.d.cts +6 -5
  37. package/dist/farm.d.ts +6 -5
  38. package/dist/farm.js +4 -4
  39. package/dist/index.cjs +30 -22
  40. package/dist/index.d.cts +6 -7
  41. package/dist/index.d.ts +6 -7
  42. package/dist/index.js +6 -6
  43. package/dist/lib/build/esbuild.d.cts +1 -1
  44. package/dist/lib/build/esbuild.d.ts +1 -1
  45. package/dist/lib/build/index.d.cts +2 -3
  46. package/dist/lib/build/index.d.ts +2 -3
  47. package/dist/lib/build/rolldown.d.cts +1 -1
  48. package/dist/lib/build/rolldown.d.ts +1 -1
  49. package/dist/lib/build/rollup.d.cts +1 -1
  50. package/dist/lib/build/rollup.d.ts +1 -1
  51. package/dist/lib/build/rspack.d.cts +1 -1
  52. package/dist/lib/build/rspack.d.ts +1 -1
  53. package/dist/lib/build/tsdown.d.cts +1 -1
  54. package/dist/lib/build/tsdown.d.ts +1 -1
  55. package/dist/lib/build/tsup.d.cts +1 -1
  56. package/dist/lib/build/tsup.d.ts +1 -1
  57. package/dist/lib/build/unbuild.d.cts +2 -3
  58. package/dist/lib/build/unbuild.d.ts +2 -3
  59. package/dist/lib/build/vite.d.cts +1 -1
  60. package/dist/lib/build/vite.d.ts +1 -1
  61. package/dist/lib/build/webpack.d.cts +1 -1
  62. package/dist/lib/build/webpack.d.ts +1 -1
  63. package/dist/lib/chunk-254IMO3A.js +17 -0
  64. package/dist/lib/chunk-254IMO3A.js.map +1 -0
  65. package/dist/lib/{chunk-T3VYM4BO.cjs → chunk-4QMQCXAG.cjs} +6 -6
  66. package/dist/lib/{chunk-T3VYM4BO.cjs.map → chunk-4QMQCXAG.cjs.map} +1 -1
  67. package/dist/lib/chunk-64R4MDJ7.cjs +25 -0
  68. package/dist/lib/chunk-64R4MDJ7.cjs.map +1 -0
  69. package/dist/lib/{chunk-HEMW2YZA.js → chunk-7PD2L3PS.js} +2 -2
  70. package/dist/lib/{chunk-HEMW2YZA.js.map → chunk-7PD2L3PS.js.map} +1 -1
  71. package/dist/lib/{chunk-PWKYZBQQ.js → chunk-FI4QUQV2.js} +4 -4
  72. package/dist/lib/{chunk-PWKYZBQQ.js.map → chunk-FI4QUQV2.js.map} +1 -1
  73. package/dist/lib/{chunk-3RTOKGVV.cjs → chunk-G3BXMS2V.cjs} +47 -48
  74. package/dist/lib/chunk-G3BXMS2V.cjs.map +1 -0
  75. package/dist/lib/chunk-GNEHIBN4.cjs +20 -0
  76. package/dist/lib/chunk-GNEHIBN4.cjs.map +1 -0
  77. package/dist/lib/{chunk-57WHQU5T.cjs → chunk-GZDE4GLY.cjs} +2 -2
  78. package/dist/lib/{chunk-57WHQU5T.cjs.map → chunk-GZDE4GLY.cjs.map} +1 -1
  79. package/dist/lib/chunk-HGE5DAZF.js +22 -0
  80. package/dist/lib/chunk-HGE5DAZF.js.map +1 -0
  81. package/dist/lib/{chunk-GUZKITBG.js → chunk-I7BLJZ4D.js} +5 -5
  82. package/dist/lib/chunk-I7BLJZ4D.js.map +1 -0
  83. package/dist/lib/{chunk-MZQFHBHY.cjs → chunk-QVDESIYV.cjs} +5 -5
  84. package/dist/lib/chunk-QVDESIYV.cjs.map +1 -0
  85. package/dist/lib/{chunk-POY47Z36.js → chunk-TO3SBSXL.js} +35 -36
  86. package/dist/lib/chunk-TO3SBSXL.js.map +1 -0
  87. package/dist/lib/{chunk-XAALLEOG.js → chunk-TWAVU346.js} +27 -29
  88. package/dist/lib/chunk-TWAVU346.js.map +1 -0
  89. package/dist/lib/{chunk-C7KNYLNP.cjs → chunk-UXLXQOJD.cjs} +29 -30
  90. package/dist/lib/chunk-UXLXQOJD.cjs.map +1 -0
  91. package/dist/lib/chunk-WAN5RBXY.cjs +234 -0
  92. package/dist/lib/chunk-WAN5RBXY.cjs.map +1 -0
  93. package/dist/lib/chunk-XDUEQVFC.js +232 -0
  94. package/dist/lib/chunk-XDUEQVFC.js.map +1 -0
  95. package/dist/lib/{config-BSQhtJCR.d.ts → config-BLfOgflT.d.ts} +230 -104
  96. package/dist/lib/{config-CP6f9ozu.d.cts → config-CmG_oSbS.d.cts} +230 -104
  97. package/dist/lib/config-file.d.cts +1 -1
  98. package/dist/lib/config-file.d.ts +1 -1
  99. package/dist/lib/contexts/api-context.cjs +7 -5
  100. package/dist/lib/contexts/api-context.d.cts +2 -3
  101. package/dist/lib/contexts/api-context.d.ts +2 -3
  102. package/dist/lib/contexts/api-context.js +6 -4
  103. package/dist/lib/contexts/context.cjs +3 -2
  104. package/dist/lib/contexts/context.d.cts +2 -3
  105. package/dist/lib/contexts/context.d.ts +2 -3
  106. package/dist/lib/contexts/context.js +2 -1
  107. package/dist/lib/contexts/environment-context.cjs +6 -4
  108. package/dist/lib/contexts/environment-context.d.cts +3 -4
  109. package/dist/lib/contexts/environment-context.d.ts +3 -4
  110. package/dist/lib/contexts/environment-context.js +5 -3
  111. package/dist/lib/contexts/index.cjs +10 -8
  112. package/dist/lib/contexts/index.d.cts +2 -3
  113. package/dist/lib/contexts/index.d.ts +2 -3
  114. package/dist/lib/contexts/index.js +6 -4
  115. package/dist/lib/contexts/plugin-context.cjs +2 -2
  116. package/dist/lib/contexts/plugin-context.d.cts +2 -3
  117. package/dist/lib/contexts/plugin-context.d.ts +2 -3
  118. package/dist/lib/contexts/plugin-context.js +1 -1
  119. package/dist/lib/entry.d.cts +1 -1
  120. package/dist/lib/entry.d.ts +1 -1
  121. package/dist/lib/fs/index.d.cts +1 -1
  122. package/dist/lib/fs/index.d.ts +1 -1
  123. package/dist/lib/fs/vfs.d.cts +1 -1
  124. package/dist/lib/fs/vfs.d.ts +1 -1
  125. package/dist/lib/index.cjs +22 -17
  126. package/dist/lib/index.d.cts +3 -5
  127. package/dist/lib/index.d.ts +3 -5
  128. package/dist/lib/index.js +8 -7
  129. package/dist/lib/{internal-BusfSz8D.d.ts → internal-BfGb9HLc.d.ts} +4 -3
  130. package/dist/lib/{internal-CPKLmt5v.d.cts → internal-CYMrNGHE.d.cts} +4 -3
  131. package/dist/lib/logger.d.cts +1 -1
  132. package/dist/lib/logger.d.ts +1 -1
  133. package/dist/lib/typescript/import-transformer.d.cts +1 -1
  134. package/dist/lib/typescript/import-transformer.d.ts +1 -1
  135. package/dist/lib/typescript/index.d.cts +1 -1
  136. package/dist/lib/typescript/index.d.ts +1 -1
  137. package/dist/lib/typescript/ts-morph.d.cts +1 -1
  138. package/dist/lib/typescript/ts-morph.d.ts +1 -1
  139. package/dist/lib/unplugin/factory.cjs +8 -6
  140. package/dist/lib/unplugin/factory.d.cts +4 -128
  141. package/dist/lib/unplugin/factory.d.ts +4 -128
  142. package/dist/lib/unplugin/factory.js +7 -5
  143. package/dist/lib/unplugin/helpers.cjs +7 -2
  144. package/dist/lib/unplugin/helpers.d.cts +9 -2
  145. package/dist/lib/unplugin/helpers.d.ts +9 -2
  146. package/dist/lib/unplugin/helpers.js +2 -1
  147. package/dist/lib/unplugin/index.cjs +15 -10
  148. package/dist/lib/unplugin/index.d.cts +4 -6
  149. package/dist/lib/unplugin/index.d.ts +4 -6
  150. package/dist/lib/unplugin/index.js +8 -7
  151. package/dist/lib/unplugin/plugin.cjs +4 -3
  152. package/dist/lib/unplugin/plugin.d.cts +2 -4
  153. package/dist/lib/unplugin/plugin.d.ts +2 -4
  154. package/dist/lib/unplugin/plugin.js +3 -2
  155. package/dist/lib/utilities/bundle.d.cts +1 -1
  156. package/dist/lib/utilities/bundle.d.ts +1 -1
  157. package/dist/lib/utilities/cache.d.cts +1 -1
  158. package/dist/lib/utilities/cache.d.ts +1 -1
  159. package/dist/lib/utilities/file-header.d.cts +1 -1
  160. package/dist/lib/utilities/file-header.d.ts +1 -1
  161. package/dist/lib/utilities/index.d.cts +1 -1
  162. package/dist/lib/utilities/index.d.ts +1 -1
  163. package/dist/lib/utilities/meta.d.cts +1 -1
  164. package/dist/lib/utilities/meta.d.ts +1 -1
  165. package/dist/lib/utilities/resolve.d.cts +1 -1
  166. package/dist/lib/utilities/resolve.d.ts +1 -1
  167. package/dist/lib/utilities/source-file.d.cts +1 -1
  168. package/dist/lib/utilities/source-file.d.ts +1 -1
  169. package/dist/lib/utilities/source-map.d.cts +1 -1
  170. package/dist/lib/utilities/source-map.d.ts +1 -1
  171. package/dist/lib/utilities/worker.d.cts +1 -1
  172. package/dist/lib/utilities/worker.d.ts +1 -1
  173. package/dist/lib/utilities/write-file.d.cts +1 -1
  174. package/dist/lib/utilities/write-file.d.ts +1 -1
  175. package/dist/next.cjs +6 -6
  176. package/dist/next.js +5 -5
  177. package/dist/nuxt.cjs +9 -9
  178. package/dist/nuxt.d.cts +4 -3
  179. package/dist/nuxt.d.ts +4 -3
  180. package/dist/nuxt.js +7 -7
  181. package/dist/plugin-utils/{chunk-EJ5XPAJQ.cjs → chunk-2I5L22QB.cjs} +8 -6
  182. package/dist/plugin-utils/chunk-2I5L22QB.cjs.map +1 -0
  183. package/dist/plugin-utils/{chunk-AHZPK4Z5.cjs → chunk-4FLR5DY5.cjs} +7 -7
  184. package/dist/plugin-utils/{chunk-AHZPK4Z5.cjs.map → chunk-4FLR5DY5.cjs.map} +1 -1
  185. package/dist/plugin-utils/{chunk-BWAX3NRG.cjs → chunk-6YOLE5BT.cjs} +34 -21
  186. package/dist/plugin-utils/chunk-6YOLE5BT.cjs.map +1 -0
  187. package/dist/plugin-utils/{chunk-JAG7QJDV.cjs → chunk-ARNNN4GS.cjs} +5 -5
  188. package/dist/plugin-utils/chunk-ARNNN4GS.cjs.map +1 -0
  189. package/dist/plugin-utils/{chunk-FTVPZZJO.js → chunk-I3FSMSLD.js} +32 -20
  190. package/dist/plugin-utils/chunk-I3FSMSLD.js.map +1 -0
  191. package/dist/plugin-utils/{chunk-N4IXPCGY.js → chunk-RZAQTG45.js} +3 -3
  192. package/dist/plugin-utils/{chunk-N4IXPCGY.js.map → chunk-RZAQTG45.js.map} +1 -1
  193. package/dist/plugin-utils/{chunk-JCX2UJYO.js → chunk-XDURJUGS.js} +5 -3
  194. package/dist/plugin-utils/chunk-XDURJUGS.js.map +1 -0
  195. package/dist/plugin-utils/{chunk-WZCGJ7JR.js → chunk-Z2BYI6KW.js} +3 -3
  196. package/dist/plugin-utils/chunk-Z2BYI6KW.js.map +1 -0
  197. package/dist/plugin-utils/{context-GdayEWcl.d.cts → context-BQTlTcfV.d.cts} +444 -76
  198. package/dist/plugin-utils/{context-GdayEWcl.d.ts → context-BQTlTcfV.d.ts} +444 -76
  199. package/dist/plugin-utils/context-helpers.d.cts +11 -2
  200. package/dist/plugin-utils/context-helpers.d.ts +11 -2
  201. package/dist/plugin-utils/enforce.cjs +5 -5
  202. package/dist/plugin-utils/enforce.d.cts +13 -4
  203. package/dist/plugin-utils/enforce.d.ts +13 -4
  204. package/dist/plugin-utils/enforce.js +4 -4
  205. package/dist/plugin-utils/extend.cjs +4 -4
  206. package/dist/plugin-utils/extend.d.cts +11 -2
  207. package/dist/plugin-utils/extend.d.ts +11 -2
  208. package/dist/plugin-utils/extend.js +3 -3
  209. package/dist/plugin-utils/get-config-path.d.cts +11 -2
  210. package/dist/plugin-utils/get-config-path.d.ts +11 -2
  211. package/dist/plugin-utils/helpers.cjs +25 -21
  212. package/dist/plugin-utils/helpers.d.cts +36 -32
  213. package/dist/plugin-utils/helpers.d.ts +36 -32
  214. package/dist/plugin-utils/helpers.js +1 -1
  215. package/dist/plugin-utils/index.cjs +31 -27
  216. package/dist/plugin-utils/index.d.cts +12 -3
  217. package/dist/plugin-utils/index.d.ts +12 -3
  218. package/dist/plugin-utils/index.js +4 -4
  219. package/dist/plugin-utils/merge.cjs +3 -3
  220. package/dist/plugin-utils/merge.d.cts +11 -2
  221. package/dist/plugin-utils/merge.d.ts +11 -2
  222. package/dist/plugin-utils/merge.js +2 -2
  223. package/dist/plugin-utils/paths.d.cts +11 -2
  224. package/dist/plugin-utils/paths.d.ts +11 -2
  225. package/dist/rolldown.cjs +8 -8
  226. package/dist/rolldown.d.cts +6 -5
  227. package/dist/rolldown.d.ts +6 -5
  228. package/dist/rolldown.js +5 -5
  229. package/dist/rollup.cjs +5 -5
  230. package/dist/rollup.d.cts +6 -5
  231. package/dist/rollup.d.ts +6 -5
  232. package/dist/rollup.js +4 -4
  233. package/dist/rspack.cjs +5 -5
  234. package/dist/rspack.d.cts +6 -5
  235. package/dist/rspack.d.ts +6 -5
  236. package/dist/rspack.js +4 -4
  237. package/dist/tsdown.cjs +6 -6
  238. package/dist/tsdown.js +5 -5
  239. package/dist/tsup.cjs +6 -6
  240. package/dist/tsup.js +5 -5
  241. package/dist/types/api.d.cts +5 -5
  242. package/dist/types/api.d.ts +5 -5
  243. package/dist/types/babel.d.cts +6 -5
  244. package/dist/types/babel.d.ts +6 -5
  245. package/dist/types/build.cjs +7 -3
  246. package/dist/types/build.d.cts +19 -13
  247. package/dist/types/build.d.ts +19 -13
  248. package/dist/types/build.js +1 -1
  249. package/dist/types/commands.d.cts +4 -3
  250. package/dist/types/commands.d.ts +4 -3
  251. package/dist/types/config.d.cts +3 -2
  252. package/dist/types/config.d.ts +3 -2
  253. package/dist/types/context.cjs +2 -2
  254. package/dist/types/context.d.cts +3 -2
  255. package/dist/types/context.d.ts +3 -2
  256. package/dist/types/context.js +1 -1
  257. package/dist/types/hooks.cjs +8 -1
  258. package/dist/types/hooks.d.cts +15 -14
  259. package/dist/types/hooks.d.ts +15 -14
  260. package/dist/types/hooks.js +2 -1
  261. package/dist/types/index.cjs +19 -11
  262. package/dist/types/index.d.cts +4 -5
  263. package/dist/types/index.d.ts +4 -5
  264. package/dist/types/index.js +4 -4
  265. package/dist/types/internal.d.cts +8 -6
  266. package/dist/types/internal.d.ts +8 -6
  267. package/dist/types/plugin.cjs +7 -7
  268. package/dist/types/plugin.d.cts +3 -2
  269. package/dist/types/plugin.d.ts +3 -2
  270. package/dist/types/plugin.js +2 -2
  271. package/dist/types/resolved.d.cts +2 -1
  272. package/dist/types/resolved.d.ts +2 -1
  273. package/dist/types/unplugin.d.cts +14 -39
  274. package/dist/types/unplugin.d.ts +14 -39
  275. package/dist/unloader.cjs +5 -5
  276. package/dist/unloader.d.cts +4 -3
  277. package/dist/unloader.d.ts +4 -3
  278. package/dist/unloader.js +4 -4
  279. package/dist/unplugin.cjs +17 -15
  280. package/dist/unplugin.d.cts +18 -13
  281. package/dist/unplugin.d.ts +18 -13
  282. package/dist/unplugin.js +9 -13
  283. package/dist/vite.cjs +8 -8
  284. package/dist/vite.d.cts +6 -5
  285. package/dist/vite.d.ts +6 -5
  286. package/dist/vite.js +5 -5
  287. package/dist/webpack.cjs +8 -8
  288. package/dist/webpack.d.cts +6 -5
  289. package/dist/webpack.d.ts +6 -5
  290. package/dist/webpack.js +5 -5
  291. package/package.json +7 -4
  292. package/dist/api-D0gA4eJU.d.cts +0 -142
  293. package/dist/api-cYTlb0MO.d.ts +0 -142
  294. package/dist/chunk-HJW7OH6E.js +0 -3
  295. package/dist/chunk-J7SXQCBV.cjs +0 -12
  296. package/dist/chunk-U2RJRKLT.js +0 -15
  297. package/dist/chunk-WVLFG7L6.cjs +0 -12
  298. package/dist/chunk-XOMY3USD.cjs +0 -17
  299. package/dist/chunk-XZO6ZJQP.cjs +0 -4
  300. package/dist/lib/api-BeWRTlF3.d.cts +0 -141
  301. package/dist/lib/api-C00m3GB0.d.ts +0 -141
  302. package/dist/lib/chunk-3RTOKGVV.cjs.map +0 -1
  303. package/dist/lib/chunk-A4RSMLXW.cjs +0 -13
  304. package/dist/lib/chunk-A4RSMLXW.cjs.map +0 -1
  305. package/dist/lib/chunk-C7KNYLNP.cjs.map +0 -1
  306. package/dist/lib/chunk-DLX6BNNE.cjs +0 -196
  307. package/dist/lib/chunk-DLX6BNNE.cjs.map +0 -1
  308. package/dist/lib/chunk-GUZKITBG.js.map +0 -1
  309. package/dist/lib/chunk-HDUSUF6L.js +0 -11
  310. package/dist/lib/chunk-HDUSUF6L.js.map +0 -1
  311. package/dist/lib/chunk-MZQFHBHY.cjs.map +0 -1
  312. package/dist/lib/chunk-POY47Z36.js.map +0 -1
  313. package/dist/lib/chunk-XAALLEOG.js.map +0 -1
  314. package/dist/lib/chunk-XHDL2XZB.js +0 -194
  315. package/dist/lib/chunk-XHDL2XZB.js.map +0 -1
  316. package/dist/lib/unplugin-BKtwOoMk.d.ts +0 -18
  317. package/dist/lib/unplugin-BWG1mWFO.d.cts +0 -18
  318. package/dist/plugin-utils/chunk-BWAX3NRG.cjs.map +0 -1
  319. package/dist/plugin-utils/chunk-EJ5XPAJQ.cjs.map +0 -1
  320. package/dist/plugin-utils/chunk-FTVPZZJO.js.map +0 -1
  321. package/dist/plugin-utils/chunk-JAG7QJDV.cjs.map +0 -1
  322. package/dist/plugin-utils/chunk-JCX2UJYO.js.map +0 -1
  323. package/dist/plugin-utils/chunk-WZCGJ7JR.js.map +0 -1
@@ -1,6 +1,6 @@
1
+ import { MaybePromise, NonUndefined, AnyFunction, DeepPartial as DeepPartial$1 } from '@stryke/types/base';
1
2
  import { EnvPaths } from '@stryke/env/get-env-paths';
2
3
  import { FetchRequestOptions } from '@stryke/http/fetch';
3
- import { MaybePromise, NonUndefined, FunctionLike, DeepPartial as DeepPartial$1 } from '@stryke/types/base';
4
4
  import { PackageJson } from '@stryke/types/package-json';
5
5
  import { Worker } from 'jest-worker';
6
6
  import { Jiti } from 'jiti';
@@ -10,7 +10,7 @@ import { Range } from 'semver';
10
10
  import { Project } from 'ts-morph';
11
11
  import { RequestInfo, Response } from 'undici';
12
12
  import { Unimport } from 'unimport';
13
- import { TransformResult as TransformResult$1, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginMessage, UnpluginBuildContext, UnpluginContext } from 'unplugin';
13
+ import { UnpluginOptions as UnpluginOptions$1, HookFilter, UnpluginContextMeta, TransformResult as TransformResult$1, ExternalIdResult, UnpluginMessage, UnpluginBuildContext, UnpluginContext } from 'unplugin';
14
14
  import { PluginPass, PluginObj, PluginItem, TransformOptions, transformAsync } from '@babel/core';
15
15
  import { Format } from '@storm-software/build-tools/types';
16
16
  import { LogLevelLabel } from '@storm-software/config-tools/types';
@@ -21,9 +21,10 @@ import { ResolvedConfig as ResolvedConfig$1, ConfigLayer } from 'c12';
21
21
  import { DateString } from 'compatx';
22
22
  import { ResolvedPreviewOptions, PreviewOptions, ResolvedConfig as ResolvedConfig$2 } from 'vite';
23
23
  import { BabelAPI } from '@babel/helper-plugin-utils';
24
+ import { BuilderVariant, InferUnpluginVariant, UnpluginBuilderVariant, BuildConfig, BuildResolvedConfig, WebpackBuildConfig, WebpackResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, ViteBuildConfig, ViteResolvedBuildConfig, ESBuildBuildConfig, ESBuildResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig } from './types/build.js';
24
25
  import { StoragePort, StoragePreset, VirtualFileSystemInterface, ResolveOptions, VirtualFile, WriteOptions } from './types/fs.js';
25
26
  import { ArrayValues } from '@stryke/types/array';
26
- import { BuildVariant, UnpluginBuildVariant, BuildConfig, BuildResolvedConfig, ViteBuildConfig, ViteResolvedBuildConfig, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig } from './types/build.js';
27
+ import { LoadResult } from 'rollup';
27
28
  import { TSConfig, ParsedTypeScriptConfig } from './types/tsconfig.js';
28
29
 
29
30
  interface NamedImportDefinition {
@@ -169,7 +170,7 @@ type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserCon
169
170
  * Configuration provided to build processes
170
171
  *
171
172
  * @remarks
172
- * This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
173
+ * This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuilderVariant | build variant}.
173
174
  */
174
175
  build: Omit<TUserConfig["build"], "override"> & Required<Pick<Required<TUserConfig["build"]>, "override">>;
175
176
  /**
@@ -189,7 +190,7 @@ type TsupResolvedConfig = ResolvedConfig<TsupUserConfig>;
189
190
  type TsdownResolvedConfig = ResolvedConfig<TsdownUserConfig>;
190
191
  type UnbuildResolvedConfig = ResolvedConfig<UnbuildUserConfig>;
191
192
  type FarmResolvedConfig = ResolvedConfig<FarmUserConfig>;
192
- type InferResolvedConfig<TBuildVariant extends BuildVariant | undefined> = TBuildVariant extends undefined ? ResolvedConfig : TBuildVariant extends "webpack" ? WebpackResolvedConfig : TBuildVariant extends "rspack" ? RspackResolvedConfig : TBuildVariant extends "vite" ? ViteResolvedConfig : TBuildVariant extends "esbuild" ? ESBuildResolvedConfig : TBuildVariant extends "unbuild" ? UnbuildResolvedConfig : TBuildVariant extends "tsup" ? TsupResolvedConfig : TBuildVariant extends "tsdown" ? TsdownResolvedConfig : TBuildVariant extends "rolldown" ? RolldownResolvedConfig : TBuildVariant extends "rollup" ? RollupResolvedConfig : TBuildVariant extends "farm" ? FarmResolvedConfig : ResolvedConfig;
193
+ type InferResolvedConfig<TBuildVariant extends BuilderVariant | undefined> = TBuildVariant extends undefined ? ResolvedConfig : TBuildVariant extends "webpack" ? WebpackResolvedConfig : TBuildVariant extends "rspack" ? RspackResolvedConfig : TBuildVariant extends "vite" ? ViteResolvedConfig : TBuildVariant extends "esbuild" ? ESBuildResolvedConfig : TBuildVariant extends "unbuild" ? UnbuildResolvedConfig : TBuildVariant extends "tsup" ? TsupResolvedConfig : TBuildVariant extends "tsdown" ? TsdownResolvedConfig : TBuildVariant extends "rolldown" ? RolldownResolvedConfig : TBuildVariant extends "rollup" ? RollupResolvedConfig : TBuildVariant extends "farm" ? FarmResolvedConfig : ResolvedConfig;
193
194
  declare type __ΩResolvedEntryTypeDefinition = any[];
194
195
  declare type __ΩBabelResolvedConfig = any[];
195
196
  declare type __ΩEnvironmentResolvedConfig = any[];
@@ -208,7 +209,32 @@ declare type __ΩUnbuildResolvedConfig = any[];
208
209
  declare type __ΩFarmResolvedConfig = any[];
209
210
  declare type __ΩInferResolvedConfig = any[];
210
211
 
211
- interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> {
212
+ interface UnpluginOptions<TUnpluginBuilderVariant extends UnpluginBuilderVariant = UnpluginBuilderVariant> extends UnpluginOptions$1 {
213
+ /**
214
+ * An API object that can be used for inter-plugin communication.
215
+ *
216
+ * @see https://rollupjs.org/plugin-development/#direct-plugin-communication
217
+ */
218
+ api: API<InferResolvedConfig<TUnpluginBuilderVariant>>;
219
+ }
220
+ type InferUnpluginOptions<TContext extends Context = Context, TBuilderVariant extends BuilderVariant = BuilderVariant, TUnpluginVariant extends InferUnpluginVariant<TBuilderVariant> = InferUnpluginVariant<TBuilderVariant>> = {
221
+ [TKey in keyof Required<UnpluginOptions<TUnpluginVariant>>[TUnpluginVariant]]?: Required<UnpluginOptions<TUnpluginVariant>>[TUnpluginVariant][TKey] extends infer THandler | {
222
+ handler: infer THandler;
223
+ } ? THandler extends (this: infer TOriginalContext, ...args: infer TArgs) => infer TReturn ? PluginHook<(this: TOriginalContext & TContext, ...args: TArgs) => MaybePromise<TReturn>, keyof HookFilter> : Required<UnpluginOptions<TUnpluginVariant>>[TUnpluginVariant][TKey] : Required<UnpluginOptions<TUnpluginVariant>>[TUnpluginVariant][TKey];
224
+ };
225
+ type UnpluginUserConfig<TBuilderVariant extends BuilderVariant | undefined> = InferUserConfig<TBuilderVariant> & {
226
+ /**
227
+ * The meta information for the unplugin context
228
+ */
229
+ unplugin: UnpluginContextMeta;
230
+ };
231
+ type UnpluginFactory<TUnpluginBuilderVariant extends UnpluginBuilderVariant> = (options: Partial<InferUserConfig<TUnpluginBuilderVariant>>, meta: UnpluginContextMeta) => UnpluginOptions;
232
+ declare type __ΩUnpluginOptions = any[];
233
+ declare type __ΩInferUnpluginOptions = any[];
234
+ declare type __ΩUnpluginUserConfig = any[];
235
+ declare type __ΩUnpluginFactory = any[];
236
+
237
+ interface PluginHookObject<THookFunction extends AnyFunction, TFilter extends keyof HookFilter = never> {
212
238
  /**
213
239
  * The order in which the plugin should be applied.
214
240
  */
@@ -222,7 +248,7 @@ interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends k
222
248
  */
223
249
  handler: THookFunction;
224
250
  }
225
- type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> = THookFunction | PluginHookObject<THookFunction, TFilter>;
251
+ type PluginHook<THookFunction extends AnyFunction, TFilter extends keyof HookFilter = never> = THookFunction | PluginHookObject<THookFunction, TFilter>;
226
252
  /**
227
253
  * A result returned by the plugin from the `types` hook that describes the declaration types output file.
228
254
  */
@@ -230,11 +256,9 @@ interface TypesResult {
230
256
  directives?: string[];
231
257
  code: string;
232
258
  }
233
- type DeepPartial<T> = {
234
- [K in keyof T]?: DeepPartial<T[K]>;
235
- };
236
- type ConfigResult<TContext extends PluginContext = PluginContext> = DeepPartial<TContext["config"]> & Record<string, any>;
237
- interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext> extends Record<CommandType, (this: TContext) => MaybePromise<void>> {
259
+ type PluginHookFunctions<TContext extends PluginContext> = {
260
+ [TCommandType in CommandType]: (this: TContext) => MaybePromise<void>;
261
+ } & {
238
262
  /**
239
263
  * A function that returns configuration options to be merged with the build context's options.
240
264
  *
@@ -249,7 +273,7 @@ interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext
249
273
  * @param config - The partial configuration object to be modified.
250
274
  * @returns A promise that resolves to a partial configuration object.
251
275
  */
252
- config: (this: UnresolvedContext<TContext["config"]>) => MaybePromise<ConfigResult<TContext>>;
276
+ config: (this: UnresolvedContext<TContext["config"]>) => MaybePromise<DeepPartial<TContext["config"]> & Record<string, any>>;
253
277
  /**
254
278
  * Modify environment configs before it's resolved. The hook can either mutate the passed-in environment config directly, or return a partial config object that will be deeply merged into existing config.
255
279
  *
@@ -311,7 +335,7 @@ interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext
311
335
  * @param id - The identifier of the source code.
312
336
  * @returns A promise that resolves when the hook is complete.
313
337
  */
314
- load: (this: BuildPluginContext<TContext["config"]> & TContext, id: string) => MaybePromise<TransformResult$1>;
338
+ load: (this: BuildPluginContext<TContext["config"]> & TContext, id: string) => MaybePromise<LoadResult>;
315
339
  /**
316
340
  * A hook that is called to resolve the identifier of the source code.
317
341
  *
@@ -331,67 +355,18 @@ interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext
331
355
  * @returns A promise that resolves when the hook is complete.
332
356
  */
333
357
  writeBundle: (this: TContext) => MaybePromise<void>;
334
- }
335
- type BuildPlugin<TContext extends PluginContext = PluginContext, TBuildVariant extends UnpluginBuildVariant = UnpluginBuildVariant, TOptions extends Required<UnpluginOptions>[TBuildVariant] = Required<UnpluginOptions>[TBuildVariant]> = {
336
- [TKey in keyof TOptions]: TOptions[TKey] extends FunctionLike ? (this: ThisParameterType<TOptions[TKey]> & TContext, ...args: Parameters<TOptions[TKey]>) => ReturnType<TOptions[TKey]> | MaybePromise<ReturnType<TOptions[TKey]>> : TOptions[TKey];
337
- };
338
- type ExternalPluginHookFunctionsVariant<TContext extends PluginContext = PluginContext, TBuildVariant extends UnpluginBuildVariant = UnpluginBuildVariant> = {
339
- [TKey in keyof BuildPlugin<TContext, TBuildVariant> & string as `${TBuildVariant}:${TKey}`]: BuildPlugin<TContext, TBuildVariant>[TKey];
340
358
  };
341
- type ExternalPluginHookFunctions<TContext extends PluginContext> = ExternalPluginHookFunctionsVariant<TContext, "vite"> & ExternalPluginHookFunctionsVariant<TContext, "esbuild"> & ExternalPluginHookFunctionsVariant<TContext, "rolldown"> & ExternalPluginHookFunctionsVariant<TContext, "rollup"> & ExternalPluginHookFunctionsVariant<TContext, "webpack"> & ExternalPluginHookFunctionsVariant<TContext, "rspack"> & ExternalPluginHookFunctionsVariant<TContext, "farm">;
342
- type PluginHookFunctions<TContext extends PluginContext = PluginContext> = BasePluginHookFunctions<TContext> & ExternalPluginHookFunctions<TContext>;
343
- type PluginHooks<TContext extends PluginContext = PluginContext> = {
344
- [TKey in keyof BasePluginHookFunctions<TContext>]: PluginHook<BasePluginHookFunctions<TContext>[TKey]>;
359
+ type PluginHooks<TContext extends PluginContext> = {
360
+ [TPluginHook in keyof PluginHookFunctions<TContext>]?: PluginHook<PluginHookFunctions<TContext>[TPluginHook]>;
345
361
  } & {
346
- /**
347
- * A function that returns configuration options to be merged with the build context's options.
348
- *
349
- * @remarks
350
- * Modify config before it's resolved. The hook can either mutate {@link Context.config} on the passed-in context directly, or return a partial config object that will be deeply merged into existing config.
351
- *
352
- * @warning User plugins are resolved before running this hook so injecting other plugins inside the config hook will have no effect. If you want to add plugins, consider doing so in the {@link Plugin.dependsOn} property instead.
353
- *
354
- * @see https://vitejs.dev/guide/api-plugin#config
355
- *
356
- * @param this - The build context.
357
- * @param config - The partial configuration object to be modified.
358
- * @returns A promise that resolves to a partial configuration object.
359
- */
360
- config: PluginHook<(this: UnresolvedContext<TContext["config"]>) => MaybePromise<ConfigResult<TContext>>> | ConfigResult<TContext>;
361
- /**
362
- * A hook that is called to transform the source code.
363
- *
364
- * @param this - The build context, unplugin build context, and unplugin context.
365
- * @param code - The source code to transform.
366
- * @param id - The identifier of the source code.
367
- * @returns A promise that resolves when the hook is complete.
368
- */
369
- transform: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, code: string, id: string) => MaybePromise<TransformResult$1>, "code" | "id">;
370
- /**
371
- * A hook that is called to load the source code.
372
- *
373
- * @param this - The build context, unplugin build context, and unplugin context.
374
- * @param id - The identifier of the source code.
375
- * @returns A promise that resolves when the hook is complete.
376
- */
377
- load: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, id: string) => MaybePromise<TransformResult$1>, "id">;
378
- /**
379
- * A hook that is called to resolve the identifier of the source code.
380
- *
381
- * @param this - The build context, unplugin build context, and unplugin context.
382
- * @param id - The identifier of the source code.
383
- * @param importer - The importer of the source code.
384
- * @param options - The options for resolving the identifier.
385
- * @returns A promise that resolves when the hook is complete.
386
- */
387
- resolveId: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
388
- isEntry: boolean;
389
- }) => MaybePromise<string | ExternalIdResult | null | undefined>, "id">;
362
+ transform: PluginHook<PluginHookFunctions<TContext>["transform"], "code" | "id">;
363
+ load: PluginHook<PluginHookFunctions<TContext>["load"], "id">;
364
+ resolveId: PluginHook<PluginHookFunctions<TContext>["resolveId"], "id">;
390
365
  };
391
- type PluginBuildPlugins<TContext extends PluginContext = PluginContext> = {
392
- [TBuildVariant in UnpluginBuildVariant]?: BuildPlugin<TContext, TBuildVariant>;
366
+ type DeepPartial<T> = {
367
+ [K in keyof T]?: DeepPartial<T[K]>;
393
368
  };
394
- interface Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
369
+ type Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> = Partial<PluginHooks<TContext>> & {
395
370
  /**
396
371
  * The name of the plugin, for use in deduplication, error messages and logs.
397
372
  */
@@ -439,29 +414,40 @@ interface Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<
439
414
  * @returns `true` if the plugin should be active in the specified environment, `false` otherwise.
440
415
  */
441
416
  applyToEnvironment?: (environment: EnvironmentResolvedConfig) => boolean | PluginConfig<TContext>;
442
- }
417
+ /**
418
+ * A function that returns configuration options to be merged with the build context's options.
419
+ *
420
+ * @remarks
421
+ * Modify config before it's resolved. The hook can either mutate {@link Context.config} on the passed-in context directly, or return a partial config object that will be deeply merged into existing config.
422
+ *
423
+ * @warning User plugins are resolved before running this hook so injecting other plugins inside the config hook will have no effect. If you want to add plugins, consider doing so in the {@link Plugin.dependsOn} property instead.
424
+ *
425
+ * @see https://vitejs.dev/guide/api-plugin#config
426
+ *
427
+ * @param this - The build context.
428
+ * @param config - The partial configuration object to be modified.
429
+ * @returns A promise that resolves to a partial configuration object.
430
+ */
431
+ config?: PluginHook<(this: UnresolvedContext<TContext["config"]>) => MaybePromise<DeepPartial<TContext["config"]> & Record<string, any>>> | (DeepPartial<TContext["config"]> & Record<string, any>);
432
+ } & {
433
+ [TBuilderVariant in BuilderVariant]?: InferUnpluginOptions<TContext, TBuilderVariant>;
434
+ };
443
435
  declare const PLUGIN_NON_HOOK_FIELDS: readonly ["name", "api", "enforce", "dedupe", "applyToEnvironment"];
444
- type PluginNonHookFields = ArrayValues<typeof PLUGIN_NON_HOOK_FIELDS> | UnpluginBuildVariant;
445
- declare const KNOWN_HOOKS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize", "config", "configEnvironment", "configResolved", "buildStart", "buildEnd", "transform", "load", "resolveId", "writeBundle"];
446
- type KnownHooks = ArrayValues<typeof KNOWN_HOOKS>;
447
- declare const KNOWN_PLUGIN_FIELDS: readonly ["name", "api", "enforce", "dedupe", "applyToEnvironment", "new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize", "config", "configEnvironment", "configResolved", "buildStart", "buildEnd", "transform", "load", "resolveId", "writeBundle", ...UnpluginBuildVariant[]];
448
- type KnownPluginFields = ArrayValues<typeof KNOWN_PLUGIN_FIELDS>;
436
+ type PluginNonHookFields = ArrayValues<typeof PLUGIN_NON_HOOK_FIELDS> | UnpluginBuilderVariant;
437
+ declare const PLUGIN_HOOKS_FIELDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize", "config", "configEnvironment", "configResolved", "types", "buildStart", "buildEnd", "transform", "load", "resolveId", "writeBundle"];
438
+ type PluginHookFields<TContext extends PluginContext = PluginContext> = keyof PluginHookFunctions<TContext>;
439
+ declare const KNOWN_PLUGIN_FIELDS: readonly ["name", "api", "enforce", "dedupe", "applyToEnvironment", "new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize", "config", "configEnvironment", "configResolved", "types", "buildStart", "buildEnd", "transform", "load", "resolveId", "writeBundle", ...BuilderVariant[]];
440
+ type PluginFields = ArrayValues<typeof KNOWN_PLUGIN_FIELDS>;
449
441
 
450
442
  declare type __ΩPluginHookObject = any[];
451
443
  declare type __ΩPluginHook = any[];
452
444
  declare type __ΩTypesResult = any[];
453
- declare type __ΩConfigResult = any[];
454
- declare type __ΩBasePluginHookFunctions = any[];
455
- declare type __ΩBuildPlugin = any[];
456
- declare type __ΩExternalPluginHookFunctionsVariant = any[];
457
- declare type __ΩExternalPluginHookFunctions = any[];
458
445
  declare type __ΩPluginHookFunctions = any[];
459
446
  declare type __ΩPluginHooks = any[];
460
- declare type __ΩPluginBuildPlugins = any[];
461
447
  declare type __ΩPlugin = any[];
462
448
  declare type __ΩPluginNonHookFields = any[];
463
- declare type __ΩKnownHooks = any[];
464
- declare type __ΩKnownPluginFields = any[];
449
+ declare type __ΩPluginHookFields = any[];
450
+ declare type __ΩPluginFields = any[];
465
451
 
466
452
  type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
467
453
  /**
@@ -487,7 +473,7 @@ type PluginConfigObject<TContext extends PluginContext = PluginContext, TOptions
487
473
  * A configuration tuple for a Powerlines plugin.
488
474
  */
489
475
  type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> | PluginConfigTuple<TContext> | PluginConfigObject<TContext> | Promise<PluginConfig<TContext>> | PluginConfig<TContext>[];
490
- type PartialPlugin<in out TContext extends PluginContext = PluginContext> = DeepPartial$1<Plugin<TContext>>;
476
+ type PartialPlugin<TContext extends PluginContext = PluginContext> = DeepPartial$1<Plugin<TContext>>;
491
477
  type PartialPluginFactory<in out TContext extends PluginContext = PluginContext, TOptions = any> = (options: TOptions) => MaybePromise<PartialPlugin<TContext> | PartialPlugin<TContext>[]>;
492
478
  type ProjectType = "application" | "library";
493
479
  type BabelUserConfig = Parameters<typeof transformAsync>[1] & {
@@ -833,7 +819,7 @@ type UnbuildUserConfig = UserConfig<UnbuildBuildConfig, UnbuildResolvedBuildConf
833
819
  type TsupUserConfig = UserConfig<TsupBuildConfig, TsupResolvedBuildConfig, "tsup">;
834
820
  type TsdownUserConfig = UserConfig<TsdownBuildConfig, TsdownResolvedBuildConfig, "tsdown">;
835
821
  type FarmUserConfig = UserConfig<FarmBuildConfig, FarmResolvedBuildConfig, "farm">;
836
- type InferUserConfig<TBuildVariant extends BuildVariant | undefined> = TBuildVariant extends "webpack" ? WebpackUserConfig : TBuildVariant extends "rspack" ? RspackUserConfig : TBuildVariant extends "vite" ? ViteUserConfig : TBuildVariant extends "esbuild" ? ESBuildUserConfig : TBuildVariant extends "unbuild" ? UnbuildUserConfig : TBuildVariant extends "tsup" ? TsupUserConfig : TBuildVariant extends "tsdown" ? TsdownUserConfig : TBuildVariant extends "rolldown" ? RolldownUserConfig : TBuildVariant extends "rollup" ? RollupUserConfig : TBuildVariant extends "farm" ? FarmUserConfig : UserConfig;
822
+ type InferUserConfig<TBuilderVariant extends BuilderVariant | undefined> = TBuilderVariant extends "webpack" ? WebpackUserConfig : TBuilderVariant extends "rspack" ? RspackUserConfig : TBuilderVariant extends "vite" ? ViteUserConfig : TBuilderVariant extends "esbuild" ? ESBuildUserConfig : TBuilderVariant extends "unbuild" ? UnbuildUserConfig : TBuilderVariant extends "tsup" ? TsupUserConfig : TBuilderVariant extends "tsdown" ? TsdownUserConfig : TBuilderVariant extends "rolldown" ? RolldownUserConfig : TBuilderVariant extends "rollup" ? RollupUserConfig : TBuilderVariant extends "farm" ? FarmUserConfig : UserConfig;
837
823
  type InitialUserConfig<TUserConfig extends UserConfig = UserConfig> = Partial<TUserConfig> & {
838
824
  root: string;
839
825
  };
@@ -955,46 +941,54 @@ declare type __ΩDeployInlineConfig = any[];
955
941
  declare type __ΩConfigEnv = any[];
956
942
  declare type __ΩAnyUserConfig = any[];
957
943
 
958
- type BaseHooks<TContext extends PluginContext = PluginContext> = BasePluginHookFunctions<TContext>;
959
- type BaseHookKeys<TContext extends PluginContext = PluginContext> = keyof BaseHooks<TContext>;
960
- type ExternalHooks<TContext extends PluginContext = PluginContext> = ExternalPluginHookFunctions<TContext>;
961
- type ExternalHookKeys<TContext extends PluginContext = PluginContext> = keyof ExternalHooks<TContext>;
962
- type Hooks<TContext extends PluginContext = PluginContext> = PluginHookFunctions<TContext>;
963
- type HookKeys<TContext extends PluginContext = PluginContext> = keyof Hooks<TContext>;
964
- interface BaseHooksListItem<TContext extends PluginContext = PluginContext, TKey extends BaseHookKeys<TContext> = BaseHookKeys<TContext>> extends PluginHookObject<BaseHooks<TContext>[TKey]> {
944
+ type HookListOrders = "preOrdered" | "preEnforced" | "normal" | "postEnforced" | "postOrdered";
945
+ declare const HOOKS_LIST_ORDERS: readonly ["preOrdered", "preEnforced", "normal", "postEnforced", "postOrdered"];
946
+ type UnpluginHookFunctions<TContext extends PluginContext = PluginContext, TUnpluginBuilderVariant extends UnpluginBuilderVariant = UnpluginBuilderVariant, TField extends keyof Required<UnpluginOptions$1>[TUnpluginBuilderVariant] = keyof Required<UnpluginOptions$1>[TUnpluginBuilderVariant]> = Required<UnpluginOptions$1>[TUnpluginBuilderVariant][TField] extends infer THandler | {
947
+ handler: infer THandler;
948
+ } ? THandler extends (this: infer THandlerOriginalContext, ...args: infer THandlerArgs) => infer THandlerReturn ? (this: THandlerOriginalContext & WithUnpluginBuildContext<TContext>, ...args: THandlerArgs) => THandlerReturn : THandler extends {
949
+ handler: infer THandlerFunction;
950
+ } ? THandlerFunction extends (this: infer THandlerFunctionOriginalContext, ...args: infer THandlerFunctionArgs) => infer THandlerFunctionReturn ? (this: THandlerFunctionOriginalContext & WithUnpluginBuildContext<TContext>, ...args: THandlerFunctionArgs) => THandlerFunctionReturn : never : never : never;
951
+ interface PluginHooksListItem<TContext extends PluginContext = PluginContext, TFields extends PluginHookFields<TContext> = PluginHookFields<TContext>> {
965
952
  plugin: Plugin<TContext>;
953
+ handler: PluginHookFunctions<TContext>[TFields];
966
954
  }
967
- interface BaseHooksList<TContext extends PluginContext = PluginContext, TKey extends BaseHookKeys<TContext> = BaseHookKeys<TContext>> {
968
- preOrdered?: BaseHooksListItem<TContext, TKey>[];
969
- preEnforced?: BaseHooksListItem<TContext, TKey>[];
970
- normal?: BaseHooksListItem<TContext, TKey>[];
971
- postEnforced?: BaseHooksListItem<TContext, TKey>[];
972
- postOrdered?: BaseHooksListItem<TContext, TKey>[];
973
- }
974
- interface ExternalHooksListItem<TContext extends PluginContext = PluginContext, TKey extends ExternalHookKeys<TContext> = ExternalHookKeys<TContext>> {
955
+ type PluginHooksList<TContext extends PluginContext = PluginContext, TFields extends PluginHookFields<TContext> = PluginHookFields<TContext>> = {
956
+ [TKey in HookListOrders]?: PluginHooksListItem<TContext, TFields>[] | undefined;
957
+ };
958
+ interface UnpluginHooksListItem<TContext extends PluginContext = PluginContext, TUnpluginBuilderVariant extends UnpluginBuilderVariant = UnpluginBuilderVariant, TField extends keyof Required<UnpluginOptions$1>[TUnpluginBuilderVariant] = keyof Required<UnpluginOptions$1>[TUnpluginBuilderVariant]> {
975
959
  plugin: Plugin<TContext>;
976
- handler: ExternalHooks<TContext>[TKey];
960
+ handler: UnpluginHookFunctions<TContext, TUnpluginBuilderVariant, TField>;
977
961
  }
962
+ type UnpluginHookList<TContext extends PluginContext = PluginContext, TUnpluginBuilderVariant extends UnpluginBuilderVariant = UnpluginBuilderVariant, TField extends keyof UnpluginOptions$1[TUnpluginBuilderVariant] = keyof UnpluginOptions$1[TUnpluginBuilderVariant]> = {
963
+ [TKey in HookListOrders]?: UnpluginHooksListItem<TContext, TUnpluginBuilderVariant, TField>[] | undefined;
964
+ };
965
+ type UnpluginHookVariantField<TContext extends PluginContext = PluginContext, TUnpluginBuilderVariant extends UnpluginBuilderVariant = UnpluginBuilderVariant> = {
966
+ [TKey in keyof UnpluginOptions$1[TUnpluginBuilderVariant]]?: UnpluginHookList<TContext, TUnpluginBuilderVariant, TKey>;
967
+ };
968
+ type UnpluginHookVariant<TContext extends PluginContext = PluginContext> = {
969
+ [TKey in UnpluginBuilderVariant]?: UnpluginHookVariantField<TContext, TKey>;
970
+ };
971
+ type HookFields<TContext extends PluginContext = PluginContext> = PluginHookFields<TContext> | UnpluginBuilderVariant;
978
972
  type HooksList<TContext extends PluginContext = PluginContext> = {
979
- [TKey in BaseHookKeys<TContext>]?: BaseHooksList<TContext, TKey>;
980
- } & {
981
- [TKey in ExternalHookKeys<TContext>]?: ExternalHooksListItem<TContext, TKey>[];
973
+ [TField in HookFields<TContext>]?: TField extends PluginHookFields<TContext> ? PluginHooksList<TContext, TField> : TField extends UnpluginBuilderVariant ? UnpluginHookVariant<TContext>[TField] : never;
982
974
  };
983
- type InferHookHandler<TContext extends PluginContext, TKey extends HookKeys<TContext>> = Hooks<TContext>[TKey];
984
- type InferHookReturnType<TContext extends PluginContext, TKey extends HookKeys<TContext>> = ReturnType<InferHookHandler<TContext, TKey>> extends Promise<infer U> ? U extends Promise<infer V> ? V : U : ReturnType<InferHookHandler<TContext, TKey>>;
985
- type InferHookParameters<TContext extends PluginContext, TKey extends HookKeys<TContext>> = Parameters<InferHookHandler<TContext, TKey>>;
986
- type InferHookThisType<TContext extends PluginContext, TKey extends HookKeys<TContext>> = ThisParameterType<InferHookHandler<TContext, TKey>>;
987
- declare type __ΩBaseHooks = any[];
988
- declare type __ΩBaseHookKeys = any[];
989
- declare type __ΩExternalHooks = any[];
990
- declare type __ΩExternalHookKeys = any[];
991
- declare type __ΩHooks = any[];
992
- declare type __ΩHookKeys = any[];
993
- declare type __ΩBaseHooksListItem = any[];
994
- declare type __ΩBaseHooksList = any[];
995
- declare type __ΩExternalHooksListItem = any[];
975
+ type InferHooksListItem<TContext extends PluginContext, TKey extends string> = TKey extends `${infer TUnpluginBuilderVariant}:${infer TUnpluginField}` ? TUnpluginBuilderVariant extends UnpluginBuilderVariant ? TUnpluginField extends keyof Required<UnpluginOptions$1>[TUnpluginBuilderVariant] ? UnpluginHooksListItem<TContext, TUnpluginBuilderVariant, TUnpluginField> : never : never : TKey extends keyof PluginHookFunctions<TContext> ? PluginHooksListItem<TContext, TKey> : never;
976
+ type InferHookFunction<TContext extends PluginContext, TKey extends string> = TKey extends `${infer TUnpluginBuilderVariant}:${infer TUnpluginField}` ? TUnpluginBuilderVariant extends UnpluginBuilderVariant ? TUnpluginField extends keyof Required<UnpluginOptions$1>[TUnpluginBuilderVariant] ? UnpluginHookFunctions<TContext, TUnpluginBuilderVariant, TUnpluginField> : never : never : TKey extends keyof PluginHookFunctions<TContext> ? PluginHookFunctions<TContext>[TKey] : never;
977
+ type InferHookReturnType<TContext extends PluginContext, TKey extends string> = ReturnType<InferHookFunction<TContext, TKey>>;
978
+ type InferHookParameters<TContext extends PluginContext, TKey extends string> = Parameters<InferHookFunction<TContext, TKey>>;
979
+ type InferHookThisType<TContext extends PluginContext, TKey extends string> = ThisParameterType<InferHookFunction<TContext, TKey>>;
980
+ declare type __ΩHookListOrders = any[];
981
+ declare type __ΩUnpluginHookFunctions = any[];
982
+ declare type __ΩPluginHooksListItem = any[];
983
+ declare type __ΩPluginHooksList = any[];
984
+ declare type __ΩUnpluginHooksListItem = any[];
985
+ declare type __ΩUnpluginHookList = any[];
986
+ declare type __ΩUnpluginHookVariantField = any[];
987
+ declare type __ΩUnpluginHookVariant = any[];
988
+ declare type __ΩHookFields = any[];
996
989
  declare type __ΩHooksList = any[];
997
- declare type __ΩInferHookHandler = any[];
990
+ declare type __ΩInferHooksListItem = any[];
991
+ declare type __ΩInferHookFunction = any[];
998
992
  declare type __ΩInferHookReturnType = any[];
999
993
  declare type __ΩInferHookParameters = any[];
1000
994
  declare type __ΩInferHookThisType = any[];
@@ -1491,10 +1485,10 @@ interface EnvironmentContextPlugin<TResolvedConfig extends ResolvedConfig = Reso
1491
1485
  plugin: Plugin<PluginContext<TResolvedConfig>>;
1492
1486
  context: PluginContext<TResolvedConfig>;
1493
1487
  }
1494
- interface SelectHooksResult<TResolvedConfig extends ResolvedConfig, TKey extends HookKeys<PluginContext<TResolvedConfig>>> {
1495
- handle: Hooks[TKey];
1496
- context: PluginContext<TResolvedConfig>;
1497
- }
1488
+ type SelectHookResultItem<TContext extends PluginContext, TKey extends string> = InferHooksListItem<TContext, TKey> & {
1489
+ context: TContext;
1490
+ };
1491
+ type SelectHookResult<TContext extends PluginContext, TKey extends string> = SelectHookResultItem<TContext, TKey>[];
1498
1492
  interface EnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig> {
1499
1493
  /**
1500
1494
  * The expected plugins options for the Powerlines project.
@@ -1518,7 +1512,7 @@ interface EnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedCo
1518
1512
  /**
1519
1513
  * Retrieves the hook handlers for a specific hook name
1520
1514
  */
1521
- selectHooks: <TKey extends HookKeys<PluginContext<TResolvedConfig>>>(hook: TKey, options?: SelectHooksOptions) => SelectHooksResult<TResolvedConfig, TKey>[];
1515
+ selectHooks: <TKey extends string>(key: TKey, options?: SelectHooksOptions) => SelectHookResult<PluginContext<TResolvedConfig>, TKey>;
1522
1516
  }
1523
1517
  interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig>, UnpluginContext {
1524
1518
  /**
@@ -1534,6 +1528,7 @@ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedCon
1534
1528
  logger: LogFn;
1535
1529
  }
1536
1530
  type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnpluginBuildContext & PluginContext<TResolvedConfig>;
1531
+ type WithUnpluginBuildContext<TContext extends PluginContext> = UnpluginBuildContext & TContext;
1537
1532
  declare type __ΩLogLevel = any[];
1538
1533
  declare type __ΩWorkerProcess = any[];
1539
1534
  declare type __ΩMetaInfo = any[];
@@ -1551,9 +1546,149 @@ declare type __ΩUnresolvedContext = any[];
1551
1546
  declare type __ΩContext = any[];
1552
1547
  declare type __ΩAPIContext = any[];
1553
1548
  declare type __ΩEnvironmentContextPlugin = any[];
1554
- declare type __ΩSelectHooksResult = any[];
1549
+ declare type __ΩSelectHookResultItem = any[];
1550
+ declare type __ΩSelectHookResult = any[];
1555
1551
  declare type __ΩEnvironmentContext = any[];
1556
1552
  declare type __ΩPluginContext = any[];
1557
1553
  declare type __ΩBuildPluginContext = any[];
1554
+ declare type __ΩWithUnpluginBuildContext = any[];
1555
+
1556
+ type CallHookOptions = SelectHooksOptions & (({
1557
+ /**
1558
+ * Whether to call the hooks sequentially or in parallel.
1559
+ *
1560
+ * @defaultValue true
1561
+ */
1562
+ sequential?: true;
1563
+ } & ({
1564
+ /**
1565
+ * How to handle multiple return values from hooks.
1566
+ * - "merge": Merge all non-undefined return values (if they are objects).
1567
+ * - "first": Return the first non-undefined value.
1568
+ *
1569
+ * @remarks
1570
+ * Merging only works if the return values are objects.
1571
+ *
1572
+ * @defaultValue "merge"
1573
+ */
1574
+ result: "first";
1575
+ } | {
1576
+ /**
1577
+ * How to handle multiple return values from hooks.
1578
+ * - "merge": Merge all non-undefined return values (if they are objects).
1579
+ * - "first": Return the first non-undefined value.
1580
+ *
1581
+ * @remarks
1582
+ * Merging only works if the return values are objects.
1583
+ *
1584
+ * @defaultValue "merge"
1585
+ */
1586
+ result?: "merge" | "last";
1587
+ /**
1588
+ * An indicator specifying if the results of the previous hook should be provided as the **first** parameter of the next hook function, or a function to process the result of the previous hook function and pass the returned value as the next hook's **first** parameter
1589
+ */
1590
+ asNextParam?: false | ((previousResult: any) => MaybePromise<any>);
1591
+ })) | {
1592
+ /**
1593
+ * Whether to call the hooks sequentially or in parallel.
1594
+ */
1595
+ sequential: false;
1596
+ });
1597
+
1598
+ /**
1599
+ * Powerlines API Interface
1600
+ */
1601
+ interface API<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
1602
+ /**
1603
+ * The Powerlines shared API context
1604
+ */
1605
+ context: APIContext<TResolvedConfig>;
1606
+ /**
1607
+ * Prepare the Powerlines API
1608
+ *
1609
+ * @remarks
1610
+ * This method will prepare the Powerlines API for use, initializing any necessary resources.
1611
+ *
1612
+ * @param inlineConfig - The inline configuration for the prepare command
1613
+ */
1614
+ prepare: (inlineConfig: PrepareInlineConfig | NewInlineConfig | CleanInlineConfig | BuildInlineConfig | LintInlineConfig | DocsInlineConfig | DeployInlineConfig) => Promise<void>;
1615
+ /**
1616
+ * Create a new Powerlines project
1617
+ *
1618
+ * @remarks
1619
+ * This method will create a new Powerlines project in the current directory.
1620
+ *
1621
+ * @param inlineConfig - The inline configuration for the new command
1622
+ * @returns A promise that resolves when the project has been created
1623
+ */
1624
+ new: (inlineConfig: NewInlineConfig) => Promise<void>;
1625
+ /**
1626
+ * Clean any previously prepared artifacts
1627
+ *
1628
+ * @remarks
1629
+ * This method will remove the previous Powerlines artifacts from the project.
1630
+ *
1631
+ * @param inlineConfig - The inline configuration for the clean command
1632
+ * @returns A promise that resolves when the clean command has completed
1633
+ */
1634
+ clean: (inlineConfig: CleanInlineConfig | PrepareInlineConfig) => Promise<void>;
1635
+ /**
1636
+ * Lint the project source code
1637
+ *
1638
+ * @param inlineConfig - The inline configuration for the lint command
1639
+ * @returns A promise that resolves when the lint command has completed
1640
+ */
1641
+ lint: (inlineConfig: LintInlineConfig) => Promise<void>;
1642
+ /**
1643
+ * Build the project
1644
+ *
1645
+ * @remarks
1646
+ * This method will build the Powerlines project, generating the necessary artifacts.
1647
+ *
1648
+ * @param inlineConfig - The inline configuration for the build command
1649
+ * @returns A promise that resolves when the build command has completed
1650
+ */
1651
+ build: (inlineConfig: BuildInlineConfig) => Promise<void>;
1652
+ /**
1653
+ * Prepare the documentation for the project
1654
+ *
1655
+ * @param inlineConfig - The inline configuration for the docs command
1656
+ * @returns A promise that resolves when the documentation generation has completed
1657
+ */
1658
+ docs: (inlineConfig: DocsInlineConfig) => Promise<void>;
1659
+ /**
1660
+ * Deploy the project source code
1661
+ *
1662
+ * @remarks
1663
+ * This method will prepare and build the Powerlines project, generating the necessary artifacts for the deployment.
1664
+ *
1665
+ * @param inlineConfig - The inline configuration for the deploy command
1666
+ */
1667
+ deploy: (inlineConfig: DeployInlineConfig) => Promise<void>;
1668
+ /**
1669
+ * Finalization process
1670
+ *
1671
+ * @remarks
1672
+ * This step includes any final processes or clean up required by Powerlines. It will be run after each Powerlines command.
1673
+ *
1674
+ * @returns A promise that resolves when the finalization process has completed
1675
+ */
1676
+ finalize: () => Promise<void>;
1677
+ /**
1678
+ * Invokes the configured plugin hooks
1679
+ *
1680
+ * @remarks
1681
+ * By default, it will call the `"pre"`, `"normal"`, and `"post"` ordered hooks in sequence
1682
+ *
1683
+ * @param hook - The hook to call
1684
+ * @param options - The options to provide to the hook
1685
+ * @param args - The arguments to pass to the hook
1686
+ * @returns The result of the hook call
1687
+ */
1688
+ callHook: <TKey extends string>(hook: TKey, options: CallHookOptions & {
1689
+ environment?: string | EnvironmentContext<TResolvedConfig>;
1690
+ }, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey> | undefined>;
1691
+ }
1692
+ declare type __ΩAPI = any[];
1558
1693
 
1559
- export { type UnbuildUserConfig as $, type PartialPlugin as A, type BabelPluginPass as B, type CommandType as C, type DefaultImportDefinition as D, type PartialPluginFactory as E, type ProjectType as F, type BabelUserConfig as G, type DeployConfig as H, type ImportDefinition as I, type BaseConfig as J, type EnvironmentConfig as K, type LogFn as L, type CommonUserConfig as M, type NamedImportDefinition as N, type OutputConfig as O, type PluginFactory as P, type WebpackUserConfig as Q, type ResolvedBabelTransformPluginOptions as R, SUPPORTED_COMMANDS as S, type RspackUserConfig as T, type UserConfig as U, type RollupUserConfig as V, type WorkspaceConfig as W, type RolldownUserConfig as X, type ViteUserConfig as Y, type ESBuildUserConfig as Z, type __ΩNamedImportDefinition as _, type BabelTransformPluginFilter as a, type UnimportContext as a$, type TsupUserConfig as a0, type TsdownUserConfig as a1, type FarmUserConfig as a2, type InferUserConfig as a3, type InitialUserConfig as a4, type ParsedUserConfig as a5, type PowerlinesCommand as a6, type InlineConfig as a7, type NewInlineConfig as a8, type CleanInlineConfig as a9, type __ΩRolldownUserConfig as aA, type __ΩViteUserConfig as aB, type __ΩESBuildUserConfig as aC, type __ΩUnbuildUserConfig as aD, type __ΩTsupUserConfig as aE, type __ΩTsdownUserConfig as aF, type __ΩFarmUserConfig as aG, type __ΩInferUserConfig as aH, type __ΩInitialUserConfig as aI, type __ΩParsedUserConfig as aJ, type __ΩPowerlinesCommand as aK, type __ΩInlineConfig as aL, type __ΩNewInlineConfig as aM, type __ΩCleanInlineConfig as aN, type __ΩPrepareInlineConfig as aO, type __ΩBuildInlineConfig as aP, type __ΩLintInlineConfig as aQ, type __ΩDocsInlineConfig as aR, type __ΩDeployInlineConfig as aS, type __ΩConfigEnv as aT, type __ΩAnyUserConfig as aU, LogLevel as aV, type WorkerProcess as aW, type MetaInfo as aX, type Resolver as aY, type TransformResult as aZ, type SourceFile as a_, type PrepareInlineConfig as aa, type BuildInlineConfig as ab, type LintInlineConfig as ac, type DocsInlineConfig as ad, type DeployInlineConfig as ae, type ConfigEnv as af, type AnyUserConfig as ag, type __ΩLogFn as ah, type __ΩWorkspaceConfig as ai, type __ΩPluginFactory as aj, type __ΩPluginConfigTuple as ak, type __ΩPluginConfigObject as al, type __ΩPluginConfig as am, type __ΩPartialPlugin as an, type __ΩPartialPluginFactory as ao, type __ΩProjectType as ap, type __ΩBabelUserConfig as aq, type __ΩDeployConfig as ar, type __ΩOutputConfig as as, type __ΩBaseConfig as at, type __ΩEnvironmentConfig as au, type __ΩCommonUserConfig as av, type __ΩUserConfig as aw, type __ΩWebpackUserConfig as ax, type __ΩRspackUserConfig as ay, type __ΩRollupUserConfig as az, type BabelTransformPlugin as b, type PluginHookObject as b$, type SelectHooksOptions as b0, type InitContextOptions as b1, type FetchOptions as b2, type ParseOptions as b3, type EmitOptions as b4, type EmitEntryOptions as b5, type UnresolvedContext as b6, type Context as b7, type APIContext as b8, type EnvironmentContextPlugin as b9, type BaseHookKeys as bA, type ExternalHooks as bB, type ExternalHookKeys as bC, type Hooks as bD, type HookKeys as bE, type BaseHooksListItem as bF, type BaseHooksList as bG, type ExternalHooksListItem as bH, type HooksList as bI, type InferHookHandler as bJ, type InferHookReturnType as bK, type InferHookParameters as bL, type InferHookThisType as bM, type __ΩBaseHooks as bN, type __ΩBaseHookKeys as bO, type __ΩExternalHooks as bP, type __ΩExternalHookKeys as bQ, type __ΩHooks as bR, type __ΩHookKeys as bS, type __ΩBaseHooksListItem as bT, type __ΩBaseHooksList as bU, type __ΩExternalHooksListItem as bV, type __ΩHooksList as bW, type __ΩInferHookHandler as bX, type __ΩInferHookReturnType as bY, type __ΩInferHookParameters as bZ, type __ΩInferHookThisType as b_, type SelectHooksResult as ba, type EnvironmentContext as bb, type PluginContext as bc, type BuildPluginContext as bd, type __ΩLogLevel as be, type __ΩWorkerProcess as bf, type __ΩMetaInfo as bg, type __ΩResolver as bh, type __ΩTransformResult as bi, type __ΩSourceFile as bj, type __ΩUnimportContext as bk, type __ΩSelectHooksOptions as bl, type __ΩInitContextOptions as bm, type __ΩFetchOptions as bn, type __ΩParseOptions as bo, type __ΩEmitOptions as bp, type __ΩEmitEntryOptions as bq, type __ΩUnresolvedContext as br, type __ΩContext as bs, type __ΩAPIContext as bt, type __ΩEnvironmentContextPlugin as bu, type __ΩSelectHooksResult as bv, type __ΩEnvironmentContext as bw, type __ΩPluginContext as bx, type __ΩBuildPluginContext as by, type BaseHooks as bz, type BabelTransformPluginOptions as c, type __ΩUnbuildResolvedConfig as c$, type PluginHook as c0, type TypesResult as c1, type ConfigResult as c2, type BasePluginHookFunctions as c3, type BuildPlugin as c4, type ExternalPluginHookFunctionsVariant as c5, type ExternalPluginHookFunctions as c6, type PluginHookFunctions as c7, type PluginHooks as c8, type PluginBuildPlugins as c9, type OutputResolvedConfig as cA, type ResolvedConfig as cB, type ViteResolvedConfig as cC, type WebpackResolvedConfig as cD, type RspackResolvedConfig as cE, type ESBuildResolvedConfig as cF, type RollupResolvedConfig as cG, type RolldownResolvedConfig as cH, type TsupResolvedConfig as cI, type TsdownResolvedConfig as cJ, type UnbuildResolvedConfig as cK, type FarmResolvedConfig as cL, type InferResolvedConfig as cM, type __ΩResolvedEntryTypeDefinition as cN, type __ΩBabelResolvedConfig as cO, type __ΩEnvironmentResolvedConfig as cP, type __ΩResolvedAssetGlob as cQ, type __ΩOutputResolvedConfig as cR, type __ΩResolvedConfig as cS, type __ΩViteResolvedConfig as cT, type __ΩWebpackResolvedConfig as cU, type __ΩRspackResolvedConfig as cV, type __ΩESBuildResolvedConfig as cW, type __ΩRollupResolvedConfig as cX, type __ΩRolldownResolvedConfig as cY, type __ΩTsupResolvedConfig as cZ, type __ΩTsdownResolvedConfig as c_, type Plugin as ca, PLUGIN_NON_HOOK_FIELDS as cb, type PluginNonHookFields as cc, KNOWN_HOOKS as cd, type KnownHooks as ce, KNOWN_PLUGIN_FIELDS as cf, type KnownPluginFields as cg, type __ΩPluginHookObject as ch, type __ΩPluginHook as ci, type __ΩTypesResult as cj, type __ΩConfigResult as ck, type __ΩBasePluginHookFunctions as cl, type __ΩBuildPlugin as cm, type __ΩExternalPluginHookFunctionsVariant as cn, type __ΩExternalPluginHookFunctions as co, type __ΩPluginHookFunctions as cp, type __ΩPluginHooks as cq, type __ΩPluginBuildPlugins as cr, type __ΩPlugin as cs, type __ΩPluginNonHookFields as ct, type __ΩKnownHooks as cu, type __ΩKnownPluginFields as cv, type ResolvedEntryTypeDefinition as cw, type BabelResolvedConfig as cx, type EnvironmentResolvedConfig as cy, type ResolvedAssetGlob as cz, type BabelTransformInput as d, type __ΩFarmResolvedConfig as d0, type __ΩInferResolvedConfig as d1, type BabelTransformPluginBuilderParams as e, type BabelTransformPluginBuilder as f, type DeclareBabelTransformPluginReturn as g, type ImportSpecifier as h, type __ΩDefaultImportDefinition as i, type __ΩImportDefinition as j, type __ΩBabelPluginPass as k, type __ΩBabelTransformPluginFilter as l, type __ΩBabelTransformPlugin as m, type __ΩBabelTransformPluginOptions as n, type __ΩResolvedBabelTransformPluginOptions as o, type __ΩBabelTransformInput as p, type __ΩBabelTransformPluginBuilderParams as q, type __ΩBabelTransformPluginBuilder as r, type __ΩDeclareBabelTransformPluginReturn as s, type __ΩImportSpecifier as t, type Commands as u, type __ΩCommandType as v, type __ΩCommands as w, type PluginConfigTuple as x, type PluginConfigObject as y, type PluginConfig as z };
1694
+ export { type ViteUserConfig as $, type API as A, type BabelPluginPass as B, type CommandType as C, type DefaultImportDefinition as D, type PluginConfig as E, type PartialPlugin as F, type PartialPluginFactory as G, type ProjectType as H, type ImportDefinition as I, type BabelUserConfig as J, type DeployConfig as K, type LogFn as L, type BaseConfig as M, type NamedImportDefinition as N, type OutputConfig as O, type PluginFactory as P, type EnvironmentConfig as Q, type ResolvedBabelTransformPluginOptions as R, SUPPORTED_COMMANDS as S, type CommonUserConfig as T, type UserConfig as U, type WebpackUserConfig as V, type WorkspaceConfig as W, type RspackUserConfig as X, type RollupUserConfig as Y, type RolldownUserConfig as Z, type __ΩAPI as _, type BabelTransformPluginFilter as a, type TransformResult as a$, type ESBuildUserConfig as a0, type UnbuildUserConfig as a1, type TsupUserConfig as a2, type TsdownUserConfig as a3, type FarmUserConfig as a4, type InferUserConfig as a5, type InitialUserConfig as a6, type ParsedUserConfig as a7, type PowerlinesCommand as a8, type InlineConfig as a9, type __ΩRspackUserConfig as aA, type __ΩRollupUserConfig as aB, type __ΩRolldownUserConfig as aC, type __ΩViteUserConfig as aD, type __ΩESBuildUserConfig as aE, type __ΩUnbuildUserConfig as aF, type __ΩTsupUserConfig as aG, type __ΩTsdownUserConfig as aH, type __ΩFarmUserConfig as aI, type __ΩInferUserConfig as aJ, type __ΩInitialUserConfig as aK, type __ΩParsedUserConfig as aL, type __ΩPowerlinesCommand as aM, type __ΩInlineConfig as aN, type __ΩNewInlineConfig as aO, type __ΩCleanInlineConfig as aP, type __ΩPrepareInlineConfig as aQ, type __ΩBuildInlineConfig as aR, type __ΩLintInlineConfig as aS, type __ΩDocsInlineConfig as aT, type __ΩDeployInlineConfig as aU, type __ΩConfigEnv as aV, type __ΩAnyUserConfig as aW, LogLevel as aX, type WorkerProcess as aY, type MetaInfo as aZ, type Resolver as a_, type NewInlineConfig as aa, type CleanInlineConfig as ab, type PrepareInlineConfig as ac, type BuildInlineConfig as ad, type LintInlineConfig as ae, type DocsInlineConfig as af, type DeployInlineConfig as ag, type ConfigEnv as ah, type AnyUserConfig as ai, type __ΩLogFn as aj, type __ΩWorkspaceConfig as ak, type __ΩPluginFactory as al, type __ΩPluginConfigTuple as am, type __ΩPluginConfigObject as an, type __ΩPluginConfig as ao, type __ΩPartialPlugin as ap, type __ΩPartialPluginFactory as aq, type __ΩProjectType as ar, type __ΩBabelUserConfig as as, type __ΩDeployConfig as at, type __ΩOutputConfig as au, type __ΩBaseConfig as av, type __ΩEnvironmentConfig as aw, type __ΩCommonUserConfig as ax, type __ΩUserConfig as ay, type __ΩWebpackUserConfig as az, type BabelTransformPlugin as b, type __ΩUnpluginHookVariantField as b$, type SourceFile as b0, type UnimportContext as b1, type SelectHooksOptions as b2, type InitContextOptions as b3, type FetchOptions as b4, type ParseOptions as b5, type EmitOptions as b6, type EmitEntryOptions as b7, type UnresolvedContext as b8, type Context as b9, type __ΩSelectHookResult as bA, type __ΩEnvironmentContext as bB, type __ΩPluginContext as bC, type __ΩBuildPluginContext as bD, type __ΩWithUnpluginBuildContext as bE, type HookListOrders as bF, HOOKS_LIST_ORDERS as bG, type UnpluginHookFunctions as bH, type PluginHooksListItem as bI, type PluginHooksList as bJ, type UnpluginHooksListItem as bK, type UnpluginHookList as bL, type UnpluginHookVariantField as bM, type UnpluginHookVariant as bN, type HookFields as bO, type HooksList as bP, type InferHooksListItem as bQ, type InferHookFunction as bR, type InferHookReturnType as bS, type InferHookParameters as bT, type InferHookThisType as bU, type __ΩHookListOrders as bV, type __ΩUnpluginHookFunctions as bW, type __ΩPluginHooksListItem as bX, type __ΩPluginHooksList as bY, type __ΩUnpluginHooksListItem as bZ, type __ΩUnpluginHookList as b_, type APIContext as ba, type EnvironmentContextPlugin as bb, type SelectHookResultItem as bc, type SelectHookResult as bd, type EnvironmentContext as be, type PluginContext as bf, type BuildPluginContext as bg, type WithUnpluginBuildContext as bh, type __ΩLogLevel as bi, type __ΩWorkerProcess as bj, type __ΩMetaInfo as bk, type __ΩResolver as bl, type __ΩTransformResult as bm, type __ΩSourceFile as bn, type __ΩUnimportContext as bo, type __ΩSelectHooksOptions as bp, type __ΩInitContextOptions as bq, type __ΩFetchOptions as br, type __ΩParseOptions as bs, type __ΩEmitOptions as bt, type __ΩEmitEntryOptions as bu, type __ΩUnresolvedContext as bv, type __ΩContext as bw, type __ΩAPIContext as bx, type __ΩEnvironmentContextPlugin as by, type __ΩSelectHookResultItem as bz, type BabelTransformPluginOptions as c, type UnpluginOptions as c$, type __ΩUnpluginHookVariant as c0, type __ΩHookFields as c1, type __ΩHooksList as c2, type __ΩInferHooksListItem as c3, type __ΩInferHookFunction as c4, type __ΩInferHookReturnType as c5, type __ΩInferHookParameters as c6, type __ΩInferHookThisType as c7, type PluginHookObject as c8, type PluginHook as c9, type WebpackResolvedConfig as cA, type RspackResolvedConfig as cB, type ESBuildResolvedConfig as cC, type RollupResolvedConfig as cD, type RolldownResolvedConfig as cE, type TsupResolvedConfig as cF, type TsdownResolvedConfig as cG, type UnbuildResolvedConfig as cH, type FarmResolvedConfig as cI, type InferResolvedConfig as cJ, type __ΩResolvedEntryTypeDefinition as cK, type __ΩBabelResolvedConfig as cL, type __ΩEnvironmentResolvedConfig as cM, type __ΩResolvedAssetGlob as cN, type __ΩOutputResolvedConfig as cO, type __ΩResolvedConfig as cP, type __ΩViteResolvedConfig as cQ, type __ΩWebpackResolvedConfig as cR, type __ΩRspackResolvedConfig as cS, type __ΩESBuildResolvedConfig as cT, type __ΩRollupResolvedConfig as cU, type __ΩRolldownResolvedConfig as cV, type __ΩTsupResolvedConfig as cW, type __ΩTsdownResolvedConfig as cX, type __ΩUnbuildResolvedConfig as cY, type __ΩFarmResolvedConfig as cZ, type __ΩInferResolvedConfig as c_, type TypesResult as ca, type PluginHookFunctions as cb, type PluginHooks as cc, type Plugin as cd, PLUGIN_NON_HOOK_FIELDS as ce, type PluginNonHookFields as cf, PLUGIN_HOOKS_FIELDS as cg, type PluginHookFields as ch, KNOWN_PLUGIN_FIELDS as ci, type PluginFields as cj, type __ΩPluginHookObject as ck, type __ΩPluginHook as cl, type __ΩTypesResult as cm, type __ΩPluginHookFunctions as cn, type __ΩPluginHooks as co, type __ΩPlugin as cp, type __ΩPluginNonHookFields as cq, type __ΩPluginHookFields as cr, type __ΩPluginFields as cs, type ResolvedEntryTypeDefinition as ct, type BabelResolvedConfig as cu, type EnvironmentResolvedConfig as cv, type ResolvedAssetGlob as cw, type OutputResolvedConfig as cx, type ResolvedConfig as cy, type ViteResolvedConfig as cz, type BabelTransformInput as d, type InferUnpluginOptions as d0, type UnpluginUserConfig as d1, type UnpluginFactory as d2, type __ΩUnpluginOptions as d3, type __ΩInferUnpluginOptions as d4, type __ΩUnpluginUserConfig as d5, type __ΩUnpluginFactory as d6, type CallHookOptions as d7, type BabelTransformPluginBuilderParams as e, type BabelTransformPluginBuilder as f, type DeclareBabelTransformPluginReturn as g, type ImportSpecifier as h, type __ΩNamedImportDefinition as i, type __ΩDefaultImportDefinition as j, type __ΩImportDefinition as k, type __ΩBabelPluginPass as l, type __ΩBabelTransformPluginFilter as m, type __ΩBabelTransformPlugin as n, type __ΩBabelTransformPluginOptions as o, type __ΩResolvedBabelTransformPluginOptions as p, type __ΩBabelTransformInput as q, type __ΩBabelTransformPluginBuilderParams as r, type __ΩBabelTransformPluginBuilder as s, type __ΩDeclareBabelTransformPluginReturn as t, type __ΩImportSpecifier as u, type Commands as v, type __ΩCommandType as w, type __ΩCommands as x, type PluginConfigTuple as y, type PluginConfigObject as z };
package/dist/api.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunk3CCAN6GY_cjs = require('./chunk-3CCAN6GY.cjs');
4
- require('./chunk-ZCMOAOQN.cjs');
5
- require('./chunk-XOMY3USD.cjs');
3
+ var chunkE4QAO32M_cjs = require('./chunk-E4QAO32M.cjs');
4
+ require('./chunk-B6DVCLP5.cjs');
5
+ require('./chunk-V5WOGN7O.cjs');
6
6
  require('./chunk-Z6ARQDHR.cjs');
7
7
  require('./chunk-PK6SKIKE.cjs');
8
8
 
@@ -10,7 +10,7 @@ require('./chunk-PK6SKIKE.cjs');
10
10
 
11
11
  Object.defineProperty(exports, "PowerlinesAPI", {
12
12
  enumerable: true,
13
- get: function () { return chunk3CCAN6GY_cjs.PowerlinesAPI; }
13
+ get: function () { return chunkE4QAO32M_cjs.PowerlinesAPI; }
14
14
  });
15
15
  //# sourceMappingURL=api.cjs.map
16
16
  //# sourceMappingURL=api.cjs.map