powerlines 0.23.2 → 0.23.4

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 (297) hide show
  1. package/dist/api--9pVSIbm.d.cts +168 -0
  2. package/dist/api-DxPACGY4.d.ts +168 -0
  3. package/dist/api.cjs +3 -3
  4. package/dist/api.d.cts +16 -7
  5. package/dist/api.d.ts +16 -7
  6. package/dist/api.js +2 -2
  7. package/dist/astro.cjs +8 -8
  8. package/dist/astro.d.cts +3 -5
  9. package/dist/astro.d.ts +3 -5
  10. package/dist/astro.js +5 -5
  11. package/dist/{chunk-ZFO3FUM4.cjs → chunk-2FLICTDF.cjs} +2 -2
  12. package/dist/{chunk-JAJ4CI2F.cjs → chunk-3OQXZ5MM.cjs} +2 -2
  13. package/dist/{chunk-KFRKOIP3.js → chunk-5B6P2VUG.js} +1 -1
  14. package/dist/{chunk-GNNF5SG6.cjs → chunk-6ACGI52O.cjs} +2 -2
  15. package/dist/{chunk-JZAQW55G.cjs → chunk-AF5VNWZD.cjs} +2 -2
  16. package/dist/{chunk-J7MZRPLN.cjs → chunk-AIC2EHPW.cjs} +5 -4
  17. package/dist/{chunk-3WDMXRK6.cjs → chunk-AYKZK666.cjs} +1 -1
  18. package/dist/chunk-CHNKTBUA.cjs +32 -0
  19. package/dist/{chunk-M4QJ2474.cjs → chunk-CTSSNO5L.cjs} +4 -4
  20. package/dist/{chunk-5A7FM72H.cjs → chunk-GP6XGAJ4.cjs} +2 -2
  21. package/dist/{chunk-DUYZ3TCT.js → chunk-HLQGKQZY.js} +1 -1
  22. package/dist/{chunk-LKN52AAX.js → chunk-HNJC47JM.js} +1 -1
  23. package/dist/{chunk-IGWSCIES.js → chunk-ISLX4Z3L.js} +3 -2
  24. package/dist/{chunk-J5LKLH5Z.js → chunk-KFSVTJMR.js} +1 -1
  25. package/dist/{chunk-RWVNX2CP.js → chunk-MI3U2GAT.js} +1 -1
  26. package/dist/{chunk-4ODWTALP.js → chunk-N3F54RFW.js} +2 -2
  27. package/dist/{chunk-Q7HBETZW.js → chunk-O2WB6QZ6.js} +1 -1
  28. package/dist/{chunk-DWV5QAGZ.cjs → chunk-OEKSQ22R.cjs} +2997 -2710
  29. package/dist/{chunk-WSLPUUGZ.js → chunk-PTZB4LWS.js} +1 -1
  30. package/dist/{chunk-CPRXGMH2.js → chunk-QSNFMINQ.js} +1 -1
  31. package/dist/{chunk-YQ76DZYD.cjs → chunk-QUZ4T5AX.cjs} +2 -2
  32. package/dist/chunk-UTAJPBVT.js +29 -0
  33. package/dist/{chunk-WG55ZHJL.cjs → chunk-UW3MXOWV.cjs} +2 -2
  34. package/dist/{chunk-F6BDL4HD.js → chunk-VDBKZJV6.js} +1 -1
  35. package/dist/{chunk-J3LN5HOC.cjs → chunk-VFLCP3SA.cjs} +2 -2
  36. package/dist/{chunk-FM4ABZQ2.js → chunk-VT7NVLLU.js} +1 -1
  37. package/dist/{chunk-WDBPA4RQ.cjs → chunk-VXAKPZ3A.cjs} +2 -2
  38. package/dist/{chunk-WXU3KLBP.cjs → chunk-XOI5CY62.cjs} +2 -2
  39. package/dist/{chunk-NH7U3PTV.js → chunk-ZQ7PDXYO.js} +1 -1
  40. package/dist/{chunk-TNYZH6EG.js → chunk-ZYCPZLIG.js} +2982 -2700
  41. package/dist/config.d.cts +3 -5
  42. package/dist/config.d.ts +3 -5
  43. package/dist/esbuild.cjs +7 -7
  44. package/dist/esbuild.d.cts +3 -5
  45. package/dist/esbuild.d.ts +3 -5
  46. package/dist/esbuild.js +4 -4
  47. package/dist/farm.cjs +4 -4
  48. package/dist/farm.d.cts +3 -5
  49. package/dist/farm.d.ts +3 -5
  50. package/dist/farm.js +3 -3
  51. package/dist/index.cjs +54 -33
  52. package/dist/index.d.cts +191 -39
  53. package/dist/index.d.ts +191 -39
  54. package/dist/index.js +18 -17
  55. package/dist/lib/api-B6hfFxVS.d.ts +167 -0
  56. package/dist/lib/api-CD2QlMig.d.cts +167 -0
  57. package/dist/lib/build/esbuild.d.cts +2 -4
  58. package/dist/lib/build/esbuild.d.ts +2 -4
  59. package/dist/lib/build/index.d.cts +4 -5
  60. package/dist/lib/build/index.d.ts +4 -5
  61. package/dist/lib/build/rolldown.d.cts +2 -4
  62. package/dist/lib/build/rolldown.d.ts +2 -4
  63. package/dist/lib/build/rollup.d.cts +2 -4
  64. package/dist/lib/build/rollup.d.ts +2 -4
  65. package/dist/lib/build/rspack.d.cts +2 -4
  66. package/dist/lib/build/rspack.d.ts +2 -4
  67. package/dist/lib/build/tsup.d.cts +2 -4
  68. package/dist/lib/build/tsup.d.ts +2 -4
  69. package/dist/lib/build/unbuild.d.cts +4 -23
  70. package/dist/lib/build/unbuild.d.ts +4 -23
  71. package/dist/lib/build/vite.d.cts +2 -4
  72. package/dist/lib/build/vite.d.ts +2 -4
  73. package/dist/lib/build/webpack.d.cts +2 -4
  74. package/dist/lib/build/webpack.d.ts +2 -4
  75. package/dist/lib/chunk-32Q2PG5D.js +9 -0
  76. package/dist/lib/chunk-35FGUJFD.cjs +2 -0
  77. package/dist/lib/{chunk-LIN4KAV3.js → chunk-52VDUP5J.js} +5 -7
  78. package/dist/lib/chunk-B3EE3VHZ.cjs +127 -0
  79. package/dist/lib/{chunk-UWHGJ4JS.js → chunk-BLNW3ZQA.js} +483 -1776
  80. package/dist/lib/chunk-DX2VAXZB.cjs +11 -0
  81. package/dist/lib/{chunk-VGSV2BEL.cjs → chunk-EFYMNU53.cjs} +6 -12
  82. package/dist/lib/chunk-FBQIPNRV.cjs +146 -0
  83. package/dist/lib/chunk-FFT4PWRM.js +1 -0
  84. package/dist/lib/{chunk-L4NEN725.js → chunk-G7S5PIAC.js} +1 -1
  85. package/dist/lib/chunk-KFJCWNVG.js +120 -0
  86. package/dist/lib/chunk-M2U6XIQ2.js +144 -0
  87. package/dist/lib/chunk-MVIKYHBX.cjs +2 -0
  88. package/dist/lib/chunk-NYNHNTHT.js +1 -0
  89. package/dist/lib/{chunk-A5SB72VO.cjs → chunk-PYQADZVV.cjs} +493 -1779
  90. package/dist/lib/chunk-QP6WX3Q3.js +1190 -0
  91. package/dist/lib/chunk-S7LLEDQM.cjs +1218 -0
  92. package/dist/lib/chunk-UHGGYHSK.cjs +175 -0
  93. package/dist/lib/chunk-YNKFRPUY.js +168 -0
  94. package/dist/lib/{chunk-ULJVBW4L.cjs → chunk-ZBDVQVUK.cjs} +1 -1
  95. package/dist/lib/{config-BoGlIhnH.d.cts → config-DTSdCZsw.d.cts} +650 -633
  96. package/dist/lib/{config-CTej7RMP.d.ts → config-DeUaQYc_.d.ts} +650 -633
  97. package/dist/lib/config-file.d.cts +4 -5
  98. package/dist/lib/config-file.d.ts +4 -5
  99. package/dist/lib/contexts/api-context.cjs +18 -0
  100. package/dist/lib/contexts/api-context.d.cts +69 -0
  101. package/dist/lib/contexts/api-context.d.ts +69 -0
  102. package/dist/lib/contexts/api-context.js +9 -0
  103. package/dist/lib/contexts/context.cjs +15 -0
  104. package/dist/lib/contexts/context.d.cts +255 -0
  105. package/dist/lib/contexts/context.d.ts +255 -0
  106. package/dist/lib/contexts/context.js +6 -0
  107. package/dist/lib/contexts/environment-context.cjs +17 -0
  108. package/dist/lib/contexts/environment-context.d.cts +65 -0
  109. package/dist/lib/contexts/environment-context.d.ts +65 -0
  110. package/dist/lib/contexts/environment-context.js +8 -0
  111. package/dist/lib/contexts/index.cjs +31 -0
  112. package/dist/lib/contexts/index.d.cts +35 -0
  113. package/dist/lib/contexts/index.d.ts +35 -0
  114. package/dist/lib/contexts/index.js +10 -0
  115. package/dist/lib/contexts/plugin-context.cjs +11 -0
  116. package/dist/lib/contexts/plugin-context.d.cts +42 -0
  117. package/dist/lib/contexts/plugin-context.d.ts +42 -0
  118. package/dist/lib/contexts/plugin-context.js +2 -0
  119. package/dist/lib/entry.d.cts +2 -4
  120. package/dist/lib/entry.d.ts +2 -4
  121. package/dist/lib/index.cjs +96 -74
  122. package/dist/lib/index.d.cts +26 -23
  123. package/dist/lib/index.d.ts +26 -23
  124. package/dist/lib/index.js +18 -12
  125. package/dist/lib/internal-CpVMJCaU.d.ts +39 -0
  126. package/dist/lib/internal-ypnrUNZy.d.cts +39 -0
  127. package/dist/lib/logger.d.cts +4 -5
  128. package/dist/lib/logger.d.ts +4 -5
  129. package/dist/lib/typescript/compiler-host.cjs +1 -1
  130. package/dist/lib/typescript/compiler-host.d.cts +5 -5
  131. package/dist/lib/typescript/compiler-host.d.ts +5 -5
  132. package/dist/lib/typescript/compiler-host.js +1 -1
  133. package/dist/lib/typescript/import-transformer.d.cts +2 -4
  134. package/dist/lib/typescript/import-transformer.d.ts +2 -4
  135. package/dist/lib/typescript/index.cjs +29 -24
  136. package/dist/lib/typescript/index.d.cts +6 -6
  137. package/dist/lib/typescript/index.d.ts +6 -6
  138. package/dist/lib/typescript/index.js +3 -2
  139. package/dist/lib/typescript/isolated-decl.d.cts +2 -1
  140. package/dist/lib/typescript/isolated-decl.d.ts +2 -1
  141. package/dist/lib/typescript/program.d.cts +5 -5
  142. package/dist/lib/typescript/program.d.ts +5 -5
  143. package/dist/lib/typescript/ts-morph.cjs +11 -0
  144. package/dist/lib/{create-program.d.ts → typescript/ts-morph.d.cts} +3 -5
  145. package/dist/lib/{create-program.d.cts → typescript/ts-morph.d.ts} +3 -5
  146. package/dist/lib/typescript/ts-morph.js +2 -0
  147. package/dist/lib/unplugin/factory.cjs +8 -4
  148. package/dist/lib/unplugin/factory.d.cts +27 -10
  149. package/dist/lib/unplugin/factory.d.ts +27 -10
  150. package/dist/lib/unplugin/factory.js +7 -3
  151. package/dist/lib/unplugin/helpers.cjs +11 -0
  152. package/dist/lib/unplugin/helpers.d.cts +128 -0
  153. package/dist/lib/unplugin/helpers.d.ts +128 -0
  154. package/dist/lib/unplugin/helpers.js +2 -0
  155. package/dist/lib/unplugin/index.cjs +12 -7
  156. package/dist/lib/unplugin/index.d.cts +6 -8
  157. package/dist/lib/unplugin/index.d.ts +6 -8
  158. package/dist/lib/unplugin/index.js +9 -4
  159. package/dist/lib/unplugin/plugin.cjs +4 -3
  160. package/dist/lib/unplugin/plugin.d.cts +4 -5
  161. package/dist/lib/unplugin/plugin.d.ts +4 -5
  162. package/dist/lib/unplugin/plugin.js +3 -2
  163. package/dist/lib/unplugin/resolve-id.cjs +2 -2
  164. package/dist/lib/unplugin/resolve-id.d.cts +5 -5
  165. package/dist/lib/unplugin/resolve-id.d.ts +5 -5
  166. package/dist/lib/unplugin/resolve-id.js +1 -1
  167. package/dist/lib/utilities/bundle.d.cts +2 -4
  168. package/dist/lib/utilities/bundle.d.ts +2 -4
  169. package/dist/lib/utilities/cache.d.cts +2 -4
  170. package/dist/lib/utilities/cache.d.ts +2 -4
  171. package/dist/lib/utilities/file-header.d.cts +4 -5
  172. package/dist/lib/utilities/file-header.d.ts +4 -5
  173. package/dist/lib/utilities/index.cjs +18 -18
  174. package/dist/lib/utilities/index.d.cts +5 -7
  175. package/dist/lib/utilities/index.d.ts +5 -7
  176. package/dist/lib/utilities/index.js +4 -4
  177. package/dist/lib/utilities/meta.d.cts +4 -5
  178. package/dist/lib/utilities/meta.d.ts +4 -5
  179. package/dist/lib/utilities/resolve-path.d.cts +2 -4
  180. package/dist/lib/utilities/resolve-path.d.ts +2 -4
  181. package/dist/lib/utilities/resolve.d.cts +2 -4
  182. package/dist/lib/utilities/resolve.d.ts +2 -4
  183. package/dist/lib/utilities/source-file.d.cts +2 -4
  184. package/dist/lib/utilities/source-file.d.ts +2 -4
  185. package/dist/lib/utilities/source-map.d.cts +2 -4
  186. package/dist/lib/utilities/source-map.d.ts +2 -4
  187. package/dist/lib/utilities/worker.d.cts +4 -5
  188. package/dist/lib/utilities/worker.d.ts +4 -5
  189. package/dist/lib/utilities/write-file.d.cts +2 -4
  190. package/dist/lib/utilities/write-file.d.ts +2 -4
  191. package/dist/next.cjs +8 -8
  192. package/dist/next.js +5 -5
  193. package/dist/nuxt.cjs +9 -9
  194. package/dist/nuxt.js +6 -6
  195. package/dist/plugin-utils/{context-D1I2JQgs.d.cts → context-DRFZE3XI.d.cts} +535 -518
  196. package/dist/plugin-utils/{context-D1I2JQgs.d.ts → context-DRFZE3XI.d.ts} +535 -518
  197. package/dist/plugin-utils/context-helpers.d.cts +2 -4
  198. package/dist/plugin-utils/context-helpers.d.ts +2 -4
  199. package/dist/plugin-utils/enforce.d.cts +2 -4
  200. package/dist/plugin-utils/enforce.d.ts +2 -4
  201. package/dist/plugin-utils/extend.d.cts +2 -4
  202. package/dist/plugin-utils/extend.d.ts +2 -4
  203. package/dist/plugin-utils/get-config-path.d.cts +2 -4
  204. package/dist/plugin-utils/get-config-path.d.ts +2 -4
  205. package/dist/plugin-utils/helpers.d.cts +2 -4
  206. package/dist/plugin-utils/helpers.d.ts +2 -4
  207. package/dist/plugin-utils/index.d.cts +3 -5
  208. package/dist/plugin-utils/index.d.ts +3 -5
  209. package/dist/plugin-utils/merge.d.cts +4 -5
  210. package/dist/plugin-utils/merge.d.ts +4 -5
  211. package/dist/plugin-utils/paths.d.cts +2 -4
  212. package/dist/plugin-utils/paths.d.ts +2 -4
  213. package/dist/{resolved-DYLxPDut.d.cts → resolved-C00CJgsk.d.cts} +128 -9
  214. package/dist/{resolved-D1ySEdUv.d.ts → resolved-DKFZ11S7.d.ts} +128 -9
  215. package/dist/rolldown.cjs +7 -7
  216. package/dist/rolldown.d.cts +3 -5
  217. package/dist/rolldown.d.ts +3 -5
  218. package/dist/rolldown.js +4 -4
  219. package/dist/rollup.cjs +7 -7
  220. package/dist/rollup.d.cts +3 -5
  221. package/dist/rollup.d.ts +3 -5
  222. package/dist/rollup.js +4 -4
  223. package/dist/rspack.cjs +7 -7
  224. package/dist/rspack.d.cts +3 -5
  225. package/dist/rspack.d.ts +3 -5
  226. package/dist/rspack.js +4 -4
  227. package/dist/tsup.cjs +8 -8
  228. package/dist/tsup.js +5 -5
  229. package/dist/types/api.cjs +4 -0
  230. package/dist/types/api.d.cts +36 -0
  231. package/dist/types/api.d.ts +36 -0
  232. package/dist/types/api.js +1 -0
  233. package/dist/types/babel.d.cts +3 -5
  234. package/dist/types/babel.d.ts +3 -5
  235. package/dist/types/build.d.cts +26 -1
  236. package/dist/types/build.d.ts +26 -1
  237. package/dist/types/commands.d.cts +3 -5
  238. package/dist/types/commands.d.ts +3 -5
  239. package/dist/types/config.d.cts +3 -5
  240. package/dist/types/config.d.ts +3 -5
  241. package/dist/types/context.d.cts +3 -5
  242. package/dist/types/context.d.ts +3 -5
  243. package/dist/types/{vfs.cjs → fs.cjs} +3 -3
  244. package/dist/types/{vfs.d.cts → fs.d.cts} +54 -35
  245. package/dist/types/{vfs.d.ts → fs.d.ts} +54 -35
  246. package/dist/types/fs.js +2 -0
  247. package/dist/types/hooks.d.cts +3 -5
  248. package/dist/types/hooks.d.ts +3 -5
  249. package/dist/types/index.cjs +9 -8
  250. package/dist/types/index.d.cts +8 -9
  251. package/dist/types/index.d.ts +8 -9
  252. package/dist/types/index.js +3 -2
  253. package/dist/types/internal.d.cts +46 -9
  254. package/dist/types/internal.d.ts +46 -9
  255. package/dist/types/plugin.d.cts +3 -5
  256. package/dist/types/plugin.d.ts +3 -5
  257. package/dist/types/resolved.d.cts +3 -5
  258. package/dist/types/resolved.d.ts +3 -5
  259. package/dist/types/tsconfig.d.cts +8 -1
  260. package/dist/types/tsconfig.d.ts +8 -1
  261. package/dist/types/typedoc.d.cts +3 -1
  262. package/dist/types/typedoc.d.ts +3 -1
  263. package/dist/types/unplugin.d.cts +22 -11
  264. package/dist/types/unplugin.d.ts +22 -11
  265. package/dist/unloader.cjs +7 -7
  266. package/dist/unloader.d.cts +12 -14
  267. package/dist/unloader.d.ts +12 -14
  268. package/dist/unloader.js +4 -4
  269. package/dist/unplugin.cjs +18 -18
  270. package/dist/unplugin.d.cts +6 -9
  271. package/dist/unplugin.d.ts +6 -9
  272. package/dist/unplugin.js +15 -15
  273. package/dist/vite.cjs +7 -7
  274. package/dist/vite.d.cts +3 -5
  275. package/dist/vite.d.ts +3 -5
  276. package/dist/vite.js +4 -4
  277. package/dist/webpack.cjs +7 -7
  278. package/dist/webpack.d.cts +3 -5
  279. package/dist/webpack.d.ts +3 -5
  280. package/dist/webpack.js +4 -4
  281. package/package.json +39 -11
  282. package/schemas/fs.capnp +73 -15
  283. package/dist/chunk-RODEAGIJ.cjs +0 -32
  284. package/dist/chunk-SKLSRHBU.js +0 -29
  285. package/dist/hooks-D2UGCryi.d.ts +0 -28
  286. package/dist/hooks-DJG3B-Hw.d.cts +0 -28
  287. package/dist/lib/create-program.cjs +0 -11
  288. package/dist/lib/create-program.js +0 -2
  289. package/dist/lib/hooks-CDLPWf7j.d.cts +0 -28
  290. package/dist/lib/hooks-Cn-IqwYp.d.ts +0 -28
  291. package/dist/types/vfs.js +0 -2
  292. /package/dist/{chunk-KIKTWMI3.cjs → chunk-2NCILNCH.cjs} +0 -0
  293. /package/dist/{chunk-XVLT2RQ2.js → chunk-BLNT5INX.js} +0 -0
  294. /package/dist/{lib/chunk-RJ4277VZ.cjs → chunk-GRU7B3QM.cjs} +0 -0
  295. /package/dist/{lib/chunk-ZBLDAREE.js → chunk-T2P533I5.js} +0 -0
  296. /package/dist/lib/{chunk-CGYAL3S2.cjs → chunk-4EIXDLFP.cjs} +0 -0
  297. /package/dist/lib/{chunk-CXRSMYEX.js → chunk-RD5AUWXN.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { Jiti } from 'jiti';
2
- import { C as Context, e as WorkspaceConfig, P as PowerlinesCommand, f as ParsedUserConfig } from './config-BoGlIhnH.cjs';
2
+ import { C as Context, e as WorkspaceConfig, P as PowerlinesCommand, f as ParsedUserConfig } from './config-DTSdCZsw.cjs';
3
3
  import '@storm-software/build-tools/types';
4
4
  import '@storm-software/config-tools/types';
5
5
  import '@storm-software/config/types';
@@ -20,15 +20,13 @@ import '@stryke/env/get-env-paths';
20
20
  import '@stryke/types/package-json';
21
21
  import 'jest-worker';
22
22
  import 'magic-string';
23
- import 'oxc-parser';
24
23
  import 'semver';
25
24
  import 'unplugin';
25
+ import 'node:fs';
26
26
  import '@stryke/types/array';
27
27
  import './tsconfig-Bz-CiFqD.cjs';
28
28
  import '@stryke/types/tsconfig';
29
29
  import 'typescript';
30
- import '@stryke/json/types';
31
- import 'node:fs';
32
30
 
33
31
  type PartiallyResolvedContext<TContext extends Context = Context> = Omit<TContext, "config" | "tsconfig" | "entry" | "fs" | "compiler" | "unimport"> & Partial<TContext> & {
34
32
  config: TContext["config"];
@@ -53,5 +51,6 @@ declare function loadWorkspaceConfig(workspaceRoot: string, cwd: string): Promis
53
51
  * @returns A promise that resolves to the resolved user configuration.
54
52
  */
55
53
  declare function loadUserConfigFile(projectRoot: string, jiti: Jiti, command?: PowerlinesCommand, mode?: string, configFile?: string, framework?: string): Promise<ParsedUserConfig>;
54
+ declare type __ΩPartiallyResolvedContext = any[];
56
55
 
57
- export { type PartiallyResolvedContext, loadUserConfigFile, loadWorkspaceConfig };
56
+ export { type PartiallyResolvedContext, type __ΩPartiallyResolvedContext, loadUserConfigFile, loadWorkspaceConfig };
@@ -1,5 +1,5 @@
1
1
  import { Jiti } from 'jiti';
2
- import { C as Context, e as WorkspaceConfig, P as PowerlinesCommand, f as ParsedUserConfig } from './config-CTej7RMP.js';
2
+ import { C as Context, e as WorkspaceConfig, P as PowerlinesCommand, f as ParsedUserConfig } from './config-DeUaQYc_.js';
3
3
  import '@storm-software/build-tools/types';
4
4
  import '@storm-software/config-tools/types';
5
5
  import '@storm-software/config/types';
@@ -20,15 +20,13 @@ import '@stryke/env/get-env-paths';
20
20
  import '@stryke/types/package-json';
21
21
  import 'jest-worker';
22
22
  import 'magic-string';
23
- import 'oxc-parser';
24
23
  import 'semver';
25
24
  import 'unplugin';
25
+ import 'node:fs';
26
26
  import '@stryke/types/array';
27
27
  import './tsconfig-Bz-CiFqD.js';
28
28
  import '@stryke/types/tsconfig';
29
29
  import 'typescript';
30
- import '@stryke/json/types';
31
- import 'node:fs';
32
30
 
33
31
  type PartiallyResolvedContext<TContext extends Context = Context> = Omit<TContext, "config" | "tsconfig" | "entry" | "fs" | "compiler" | "unimport"> & Partial<TContext> & {
34
32
  config: TContext["config"];
@@ -53,5 +51,6 @@ declare function loadWorkspaceConfig(workspaceRoot: string, cwd: string): Promis
53
51
  * @returns A promise that resolves to the resolved user configuration.
54
52
  */
55
53
  declare function loadUserConfigFile(projectRoot: string, jiti: Jiti, command?: PowerlinesCommand, mode?: string, configFile?: string, framework?: string): Promise<ParsedUserConfig>;
54
+ declare type __ΩPartiallyResolvedContext = any[];
56
55
 
57
- export { type PartiallyResolvedContext, loadUserConfigFile, loadWorkspaceConfig };
56
+ export { type PartiallyResolvedContext, type __ΩPartiallyResolvedContext, loadUserConfigFile, loadWorkspaceConfig };
@@ -0,0 +1,18 @@
1
+ 'use strict';
2
+
3
+ var chunkUHGGYHSK_cjs = require('../chunk-UHGGYHSK.cjs');
4
+ require('../chunk-FBQIPNRV.cjs');
5
+ require('../chunk-B3EE3VHZ.cjs');
6
+ require('../chunk-PYQADZVV.cjs');
7
+ require('../chunk-7XHBIYIN.cjs');
8
+ require('../chunk-XW5TELHB.cjs');
9
+ require('../chunk-JA4HSQRN.cjs');
10
+ require('../chunk-ISBHXSDH.cjs');
11
+ require('../chunk-USNT2KNT.cjs');
12
+
13
+
14
+
15
+ Object.defineProperty(exports, "PowerlinesAPIContext", {
16
+ enumerable: true,
17
+ get: function () { return chunkUHGGYHSK_cjs.PowerlinesAPIContext; }
18
+ });
@@ -0,0 +1,69 @@
1
+ import { m as ResolvedConfig, A as APIContext, I as InitialUserConfig, n as EnvironmentContext, L as LogFn, o as Plugin, p as PluginContext, e as WorkspaceConfig, q as EnvironmentResolvedConfig } from '../config-DTSdCZsw.cjs';
2
+ import { PowerlinesContext } from './context.cjs';
3
+ import '@storm-software/build-tools/types';
4
+ import '@storm-software/config-tools/types';
5
+ import '@storm-software/config/types';
6
+ import '@stryke/types/base';
7
+ import '@stryke/types/configuration';
8
+ import '@stryke/types/file';
9
+ import 'c12';
10
+ import 'vite';
11
+ import '@farmfe/core';
12
+ import '@rspack/core';
13
+ import '@storm-software/tsup/types';
14
+ import '@storm-software/unbuild/types';
15
+ import 'esbuild';
16
+ import 'rolldown';
17
+ import 'rollup';
18
+ import 'webpack';
19
+ import '@stryke/env/get-env-paths';
20
+ import '@stryke/types/package-json';
21
+ import 'jest-worker';
22
+ import 'jiti';
23
+ import 'magic-string';
24
+ import 'semver';
25
+ import 'unplugin';
26
+ import 'node:fs';
27
+ import '@stryke/types/array';
28
+ import '../tsconfig-Bz-CiFqD.cjs';
29
+ import '@stryke/types/tsconfig';
30
+ import 'typescript';
31
+ import '../internal-ypnrUNZy.cjs';
32
+ import '../api-CD2QlMig.cjs';
33
+
34
+ declare class PowerlinesAPIContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PowerlinesContext<TResolvedConfig> implements APIContext<TResolvedConfig> {
35
+ #private;
36
+ /**
37
+ * Create a new Storm context from the workspace root and user config.
38
+ *
39
+ * @param workspaceRoot - The root directory of the workspace.
40
+ * @param config - The user configuration options.
41
+ * @returns A promise that resolves to the new context.
42
+ */
43
+ static from<TResolvedConfig extends ResolvedConfig = ResolvedConfig>(workspaceRoot: string, config: InitialUserConfig<TResolvedConfig["userConfig"]>): Promise<APIContext<TResolvedConfig>>;
44
+ /**
45
+ * A record of all environments by name
46
+ */
47
+ get environments(): Record<string, EnvironmentContext<TResolvedConfig>>;
48
+ get log(): LogFn;
49
+ get plugins(): Array<Plugin<PluginContext<TResolvedConfig>>>;
50
+ protected constructor(workspaceConfig: WorkspaceConfig);
51
+ /**
52
+ * Initialize the context with the provided configuration options
53
+ *
54
+ * @param config - The partial user configuration to use for initialization.
55
+ */
56
+ protected init(config?: Partial<TResolvedConfig["userConfig"]>): Promise<void>;
57
+ /**
58
+ * A function to copy the context and update the fields for a specific environment
59
+ *
60
+ * @param environment - The environment configuration to use.
61
+ * @returns A new context instance with the updated environment.
62
+ */
63
+ in(environment: EnvironmentResolvedConfig): Promise<EnvironmentContext<TResolvedConfig>>;
64
+ addPlugin(plugin: Plugin<PluginContext<TResolvedConfig>>): Promise<void>;
65
+ getEnvironment(name?: string): Promise<EnvironmentContext<TResolvedConfig>>;
66
+ getEnvironmentSafe(name?: string): Promise<EnvironmentContext<TResolvedConfig> | undefined>;
67
+ }
68
+
69
+ export { PowerlinesAPIContext };
@@ -0,0 +1,69 @@
1
+ import { m as ResolvedConfig, A as APIContext, I as InitialUserConfig, n as EnvironmentContext, L as LogFn, o as Plugin, p as PluginContext, e as WorkspaceConfig, q as EnvironmentResolvedConfig } from '../config-DeUaQYc_.js';
2
+ import { PowerlinesContext } from './context.js';
3
+ import '@storm-software/build-tools/types';
4
+ import '@storm-software/config-tools/types';
5
+ import '@storm-software/config/types';
6
+ import '@stryke/types/base';
7
+ import '@stryke/types/configuration';
8
+ import '@stryke/types/file';
9
+ import 'c12';
10
+ import 'vite';
11
+ import '@farmfe/core';
12
+ import '@rspack/core';
13
+ import '@storm-software/tsup/types';
14
+ import '@storm-software/unbuild/types';
15
+ import 'esbuild';
16
+ import 'rolldown';
17
+ import 'rollup';
18
+ import 'webpack';
19
+ import '@stryke/env/get-env-paths';
20
+ import '@stryke/types/package-json';
21
+ import 'jest-worker';
22
+ import 'jiti';
23
+ import 'magic-string';
24
+ import 'semver';
25
+ import 'unplugin';
26
+ import 'node:fs';
27
+ import '@stryke/types/array';
28
+ import '../tsconfig-Bz-CiFqD.js';
29
+ import '@stryke/types/tsconfig';
30
+ import 'typescript';
31
+ import '../internal-CpVMJCaU.js';
32
+ import '../api-B6hfFxVS.js';
33
+
34
+ declare class PowerlinesAPIContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PowerlinesContext<TResolvedConfig> implements APIContext<TResolvedConfig> {
35
+ #private;
36
+ /**
37
+ * Create a new Storm context from the workspace root and user config.
38
+ *
39
+ * @param workspaceRoot - The root directory of the workspace.
40
+ * @param config - The user configuration options.
41
+ * @returns A promise that resolves to the new context.
42
+ */
43
+ static from<TResolvedConfig extends ResolvedConfig = ResolvedConfig>(workspaceRoot: string, config: InitialUserConfig<TResolvedConfig["userConfig"]>): Promise<APIContext<TResolvedConfig>>;
44
+ /**
45
+ * A record of all environments by name
46
+ */
47
+ get environments(): Record<string, EnvironmentContext<TResolvedConfig>>;
48
+ get log(): LogFn;
49
+ get plugins(): Array<Plugin<PluginContext<TResolvedConfig>>>;
50
+ protected constructor(workspaceConfig: WorkspaceConfig);
51
+ /**
52
+ * Initialize the context with the provided configuration options
53
+ *
54
+ * @param config - The partial user configuration to use for initialization.
55
+ */
56
+ protected init(config?: Partial<TResolvedConfig["userConfig"]>): Promise<void>;
57
+ /**
58
+ * A function to copy the context and update the fields for a specific environment
59
+ *
60
+ * @param environment - The environment configuration to use.
61
+ * @returns A new context instance with the updated environment.
62
+ */
63
+ in(environment: EnvironmentResolvedConfig): Promise<EnvironmentContext<TResolvedConfig>>;
64
+ addPlugin(plugin: Plugin<PluginContext<TResolvedConfig>>): Promise<void>;
65
+ getEnvironment(name?: string): Promise<EnvironmentContext<TResolvedConfig>>;
66
+ getEnvironmentSafe(name?: string): Promise<EnvironmentContext<TResolvedConfig> | undefined>;
67
+ }
68
+
69
+ export { PowerlinesAPIContext };
@@ -0,0 +1,9 @@
1
+ export { PowerlinesAPIContext } from '../chunk-YNKFRPUY.js';
2
+ import '../chunk-M2U6XIQ2.js';
3
+ import '../chunk-KFJCWNVG.js';
4
+ import '../chunk-BLNW3ZQA.js';
5
+ import '../chunk-YH5GOJS3.js';
6
+ import '../chunk-ZPIKFR7Z.js';
7
+ import '../chunk-ENRLU4UR.js';
8
+ import '../chunk-XZFEHPYE.js';
9
+ import '../chunk-SHUYVCID.js';
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ var chunkPYQADZVV_cjs = require('../chunk-PYQADZVV.cjs');
4
+ require('../chunk-7XHBIYIN.cjs');
5
+ require('../chunk-XW5TELHB.cjs');
6
+ require('../chunk-JA4HSQRN.cjs');
7
+ require('../chunk-ISBHXSDH.cjs');
8
+ require('../chunk-USNT2KNT.cjs');
9
+
10
+
11
+
12
+ Object.defineProperty(exports, "PowerlinesContext", {
13
+ enumerable: true,
14
+ get: function () { return chunkPYQADZVV_cjs.PowerlinesContext; }
15
+ });
@@ -0,0 +1,255 @@
1
+ import { EnvPaths } from '@stryke/env/get-env-paths';
2
+ import { PackageJson } from '@stryke/types/package-json';
3
+ import { Range } from 'semver';
4
+ import { UnpluginMessage } from 'unplugin';
5
+ import { m as ResolvedConfig, C as Context, I as InitialUserConfig, u as MetaInfo, v as Resolver, g as ResolvedEntryTypeDefinition, V as VirtualFileSystemInterface, L as LogFn, e as WorkspaceConfig, w as VirtualFile, x as PowerlinesWriteFileOptions, y as InitContextOptions } from '../config-DTSdCZsw.cjs';
6
+ import { a as UNSAFE_ContextInternal } from '../internal-ypnrUNZy.cjs';
7
+ import { P as ParsedTypeScriptConfig } from '../tsconfig-Bz-CiFqD.cjs';
8
+ import '@storm-software/build-tools/types';
9
+ import '@storm-software/config-tools/types';
10
+ import '@storm-software/config/types';
11
+ import '@stryke/types/base';
12
+ import '@stryke/types/configuration';
13
+ import '@stryke/types/file';
14
+ import 'c12';
15
+ import 'vite';
16
+ import '@farmfe/core';
17
+ import '@rspack/core';
18
+ import '@storm-software/tsup/types';
19
+ import '@storm-software/unbuild/types';
20
+ import 'esbuild';
21
+ import 'rolldown';
22
+ import 'rollup';
23
+ import 'webpack';
24
+ import 'jest-worker';
25
+ import 'jiti';
26
+ import 'magic-string';
27
+ import 'node:fs';
28
+ import '@stryke/types/array';
29
+ import '../api-CD2QlMig.cjs';
30
+ import '@stryke/types/tsconfig';
31
+ import 'typescript';
32
+
33
+ declare class PowerlinesContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> implements Context<TResolvedConfig> {
34
+ #private;
35
+ /**
36
+ * Create a new Storm context from the workspace root and user config.
37
+ *
38
+ * @param workspaceRoot - The root directory of the workspace.
39
+ * @param config - The user configuration options.
40
+ * @returns A promise that resolves to the new context.
41
+ */
42
+ static from<TResolvedConfig extends ResolvedConfig = ResolvedConfig>(workspaceRoot: string, config: InitialUserConfig<TResolvedConfig["userConfig"]>): Promise<Context>;
43
+ /**
44
+ * An object containing the dependencies that should be installed for the project
45
+ */
46
+ dependencies: Record<string, string | Range>;
47
+ /**
48
+ * An object containing the development dependencies that should be installed for the project
49
+ */
50
+ devDependencies: Record<string, string | Range>;
51
+ /**
52
+ * The persisted meta information about the current build
53
+ */
54
+ persistedMeta: MetaInfo | undefined;
55
+ /**
56
+ * The path to the Powerlines package
57
+ */
58
+ powerlinesPath: string;
59
+ /**
60
+ * The parsed `package.json` file for the project
61
+ */
62
+ packageJson: PackageJson;
63
+ /**
64
+ * The parsed `project.json` file for the project
65
+ */
66
+ projectJson: Record<string, any> | undefined;
67
+ /**
68
+ * The module resolver for the project
69
+ */
70
+ resolver: Resolver;
71
+ /**
72
+ * Internal context fields and methods
73
+ *
74
+ * @internal
75
+ */
76
+ get $$internal(): UNSAFE_ContextInternal<TResolvedConfig>;
77
+ /**
78
+ * The resolved entry type definitions for the project
79
+ */
80
+ get entry(): ResolvedEntryTypeDefinition[];
81
+ /**
82
+ * The TypeScript configuration parsed from the tsconfig file
83
+ */
84
+ get tsconfig(): ParsedTypeScriptConfig;
85
+ /**
86
+ * Sets the TypeScript configuration parsed from the tsconfig file
87
+ */
88
+ set tsconfig(value: ParsedTypeScriptConfig);
89
+ /**
90
+ * The virtual file system interface for the project
91
+ */
92
+ get fs(): VirtualFileSystemInterface;
93
+ /**
94
+ * Get the checksum of the project's current state
95
+ */
96
+ get checksum(): string | null;
97
+ /**
98
+ * The meta information about the current build
99
+ */
100
+ get meta(): MetaInfo;
101
+ /**
102
+ * The resolved configuration options
103
+ */
104
+ get config(): TResolvedConfig;
105
+ /**
106
+ * The logger function
107
+ */
108
+ get log(): LogFn;
109
+ /**
110
+ * The workspace configuration
111
+ */
112
+ get workspaceConfig(): WorkspaceConfig;
113
+ /**
114
+ * The environment paths for the project
115
+ */
116
+ get envPaths(): EnvPaths;
117
+ /**
118
+ * Get the path to the artifacts directory for the project
119
+ */
120
+ get artifactsPath(): string;
121
+ /**
122
+ * Get the path to the builtin modules used by the project
123
+ */
124
+ get builtinsPath(): string;
125
+ /**
126
+ * Get the path to the entry directory for the project
127
+ */
128
+ get entryPath(): string;
129
+ /**
130
+ * Get the path to the data directory for the project
131
+ */
132
+ get dataPath(): string;
133
+ /**
134
+ * Get the path to the cache directory for the project
135
+ */
136
+ get cachePath(): string;
137
+ /**
138
+ * Get the path to the generated declaration file for the project
139
+ */
140
+ get dtsPath(): string;
141
+ /**
142
+ * Get the project root relative to the workspace root
143
+ */
144
+ get relativeToWorkspaceRoot(): any;
145
+ /**
146
+ * The builtin module id that exist in the Powerlines virtual file system
147
+ */
148
+ get builtins(): string[];
149
+ /**
150
+ * Get the builtin virtual files that exist in the Powerlines virtual file system
151
+ */
152
+ getBuiltins(): Promise<VirtualFile[]>;
153
+ /**
154
+ * Resolves a entry virtual file and writes it to the VFS if it does not already exist
155
+ *
156
+ * @param code - The source code of the entry file
157
+ * @param path - A path to write the entry file to
158
+ * @param options - Optional write file options
159
+ */
160
+ emitEntry(code: string, path: string, options?: PowerlinesWriteFileOptions): Promise<void>;
161
+ /**
162
+ * Resolves a builtin virtual file and writes it to the VFS if it does not already exist
163
+ *
164
+ * @param code - The source code of the builtin file
165
+ * @param id - The unique identifier of the builtin file
166
+ * @param path - An optional path to write the builtin file to
167
+ * @param options - Optional write file options
168
+ */
169
+ emitBuiltin(code: string, id: string, path?: string, options?: PowerlinesWriteFileOptions): Promise<void>;
170
+ /**
171
+ * Update the context using a new user configuration options
172
+ *
173
+ * @param userConfig - The new user configuration options.
174
+ */
175
+ withUserConfig(userConfig: InitialUserConfig<TResolvedConfig["userConfig"]>, options?: InitContextOptions): Promise<void>;
176
+ /**
177
+ * Update the context using a new inline configuration options
178
+ *
179
+ * @param inlineConfig - The new inline configuration options.
180
+ */
181
+ withInlineConfig(inlineConfig: TResolvedConfig["inlineConfig"], options?: InitContextOptions): Promise<void>;
182
+ /**
183
+ * A logging function for fatal messages
184
+ *
185
+ * @param message - The message to log.
186
+ */
187
+ fatal(message: string | UnpluginMessage): void;
188
+ /**
189
+ * A logging function for error messages
190
+ *
191
+ * @param message - The message to log.
192
+ */
193
+ error(message: string | UnpluginMessage): void;
194
+ /**
195
+ * A logging function for warning messages
196
+ *
197
+ * @param message - The message to log.
198
+ */
199
+ warn(message: string | UnpluginMessage): void;
200
+ /**
201
+ * A logging function for informational messages
202
+ *
203
+ * @param message - The message to log.
204
+ */
205
+ info(message: string | UnpluginMessage): void;
206
+ /**
207
+ * A logging function for debug messages
208
+ *
209
+ * @param message - The message to log.
210
+ */
211
+ debug(message: string | UnpluginMessage): void;
212
+ /**
213
+ * A logging function for trace messages
214
+ *
215
+ * @param message - The message to log.
216
+ */
217
+ trace(message: string | UnpluginMessage): void;
218
+ /**
219
+ * Create a new logger instance
220
+ *
221
+ * @param name - The name to use for the logger instance
222
+ * @returns A logger function
223
+ */
224
+ createLog(name?: string | null): LogFn;
225
+ /**
226
+ * Extend the current logger instance with a new name
227
+ *
228
+ * @param name - The name to use for the extended logger instance
229
+ * @returns A logger function
230
+ */
231
+ extendLog(name: string): LogFn;
232
+ /**
233
+ * Creates a new StormContext instance.
234
+ *
235
+ * @param workspaceConfig - The workspace configuration.
236
+ */
237
+ protected constructor(workspaceConfig: WorkspaceConfig);
238
+ /**
239
+ * The resolved configuration for this context
240
+ */
241
+ protected resolvedConfig: TResolvedConfig;
242
+ /**
243
+ * A logger function specific to this context
244
+ */
245
+ protected logFn: LogFn;
246
+ /**
247
+ * Initialize the context with the provided configuration options
248
+ *
249
+ * @param config - The partial user configuration to use for initialization.
250
+ */
251
+ protected init(config?: Partial<TResolvedConfig["userConfig"]>, options?: InitContextOptions): Promise<void>;
252
+ protected mergeUserConfig(from?: Partial<TResolvedConfig["userConfig"]>, into?: Partial<TResolvedConfig["userConfig"]>): void;
253
+ }
254
+
255
+ export { PowerlinesContext };