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
package/dist/vite.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as vite$1 from 'vite';
2
- import { V as ViteUserConfig } from './resolved-D1ySEdUv.js';
2
+ import { X as ViteUserConfig } from './resolved-DKFZ11S7.js';
3
3
  import '@stryke/types/base';
4
4
  import '@stryke/types/configuration';
5
5
  import '@stryke/types/file';
@@ -24,17 +24,15 @@ import 'jest-worker';
24
24
  import 'jiti';
25
25
  import 'magic-string';
26
26
  import 'memfs';
27
- import 'oxc-parser';
28
27
  import 'semver';
29
28
  import 'unimport';
30
29
  import 'unplugin';
30
+ import './types/fs.js';
31
+ import 'node:fs';
31
32
  import '@stryke/types/array';
32
33
  import './types/tsconfig.js';
33
34
  import '@stryke/types/tsconfig';
34
35
  import 'typescript';
35
- import './types/vfs.js';
36
- import '@stryke/json/types';
37
- import 'node:fs';
38
36
 
39
37
  /**
40
38
  * A Vite plugin that will invoke the Powerlines API hooks during the build process.
package/dist/vite.js CHANGED
@@ -1,8 +1,8 @@
1
- export { vite_default as default, vite as "module.exports", vite } from './chunk-DUYZ3TCT.js';
1
+ export { vite_default as default, vite as "module.exports", vite } from './chunk-HLQGKQZY.js';
2
2
  import './chunk-VBR53KGY.js';
3
- import './chunk-IGWSCIES.js';
4
- import './chunk-TNYZH6EG.js';
3
+ import './chunk-ISLX4Z3L.js';
4
+ import './chunk-ZYCPZLIG.js';
5
5
  import './chunk-JQCWV4DT.js';
6
- import './chunk-FM4ABZQ2.js';
7
6
  import './chunk-JKBJF3UI.js';
7
+ import './chunk-VT7NVLLU.js';
8
8
  import './chunk-SHUYVCID.js';
package/dist/webpack.cjs CHANGED
@@ -2,25 +2,25 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkJAJ4CI2F_cjs = require('./chunk-JAJ4CI2F.cjs');
6
- require('./chunk-J7MZRPLN.cjs');
7
- require('./chunk-DWV5QAGZ.cjs');
5
+ var chunk3OQXZ5MM_cjs = require('./chunk-3OQXZ5MM.cjs');
6
+ require('./chunk-AIC2EHPW.cjs');
7
+ require('./chunk-OEKSQ22R.cjs');
8
8
  require('./chunk-ETKZMGLN.cjs');
9
- require('./chunk-3WDMXRK6.cjs');
10
9
  require('./chunk-PAMSESZV.cjs');
10
+ require('./chunk-AYKZK666.cjs');
11
11
  require('./chunk-USNT2KNT.cjs');
12
12
 
13
13
 
14
14
 
15
15
  Object.defineProperty(exports, "default", {
16
16
  enumerable: true,
17
- get: function () { return chunkJAJ4CI2F_cjs.webpack_default; }
17
+ get: function () { return chunk3OQXZ5MM_cjs.webpack_default; }
18
18
  });
19
19
  Object.defineProperty(exports, "module.exports", {
20
20
  enumerable: true,
21
- get: function () { return chunkJAJ4CI2F_cjs.webpack; }
21
+ get: function () { return chunk3OQXZ5MM_cjs.webpack; }
22
22
  });
23
23
  Object.defineProperty(exports, "webpack", {
24
24
  enumerable: true,
25
- get: function () { return chunkJAJ4CI2F_cjs.webpack; }
25
+ get: function () { return chunk3OQXZ5MM_cjs.webpack; }
26
26
  });
@@ -1,5 +1,5 @@
1
1
  import * as webpack$1 from 'webpack';
2
- import { s as WebpackUserConfig } from './resolved-DYLxPDut.cjs';
2
+ import { M as WebpackUserConfig } from './resolved-C00CJgsk.cjs';
3
3
  import '@stryke/types/base';
4
4
  import '@stryke/types/configuration';
5
5
  import '@stryke/types/file';
@@ -24,17 +24,15 @@ import 'jest-worker';
24
24
  import 'jiti';
25
25
  import 'magic-string';
26
26
  import 'memfs';
27
- import 'oxc-parser';
28
27
  import 'semver';
29
28
  import 'unimport';
30
29
  import 'unplugin';
30
+ import './types/fs.cjs';
31
+ import 'node:fs';
31
32
  import '@stryke/types/array';
32
33
  import './types/tsconfig.cjs';
33
34
  import '@stryke/types/tsconfig';
34
35
  import 'typescript';
35
- import './types/vfs.cjs';
36
- import '@stryke/json/types';
37
- import 'node:fs';
38
36
 
39
37
  /**
40
38
  * An Webpack plugin that will invoke the Powerlines API hooks during the build process.
package/dist/webpack.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as webpack$1 from 'webpack';
2
- import { s as WebpackUserConfig } from './resolved-D1ySEdUv.js';
2
+ import { M as WebpackUserConfig } from './resolved-DKFZ11S7.js';
3
3
  import '@stryke/types/base';
4
4
  import '@stryke/types/configuration';
5
5
  import '@stryke/types/file';
@@ -24,17 +24,15 @@ import 'jest-worker';
24
24
  import 'jiti';
25
25
  import 'magic-string';
26
26
  import 'memfs';
27
- import 'oxc-parser';
28
27
  import 'semver';
29
28
  import 'unimport';
30
29
  import 'unplugin';
30
+ import './types/fs.js';
31
+ import 'node:fs';
31
32
  import '@stryke/types/array';
32
33
  import './types/tsconfig.js';
33
34
  import '@stryke/types/tsconfig';
34
35
  import 'typescript';
35
- import './types/vfs.js';
36
- import '@stryke/json/types';
37
- import 'node:fs';
38
36
 
39
37
  /**
40
38
  * An Webpack plugin that will invoke the Powerlines API hooks during the build process.
package/dist/webpack.js CHANGED
@@ -1,7 +1,7 @@
1
- export { webpack_default as default, webpack as "module.exports", webpack } from './chunk-Q7HBETZW.js';
2
- import './chunk-IGWSCIES.js';
3
- import './chunk-TNYZH6EG.js';
1
+ export { webpack_default as default, webpack as "module.exports", webpack } from './chunk-O2WB6QZ6.js';
2
+ import './chunk-ISLX4Z3L.js';
3
+ import './chunk-ZYCPZLIG.js';
4
4
  import './chunk-JQCWV4DT.js';
5
- import './chunk-FM4ABZQ2.js';
6
5
  import './chunk-JKBJF3UI.js';
6
+ import './chunk-VT7NVLLU.js';
7
7
  import './chunk-SHUYVCID.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powerlines",
3
- "version": "0.23.2",
3
+ "version": "0.23.4",
4
4
  "type": "module",
5
5
  "description": "The \"any framework\" framework that simplifies modern dev tool usage, generates virtual (or actual) code modules, and improves DX across the board.",
6
6
  "repository": {
@@ -246,6 +246,34 @@
246
246
  },
247
247
  "default": { "types": "./dist/lib/*.d.ts", "default": "./dist/lib/*.js" }
248
248
  },
249
+ "./lib/contexts": {
250
+ "import": {
251
+ "types": "./dist/lib/contexts/index.d.ts",
252
+ "default": "./dist/lib/contexts/index.js"
253
+ },
254
+ "require": {
255
+ "types": "./dist/lib/contexts/index.d.cts",
256
+ "default": "./dist/lib/contexts/index.cjs"
257
+ },
258
+ "default": {
259
+ "types": "./dist/lib/contexts/index.d.ts",
260
+ "default": "./dist/lib/contexts/index.js"
261
+ }
262
+ },
263
+ "./lib/contexts/*": {
264
+ "import": {
265
+ "types": "./dist/lib/contexts/*.d.ts",
266
+ "default": "./dist/lib/contexts/*.js"
267
+ },
268
+ "require": {
269
+ "types": "./dist/lib/contexts/*.d.cts",
270
+ "default": "./dist/lib/contexts/*.cjs"
271
+ },
272
+ "default": {
273
+ "types": "./dist/lib/contexts/*.d.ts",
274
+ "default": "./dist/lib/contexts/*.js"
275
+ }
276
+ },
249
277
  "./lib/build": {
250
278
  "import": {
251
279
  "types": "./dist/lib/build/index.d.ts",
@@ -479,12 +507,12 @@
479
507
  "@rollup/plugin-replace": "^6.0.3",
480
508
  "@rollup/plugin-babel": "^6.1.0",
481
509
  "@rollup/plugin-node-resolve": "^16.0.3",
482
- "@storm-software/build-tools": "^0.158.40",
483
- "@storm-software/config": "^1.134.40",
484
- "@storm-software/config-tools": "^1.188.40",
485
- "@storm-software/esbuild": "^0.53.40",
486
- "@storm-software/tsup": "^0.2.38",
487
- "@storm-software/unbuild": "^0.57.40",
510
+ "@storm-software/build-tools": "^0.158.47",
511
+ "@storm-software/config": "^1.134.47",
512
+ "@storm-software/config-tools": "^1.188.47",
513
+ "@storm-software/esbuild": "^0.53.47",
514
+ "@storm-software/tsup": "^0.2.45",
515
+ "@storm-software/unbuild": "^0.57.47",
488
516
  "@stryke/capnp": "^0.12.21",
489
517
  "@stryke/convert": "^0.6.2",
490
518
  "@stryke/env": "^0.20.14",
@@ -519,11 +547,11 @@
519
547
  "unionfs": "^4.6.0",
520
548
  "unplugin": "^2.3.10",
521
549
  "unstorage": "^1.17.2",
522
- "vite": "^7.2.2"
550
+ "vite": "^7.2.4"
523
551
  },
524
552
  "devDependencies": {
525
553
  "@microsoft/tsdoc": "^0.15.1",
526
- "@storm-software/testing-tools": "^1.119.40",
554
+ "@storm-software/testing-tools": "^1.119.47",
527
555
  "@stryke/types": "^0.10.2",
528
556
  "@types/babel__core": "^7.20.5",
529
557
  "@types/babel__helper-module-imports": "^7.18.3",
@@ -531,7 +559,7 @@
531
559
  "@types/babel__template": "^7.4.4",
532
560
  "@types/babel__traverse": "^7.28.0",
533
561
  "@types/diff-match-patch": "^1.0.36",
534
- "@types/node": "^22.19.1",
562
+ "@types/node": "^24.10.1",
535
563
  "@types/semver": "^7.7.1",
536
564
  "eslint": "^9.39.1",
537
565
  "memfs": "^4.51.0",
@@ -540,5 +568,5 @@
540
568
  "typescript": "^5.9.3"
541
569
  },
542
570
  "publishConfig": { "access": "public" },
543
- "gitHead": "628334bf5e96fa739c6a2b0a325f133ea928b530"
571
+ "gitHead": "3075c08893a66a4e8d359e37f8d0344b0a80322b"
544
572
  }
package/schemas/fs.capnp CHANGED
@@ -1,15 +1,32 @@
1
1
  @0xa56c61324b9d6e49;
2
2
 
3
+ enum FileType {
4
+ normal @0;
5
+ builtin @1;
6
+ entry @2;
7
+ chunk @3;
8
+ prebuilt @4;
9
+ asset @5;
10
+ }
11
+
12
+ enum PreserveSignatureType {
13
+ strict @0;
14
+ allowExtension @1;
15
+ exportsOnly @2;
16
+ }
17
+
3
18
  # Additional metadata associated with a file in the file system.
4
19
  struct FileMetadata {
5
20
  # The identifier for the file data.
6
21
  id @0 :Text;
7
- # The variant of the file.
8
- variant @1 :Text = "normal";
22
+ # The type of the file.
23
+ type @1 :Text = "normal";
9
24
  # The output mode of the file.
10
25
  mode @2 :Text;
26
+ # The timestamp representing the file's creation date.
27
+ timestamp @3 :UInt32;
11
28
  # Additional metadata associated with the file.
12
- properties @3 :List(KeyValuePair);
29
+ properties @4 :List(KeyValuePair);
13
30
 
14
31
  struct KeyValuePair {
15
32
  key @0 :Text;
@@ -17,26 +34,67 @@ struct FileMetadata {
17
34
  }
18
35
  }
19
36
 
37
+ # Additional metadata associated with a file in the file system.
38
+ struct ChunkData {
39
+ # The identifier for the file data.
40
+ id @0 :Text;
41
+ # An additional name for the file.
42
+ name @1 :Text;
43
+ # Files that are implicitly loaded after one of the specified files.
44
+ implicitlyLoadedAfterOneOf @2 :List(Text);
45
+ # The importer of the file.
46
+ importer @3 :Text;
47
+ # The signature preservation mode for the file.
48
+ preserveSignature @4 :PreserveSignatureType;
49
+ }
50
+
51
+ # Additional metadata associated with a file in the file system.
52
+ struct PrebuiltData {
53
+ # The identifier for the file data.
54
+ id @0 :Text;
55
+ # An additional name for the file.
56
+ name @1 :Text;
57
+ # The file exports.
58
+ exports @2 :List(Text);
59
+ # The source map for the file.
60
+ map @3 :Text;
61
+ }
62
+
63
+ # Additional metadata associated with a file in the file system.
64
+ struct AssetData {
65
+ # The identifier for the file data.
66
+ id @0 :Text;
67
+ # An additional name for the file.
68
+ name @1 :Text;
69
+ # Indicates whether the file needs a code reference.
70
+ needsCodeReference @2 :Bool;
71
+ # The original file name before any transformations.
72
+ originalFileName @3 :Text;
73
+ }
74
+
20
75
  # A mapping between a file path and its unique identifier.
21
76
  # Note: Multiple paths can map to the same identifier (e.g., symlinks).
22
- struct FileIdentifier {
77
+ struct FileId {
78
+ # An identifier for the file.
79
+ id @0 :Text;
23
80
  # A virtual (or actual) path to the file in the file system.
24
- path @0 :Text;
25
- # An additional identifier for the file.
26
- id @1 :Text;
81
+ path @1 :Text;
27
82
  }
28
83
 
29
- # A virtual representation of a file in the file system.
84
+ # The content of a file in the file system.
30
85
  struct FileData {
31
- # A virtual (or actual) path to the file in the file system.
86
+ # An identifier for the file.
32
87
  path @0 :Text;
33
- # The contents of the file.
34
- content @1 :Text;
88
+ # A virtual (or actual) path to the file in the file system.
89
+ code @1 :Text;
35
90
  }
36
91
 
37
92
  # A virtual representation of a file system containing multiple files.
38
- struct FileSystemData {
39
- ids @0 :List(FileIdentifier);
40
- metadata @1 :List(FileMetadata);
41
- files @2 :List(FileData);
93
+ struct FileSystem {
94
+ ids @0 :List(FileId);
95
+ files @1 :List(FileData);
96
+ metadata @2 :List(FileMetadata);
97
+ assets @3 :List(AssetData);
98
+ chunks @4 :List(ChunkData);
99
+ prebuilt @5 :List(PrebuiltData);
42
100
  }
@@ -1,32 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkWXU3KLBP_cjs = require('./chunk-WXU3KLBP.cjs');
4
- var chunkGNNF5SG6_cjs = require('./chunk-GNNF5SG6.cjs');
5
- var chunkYQ76DZYD_cjs = require('./chunk-YQ76DZYD.cjs');
6
- var chunkZFO3FUM4_cjs = require('./chunk-ZFO3FUM4.cjs');
7
- var chunk5A7FM72H_cjs = require('./chunk-5A7FM72H.cjs');
8
- var chunkWDBPA4RQ_cjs = require('./chunk-WDBPA4RQ.cjs');
9
- var chunkJZAQW55G_cjs = require('./chunk-JZAQW55G.cjs');
10
- var chunkJ3LN5HOC_cjs = require('./chunk-J3LN5HOC.cjs');
11
- var chunkM4QJ2474_cjs = require('./chunk-M4QJ2474.cjs');
12
- var chunkWG55ZHJL_cjs = require('./chunk-WG55ZHJL.cjs');
13
- var chunkJAJ4CI2F_cjs = require('./chunk-JAJ4CI2F.cjs');
14
-
15
- // src/unplugin.ts
16
- var plugins = {
17
- astro: chunkWDBPA4RQ_cjs.astro_default,
18
- esbuild: chunkJZAQW55G_cjs.esbuild_default,
19
- next: chunkJ3LN5HOC_cjs.next_default,
20
- nuxt: chunkM4QJ2474_cjs.nuxt_default,
21
- rolldown: chunkWXU3KLBP_cjs.rolldown_default,
22
- rollup: chunkGNNF5SG6_cjs.rollup_default,
23
- rspack: chunkYQ76DZYD_cjs.rspack_default,
24
- tsup: chunkZFO3FUM4_cjs.tsup_default,
25
- unloader: chunk5A7FM72H_cjs.unloader_default,
26
- vite: chunkWG55ZHJL_cjs.vite_default,
27
- webpack: chunkJAJ4CI2F_cjs.webpack_default
28
- };
29
- var unplugin_default = plugins;
30
-
31
- exports.plugins = plugins;
32
- exports.unplugin_default = unplugin_default;
@@ -1,29 +0,0 @@
1
- import { rolldown_default } from './chunk-KFRKOIP3.js';
2
- import { rollup_default } from './chunk-RWVNX2CP.js';
3
- import { rspack_default } from './chunk-NH7U3PTV.js';
4
- import { tsup_default } from './chunk-CPRXGMH2.js';
5
- import { unloader_default } from './chunk-WSLPUUGZ.js';
6
- import { astro_default } from './chunk-F6BDL4HD.js';
7
- import { esbuild_default } from './chunk-LKN52AAX.js';
8
- import { next_default } from './chunk-J5LKLH5Z.js';
9
- import { nuxt_default } from './chunk-4ODWTALP.js';
10
- import { vite_default } from './chunk-DUYZ3TCT.js';
11
- import { webpack_default } from './chunk-Q7HBETZW.js';
12
-
13
- // src/unplugin.ts
14
- var plugins = {
15
- astro: astro_default,
16
- esbuild: esbuild_default,
17
- next: next_default,
18
- nuxt: nuxt_default,
19
- rolldown: rolldown_default,
20
- rollup: rollup_default,
21
- rspack: rspack_default,
22
- tsup: tsup_default,
23
- unloader: unloader_default,
24
- vite: vite_default,
25
- webpack: webpack_default
26
- };
27
- var unplugin_default = plugins;
28
-
29
- export { plugins, unplugin_default };
@@ -1,28 +0,0 @@
1
- import { ab as SelectHooksOptions } from './resolved-D1ySEdUv.js';
2
-
3
- type CallHookOptions = SelectHooksOptions & ({
4
- /**
5
- * Whether to call the hooks sequentially or in parallel.
6
- *
7
- * @defaultValue true
8
- */
9
- sequential?: true;
10
- /**
11
- * How to handle multiple return values from hooks.
12
- * - "merge": Merge all non-undefined return values (if they are objects).
13
- * - "first": Return the first non-undefined value.
14
- *
15
- * @remarks
16
- * Merging only works if the return values are objects.
17
- *
18
- * @defaultValue "merge"
19
- */
20
- result?: "merge" | "first";
21
- } | {
22
- /**
23
- * Whether to call the hooks sequentially or in parallel.
24
- */
25
- sequential: false;
26
- });
27
-
28
- export type { CallHookOptions as C };
@@ -1,28 +0,0 @@
1
- import { ab as SelectHooksOptions } from './resolved-DYLxPDut.cjs';
2
-
3
- type CallHookOptions = SelectHooksOptions & ({
4
- /**
5
- * Whether to call the hooks sequentially or in parallel.
6
- *
7
- * @defaultValue true
8
- */
9
- sequential?: true;
10
- /**
11
- * How to handle multiple return values from hooks.
12
- * - "merge": Merge all non-undefined return values (if they are objects).
13
- * - "first": Return the first non-undefined value.
14
- *
15
- * @remarks
16
- * Merging only works if the return values are objects.
17
- *
18
- * @defaultValue "merge"
19
- */
20
- result?: "merge" | "first";
21
- } | {
22
- /**
23
- * Whether to call the hooks sequentially or in parallel.
24
- */
25
- sequential: false;
26
- });
27
-
28
- export type { CallHookOptions as C };
@@ -1,11 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkCGYAL3S2_cjs = require('./chunk-CGYAL3S2.cjs');
4
- require('./chunk-USNT2KNT.cjs');
5
-
6
-
7
-
8
- Object.defineProperty(exports, "createProgram", {
9
- enumerable: true,
10
- get: function () { return chunkCGYAL3S2_cjs.createProgram; }
11
- });
@@ -1,2 +0,0 @@
1
- export { createProgram } from './chunk-CXRSMYEX.js';
2
- import './chunk-SHUYVCID.js';
@@ -1,28 +0,0 @@
1
- import { S as SelectHooksOptions } from './config-BoGlIhnH.cjs';
2
-
3
- type CallHookOptions = SelectHooksOptions & ({
4
- /**
5
- * Whether to call the hooks sequentially or in parallel.
6
- *
7
- * @defaultValue true
8
- */
9
- sequential?: true;
10
- /**
11
- * How to handle multiple return values from hooks.
12
- * - "merge": Merge all non-undefined return values (if they are objects).
13
- * - "first": Return the first non-undefined value.
14
- *
15
- * @remarks
16
- * Merging only works if the return values are objects.
17
- *
18
- * @defaultValue "merge"
19
- */
20
- result?: "merge" | "first";
21
- } | {
22
- /**
23
- * Whether to call the hooks sequentially or in parallel.
24
- */
25
- sequential: false;
26
- });
27
-
28
- export type { CallHookOptions as C };
@@ -1,28 +0,0 @@
1
- import { S as SelectHooksOptions } from './config-CTej7RMP.js';
2
-
3
- type CallHookOptions = SelectHooksOptions & ({
4
- /**
5
- * Whether to call the hooks sequentially or in parallel.
6
- *
7
- * @defaultValue true
8
- */
9
- sequential?: true;
10
- /**
11
- * How to handle multiple return values from hooks.
12
- * - "merge": Merge all non-undefined return values (if they are objects).
13
- * - "first": Return the first non-undefined value.
14
- *
15
- * @remarks
16
- * Merging only works if the return values are objects.
17
- *
18
- * @defaultValue "merge"
19
- */
20
- result?: "merge" | "first";
21
- } | {
22
- /**
23
- * Whether to call the hooks sequentially or in parallel.
24
- */
25
- sequential: false;
26
- });
27
-
28
- export type { CallHookOptions as C };
package/dist/types/vfs.js DELETED
@@ -1,2 +0,0 @@
1
- export { __VFS_PATCH__, __VFS_REVERT__ } from '../chunk-FM4ABZQ2.js';
2
- import '../chunk-SHUYVCID.js';
File without changes
File without changes