powerlines 0.27.0 → 0.28.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 (275) hide show
  1. package/dist/{api-CHbGX3BG.d.ts → api-BgDfE1J3.d.ts} +2 -2
  2. package/dist/{api-DGMQopJ5.d.cts → api-D-3EvHyy.d.cts} +2 -2
  3. package/dist/api.cjs +2 -2
  4. package/dist/api.d.cts +5 -2
  5. package/dist/api.d.ts +5 -2
  6. package/dist/api.js +1 -1
  7. package/dist/astro.cjs +4 -4
  8. package/dist/astro.d.cts +4 -1
  9. package/dist/astro.d.ts +4 -1
  10. package/dist/astro.js +3 -3
  11. package/dist/{chunk-PYID3NKT.js → chunk-5CV2NNIR.js} +6 -5
  12. package/dist/chunk-C3APS65S.cjs +12 -0
  13. package/dist/{chunk-HG7JY6AQ.cjs → chunk-DD4XJNKQ.cjs} +7 -6
  14. package/dist/{chunk-RCYXXBJ3.cjs → chunk-ERZWC77E.cjs} +272 -117
  15. package/dist/{chunk-KW66GUWJ.cjs → chunk-FJ67PPIW.cjs} +4 -4
  16. package/dist/{chunk-YULFP33E.cjs → chunk-MRHWIMY2.cjs} +2 -2
  17. package/dist/{chunk-CSJMUAPJ.js → chunk-NHZBSVDJ.js} +3 -3
  18. package/dist/{chunk-2DWFEC7G.js → chunk-QRE6JMCD.js} +271 -116
  19. package/dist/{chunk-P647W2BA.js → chunk-UMZ2WNMA.js} +2 -2
  20. package/dist/{chunk-ISPXQBOL.js → chunk-VJ26HHRE.js} +3 -3
  21. package/dist/{chunk-CF7B5HOG.cjs → chunk-XMYY4XUM.cjs} +4 -4
  22. package/dist/{chunk-BH4JSKPK.js → chunk-Z3HPP53Q.js} +3 -3
  23. package/dist/{context-BjOICcQB.d.cts → context-CDZY3RHt.d.cts} +80 -21
  24. package/dist/{context-BqTYt9FC.d.ts → context-CcPf9RC_.d.ts} +80 -21
  25. package/dist/esbuild.cjs +6 -6
  26. package/dist/esbuild.d.cts +4 -1
  27. package/dist/esbuild.d.ts +4 -1
  28. package/dist/esbuild.js +3 -3
  29. package/dist/farm.cjs +3 -3
  30. package/dist/farm.d.cts +4 -1
  31. package/dist/farm.d.ts +4 -1
  32. package/dist/farm.js +2 -2
  33. package/dist/index.cjs +18 -18
  34. package/dist/index.d.cts +15 -4
  35. package/dist/index.d.ts +15 -4
  36. package/dist/index.js +10 -7
  37. package/dist/lib/{api-_rRpguWX.d.cts → api-BIHEKpyq.d.ts} +2 -2
  38. package/dist/lib/{api-Cxmk8sFc.d.ts → api-Wawenasn.d.cts} +2 -2
  39. package/dist/lib/build/esbuild.cjs +6 -5
  40. package/dist/lib/build/esbuild.d.cts +4 -1
  41. package/dist/lib/build/esbuild.d.ts +4 -1
  42. package/dist/lib/build/esbuild.js +3 -2
  43. package/dist/lib/build/index.cjs +13 -12
  44. package/dist/lib/build/index.d.cts +6 -3
  45. package/dist/lib/build/index.d.ts +6 -3
  46. package/dist/lib/build/index.js +5 -4
  47. package/dist/lib/build/rolldown.d.cts +4 -1
  48. package/dist/lib/build/rolldown.d.ts +4 -1
  49. package/dist/lib/build/rollup.d.cts +4 -1
  50. package/dist/lib/build/rollup.d.ts +4 -1
  51. package/dist/lib/build/rspack.d.cts +4 -1
  52. package/dist/lib/build/rspack.d.ts +4 -1
  53. package/dist/lib/build/tsup.cjs +7 -6
  54. package/dist/lib/build/tsup.d.cts +4 -1
  55. package/dist/lib/build/tsup.d.ts +4 -1
  56. package/dist/lib/build/tsup.js +4 -3
  57. package/dist/lib/build/unbuild.d.cts +6 -3
  58. package/dist/lib/build/unbuild.d.ts +6 -3
  59. package/dist/lib/build/vite.cjs +6 -5
  60. package/dist/lib/build/vite.d.cts +4 -1
  61. package/dist/lib/build/vite.d.ts +4 -1
  62. package/dist/lib/build/vite.js +4 -3
  63. package/dist/lib/build/webpack.d.cts +4 -1
  64. package/dist/lib/build/webpack.d.ts +4 -1
  65. package/dist/lib/{chunk-UNUP4XMO.cjs → chunk-3Y4F37CB.cjs} +2 -2
  66. package/dist/lib/{chunk-Q4D2L67H.cjs → chunk-7VRXU4F7.cjs} +2 -2
  67. package/dist/lib/{chunk-N5YLKWC2.js → chunk-DYGQQI74.js} +2 -10
  68. package/dist/lib/{chunk-HM52GHX3.js → chunk-GD7KTLPU.js} +2 -2
  69. package/dist/lib/{chunk-CU23POMD.js → chunk-GLWPZDAR.js} +1 -1
  70. package/dist/lib/{chunk-HE6HOGLS.js → chunk-GSGF6RL2.js} +154 -26
  71. package/dist/lib/{chunk-4SULM54S.js → chunk-KG4HFVJU.js} +55 -44
  72. package/dist/lib/{chunk-ZDBHX3VV.cjs → chunk-LBR46BPB.cjs} +72 -35
  73. package/dist/lib/{chunk-YB54H3SQ.js → chunk-N22WOZ3U.js} +3 -1
  74. package/dist/lib/{chunk-QR2N3DPP.js → chunk-NZ6NCXM2.js} +1 -1
  75. package/dist/lib/{chunk-AFLI3CLM.js → chunk-OKXWWMEF.js} +1 -1
  76. package/dist/lib/{chunk-R3E56AJ4.cjs → chunk-OYLWPIBP.cjs} +2 -2
  77. package/dist/lib/{chunk-I76RI47U.cjs → chunk-PURLNHXG.cjs} +3 -1
  78. package/dist/lib/{chunk-N5XEKCVW.cjs → chunk-QF3UTBJE.cjs} +2 -11
  79. package/dist/lib/{chunk-QDRITYHV.cjs → chunk-R3XAVNPY.cjs} +2 -2
  80. package/dist/lib/{chunk-Z5JKSYRP.cjs → chunk-S4OH7KW6.cjs} +165 -37
  81. package/dist/lib/{chunk-YGSXCTX2.js → chunk-S6WYOXLM.js} +1 -1
  82. package/dist/lib/chunk-T35JQHYE.js +12 -0
  83. package/dist/lib/{chunk-GKCWJVF7.cjs → chunk-TWABN364.cjs} +10 -10
  84. package/dist/lib/{chunk-UJYCAW2D.cjs → chunk-V2523R33.cjs} +4 -4
  85. package/dist/lib/{chunk-KJDASLW3.js → chunk-VKFXVPY6.js} +1 -1
  86. package/dist/lib/{chunk-AJDYMANR.cjs → chunk-XBSGDSV3.cjs} +2 -2
  87. package/dist/lib/{chunk-7GCAHOJK.js → chunk-XIK3Y6BP.js} +1 -1
  88. package/dist/lib/{chunk-CP77I6WM.js → chunk-Y2DPOC4G.js} +65 -28
  89. package/dist/lib/chunk-YXJJCE6V.cjs +14 -0
  90. package/dist/lib/{chunk-4V5OI73E.cjs → chunk-Z6BSDYUR.cjs} +55 -44
  91. package/dist/lib/{config-DMXVnKGF.d.cts → config-D2dTFLlQ.d.cts} +76 -6
  92. package/dist/lib/{config-B2q8Me0M.d.ts → config-Dzk6j2mr.d.ts} +76 -6
  93. package/dist/lib/config-file.d.cts +4 -1
  94. package/dist/lib/config-file.d.ts +4 -1
  95. package/dist/lib/contexts/api-context.cjs +7 -6
  96. package/dist/lib/contexts/api-context.d.cts +7 -3
  97. package/dist/lib/contexts/api-context.d.ts +7 -3
  98. package/dist/lib/contexts/api-context.js +6 -5
  99. package/dist/lib/contexts/context.cjs +5 -4
  100. package/dist/lib/contexts/context.d.cts +64 -10
  101. package/dist/lib/contexts/context.d.ts +64 -10
  102. package/dist/lib/contexts/context.js +4 -3
  103. package/dist/lib/contexts/environment-context.cjs +6 -5
  104. package/dist/lib/contexts/environment-context.d.cts +7 -3
  105. package/dist/lib/contexts/environment-context.d.ts +7 -3
  106. package/dist/lib/contexts/environment-context.js +5 -4
  107. package/dist/lib/contexts/index.cjs +9 -8
  108. package/dist/lib/contexts/index.d.cts +7 -3
  109. package/dist/lib/contexts/index.d.ts +7 -3
  110. package/dist/lib/contexts/index.js +6 -5
  111. package/dist/lib/contexts/plugin-context.d.cts +6 -3
  112. package/dist/lib/contexts/plugin-context.d.ts +6 -3
  113. package/dist/lib/entry.cjs +10 -9
  114. package/dist/lib/entry.d.cts +4 -1
  115. package/dist/lib/entry.d.ts +4 -1
  116. package/dist/lib/entry.js +2 -1
  117. package/dist/lib/fs/index.cjs +3 -2
  118. package/dist/lib/fs/index.d.cts +4 -1
  119. package/dist/lib/fs/index.d.ts +4 -1
  120. package/dist/lib/fs/index.js +2 -1
  121. package/dist/lib/fs/vfs.cjs +3 -2
  122. package/dist/lib/fs/vfs.d.cts +4 -1
  123. package/dist/lib/fs/vfs.d.ts +4 -1
  124. package/dist/lib/fs/vfs.js +2 -1
  125. package/dist/lib/index.cjs +32 -31
  126. package/dist/lib/index.d.cts +8 -5
  127. package/dist/lib/index.d.ts +8 -5
  128. package/dist/lib/index.js +12 -11
  129. package/dist/lib/{internal-CGIi3MOX.d.ts → internal-Cgp0NF-t.d.ts} +2 -2
  130. package/dist/lib/{internal-CfIJWv8T.d.cts → internal-DC9vYMIn.d.cts} +2 -2
  131. package/dist/lib/logger.d.cts +4 -1
  132. package/dist/lib/logger.d.ts +4 -1
  133. package/dist/lib/typescript/import-transformer.d.cts +4 -1
  134. package/dist/lib/typescript/import-transformer.d.ts +4 -1
  135. package/dist/lib/typescript/index.d.cts +4 -1
  136. package/dist/lib/typescript/index.d.ts +4 -1
  137. package/dist/lib/typescript/ts-morph.d.cts +4 -1
  138. package/dist/lib/typescript/ts-morph.d.ts +4 -1
  139. package/dist/lib/unplugin/factory.cjs +8 -8
  140. package/dist/lib/unplugin/factory.d.cts +6 -3
  141. package/dist/lib/unplugin/factory.d.ts +6 -3
  142. package/dist/lib/unplugin/factory.js +7 -7
  143. package/dist/lib/unplugin/helpers.d.cts +4 -1
  144. package/dist/lib/unplugin/helpers.d.ts +4 -1
  145. package/dist/lib/unplugin/index.cjs +10 -10
  146. package/dist/lib/unplugin/index.d.cts +7 -4
  147. package/dist/lib/unplugin/index.d.ts +7 -4
  148. package/dist/lib/unplugin/index.js +8 -8
  149. package/dist/lib/unplugin/plugin.cjs +2 -2
  150. package/dist/lib/unplugin/plugin.d.cts +8 -18
  151. package/dist/lib/unplugin/plugin.d.ts +8 -18
  152. package/dist/lib/unplugin/plugin.js +1 -1
  153. package/dist/lib/{unplugin-B_F1TZK4.d.cts → unplugin-CvYjC7ZL.d.cts} +2 -2
  154. package/dist/lib/{unplugin-Da9GAj4a.d.ts → unplugin-D7lpyIpN.d.ts} +2 -2
  155. package/dist/lib/utilities/bundle.cjs +5 -4
  156. package/dist/lib/utilities/bundle.d.cts +4 -1
  157. package/dist/lib/utilities/bundle.d.ts +4 -1
  158. package/dist/lib/utilities/bundle.js +4 -3
  159. package/dist/lib/utilities/cache.d.cts +4 -1
  160. package/dist/lib/utilities/cache.d.ts +4 -1
  161. package/dist/lib/utilities/file-header.d.cts +4 -1
  162. package/dist/lib/utilities/file-header.d.ts +4 -1
  163. package/dist/lib/utilities/index.cjs +12 -11
  164. package/dist/lib/utilities/index.d.cts +4 -1
  165. package/dist/lib/utilities/index.d.ts +4 -1
  166. package/dist/lib/utilities/index.js +6 -5
  167. package/dist/lib/utilities/meta.d.cts +4 -1
  168. package/dist/lib/utilities/meta.d.ts +4 -1
  169. package/dist/lib/utilities/resolve.cjs +6 -5
  170. package/dist/lib/utilities/resolve.d.cts +4 -1
  171. package/dist/lib/utilities/resolve.d.ts +4 -1
  172. package/dist/lib/utilities/resolve.js +5 -4
  173. package/dist/lib/utilities/source-file.d.cts +4 -1
  174. package/dist/lib/utilities/source-file.d.ts +4 -1
  175. package/dist/lib/utilities/source-map.d.cts +4 -1
  176. package/dist/lib/utilities/source-map.d.ts +4 -1
  177. package/dist/lib/utilities/worker.d.cts +4 -1
  178. package/dist/lib/utilities/worker.d.ts +4 -1
  179. package/dist/lib/utilities/write-file.d.cts +4 -1
  180. package/dist/lib/utilities/write-file.d.ts +4 -1
  181. package/dist/next.cjs +4 -4
  182. package/dist/next.js +3 -3
  183. package/dist/nuxt.cjs +6 -6
  184. package/dist/nuxt.js +4 -4
  185. package/dist/plugin-utils/chunk-DCJAIIJ5.cjs +14 -0
  186. package/dist/plugin-utils/chunk-FBLNGP3S.js +12 -0
  187. package/dist/plugin-utils/context-helpers.d.cts +4 -1
  188. package/dist/plugin-utils/context-helpers.d.ts +4 -1
  189. package/dist/plugin-utils/{context-y3G_SQPM.d.cts → context-iOcgJtAf.d.cts} +75 -5
  190. package/dist/plugin-utils/{context-y3G_SQPM.d.ts → context-iOcgJtAf.d.ts} +75 -5
  191. package/dist/plugin-utils/enforce.d.cts +4 -1
  192. package/dist/plugin-utils/enforce.d.ts +4 -1
  193. package/dist/plugin-utils/extend.d.cts +4 -1
  194. package/dist/plugin-utils/extend.d.ts +4 -1
  195. package/dist/plugin-utils/get-config-path.d.cts +4 -1
  196. package/dist/plugin-utils/get-config-path.d.ts +4 -1
  197. package/dist/plugin-utils/helpers.d.cts +14 -11
  198. package/dist/plugin-utils/helpers.d.ts +14 -11
  199. package/dist/plugin-utils/index.cjs +2 -2
  200. package/dist/plugin-utils/index.d.cts +4 -1
  201. package/dist/plugin-utils/index.d.ts +4 -1
  202. package/dist/plugin-utils/index.js +1 -1
  203. package/dist/plugin-utils/merge.d.cts +4 -1
  204. package/dist/plugin-utils/merge.d.ts +4 -1
  205. package/dist/plugin-utils/paths.cjs +2 -2
  206. package/dist/plugin-utils/paths.d.cts +5 -1
  207. package/dist/plugin-utils/paths.d.ts +5 -1
  208. package/dist/plugin-utils/paths.js +1 -1
  209. package/dist/rolldown.cjs +3 -3
  210. package/dist/rolldown.d.cts +4 -1
  211. package/dist/rolldown.d.ts +4 -1
  212. package/dist/rolldown.js +2 -2
  213. package/dist/rollup.cjs +3 -3
  214. package/dist/rollup.d.cts +4 -1
  215. package/dist/rollup.d.ts +4 -1
  216. package/dist/rollup.js +2 -2
  217. package/dist/rspack.cjs +3 -3
  218. package/dist/rspack.d.cts +4 -1
  219. package/dist/rspack.d.ts +4 -1
  220. package/dist/rspack.js +2 -2
  221. package/dist/tsup.cjs +4 -4
  222. package/dist/tsup.js +3 -3
  223. package/dist/types/api.d.cts +5 -2
  224. package/dist/types/api.d.ts +5 -2
  225. package/dist/types/babel.d.cts +4 -1
  226. package/dist/types/babel.d.ts +4 -1
  227. package/dist/types/commands.d.cts +4 -1
  228. package/dist/types/commands.d.ts +4 -1
  229. package/dist/types/config.d.cts +4 -1
  230. package/dist/types/config.d.ts +4 -1
  231. package/dist/types/context.cjs +2 -2
  232. package/dist/types/context.d.cts +4 -1
  233. package/dist/types/context.d.ts +4 -1
  234. package/dist/types/context.js +1 -1
  235. package/dist/types/hooks.d.cts +4 -1
  236. package/dist/types/hooks.d.ts +4 -1
  237. package/dist/types/index.cjs +3 -3
  238. package/dist/types/index.d.cts +5 -2
  239. package/dist/types/index.d.ts +5 -2
  240. package/dist/types/index.js +2 -2
  241. package/dist/types/internal.d.cts +5 -2
  242. package/dist/types/internal.d.ts +5 -2
  243. package/dist/types/plugin.d.cts +4 -1
  244. package/dist/types/plugin.d.ts +4 -1
  245. package/dist/types/resolved.d.cts +4 -1
  246. package/dist/types/resolved.d.ts +4 -1
  247. package/dist/types/unplugin.d.cts +5 -2
  248. package/dist/types/unplugin.d.ts +5 -2
  249. package/dist/unloader.cjs +3 -3
  250. package/dist/unloader.d.cts +4 -1
  251. package/dist/unloader.d.ts +4 -1
  252. package/dist/unloader.js +2 -2
  253. package/dist/unplugin.cjs +8 -6
  254. package/dist/unplugin.d.cts +7 -17
  255. package/dist/unplugin.d.ts +7 -17
  256. package/dist/unplugin.js +6 -4
  257. package/dist/vite.cjs +6 -6
  258. package/dist/vite.d.cts +4 -1
  259. package/dist/vite.d.ts +4 -1
  260. package/dist/vite.js +3 -3
  261. package/dist/webpack.cjs +6 -6
  262. package/dist/webpack.d.cts +4 -1
  263. package/dist/webpack.d.ts +4 -1
  264. package/dist/webpack.js +3 -3
  265. package/package.json +24 -21
  266. package/dist/babel-types.d.ts +0 -292
  267. package/dist/chunk-GBIIAZH5.cjs +0 -13
  268. package/dist/chunk-QXHINXRM.js +0 -11
  269. package/dist/chunk-UWLQNNZE.cjs +0 -12
  270. package/dist/config.cjs +0 -13
  271. package/dist/config.d.cts +0 -45
  272. package/dist/config.d.ts +0 -45
  273. package/dist/config.js +0 -4
  274. package/dist/plugin-utils/chunk-K2GWRZPV.js +0 -12
  275. package/dist/plugin-utils/chunk-VWFJOPKC.cjs +0 -14
@@ -8,5 +8,5 @@ var LogLevel = {
8
8
  };
9
9
 
10
10
  export { LogLevel };
11
- //# sourceMappingURL=chunk-P647W2BA.js.map
12
- //# sourceMappingURL=chunk-P647W2BA.js.map
11
+ //# sourceMappingURL=chunk-UMZ2WNMA.js.map
12
+ //# sourceMappingURL=chunk-UMZ2WNMA.js.map
@@ -1,5 +1,5 @@
1
1
  import { extractESBuildConfig } from './chunk-A7PVG2HH.js';
2
- import { createUnpluginFactory } from './chunk-PYID3NKT.js';
2
+ import { createUnpluginFactory } from './chunk-5CV2NNIR.js';
3
3
  import { __name } from './chunk-7QVYU63E.js';
4
4
  import { isUndefined } from '@stryke/type-checks/is-undefined';
5
5
  import { createEsbuildPlugin } from 'unplugin';
@@ -29,5 +29,5 @@ var esbuild = createEsbuildPlugin(createUnpluginFactory("esbuild", (api, plugin)
29
29
  var esbuild_default = esbuild;
30
30
 
31
31
  export { esbuild, esbuild_default };
32
- //# sourceMappingURL=chunk-ISPXQBOL.js.map
33
- //# sourceMappingURL=chunk-ISPXQBOL.js.map
32
+ //# sourceMappingURL=chunk-VJ26HHRE.js.map
33
+ //# sourceMappingURL=chunk-VJ26HHRE.js.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkAATT73UY_cjs = require('./chunk-AATT73UY.cjs');
4
- var chunkHG7JY6AQ_cjs = require('./chunk-HG7JY6AQ.cjs');
4
+ var chunkDD4XJNKQ_cjs = require('./chunk-DD4XJNKQ.cjs');
5
5
  var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
6
6
  var environmentChecks = require('@stryke/env/environment-checks');
7
7
  var defu = require('defu');
@@ -84,7 +84,7 @@ function extractViteConfig(context) {
84
84
  chunkPK6SKIKE_cjs.__name(extractViteConfig, "extractViteConfig");
85
85
 
86
86
  // src/vite.ts
87
- var vite = unplugin.createVitePlugin(chunkHG7JY6AQ_cjs.createUnpluginFactory("vite", (api, plugin) => {
87
+ var vite = unplugin.createVitePlugin(chunkDD4XJNKQ_cjs.createUnpluginFactory("vite", (api, plugin) => {
88
88
  return {
89
89
  ...plugin,
90
90
  vite: {
@@ -145,5 +145,5 @@ var vite_default = vite;
145
145
 
146
146
  exports.vite = vite;
147
147
  exports.vite_default = vite_default;
148
- //# sourceMappingURL=chunk-CF7B5HOG.cjs.map
149
- //# sourceMappingURL=chunk-CF7B5HOG.cjs.map
148
+ //# sourceMappingURL=chunk-XMYY4XUM.cjs.map
149
+ //# sourceMappingURL=chunk-XMYY4XUM.cjs.map
@@ -1,5 +1,5 @@
1
1
  import { extractESBuildConfig } from './chunk-A7PVG2HH.js';
2
- import { createUnpluginFactory } from './chunk-PYID3NKT.js';
2
+ import { createUnpluginFactory } from './chunk-5CV2NNIR.js';
3
3
  import { __name } from './chunk-7QVYU63E.js';
4
4
  import { isDevelopmentMode, isTestMode } from '@stryke/env/environment-checks';
5
5
  import defu from 'defu';
@@ -138,5 +138,5 @@ var vite = createVitePlugin(createUnpluginFactory("vite", (api, plugin) => {
138
138
  var vite_default = vite;
139
139
 
140
140
  export { vite, vite_default };
141
- //# sourceMappingURL=chunk-BH4JSKPK.js.map
142
- //# sourceMappingURL=chunk-BH4JSKPK.js.map
141
+ //# sourceMappingURL=chunk-Z3HPP53Q.js.map
142
+ //# sourceMappingURL=chunk-Z3HPP53Q.js.map
@@ -1,11 +1,14 @@
1
1
  import { EnvPaths } from '@stryke/env/get-env-paths';
2
+ import { FetchRequestOptions } from '@stryke/http/fetch';
2
3
  import { MaybePromise, NonUndefined, FunctionLike, DeepPartial as DeepPartial$1 } from '@stryke/types/base';
3
4
  import { PackageJson } from '@stryke/types/package-json';
4
5
  import { Worker } from 'jest-worker';
5
6
  import { Jiti } from 'jiti';
6
7
  import MagicString, { SourceMap } from 'magic-string';
8
+ import { ParserOptions, ParseResult } from 'oxc-parser';
7
9
  import { Range } from 'semver';
8
10
  import { Project } from 'ts-morph';
11
+ import { RequestInfo, Response } from 'undici';
9
12
  import { Unimport } from 'unimport';
10
13
  import { TransformResult as TransformResult$1, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginMessage, UnpluginContext, UnpluginBuildContext } from 'unplugin';
11
14
  import { PluginPass, PluginObj, PluginItem, TransformOptions, transformAsync } from '@babel/core';
@@ -19,7 +22,7 @@ import { ResolvedPreviewOptions, PreviewOptions, ResolvedConfig as ResolvedConfi
19
22
  import { BabelAPI } from '@babel/helper-plugin-utils';
20
23
  import { StoragePort, StoragePreset, VirtualFileSystemInterface, ResolveOptions, VirtualFile } from './types/fs.cjs';
21
24
  import { ArrayValues } from '@stryke/types/array';
22
- import { BuildVariant, UnpluginBuildVariant, BuildConfig, BuildResolvedConfig, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, ESBuildBuildConfig, ESBuildResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig } from './types/build.cjs';
25
+ import { BuildVariant, UnpluginBuildVariant, BuildConfig, BuildResolvedConfig, ViteBuildConfig, ViteResolvedBuildConfig, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig } from './types/build.cjs';
23
26
  import { TSConfig, ParsedTypeScriptConfig } from './types/tsconfig.cjs';
24
27
 
25
28
  interface NamedImportDefinition {
@@ -130,7 +133,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage"> &
130
133
  /**
131
134
  * The resolved options for the Powerlines project configuration.
132
135
  */
133
- type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework">> & {
136
+ type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework" | "sourceRoot"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework" | "sourceRoot">> & {
134
137
  /**
135
138
  * The configuration options that were provided inline to the Powerlines CLI.
136
139
  */
@@ -489,6 +492,22 @@ type BabelUserConfig = Parameters<typeof transformAsync>[1] & {
489
492
  */
490
493
  presets?: BabelTransformPluginOptions[];
491
494
  };
495
+ interface DeployConfig {
496
+ /**
497
+ * The deployment variant being used by the Powerlines engine.
498
+ *
499
+ * @example
500
+ * ```ts
501
+ * export default defineConfig({
502
+ * deploy: {
503
+ * variant: "cloudflare"
504
+ * }
505
+ * });
506
+ *
507
+ * ```
508
+ */
509
+ variant?: string;
510
+ }
492
511
  interface OutputConfig {
493
512
  /**
494
513
  * The path to output the final compiled files to
@@ -611,7 +630,7 @@ interface BaseConfig {
611
630
  * @remarks
612
631
  * If set to `false`, the deployment will be disabled.
613
632
  */
614
- deploy?: Record<string, any> | false;
633
+ deploy?: DeployConfig | false;
615
634
  /**
616
635
  * The path to the tsconfig file to be used by the compiler
617
636
  *
@@ -738,7 +757,7 @@ interface CommonUserConfig extends BaseConfig {
738
757
  */
739
758
  framework?: string;
740
759
  }
741
- type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> = Omit<CommonUserConfig, "build"> & {
760
+ interface UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> extends Omit<CommonUserConfig, "build"> {
742
761
  /**
743
762
  * Configuration provided to build processes
744
763
  *
@@ -758,7 +777,7 @@ type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedCo
758
777
  */
759
778
  override?: Partial<TBuildResolvedConfig>;
760
779
  };
761
- };
780
+ }
762
781
  type WebpackUserConfig = UserConfig<WebpackBuildConfig, WebpackResolvedBuildConfig, "webpack">;
763
782
  type RspackUserConfig = UserConfig<RspackBuildConfig, RspackResolvedBuildConfig, "rspack">;
764
783
  type RollupUserConfig = UserConfig<RollupBuildConfig, RollupResolvedBuildConfig, "rollup">;
@@ -848,15 +867,6 @@ type AnyUserConfig = Record<string, any> & Partial<AnyBuildConfig> & {
848
867
  docs?: Partial<AnyBuildConfig["docs"]>;
849
868
  deploy?: Partial<AnyBuildConfig["deploy"]>;
850
869
  };
851
- type UserConfigFnObject = (env: ConfigEnv) => DeepPartial$1<UserConfig>;
852
- type UserConfigFnPromise = (env: ConfigEnv) => Promise<DeepPartial$1<UserConfig>>;
853
- type UserConfigFn = (env: ConfigEnv) => UserConfig | Promise<DeepPartial$1<UserConfig>>;
854
- type UserConfigExport = DeepPartial$1<UserConfig> | Promise<DeepPartial$1<UserConfig>> | UserConfigFnObject | UserConfigFnPromise | UserConfigFn;
855
- /**
856
- * An empty interface to allow augmentation of the defineConfig input type.
857
- */
858
- interface DefineConfigInput {
859
- }
860
870
 
861
871
  declare type __ΩLogFn = any[];
862
872
  declare type __ΩWorkspaceConfig = any[];
@@ -868,6 +878,7 @@ declare type __ΩPartialPlugin = any[];
868
878
  declare type __ΩPartialPluginFactory = any[];
869
879
  declare type __ΩProjectType = any[];
870
880
  declare type __ΩBabelUserConfig = any[];
881
+ declare type __ΩDeployConfig = any[];
871
882
  declare type __ΩOutputConfig = any[];
872
883
  declare type __ΩBaseConfig = any[];
873
884
  declare type __ΩEnvironmentConfig = any[];
@@ -896,11 +907,6 @@ declare type __ΩDocsInlineConfig = any[];
896
907
  declare type __ΩDeployInlineConfig = any[];
897
908
  declare type __ΩConfigEnv = any[];
898
909
  declare type __ΩAnyUserConfig = any[];
899
- declare type __ΩUserConfigFnObject = any[];
900
- declare type __ΩUserConfigFnPromise = any[];
901
- declare type __ΩUserConfigFn = any[];
902
- declare type __ΩUserConfigExport = any[];
903
- declare type __ΩDefineConfigInput = any[];
904
910
 
905
911
  type BaseHooks<TContext extends PluginContext = PluginContext> = BasePluginHookFunctions<TContext>;
906
912
  type BaseHookKeys<TContext extends PluginContext = PluginContext> = keyof BaseHooks<TContext>;
@@ -1033,6 +1039,18 @@ interface InitContextOptions {
1033
1039
  */
1034
1040
  isHighPriority: boolean;
1035
1041
  }
1042
+ interface FetchOptions extends FetchRequestOptions {
1043
+ /**
1044
+ * An indicator specifying that the request should bypass any caching
1045
+ */
1046
+ skipCache?: boolean;
1047
+ }
1048
+ interface ParseOptions extends ParserOptions {
1049
+ /**
1050
+ * When true this allows return statements to be outside functions to e.g. support parsing CommonJS code.
1051
+ */
1052
+ allowReturnOutsideFunction?: boolean;
1053
+ }
1036
1054
  /**
1037
1055
  * The unresolved Powerlines context.
1038
1056
  *
@@ -1049,6 +1067,7 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
1049
1067
  */
1050
1068
  config: Omit<TResolvedConfig["userConfig"], "build" | "output"> & Required<Pick<TResolvedConfig["userConfig"], "build" | "output">> & {
1051
1069
  projectRoot: NonUndefined<TResolvedConfig["userConfig"]["root"]>;
1070
+ sourceRoot: NonUndefined<TResolvedConfig["userConfig"]["sourceRoot"]>;
1052
1071
  output: TResolvedConfig["output"];
1053
1072
  };
1054
1073
  /**
@@ -1168,6 +1187,44 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
1168
1187
  * This instance is created lazily on first access.
1169
1188
  */
1170
1189
  program: Project;
1190
+ /**
1191
+ * A function to perform HTTP fetch requests
1192
+ *
1193
+ * @remarks
1194
+ * This function uses a caching layer to avoid duplicate requests during the Powerlines process.
1195
+ *
1196
+ * @example
1197
+ * ```ts
1198
+ * const response = await context.fetch("https://api.example.com/data");
1199
+ * const data = await response.json();
1200
+ * ```
1201
+ *
1202
+ * @see https://github.com/nodejs/undici
1203
+ *
1204
+ * @param input - The URL to fetch.
1205
+ * @param options - The fetch request options.
1206
+ * @returns A promise that resolves to a response returned by the fetch.
1207
+ */
1208
+ fetch: (input: RequestInfo, options?: FetchOptions) => Promise<Response>;
1209
+ /**
1210
+ * Parse code using [Oxc-Parser](https://github.com/oxc/oxc) into an (ESTree-compatible)[https://github.com/estree/estree] AST object.
1211
+ *
1212
+ * @remarks
1213
+ * This function can be used to parse TypeScript code into an AST for further analysis or transformation.
1214
+ *
1215
+ * @example
1216
+ * ```ts
1217
+ * const ast = context.parse("const x: number = 42;");
1218
+ * ```
1219
+ *
1220
+ * @see https://rollupjs.org/plugin-development/#this-parse
1221
+ * @see https://github.com/oxc/oxc
1222
+ *
1223
+ * @param code - The source code to parse.
1224
+ * @param options - The options to pass to the parser.
1225
+ * @returns An (ESTree-compatible)[https://github.com/estree/estree] AST object.
1226
+ */
1227
+ parse: (code: string, options?: ParseOptions) => Promise<ParseResult>;
1171
1228
  /**
1172
1229
  * A helper function to resolve modules using the Jiti resolver
1173
1230
  *
@@ -1363,7 +1420,7 @@ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedCon
1363
1420
  */
1364
1421
  logger: LogFn;
1365
1422
  }
1366
- type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = PluginContext<TResolvedConfig> & Omit<UnpluginBuildContext, "parse">;
1423
+ type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnpluginBuildContext & PluginContext<TResolvedConfig>;
1367
1424
  declare type __ΩLogLevel = any[];
1368
1425
  declare type __ΩWorkerProcess = any[];
1369
1426
  declare type __ΩMetaInfo = any[];
@@ -1373,6 +1430,8 @@ declare type __ΩSourceFile = any[];
1373
1430
  declare type __ΩUnimportContext = any[];
1374
1431
  declare type __ΩSelectHooksOptions = any[];
1375
1432
  declare type __ΩInitContextOptions = any[];
1433
+ declare type __ΩFetchOptions = any[];
1434
+ declare type __ΩParseOptions = any[];
1376
1435
  declare type __ΩUnresolvedContext = any[];
1377
1436
  declare type __ΩContext = any[];
1378
1437
  declare type __ΩAPIContext = any[];
@@ -1381,4 +1440,4 @@ declare type __ΩEnvironmentContext = any[];
1381
1440
  declare type __ΩPluginContext = any[];
1382
1441
  declare type __ΩBuildPluginContext = any[];
1383
1442
 
1384
- export { type TsupUserConfig 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 BaseConfig as H, type ImportDefinition as I, type EnvironmentConfig as J, type CommonUserConfig as K, type LogFn as L, type WebpackUserConfig as M, type NamedImportDefinition as N, type OutputConfig as O, type PluginFactory as P, type RspackUserConfig as Q, type ResolvedBabelTransformPluginOptions as R, SUPPORTED_COMMANDS as S, type RollupUserConfig as T, type UserConfig as U, type RolldownUserConfig as V, type WorkspaceConfig as W, type ViteUserConfig as X, type ESBuildUserConfig as Y, type UnbuildUserConfig as Z, type __ΩNamedImportDefinition as _, type BabelTransformPluginFilter as a, LogLevel as a$, type FarmUserConfig as a0, type InferUserConfig as a1, type InitialUserConfig as a2, type ParsedUserConfig as a3, type PowerlinesCommand as a4, type InlineConfig as a5, type NewInlineConfig as a6, type CleanInlineConfig as a7, type PrepareInlineConfig as a8, type BuildInlineConfig 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 __ΩFarmUserConfig as aH, type __ΩInferUserConfig as aI, type __ΩInitialUserConfig as aJ, type __ΩParsedUserConfig as aK, type __ΩPowerlinesCommand as aL, type __ΩInlineConfig as aM, type __ΩNewInlineConfig as aN, type __ΩCleanInlineConfig as aO, type __ΩPrepareInlineConfig as aP, type __ΩBuildInlineConfig as aQ, type __ΩLintInlineConfig as aR, type __ΩDocsInlineConfig as aS, type __ΩDeployInlineConfig as aT, type __ΩConfigEnv as aU, type __ΩAnyUserConfig as aV, type __ΩUserConfigFnObject as aW, type __ΩUserConfigFnPromise as aX, type __ΩUserConfigFn as aY, type __ΩUserConfigExport as aZ, type __ΩDefineConfigInput as a_, type LintInlineConfig as aa, type DocsInlineConfig as ab, type DeployInlineConfig as ac, type ConfigEnv as ad, type AnyUserConfig as ae, type UserConfigFnObject as af, type UserConfigFnPromise as ag, type UserConfigFn as ah, type UserConfigExport as ai, type DefineConfigInput as aj, type __ΩLogFn as ak, type __ΩWorkspaceConfig as al, type __ΩPluginFactory as am, type __ΩPluginConfigTuple as an, type __ΩPluginConfigObject as ao, type __ΩPluginConfig as ap, type __ΩPartialPlugin as aq, type __ΩPartialPluginFactory as ar, type __ΩProjectType as as, type __ΩBabelUserConfig 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 BasePluginHookFunctions as b$, type WorkerProcess as b0, type MetaInfo as b1, type Resolver as b2, type TransformResult as b3, type SourceFile as b4, type UnimportContext as b5, type SelectHooksOptions as b6, type InitContextOptions as b7, type UnresolvedContext as b8, type Context as b9, type HookKeys as bA, type BaseHooksListItem as bB, type BaseHooksList as bC, type ExternalHooksListItem as bD, type HooksList as bE, type InferHookHandler as bF, type InferHookReturnType as bG, type InferHookParameters as bH, type InferHookThisType as bI, type __ΩBaseHooks as bJ, type __ΩBaseHookKeys as bK, type __ΩExternalHooks as bL, type __ΩExternalHookKeys as bM, type __ΩHooks as bN, type __ΩHookKeys as bO, type __ΩBaseHooksListItem as bP, type __ΩBaseHooksList as bQ, type __ΩExternalHooksListItem as bR, type __ΩHooksList as bS, type __ΩInferHookHandler as bT, type __ΩInferHookReturnType as bU, type __ΩInferHookParameters as bV, type __ΩInferHookThisType as bW, type PluginHookObject as bX, type PluginHook as bY, type GenerateTypesResult as bZ, type ConfigResult as b_, type APIContext as ba, type EnvironmentContextPlugin as bb, type EnvironmentContext as bc, type PluginContext as bd, type BuildPluginContext as be, type __ΩLogLevel as bf, type __ΩWorkerProcess as bg, type __ΩMetaInfo as bh, type __ΩResolver as bi, type __ΩTransformResult as bj, type __ΩSourceFile as bk, type __ΩUnimportContext as bl, type __ΩSelectHooksOptions as bm, type __ΩInitContextOptions as bn, type __ΩUnresolvedContext as bo, type __ΩContext as bp, type __ΩAPIContext as bq, type __ΩEnvironmentContextPlugin as br, type __ΩEnvironmentContext as bs, type __ΩPluginContext as bt, type __ΩBuildPluginContext as bu, type BaseHooks as bv, type BaseHookKeys as bw, type ExternalHooks as bx, type ExternalHookKeys as by, type Hooks as bz, type BabelTransformPluginOptions as c, type BuildPlugin as c0, type ExternalPluginHookFunctionsVariant as c1, type ExternalPluginHookFunctions as c2, type PluginHookFunctions as c3, type PluginHooks as c4, type PluginBuildPlugins as c5, type Plugin as c6, PLUGIN_NON_HOOK_FIELDS as c7, type PluginNonHookFields as c8, type __ΩPluginHookObject as c9, type FarmResolvedConfig as cA, type InferResolvedConfig as cB, type __ΩResolvedEntryTypeDefinition as cC, type __ΩBabelResolvedConfig as cD, type __ΩEnvironmentResolvedConfig as cE, type __ΩResolvedAssetGlob as cF, type __ΩOutputResolvedConfig as cG, type __ΩResolvedConfig as cH, type __ΩViteResolvedConfig as cI, type __ΩWebpackResolvedConfig as cJ, type __ΩRspackResolvedConfig as cK, type __ΩESBuildResolvedConfig as cL, type __ΩRollupResolvedConfig as cM, type __ΩRolldownResolvedConfig as cN, type __ΩTsupResolvedConfig as cO, type __ΩUnbuildResolvedConfig as cP, type __ΩFarmResolvedConfig as cQ, type __ΩInferResolvedConfig as cR, type __ΩPluginHook as ca, type __ΩGenerateTypesResult as cb, type __ΩConfigResult as cc, type __ΩBasePluginHookFunctions as cd, type __ΩBuildPlugin as ce, type __ΩExternalPluginHookFunctionsVariant as cf, type __ΩExternalPluginHookFunctions as cg, type __ΩPluginHookFunctions as ch, type __ΩPluginHooks as ci, type __ΩPluginBuildPlugins as cj, type __ΩPlugin as ck, type __ΩPluginNonHookFields as cl, type ResolvedEntryTypeDefinition as cm, type BabelResolvedConfig as cn, type EnvironmentResolvedConfig as co, type ResolvedAssetGlob as cp, type OutputResolvedConfig as cq, type ResolvedConfig as cr, type ViteResolvedConfig as cs, type WebpackResolvedConfig as ct, type RspackResolvedConfig as cu, type ESBuildResolvedConfig as cv, type RollupResolvedConfig as cw, type RolldownResolvedConfig as cx, type TsupResolvedConfig as cy, type UnbuildResolvedConfig as cz, type BabelTransformInput as d, 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 };
1443
+ 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 InitContextOptions as a$, type TsupUserConfig as a0, type FarmUserConfig as a1, type InferUserConfig as a2, type InitialUserConfig as a3, type ParsedUserConfig as a4, type PowerlinesCommand as a5, type InlineConfig as a6, type NewInlineConfig as a7, type CleanInlineConfig as a8, type PrepareInlineConfig as a9, type __ΩViteUserConfig as aA, type __ΩESBuildUserConfig as aB, type __ΩUnbuildUserConfig as aC, type __ΩTsupUserConfig as aD, type __ΩFarmUserConfig as aE, type __ΩInferUserConfig as aF, type __ΩInitialUserConfig as aG, type __ΩParsedUserConfig as aH, type __ΩPowerlinesCommand as aI, type __ΩInlineConfig as aJ, type __ΩNewInlineConfig as aK, type __ΩCleanInlineConfig as aL, type __ΩPrepareInlineConfig as aM, type __ΩBuildInlineConfig as aN, type __ΩLintInlineConfig as aO, type __ΩDocsInlineConfig as aP, type __ΩDeployInlineConfig as aQ, type __ΩConfigEnv as aR, type __ΩAnyUserConfig as aS, LogLevel as aT, type WorkerProcess as aU, type MetaInfo as aV, type Resolver as aW, type TransformResult as aX, type SourceFile as aY, type UnimportContext as aZ, type SelectHooksOptions as a_, type BuildInlineConfig as aa, type LintInlineConfig as ab, type DocsInlineConfig as ac, type DeployInlineConfig as ad, type ConfigEnv as ae, type AnyUserConfig as af, type __ΩLogFn as ag, type __ΩWorkspaceConfig as ah, type __ΩPluginFactory as ai, type __ΩPluginConfigTuple as aj, type __ΩPluginConfigObject as ak, type __ΩPluginConfig as al, type __ΩPartialPlugin as am, type __ΩPartialPluginFactory as an, type __ΩProjectType as ao, type __ΩBabelUserConfig as ap, type __ΩDeployConfig as aq, type __ΩOutputConfig as ar, type __ΩBaseConfig as as, type __ΩEnvironmentConfig as at, type __ΩCommonUserConfig as au, type __ΩUserConfig as av, type __ΩWebpackUserConfig as aw, type __ΩRspackUserConfig as ax, type __ΩRollupUserConfig as ay, type __ΩRolldownUserConfig as az, type BabelTransformPlugin as b, type PluginHookFunctions as b$, type FetchOptions as b0, type ParseOptions as b1, type UnresolvedContext as b2, type Context as b3, type APIContext as b4, type EnvironmentContextPlugin as b5, type EnvironmentContext as b6, type PluginContext as b7, type BuildPluginContext as b8, type __ΩLogLevel as b9, type HooksList as bA, type InferHookHandler as bB, type InferHookReturnType as bC, type InferHookParameters as bD, type InferHookThisType as bE, type __ΩBaseHooks as bF, type __ΩBaseHookKeys as bG, type __ΩExternalHooks as bH, type __ΩExternalHookKeys as bI, type __ΩHooks as bJ, type __ΩHookKeys as bK, type __ΩBaseHooksListItem as bL, type __ΩBaseHooksList as bM, type __ΩExternalHooksListItem as bN, type __ΩHooksList as bO, type __ΩInferHookHandler as bP, type __ΩInferHookReturnType as bQ, type __ΩInferHookParameters as bR, type __ΩInferHookThisType as bS, type PluginHookObject as bT, type PluginHook as bU, type GenerateTypesResult as bV, type ConfigResult as bW, type BasePluginHookFunctions as bX, type BuildPlugin as bY, type ExternalPluginHookFunctionsVariant as bZ, type ExternalPluginHookFunctions as b_, type __ΩWorkerProcess as ba, type __ΩMetaInfo as bb, type __ΩResolver as bc, type __ΩTransformResult as bd, type __ΩSourceFile as be, type __ΩUnimportContext as bf, type __ΩSelectHooksOptions as bg, type __ΩInitContextOptions as bh, type __ΩFetchOptions as bi, type __ΩParseOptions as bj, type __ΩUnresolvedContext as bk, type __ΩContext as bl, type __ΩAPIContext as bm, type __ΩEnvironmentContextPlugin as bn, type __ΩEnvironmentContext as bo, type __ΩPluginContext as bp, type __ΩBuildPluginContext as bq, type BaseHooks as br, type BaseHookKeys as bs, type ExternalHooks as bt, type ExternalHookKeys as bu, type Hooks as bv, type HookKeys as bw, type BaseHooksListItem as bx, type BaseHooksList as by, type ExternalHooksListItem as bz, type BabelTransformPluginOptions as c, type PluginHooks as c0, type PluginBuildPlugins as c1, type Plugin as c2, PLUGIN_NON_HOOK_FIELDS as c3, type PluginNonHookFields as c4, type __ΩPluginHookObject as c5, type __ΩPluginHook as c6, type __ΩGenerateTypesResult as c7, type __ΩConfigResult as c8, type __ΩBasePluginHookFunctions as c9, type __ΩEnvironmentResolvedConfig as cA, type __ΩResolvedAssetGlob as cB, type __ΩOutputResolvedConfig as cC, type __ΩResolvedConfig as cD, type __ΩViteResolvedConfig as cE, type __ΩWebpackResolvedConfig as cF, type __ΩRspackResolvedConfig as cG, type __ΩESBuildResolvedConfig as cH, type __ΩRollupResolvedConfig as cI, type __ΩRolldownResolvedConfig as cJ, type __ΩTsupResolvedConfig as cK, type __ΩUnbuildResolvedConfig as cL, type __ΩFarmResolvedConfig as cM, type __ΩInferResolvedConfig as cN, type __ΩBuildPlugin as ca, type __ΩExternalPluginHookFunctionsVariant as cb, type __ΩExternalPluginHookFunctions as cc, type __ΩPluginHookFunctions as cd, type __ΩPluginHooks as ce, type __ΩPluginBuildPlugins as cf, type __ΩPlugin as cg, type __ΩPluginNonHookFields as ch, type ResolvedEntryTypeDefinition as ci, type BabelResolvedConfig as cj, type EnvironmentResolvedConfig as ck, type ResolvedAssetGlob as cl, type OutputResolvedConfig as cm, type ResolvedConfig as cn, type ViteResolvedConfig as co, type WebpackResolvedConfig as cp, type RspackResolvedConfig as cq, type ESBuildResolvedConfig as cr, type RollupResolvedConfig as cs, type RolldownResolvedConfig as ct, type TsupResolvedConfig as cu, type UnbuildResolvedConfig as cv, type FarmResolvedConfig as cw, type InferResolvedConfig as cx, type __ΩResolvedEntryTypeDefinition as cy, type __ΩBabelResolvedConfig as cz, type BabelTransformInput as d, 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 };
@@ -1,11 +1,14 @@
1
1
  import { EnvPaths } from '@stryke/env/get-env-paths';
2
+ import { FetchRequestOptions } from '@stryke/http/fetch';
2
3
  import { MaybePromise, NonUndefined, FunctionLike, DeepPartial as DeepPartial$1 } from '@stryke/types/base';
3
4
  import { PackageJson } from '@stryke/types/package-json';
4
5
  import { Worker } from 'jest-worker';
5
6
  import { Jiti } from 'jiti';
6
7
  import MagicString, { SourceMap } from 'magic-string';
8
+ import { ParserOptions, ParseResult } from 'oxc-parser';
7
9
  import { Range } from 'semver';
8
10
  import { Project } from 'ts-morph';
11
+ import { RequestInfo, Response } from 'undici';
9
12
  import { Unimport } from 'unimport';
10
13
  import { TransformResult as TransformResult$1, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginMessage, UnpluginContext, UnpluginBuildContext } from 'unplugin';
11
14
  import { PluginPass, PluginObj, PluginItem, TransformOptions, transformAsync } from '@babel/core';
@@ -19,7 +22,7 @@ import { ResolvedPreviewOptions, PreviewOptions, ResolvedConfig as ResolvedConfi
19
22
  import { BabelAPI } from '@babel/helper-plugin-utils';
20
23
  import { StoragePort, StoragePreset, VirtualFileSystemInterface, ResolveOptions, VirtualFile } from './types/fs.js';
21
24
  import { ArrayValues } from '@stryke/types/array';
22
- import { BuildVariant, UnpluginBuildVariant, BuildConfig, BuildResolvedConfig, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, ESBuildBuildConfig, ESBuildResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig } from './types/build.js';
25
+ import { BuildVariant, UnpluginBuildVariant, BuildConfig, BuildResolvedConfig, ViteBuildConfig, ViteResolvedBuildConfig, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig } from './types/build.js';
23
26
  import { TSConfig, ParsedTypeScriptConfig } from './types/tsconfig.js';
24
27
 
25
28
  interface NamedImportDefinition {
@@ -130,7 +133,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage"> &
130
133
  /**
131
134
  * The resolved options for the Powerlines project configuration.
132
135
  */
133
- type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework">> & {
136
+ type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework" | "sourceRoot"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework" | "sourceRoot">> & {
134
137
  /**
135
138
  * The configuration options that were provided inline to the Powerlines CLI.
136
139
  */
@@ -489,6 +492,22 @@ type BabelUserConfig = Parameters<typeof transformAsync>[1] & {
489
492
  */
490
493
  presets?: BabelTransformPluginOptions[];
491
494
  };
495
+ interface DeployConfig {
496
+ /**
497
+ * The deployment variant being used by the Powerlines engine.
498
+ *
499
+ * @example
500
+ * ```ts
501
+ * export default defineConfig({
502
+ * deploy: {
503
+ * variant: "cloudflare"
504
+ * }
505
+ * });
506
+ *
507
+ * ```
508
+ */
509
+ variant?: string;
510
+ }
492
511
  interface OutputConfig {
493
512
  /**
494
513
  * The path to output the final compiled files to
@@ -611,7 +630,7 @@ interface BaseConfig {
611
630
  * @remarks
612
631
  * If set to `false`, the deployment will be disabled.
613
632
  */
614
- deploy?: Record<string, any> | false;
633
+ deploy?: DeployConfig | false;
615
634
  /**
616
635
  * The path to the tsconfig file to be used by the compiler
617
636
  *
@@ -738,7 +757,7 @@ interface CommonUserConfig extends BaseConfig {
738
757
  */
739
758
  framework?: string;
740
759
  }
741
- type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> = Omit<CommonUserConfig, "build"> & {
760
+ interface UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> extends Omit<CommonUserConfig, "build"> {
742
761
  /**
743
762
  * Configuration provided to build processes
744
763
  *
@@ -758,7 +777,7 @@ type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedCo
758
777
  */
759
778
  override?: Partial<TBuildResolvedConfig>;
760
779
  };
761
- };
780
+ }
762
781
  type WebpackUserConfig = UserConfig<WebpackBuildConfig, WebpackResolvedBuildConfig, "webpack">;
763
782
  type RspackUserConfig = UserConfig<RspackBuildConfig, RspackResolvedBuildConfig, "rspack">;
764
783
  type RollupUserConfig = UserConfig<RollupBuildConfig, RollupResolvedBuildConfig, "rollup">;
@@ -848,15 +867,6 @@ type AnyUserConfig = Record<string, any> & Partial<AnyBuildConfig> & {
848
867
  docs?: Partial<AnyBuildConfig["docs"]>;
849
868
  deploy?: Partial<AnyBuildConfig["deploy"]>;
850
869
  };
851
- type UserConfigFnObject = (env: ConfigEnv) => DeepPartial$1<UserConfig>;
852
- type UserConfigFnPromise = (env: ConfigEnv) => Promise<DeepPartial$1<UserConfig>>;
853
- type UserConfigFn = (env: ConfigEnv) => UserConfig | Promise<DeepPartial$1<UserConfig>>;
854
- type UserConfigExport = DeepPartial$1<UserConfig> | Promise<DeepPartial$1<UserConfig>> | UserConfigFnObject | UserConfigFnPromise | UserConfigFn;
855
- /**
856
- * An empty interface to allow augmentation of the defineConfig input type.
857
- */
858
- interface DefineConfigInput {
859
- }
860
870
 
861
871
  declare type __ΩLogFn = any[];
862
872
  declare type __ΩWorkspaceConfig = any[];
@@ -868,6 +878,7 @@ declare type __ΩPartialPlugin = any[];
868
878
  declare type __ΩPartialPluginFactory = any[];
869
879
  declare type __ΩProjectType = any[];
870
880
  declare type __ΩBabelUserConfig = any[];
881
+ declare type __ΩDeployConfig = any[];
871
882
  declare type __ΩOutputConfig = any[];
872
883
  declare type __ΩBaseConfig = any[];
873
884
  declare type __ΩEnvironmentConfig = any[];
@@ -896,11 +907,6 @@ declare type __ΩDocsInlineConfig = any[];
896
907
  declare type __ΩDeployInlineConfig = any[];
897
908
  declare type __ΩConfigEnv = any[];
898
909
  declare type __ΩAnyUserConfig = any[];
899
- declare type __ΩUserConfigFnObject = any[];
900
- declare type __ΩUserConfigFnPromise = any[];
901
- declare type __ΩUserConfigFn = any[];
902
- declare type __ΩUserConfigExport = any[];
903
- declare type __ΩDefineConfigInput = any[];
904
910
 
905
911
  type BaseHooks<TContext extends PluginContext = PluginContext> = BasePluginHookFunctions<TContext>;
906
912
  type BaseHookKeys<TContext extends PluginContext = PluginContext> = keyof BaseHooks<TContext>;
@@ -1033,6 +1039,18 @@ interface InitContextOptions {
1033
1039
  */
1034
1040
  isHighPriority: boolean;
1035
1041
  }
1042
+ interface FetchOptions extends FetchRequestOptions {
1043
+ /**
1044
+ * An indicator specifying that the request should bypass any caching
1045
+ */
1046
+ skipCache?: boolean;
1047
+ }
1048
+ interface ParseOptions extends ParserOptions {
1049
+ /**
1050
+ * When true this allows return statements to be outside functions to e.g. support parsing CommonJS code.
1051
+ */
1052
+ allowReturnOutsideFunction?: boolean;
1053
+ }
1036
1054
  /**
1037
1055
  * The unresolved Powerlines context.
1038
1056
  *
@@ -1049,6 +1067,7 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
1049
1067
  */
1050
1068
  config: Omit<TResolvedConfig["userConfig"], "build" | "output"> & Required<Pick<TResolvedConfig["userConfig"], "build" | "output">> & {
1051
1069
  projectRoot: NonUndefined<TResolvedConfig["userConfig"]["root"]>;
1070
+ sourceRoot: NonUndefined<TResolvedConfig["userConfig"]["sourceRoot"]>;
1052
1071
  output: TResolvedConfig["output"];
1053
1072
  };
1054
1073
  /**
@@ -1168,6 +1187,44 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
1168
1187
  * This instance is created lazily on first access.
1169
1188
  */
1170
1189
  program: Project;
1190
+ /**
1191
+ * A function to perform HTTP fetch requests
1192
+ *
1193
+ * @remarks
1194
+ * This function uses a caching layer to avoid duplicate requests during the Powerlines process.
1195
+ *
1196
+ * @example
1197
+ * ```ts
1198
+ * const response = await context.fetch("https://api.example.com/data");
1199
+ * const data = await response.json();
1200
+ * ```
1201
+ *
1202
+ * @see https://github.com/nodejs/undici
1203
+ *
1204
+ * @param input - The URL to fetch.
1205
+ * @param options - The fetch request options.
1206
+ * @returns A promise that resolves to a response returned by the fetch.
1207
+ */
1208
+ fetch: (input: RequestInfo, options?: FetchOptions) => Promise<Response>;
1209
+ /**
1210
+ * Parse code using [Oxc-Parser](https://github.com/oxc/oxc) into an (ESTree-compatible)[https://github.com/estree/estree] AST object.
1211
+ *
1212
+ * @remarks
1213
+ * This function can be used to parse TypeScript code into an AST for further analysis or transformation.
1214
+ *
1215
+ * @example
1216
+ * ```ts
1217
+ * const ast = context.parse("const x: number = 42;");
1218
+ * ```
1219
+ *
1220
+ * @see https://rollupjs.org/plugin-development/#this-parse
1221
+ * @see https://github.com/oxc/oxc
1222
+ *
1223
+ * @param code - The source code to parse.
1224
+ * @param options - The options to pass to the parser.
1225
+ * @returns An (ESTree-compatible)[https://github.com/estree/estree] AST object.
1226
+ */
1227
+ parse: (code: string, options?: ParseOptions) => Promise<ParseResult>;
1171
1228
  /**
1172
1229
  * A helper function to resolve modules using the Jiti resolver
1173
1230
  *
@@ -1363,7 +1420,7 @@ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedCon
1363
1420
  */
1364
1421
  logger: LogFn;
1365
1422
  }
1366
- type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = PluginContext<TResolvedConfig> & Omit<UnpluginBuildContext, "parse">;
1423
+ type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnpluginBuildContext & PluginContext<TResolvedConfig>;
1367
1424
  declare type __ΩLogLevel = any[];
1368
1425
  declare type __ΩWorkerProcess = any[];
1369
1426
  declare type __ΩMetaInfo = any[];
@@ -1373,6 +1430,8 @@ declare type __ΩSourceFile = any[];
1373
1430
  declare type __ΩUnimportContext = any[];
1374
1431
  declare type __ΩSelectHooksOptions = any[];
1375
1432
  declare type __ΩInitContextOptions = any[];
1433
+ declare type __ΩFetchOptions = any[];
1434
+ declare type __ΩParseOptions = any[];
1376
1435
  declare type __ΩUnresolvedContext = any[];
1377
1436
  declare type __ΩContext = any[];
1378
1437
  declare type __ΩAPIContext = any[];
@@ -1381,4 +1440,4 @@ declare type __ΩEnvironmentContext = any[];
1381
1440
  declare type __ΩPluginContext = any[];
1382
1441
  declare type __ΩBuildPluginContext = any[];
1383
1442
 
1384
- export { type TsupUserConfig 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 BaseConfig as H, type ImportDefinition as I, type EnvironmentConfig as J, type CommonUserConfig as K, type LogFn as L, type WebpackUserConfig as M, type NamedImportDefinition as N, type OutputConfig as O, type PluginFactory as P, type RspackUserConfig as Q, type ResolvedBabelTransformPluginOptions as R, SUPPORTED_COMMANDS as S, type RollupUserConfig as T, type UserConfig as U, type RolldownUserConfig as V, type WorkspaceConfig as W, type ViteUserConfig as X, type ESBuildUserConfig as Y, type UnbuildUserConfig as Z, type __ΩNamedImportDefinition as _, type BabelTransformPluginFilter as a, LogLevel as a$, type FarmUserConfig as a0, type InferUserConfig as a1, type InitialUserConfig as a2, type ParsedUserConfig as a3, type PowerlinesCommand as a4, type InlineConfig as a5, type NewInlineConfig as a6, type CleanInlineConfig as a7, type PrepareInlineConfig as a8, type BuildInlineConfig 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 __ΩFarmUserConfig as aH, type __ΩInferUserConfig as aI, type __ΩInitialUserConfig as aJ, type __ΩParsedUserConfig as aK, type __ΩPowerlinesCommand as aL, type __ΩInlineConfig as aM, type __ΩNewInlineConfig as aN, type __ΩCleanInlineConfig as aO, type __ΩPrepareInlineConfig as aP, type __ΩBuildInlineConfig as aQ, type __ΩLintInlineConfig as aR, type __ΩDocsInlineConfig as aS, type __ΩDeployInlineConfig as aT, type __ΩConfigEnv as aU, type __ΩAnyUserConfig as aV, type __ΩUserConfigFnObject as aW, type __ΩUserConfigFnPromise as aX, type __ΩUserConfigFn as aY, type __ΩUserConfigExport as aZ, type __ΩDefineConfigInput as a_, type LintInlineConfig as aa, type DocsInlineConfig as ab, type DeployInlineConfig as ac, type ConfigEnv as ad, type AnyUserConfig as ae, type UserConfigFnObject as af, type UserConfigFnPromise as ag, type UserConfigFn as ah, type UserConfigExport as ai, type DefineConfigInput as aj, type __ΩLogFn as ak, type __ΩWorkspaceConfig as al, type __ΩPluginFactory as am, type __ΩPluginConfigTuple as an, type __ΩPluginConfigObject as ao, type __ΩPluginConfig as ap, type __ΩPartialPlugin as aq, type __ΩPartialPluginFactory as ar, type __ΩProjectType as as, type __ΩBabelUserConfig 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 BasePluginHookFunctions as b$, type WorkerProcess as b0, type MetaInfo as b1, type Resolver as b2, type TransformResult as b3, type SourceFile as b4, type UnimportContext as b5, type SelectHooksOptions as b6, type InitContextOptions as b7, type UnresolvedContext as b8, type Context as b9, type HookKeys as bA, type BaseHooksListItem as bB, type BaseHooksList as bC, type ExternalHooksListItem as bD, type HooksList as bE, type InferHookHandler as bF, type InferHookReturnType as bG, type InferHookParameters as bH, type InferHookThisType as bI, type __ΩBaseHooks as bJ, type __ΩBaseHookKeys as bK, type __ΩExternalHooks as bL, type __ΩExternalHookKeys as bM, type __ΩHooks as bN, type __ΩHookKeys as bO, type __ΩBaseHooksListItem as bP, type __ΩBaseHooksList as bQ, type __ΩExternalHooksListItem as bR, type __ΩHooksList as bS, type __ΩInferHookHandler as bT, type __ΩInferHookReturnType as bU, type __ΩInferHookParameters as bV, type __ΩInferHookThisType as bW, type PluginHookObject as bX, type PluginHook as bY, type GenerateTypesResult as bZ, type ConfigResult as b_, type APIContext as ba, type EnvironmentContextPlugin as bb, type EnvironmentContext as bc, type PluginContext as bd, type BuildPluginContext as be, type __ΩLogLevel as bf, type __ΩWorkerProcess as bg, type __ΩMetaInfo as bh, type __ΩResolver as bi, type __ΩTransformResult as bj, type __ΩSourceFile as bk, type __ΩUnimportContext as bl, type __ΩSelectHooksOptions as bm, type __ΩInitContextOptions as bn, type __ΩUnresolvedContext as bo, type __ΩContext as bp, type __ΩAPIContext as bq, type __ΩEnvironmentContextPlugin as br, type __ΩEnvironmentContext as bs, type __ΩPluginContext as bt, type __ΩBuildPluginContext as bu, type BaseHooks as bv, type BaseHookKeys as bw, type ExternalHooks as bx, type ExternalHookKeys as by, type Hooks as bz, type BabelTransformPluginOptions as c, type BuildPlugin as c0, type ExternalPluginHookFunctionsVariant as c1, type ExternalPluginHookFunctions as c2, type PluginHookFunctions as c3, type PluginHooks as c4, type PluginBuildPlugins as c5, type Plugin as c6, PLUGIN_NON_HOOK_FIELDS as c7, type PluginNonHookFields as c8, type __ΩPluginHookObject as c9, type FarmResolvedConfig as cA, type InferResolvedConfig as cB, type __ΩResolvedEntryTypeDefinition as cC, type __ΩBabelResolvedConfig as cD, type __ΩEnvironmentResolvedConfig as cE, type __ΩResolvedAssetGlob as cF, type __ΩOutputResolvedConfig as cG, type __ΩResolvedConfig as cH, type __ΩViteResolvedConfig as cI, type __ΩWebpackResolvedConfig as cJ, type __ΩRspackResolvedConfig as cK, type __ΩESBuildResolvedConfig as cL, type __ΩRollupResolvedConfig as cM, type __ΩRolldownResolvedConfig as cN, type __ΩTsupResolvedConfig as cO, type __ΩUnbuildResolvedConfig as cP, type __ΩFarmResolvedConfig as cQ, type __ΩInferResolvedConfig as cR, type __ΩPluginHook as ca, type __ΩGenerateTypesResult as cb, type __ΩConfigResult as cc, type __ΩBasePluginHookFunctions as cd, type __ΩBuildPlugin as ce, type __ΩExternalPluginHookFunctionsVariant as cf, type __ΩExternalPluginHookFunctions as cg, type __ΩPluginHookFunctions as ch, type __ΩPluginHooks as ci, type __ΩPluginBuildPlugins as cj, type __ΩPlugin as ck, type __ΩPluginNonHookFields as cl, type ResolvedEntryTypeDefinition as cm, type BabelResolvedConfig as cn, type EnvironmentResolvedConfig as co, type ResolvedAssetGlob as cp, type OutputResolvedConfig as cq, type ResolvedConfig as cr, type ViteResolvedConfig as cs, type WebpackResolvedConfig as ct, type RspackResolvedConfig as cu, type ESBuildResolvedConfig as cv, type RollupResolvedConfig as cw, type RolldownResolvedConfig as cx, type TsupResolvedConfig as cy, type UnbuildResolvedConfig as cz, type BabelTransformInput as d, 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 };
1443
+ 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 InitContextOptions as a$, type TsupUserConfig as a0, type FarmUserConfig as a1, type InferUserConfig as a2, type InitialUserConfig as a3, type ParsedUserConfig as a4, type PowerlinesCommand as a5, type InlineConfig as a6, type NewInlineConfig as a7, type CleanInlineConfig as a8, type PrepareInlineConfig as a9, type __ΩViteUserConfig as aA, type __ΩESBuildUserConfig as aB, type __ΩUnbuildUserConfig as aC, type __ΩTsupUserConfig as aD, type __ΩFarmUserConfig as aE, type __ΩInferUserConfig as aF, type __ΩInitialUserConfig as aG, type __ΩParsedUserConfig as aH, type __ΩPowerlinesCommand as aI, type __ΩInlineConfig as aJ, type __ΩNewInlineConfig as aK, type __ΩCleanInlineConfig as aL, type __ΩPrepareInlineConfig as aM, type __ΩBuildInlineConfig as aN, type __ΩLintInlineConfig as aO, type __ΩDocsInlineConfig as aP, type __ΩDeployInlineConfig as aQ, type __ΩConfigEnv as aR, type __ΩAnyUserConfig as aS, LogLevel as aT, type WorkerProcess as aU, type MetaInfo as aV, type Resolver as aW, type TransformResult as aX, type SourceFile as aY, type UnimportContext as aZ, type SelectHooksOptions as a_, type BuildInlineConfig as aa, type LintInlineConfig as ab, type DocsInlineConfig as ac, type DeployInlineConfig as ad, type ConfigEnv as ae, type AnyUserConfig as af, type __ΩLogFn as ag, type __ΩWorkspaceConfig as ah, type __ΩPluginFactory as ai, type __ΩPluginConfigTuple as aj, type __ΩPluginConfigObject as ak, type __ΩPluginConfig as al, type __ΩPartialPlugin as am, type __ΩPartialPluginFactory as an, type __ΩProjectType as ao, type __ΩBabelUserConfig as ap, type __ΩDeployConfig as aq, type __ΩOutputConfig as ar, type __ΩBaseConfig as as, type __ΩEnvironmentConfig as at, type __ΩCommonUserConfig as au, type __ΩUserConfig as av, type __ΩWebpackUserConfig as aw, type __ΩRspackUserConfig as ax, type __ΩRollupUserConfig as ay, type __ΩRolldownUserConfig as az, type BabelTransformPlugin as b, type PluginHookFunctions as b$, type FetchOptions as b0, type ParseOptions as b1, type UnresolvedContext as b2, type Context as b3, type APIContext as b4, type EnvironmentContextPlugin as b5, type EnvironmentContext as b6, type PluginContext as b7, type BuildPluginContext as b8, type __ΩLogLevel as b9, type HooksList as bA, type InferHookHandler as bB, type InferHookReturnType as bC, type InferHookParameters as bD, type InferHookThisType as bE, type __ΩBaseHooks as bF, type __ΩBaseHookKeys as bG, type __ΩExternalHooks as bH, type __ΩExternalHookKeys as bI, type __ΩHooks as bJ, type __ΩHookKeys as bK, type __ΩBaseHooksListItem as bL, type __ΩBaseHooksList as bM, type __ΩExternalHooksListItem as bN, type __ΩHooksList as bO, type __ΩInferHookHandler as bP, type __ΩInferHookReturnType as bQ, type __ΩInferHookParameters as bR, type __ΩInferHookThisType as bS, type PluginHookObject as bT, type PluginHook as bU, type GenerateTypesResult as bV, type ConfigResult as bW, type BasePluginHookFunctions as bX, type BuildPlugin as bY, type ExternalPluginHookFunctionsVariant as bZ, type ExternalPluginHookFunctions as b_, type __ΩWorkerProcess as ba, type __ΩMetaInfo as bb, type __ΩResolver as bc, type __ΩTransformResult as bd, type __ΩSourceFile as be, type __ΩUnimportContext as bf, type __ΩSelectHooksOptions as bg, type __ΩInitContextOptions as bh, type __ΩFetchOptions as bi, type __ΩParseOptions as bj, type __ΩUnresolvedContext as bk, type __ΩContext as bl, type __ΩAPIContext as bm, type __ΩEnvironmentContextPlugin as bn, type __ΩEnvironmentContext as bo, type __ΩPluginContext as bp, type __ΩBuildPluginContext as bq, type BaseHooks as br, type BaseHookKeys as bs, type ExternalHooks as bt, type ExternalHookKeys as bu, type Hooks as bv, type HookKeys as bw, type BaseHooksListItem as bx, type BaseHooksList as by, type ExternalHooksListItem as bz, type BabelTransformPluginOptions as c, type PluginHooks as c0, type PluginBuildPlugins as c1, type Plugin as c2, PLUGIN_NON_HOOK_FIELDS as c3, type PluginNonHookFields as c4, type __ΩPluginHookObject as c5, type __ΩPluginHook as c6, type __ΩGenerateTypesResult as c7, type __ΩConfigResult as c8, type __ΩBasePluginHookFunctions as c9, type __ΩEnvironmentResolvedConfig as cA, type __ΩResolvedAssetGlob as cB, type __ΩOutputResolvedConfig as cC, type __ΩResolvedConfig as cD, type __ΩViteResolvedConfig as cE, type __ΩWebpackResolvedConfig as cF, type __ΩRspackResolvedConfig as cG, type __ΩESBuildResolvedConfig as cH, type __ΩRollupResolvedConfig as cI, type __ΩRolldownResolvedConfig as cJ, type __ΩTsupResolvedConfig as cK, type __ΩUnbuildResolvedConfig as cL, type __ΩFarmResolvedConfig as cM, type __ΩInferResolvedConfig as cN, type __ΩBuildPlugin as ca, type __ΩExternalPluginHookFunctionsVariant as cb, type __ΩExternalPluginHookFunctions as cc, type __ΩPluginHookFunctions as cd, type __ΩPluginHooks as ce, type __ΩPluginBuildPlugins as cf, type __ΩPlugin as cg, type __ΩPluginNonHookFields as ch, type ResolvedEntryTypeDefinition as ci, type BabelResolvedConfig as cj, type EnvironmentResolvedConfig as ck, type ResolvedAssetGlob as cl, type OutputResolvedConfig as cm, type ResolvedConfig as cn, type ViteResolvedConfig as co, type WebpackResolvedConfig as cp, type RspackResolvedConfig as cq, type ESBuildResolvedConfig as cr, type RollupResolvedConfig as cs, type RolldownResolvedConfig as ct, type TsupResolvedConfig as cu, type UnbuildResolvedConfig as cv, type FarmResolvedConfig as cw, type InferResolvedConfig as cx, type __ΩResolvedEntryTypeDefinition as cy, type __ΩBabelResolvedConfig as cz, type BabelTransformInput as d, 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 };
package/dist/esbuild.cjs CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkKW66GUWJ_cjs = require('./chunk-KW66GUWJ.cjs');
5
+ var chunkFJ67PPIW_cjs = require('./chunk-FJ67PPIW.cjs');
6
6
  require('./chunk-AATT73UY.cjs');
7
- require('./chunk-HG7JY6AQ.cjs');
8
- require('./chunk-RCYXXBJ3.cjs');
7
+ require('./chunk-DD4XJNKQ.cjs');
8
+ require('./chunk-ERZWC77E.cjs');
9
9
  require('./chunk-T3T6WSX2.cjs');
10
10
  require('./chunk-Z6ARQDHR.cjs');
11
11
  require('./chunk-ON3LABX3.cjs');
@@ -15,15 +15,15 @@ require('./chunk-PK6SKIKE.cjs');
15
15
 
16
16
  Object.defineProperty(exports, "default", {
17
17
  enumerable: true,
18
- get: function () { return chunkKW66GUWJ_cjs.esbuild_default; }
18
+ get: function () { return chunkFJ67PPIW_cjs.esbuild_default; }
19
19
  });
20
20
  Object.defineProperty(exports, "esbuild", {
21
21
  enumerable: true,
22
- get: function () { return chunkKW66GUWJ_cjs.esbuild; }
22
+ get: function () { return chunkFJ67PPIW_cjs.esbuild; }
23
23
  });
24
24
  Object.defineProperty(exports, "module.exports", {
25
25
  enumerable: true,
26
- get: function () { return chunkKW66GUWJ_cjs.esbuild; }
26
+ get: function () { return chunkFJ67PPIW_cjs.esbuild; }
27
27
  });
28
28
  //# sourceMappingURL=esbuild.cjs.map
29
29
  //# sourceMappingURL=esbuild.cjs.map
@@ -1,13 +1,16 @@
1
1
  import * as _esbuild from 'esbuild';
2
- import { Y as ESBuildUserConfig } from './context-BjOICcQB.cjs';
2
+ import { Z as ESBuildUserConfig } from './context-CDZY3RHt.cjs';
3
3
  import '@stryke/env/get-env-paths';
4
+ import '@stryke/http/fetch';
4
5
  import '@stryke/types/base';
5
6
  import '@stryke/types/package-json';
6
7
  import 'jest-worker';
7
8
  import 'jiti';
8
9
  import 'magic-string';
10
+ import 'oxc-parser';
9
11
  import 'semver';
10
12
  import 'ts-morph';
13
+ import 'undici';
11
14
  import 'unimport';
12
15
  import 'unplugin';
13
16
  import '@babel/core';
package/dist/esbuild.d.ts CHANGED
@@ -1,13 +1,16 @@
1
1
  import * as _esbuild from 'esbuild';
2
- import { Y as ESBuildUserConfig } from './context-BqTYt9FC.js';
2
+ import { Z as ESBuildUserConfig } from './context-CcPf9RC_.js';
3
3
  import '@stryke/env/get-env-paths';
4
+ import '@stryke/http/fetch';
4
5
  import '@stryke/types/base';
5
6
  import '@stryke/types/package-json';
6
7
  import 'jest-worker';
7
8
  import 'jiti';
8
9
  import 'magic-string';
10
+ import 'oxc-parser';
9
11
  import 'semver';
10
12
  import 'ts-morph';
13
+ import 'undici';
11
14
  import 'unimport';
12
15
  import 'unplugin';
13
16
  import '@babel/core';