powerlines 0.24.8 → 0.25.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 (460) hide show
  1. package/dist/{api-C32Buv5_.d.ts → api-BTK8aYwE.d.cts} +1 -1
  2. package/dist/{api-wzd5AREv.d.cts → api-eyrYBmQh.d.ts} +1 -1
  3. package/dist/api.cjs +8 -6
  4. package/dist/api.d.cts +20 -22
  5. package/dist/api.d.ts +20 -22
  6. package/dist/api.js +7 -5
  7. package/dist/astro.cjs +12 -10
  8. package/dist/astro.d.cts +19 -21
  9. package/dist/astro.d.ts +19 -21
  10. package/dist/astro.js +10 -8
  11. package/dist/{chunk-JKBJF3UI.js → chunk-2MYPFASJ.js} +2 -0
  12. package/dist/chunk-2VIXD2XB.js +3 -0
  13. package/dist/{chunk-OB7MYWHE.js → chunk-44PO64SX.js} +4 -2
  14. package/dist/chunk-4JCNAKOE.cjs +4 -0
  15. package/dist/{chunk-QH4TS5V4.cjs → chunk-6MFZ436T.cjs} +978 -1032
  16. package/dist/chunk-6ZGIV2SU.cjs +4 -0
  17. package/dist/chunk-7BZQBW77.cjs +4 -0
  18. package/dist/{chunk-JQCWV4DT.js → chunk-7LKYXMB3.js} +2 -0
  19. package/dist/{chunk-SHUYVCID.js → chunk-7QVYU63E.js} +2 -0
  20. package/dist/chunk-AFJCY3R6.js +3 -0
  21. package/dist/chunk-AXIRZAL7.js +3 -0
  22. package/dist/chunk-BTNHSS2P.cjs +13 -0
  23. package/dist/{chunk-FQXHIKCM.cjs → chunk-C2U4ATHO.cjs} +9 -7
  24. package/dist/chunk-DFLNRC3B.cjs +4 -0
  25. package/dist/chunk-DS7OM4NX.cjs +4 -0
  26. package/dist/{chunk-W5X3ZEZ5.js → chunk-EBXVKPUX.js} +2 -0
  27. package/dist/{chunk-X74SYWFL.cjs → chunk-G2EHTXK6.cjs} +9 -7
  28. package/dist/chunk-GIE6OE3X.js +3 -0
  29. package/dist/chunk-HJW7OH6E.js +3 -0
  30. package/dist/{chunk-MOXO6WJO.js → chunk-HSIMIWOH.js} +3 -1
  31. package/dist/{chunk-5IBA5HC2.cjs → chunk-HTJKPEWU.cjs} +6 -4
  32. package/dist/chunk-IHUNA3MO.cjs +4 -0
  33. package/dist/chunk-JU2HWIWS.js +12 -0
  34. package/dist/{chunk-BCHFSOQ4.js → chunk-LQXE5JHF.js} +906 -957
  35. package/dist/chunk-MBBNZS6K.cjs +16 -0
  36. package/dist/{chunk-3TNZWTLG.js → chunk-NNADGQRN.js} +5 -3
  37. package/dist/chunk-OYASPHNL.js +3 -0
  38. package/dist/chunk-PCCFAZML.js +3 -0
  39. package/dist/{chunk-USNT2KNT.cjs → chunk-PK6SKIKE.cjs} +2 -0
  40. package/dist/{chunk-ETKZMGLN.cjs → chunk-PSTCR335.cjs} +2 -0
  41. package/dist/chunk-Q7EJVZVI.cjs +4 -0
  42. package/dist/{chunk-CJSGAITR.js → chunk-S7MXT5A2.js} +3 -1
  43. package/dist/{chunk-7RWEBVQC.cjs → chunk-SDVEUTY2.cjs} +13 -11
  44. package/dist/{chunk-OLCL34MI.js → chunk-SYDUPBME.js} +6 -4
  45. package/dist/chunk-TLHFXGYV.js +3 -0
  46. package/dist/chunk-TP5MEMLG.cjs +12 -0
  47. package/dist/chunk-VNRXLY2T.js +3 -0
  48. package/dist/chunk-VQCQRLGM.cjs +4 -0
  49. package/dist/chunk-XZO6ZJQP.cjs +4 -0
  50. package/dist/{chunk-XP7OML7S.cjs → chunk-YUX7LOBU.cjs} +2 -0
  51. package/dist/chunk-YZZUOOPS.cjs +4 -0
  52. package/dist/chunk-Z5H7LD6W.js +3 -0
  53. package/dist/{chunk-VBR53KGY.js → chunk-Z5UEYORO.js} +5 -3
  54. package/dist/{chunk-PAMSESZV.cjs → chunk-Z6ARQDHR.cjs} +2 -0
  55. package/dist/config.cjs +5 -3
  56. package/dist/config.d.cts +19 -21
  57. package/dist/config.d.ts +19 -21
  58. package/dist/config.js +4 -2
  59. package/dist/{resolved-CSqGKlA5.d.cts → context-TizkCfOv.d.cts} +848 -849
  60. package/dist/{resolved-BABoCnXm.d.ts → context-jhcT1Vi1.d.ts} +848 -849
  61. package/dist/esbuild.cjs +13 -11
  62. package/dist/esbuild.d.cts +19 -21
  63. package/dist/esbuild.d.ts +19 -21
  64. package/dist/esbuild.js +10 -8
  65. package/dist/farm.cjs +9 -7
  66. package/dist/farm.d.cts +19 -21
  67. package/dist/farm.d.ts +19 -21
  68. package/dist/farm.js +8 -6
  69. package/dist/index.cjs +39 -41
  70. package/dist/index.d.cts +30 -55
  71. package/dist/index.d.ts +30 -55
  72. package/dist/index.js +20 -18
  73. package/dist/lib/{api-CDUN9en8.d.ts → api-CCOhyMZo.d.cts} +1 -1
  74. package/dist/lib/{api-BRMITKt-.d.cts → api-CpJJXdtL.d.ts} +1 -1
  75. package/dist/lib/build/esbuild.cjs +5 -5
  76. package/dist/lib/build/esbuild.d.cts +2 -2
  77. package/dist/lib/build/esbuild.d.ts +2 -2
  78. package/dist/lib/build/esbuild.js +2 -2
  79. package/dist/lib/build/index.cjs +25 -25
  80. package/dist/lib/build/index.d.cts +4 -4
  81. package/dist/lib/build/index.d.ts +4 -4
  82. package/dist/lib/build/index.js +9 -9
  83. package/dist/lib/build/rolldown.cjs +3 -3
  84. package/dist/lib/build/rolldown.d.cts +2 -2
  85. package/dist/lib/build/rolldown.d.ts +2 -2
  86. package/dist/lib/build/rolldown.js +2 -2
  87. package/dist/lib/build/rollup.cjs +3 -3
  88. package/dist/lib/build/rollup.d.cts +2 -2
  89. package/dist/lib/build/rollup.d.ts +2 -2
  90. package/dist/lib/build/rollup.js +1 -1
  91. package/dist/lib/build/rspack.cjs +2 -2
  92. package/dist/lib/build/rspack.d.cts +2 -2
  93. package/dist/lib/build/rspack.d.ts +2 -2
  94. package/dist/lib/build/rspack.js +1 -1
  95. package/dist/lib/build/tsup.cjs +6 -6
  96. package/dist/lib/build/tsup.d.cts +2 -2
  97. package/dist/lib/build/tsup.d.ts +2 -2
  98. package/dist/lib/build/tsup.js +3 -3
  99. package/dist/lib/build/unbuild.cjs +5 -5
  100. package/dist/lib/build/unbuild.d.cts +4 -4
  101. package/dist/lib/build/unbuild.d.ts +4 -4
  102. package/dist/lib/build/unbuild.js +2 -2
  103. package/dist/lib/build/vite.cjs +5 -5
  104. package/dist/lib/build/vite.d.cts +2 -2
  105. package/dist/lib/build/vite.d.ts +2 -2
  106. package/dist/lib/build/vite.js +3 -3
  107. package/dist/lib/build/webpack.cjs +2 -2
  108. package/dist/lib/build/webpack.d.cts +2 -2
  109. package/dist/lib/build/webpack.d.ts +2 -2
  110. package/dist/lib/build/webpack.js +1 -1
  111. package/dist/lib/chunk-3T56KQ7U.cjs +49 -0
  112. package/dist/lib/{chunk-PZLO6FZW.js → chunk-3W53W5J2.js} +2 -2
  113. package/dist/lib/chunk-4W6WV35V.js +108 -0
  114. package/dist/lib/chunk-6OYSDQXE.cjs +139 -0
  115. package/dist/lib/{chunk-EV357RFB.cjs → chunk-7MHUTBEC.cjs} +1 -3
  116. package/dist/lib/{chunk-A2NFSQ5K.js → chunk-7OVZZWGY.js} +1 -1
  117. package/dist/lib/chunk-A2NW7WAN.js +47 -0
  118. package/dist/lib/chunk-D6MI2V6R.cjs +115 -0
  119. package/dist/lib/{chunk-VHLINWXG.js → chunk-DLVVEHMU.js} +1 -1
  120. package/dist/lib/{chunk-XLYMVIVD.cjs → chunk-DNQBXFNE.cjs} +10 -10
  121. package/dist/lib/{chunk-UGVHYKKN.js → chunk-DYLE5FD3.js} +39 -2
  122. package/dist/lib/{chunk-AKBAX4FH.js → chunk-EN52JYUK.js} +1 -1
  123. package/dist/lib/{chunk-JYDGFQIV.cjs → chunk-F2CXZUSB.cjs} +1 -1
  124. package/dist/lib/{chunk-7VJ42H2I.cjs → chunk-HRRI4KOM.cjs} +1 -3
  125. package/dist/lib/{chunk-LPRZ3HD4.cjs → chunk-IXTLRVAK.cjs} +3 -3
  126. package/dist/lib/{chunk-SYF7QG2J.js → chunk-J3BW52BU.js} +1 -1
  127. package/dist/lib/chunk-KFDNKOXM.js +56 -0
  128. package/dist/lib/chunk-L56XA427.js +137 -0
  129. package/dist/lib/{chunk-6PPZCPME.cjs → chunk-LOW2TIQ6.cjs} +2 -2
  130. package/dist/lib/{chunk-TMZCGC5U.js → chunk-MI55FDCZ.js} +1 -1
  131. package/dist/lib/{chunk-DUZJ7ZF2.cjs → chunk-MKKWFHGE.cjs} +2 -2
  132. package/dist/lib/{chunk-ISBHXSDH.cjs → chunk-N5XEKCVW.cjs} +1 -1
  133. package/dist/lib/{chunk-XZFEHPYE.js → chunk-N5YLKWC2.js} +1 -1
  134. package/dist/lib/chunk-NIRFKQAD.js +845 -0
  135. package/dist/lib/{chunk-YMHOAMCU.cjs → chunk-NLJR4WIX.cjs} +41 -4
  136. package/dist/lib/{chunk-L3HESXYF.cjs → chunk-NUE5DIH3.cjs} +3 -3
  137. package/dist/lib/chunk-OBA5U4Y2.js +1059 -0
  138. package/dist/lib/{chunk-FQLZZYYO.js → chunk-OEF6EHQV.js} +1 -3
  139. package/dist/lib/{chunk-WTTBXYFQ.js → chunk-OFXWRM3U.js} +2 -2
  140. package/dist/lib/chunk-ONETLSPO.js +85 -0
  141. package/dist/lib/{chunk-2OV26JXJ.cjs → chunk-PQRWG64T.cjs} +3 -3
  142. package/dist/lib/chunk-R33US3PV.cjs +1081 -0
  143. package/dist/lib/{chunk-OA7OL7HF.cjs → chunk-SFEEJZLK.cjs} +38 -66
  144. package/dist/lib/{chunk-H6EOZSIZ.js → chunk-TAVG226Z.js} +1 -1
  145. package/dist/lib/{chunk-DALRRHB4.cjs → chunk-TSFG3WEA.cjs} +1 -1
  146. package/dist/lib/{chunk-RMA2PMP7.cjs → chunk-TZCC5IWH.cjs} +3 -3
  147. package/dist/lib/chunk-VHCBD2IS.js +149 -0
  148. package/dist/lib/{chunk-HY6DNFCT.js → chunk-VODWHWD6.js} +2 -2
  149. package/dist/lib/{chunk-2X5DUDNT.js → chunk-W6GWSJ22.js} +2 -2
  150. package/dist/lib/chunk-WBSA6OG6.cjs +860 -0
  151. package/dist/lib/{chunk-TOCNXURI.cjs → chunk-WCXA5WFX.cjs} +4 -4
  152. package/dist/lib/{chunk-6I5PL7H2.js → chunk-WGSZ4X6N.js} +1 -3
  153. package/dist/lib/{chunk-T2KQZC5K.js → chunk-WLDQUTFD.js} +27 -54
  154. package/dist/lib/{chunk-AOHJEL2Q.js → chunk-WOKPJMGJ.js} +3 -3
  155. package/dist/lib/{chunk-TDJNFAOV.cjs → chunk-X6JDYLWM.cjs} +1 -1
  156. package/dist/lib/chunk-XLHFUATD.cjs +151 -0
  157. package/dist/lib/chunk-XUYQYUWZ.cjs +87 -0
  158. package/dist/lib/chunk-YYEAV24J.cjs +67 -0
  159. package/dist/lib/{config-D8KrE7SZ.d.cts → config-Cqxh4V21.d.cts} +58 -475
  160. package/dist/lib/{config-DBIFdRoq.d.ts → config-D-WwQL-4.d.ts} +58 -475
  161. package/dist/lib/config-file.d.cts +2 -2
  162. package/dist/lib/config-file.d.ts +2 -2
  163. package/dist/lib/contexts/api-context.cjs +12 -7
  164. package/dist/lib/contexts/api-context.d.cts +27 -4
  165. package/dist/lib/contexts/api-context.d.ts +27 -4
  166. package/dist/lib/contexts/api-context.js +11 -6
  167. package/dist/lib/contexts/context.cjs +10 -5
  168. package/dist/lib/contexts/context.d.cts +7 -7
  169. package/dist/lib/contexts/context.d.ts +7 -7
  170. package/dist/lib/contexts/context.js +9 -4
  171. package/dist/lib/contexts/environment-context.cjs +11 -6
  172. package/dist/lib/contexts/environment-context.d.cts +4 -4
  173. package/dist/lib/contexts/environment-context.d.ts +4 -4
  174. package/dist/lib/contexts/environment-context.js +10 -5
  175. package/dist/lib/contexts/index.cjs +14 -9
  176. package/dist/lib/contexts/index.d.cts +4 -4
  177. package/dist/lib/contexts/index.d.ts +4 -4
  178. package/dist/lib/contexts/index.js +11 -6
  179. package/dist/lib/contexts/plugin-context.d.cts +4 -4
  180. package/dist/lib/contexts/plugin-context.d.ts +4 -4
  181. package/dist/lib/entry.cjs +9 -9
  182. package/dist/lib/entry.d.cts +2 -2
  183. package/dist/lib/entry.d.ts +2 -2
  184. package/dist/lib/entry.js +1 -1
  185. package/dist/lib/fs/helpers.cjs +47 -0
  186. package/dist/lib/fs/helpers.d.cts +74 -0
  187. package/dist/lib/fs/helpers.d.ts +74 -0
  188. package/dist/lib/fs/helpers.js +2 -0
  189. package/dist/lib/fs/index.cjs +17 -0
  190. package/dist/lib/fs/index.d.cts +33 -0
  191. package/dist/lib/fs/index.d.ts +33 -0
  192. package/dist/lib/fs/index.js +8 -0
  193. package/dist/lib/fs/storage/base.cjs +11 -0
  194. package/dist/lib/fs/storage/base.d.cts +138 -0
  195. package/dist/lib/fs/storage/base.d.ts +138 -0
  196. package/dist/lib/fs/storage/base.js +2 -0
  197. package/dist/lib/fs/storage/file-system.cjs +13 -0
  198. package/dist/lib/fs/storage/file-system.d.cts +90 -0
  199. package/dist/lib/fs/storage/file-system.d.ts +90 -0
  200. package/dist/lib/fs/storage/file-system.js +4 -0
  201. package/dist/lib/fs/storage/index.cjs +22 -0
  202. package/dist/lib/fs/storage/index.d.cts +6 -0
  203. package/dist/lib/fs/storage/index.d.ts +6 -0
  204. package/dist/lib/fs/storage/index.js +5 -0
  205. package/dist/lib/fs/storage/virtual.cjs +12 -0
  206. package/dist/lib/fs/storage/virtual.d.cts +66 -0
  207. package/dist/lib/fs/storage/virtual.d.ts +66 -0
  208. package/dist/lib/fs/storage/virtual.js +3 -0
  209. package/dist/lib/fs/vfs.cjs +16 -0
  210. package/dist/lib/fs/vfs.d.cts +247 -0
  211. package/dist/lib/fs/vfs.d.ts +247 -0
  212. package/dist/lib/fs/vfs.js +7 -0
  213. package/dist/lib/fs-Dg-aTfiN.d.cts +378 -0
  214. package/dist/lib/fs-Dg-aTfiN.d.ts +378 -0
  215. package/dist/lib/index.cjs +62 -68
  216. package/dist/lib/index.d.cts +18 -356
  217. package/dist/lib/index.d.ts +18 -356
  218. package/dist/lib/index.js +19 -13
  219. package/dist/lib/{internal-CaGANOWK.d.cts → internal-Cl7s1iAA.d.cts} +2 -2
  220. package/dist/lib/{internal-1qCyw7bA.d.ts → internal-W5pvS6e9.d.ts} +2 -2
  221. package/dist/lib/logger.d.cts +2 -2
  222. package/dist/lib/logger.d.ts +2 -2
  223. package/dist/lib/typescript/import-transformer.cjs +7 -45
  224. package/dist/lib/typescript/import-transformer.d.cts +2 -2
  225. package/dist/lib/typescript/import-transformer.d.ts +2 -2
  226. package/dist/lib/typescript/import-transformer.js +2 -47
  227. package/dist/lib/typescript/index.cjs +10 -22
  228. package/dist/lib/typescript/index.d.cts +4 -4
  229. package/dist/lib/typescript/index.d.ts +4 -4
  230. package/dist/lib/typescript/index.js +2 -2
  231. package/dist/lib/typescript/ts-morph.cjs +6 -2
  232. package/dist/lib/typescript/ts-morph.d.cts +28 -4
  233. package/dist/lib/typescript/ts-morph.d.ts +28 -4
  234. package/dist/lib/typescript/ts-morph.js +1 -1
  235. package/dist/lib/unplugin/factory.cjs +14 -9
  236. package/dist/lib/unplugin/factory.d.cts +4 -4
  237. package/dist/lib/unplugin/factory.d.ts +4 -4
  238. package/dist/lib/unplugin/factory.js +13 -8
  239. package/dist/lib/unplugin/helpers.d.cts +2 -2
  240. package/dist/lib/unplugin/helpers.d.ts +2 -2
  241. package/dist/lib/unplugin/index.cjs +16 -11
  242. package/dist/lib/unplugin/index.d.cts +4 -4
  243. package/dist/lib/unplugin/index.d.ts +4 -4
  244. package/dist/lib/unplugin/index.js +14 -9
  245. package/dist/lib/unplugin/plugin.cjs +2 -2
  246. package/dist/lib/unplugin/plugin.d.cts +4 -4
  247. package/dist/lib/unplugin/plugin.d.ts +4 -4
  248. package/dist/lib/unplugin/plugin.js +1 -1
  249. package/dist/lib/{unplugin-CEeJqADD.d.ts → unplugin-Cg2NoKj0.d.ts} +2 -2
  250. package/dist/lib/{unplugin-bUSyjd0S.d.cts → unplugin-trF-VLnO.d.cts} +2 -2
  251. package/dist/lib/utilities/bundle.cjs +4 -4
  252. package/dist/lib/utilities/bundle.d.cts +2 -2
  253. package/dist/lib/utilities/bundle.d.ts +2 -2
  254. package/dist/lib/utilities/bundle.js +3 -3
  255. package/dist/lib/utilities/cache.d.cts +2 -2
  256. package/dist/lib/utilities/cache.d.ts +2 -2
  257. package/dist/lib/utilities/file-header.d.cts +2 -2
  258. package/dist/lib/utilities/file-header.d.ts +2 -2
  259. package/dist/lib/utilities/index.cjs +22 -22
  260. package/dist/lib/utilities/index.d.cts +2 -2
  261. package/dist/lib/utilities/index.d.ts +2 -2
  262. package/dist/lib/utilities/index.js +6 -6
  263. package/dist/lib/utilities/meta.cjs +7 -7
  264. package/dist/lib/utilities/meta.d.cts +2 -2
  265. package/dist/lib/utilities/meta.d.ts +2 -2
  266. package/dist/lib/utilities/meta.js +1 -1
  267. package/dist/lib/utilities/resolve.cjs +5 -5
  268. package/dist/lib/utilities/resolve.d.cts +2 -2
  269. package/dist/lib/utilities/resolve.d.ts +2 -2
  270. package/dist/lib/utilities/resolve.js +4 -4
  271. package/dist/lib/utilities/source-file.d.cts +2 -2
  272. package/dist/lib/utilities/source-file.d.ts +2 -2
  273. package/dist/lib/utilities/source-map.d.cts +2 -2
  274. package/dist/lib/utilities/source-map.d.ts +2 -2
  275. package/dist/lib/utilities/worker.d.cts +2 -2
  276. package/dist/lib/utilities/worker.d.ts +2 -2
  277. package/dist/lib/utilities/write-file.d.cts +2 -2
  278. package/dist/lib/utilities/write-file.d.ts +2 -2
  279. package/dist/next.cjs +11 -9
  280. package/dist/next.js +9 -7
  281. package/dist/nuxt.cjs +13 -11
  282. package/dist/nuxt.js +11 -9
  283. package/dist/plugin-utils/{chunk-JHTLGE4X.js → chunk-K2GWRZPV.js} +1 -1
  284. package/dist/plugin-utils/{chunk-HSYQWNIH.cjs → chunk-VWFJOPKC.cjs} +1 -1
  285. package/dist/plugin-utils/{context-BITGF5LZ.d.cts → context-PtfEjz3_.d.cts} +187 -230
  286. package/dist/plugin-utils/{context-BITGF5LZ.d.ts → context-PtfEjz3_.d.ts} +187 -230
  287. package/dist/plugin-utils/context-helpers.d.cts +1 -2
  288. package/dist/plugin-utils/context-helpers.d.ts +1 -2
  289. package/dist/plugin-utils/enforce.d.cts +1 -2
  290. package/dist/plugin-utils/enforce.d.ts +1 -2
  291. package/dist/plugin-utils/extend.d.cts +1 -2
  292. package/dist/plugin-utils/extend.d.ts +1 -2
  293. package/dist/plugin-utils/get-config-path.d.cts +1 -2
  294. package/dist/plugin-utils/get-config-path.d.ts +1 -2
  295. package/dist/plugin-utils/helpers.d.cts +1 -2
  296. package/dist/plugin-utils/helpers.d.ts +1 -2
  297. package/dist/plugin-utils/index.cjs +2 -2
  298. package/dist/plugin-utils/index.d.cts +1 -2
  299. package/dist/plugin-utils/index.d.ts +1 -2
  300. package/dist/plugin-utils/index.js +1 -1
  301. package/dist/plugin-utils/merge.d.cts +1 -2
  302. package/dist/plugin-utils/merge.d.ts +1 -2
  303. package/dist/plugin-utils/paths.cjs +2 -2
  304. package/dist/plugin-utils/paths.d.cts +2 -3
  305. package/dist/plugin-utils/paths.d.ts +2 -3
  306. package/dist/plugin-utils/paths.js +1 -1
  307. package/dist/rolldown.cjs +9 -7
  308. package/dist/rolldown.d.cts +19 -21
  309. package/dist/rolldown.d.ts +19 -21
  310. package/dist/rolldown.js +8 -6
  311. package/dist/rollup.cjs +9 -7
  312. package/dist/rollup.d.cts +19 -21
  313. package/dist/rollup.d.ts +19 -21
  314. package/dist/rollup.js +8 -6
  315. package/dist/rspack.cjs +9 -7
  316. package/dist/rspack.d.cts +18 -20
  317. package/dist/rspack.d.ts +18 -20
  318. package/dist/rspack.js +8 -6
  319. package/dist/tsup.cjs +12 -10
  320. package/dist/tsup.js +10 -8
  321. package/dist/types/api.cjs +3 -1
  322. package/dist/types/api.cjs.map +1 -0
  323. package/dist/types/api.d.cts +20 -22
  324. package/dist/types/api.d.ts +20 -22
  325. package/dist/types/api.js +3 -1
  326. package/dist/types/api.js.map +1 -0
  327. package/dist/types/babel.cjs +3 -1
  328. package/dist/types/babel.cjs.map +1 -0
  329. package/dist/types/babel.d.cts +17 -19
  330. package/dist/types/babel.d.ts +17 -19
  331. package/dist/types/babel.js +3 -1
  332. package/dist/types/babel.js.map +1 -0
  333. package/dist/types/build.cjs +3 -1
  334. package/dist/types/build.cjs.map +1 -0
  335. package/dist/types/build.js +3 -1
  336. package/dist/types/build.js.map +1 -0
  337. package/dist/types/commands.cjs +5 -3
  338. package/dist/types/commands.cjs.map +1 -0
  339. package/dist/types/commands.d.cts +18 -20
  340. package/dist/types/commands.d.ts +18 -20
  341. package/dist/types/commands.js +4 -2
  342. package/dist/types/commands.js.map +1 -0
  343. package/dist/types/config.cjs +3 -1
  344. package/dist/types/config.cjs.map +1 -0
  345. package/dist/types/config.d.cts +2 -4
  346. package/dist/types/config.d.ts +2 -4
  347. package/dist/types/config.js +3 -1
  348. package/dist/types/config.js.map +1 -0
  349. package/dist/types/context.cjs +5 -3
  350. package/dist/types/context.cjs.map +1 -0
  351. package/dist/types/context.d.cts +8 -10
  352. package/dist/types/context.d.ts +8 -10
  353. package/dist/types/context.js +4 -2
  354. package/dist/types/context.js.map +1 -0
  355. package/dist/types/fs.cjs +10 -4
  356. package/dist/types/fs.cjs.map +1 -0
  357. package/dist/types/fs.d.cts +138 -184
  358. package/dist/types/fs.d.ts +138 -184
  359. package/dist/types/fs.js +4 -2
  360. package/dist/types/fs.js.map +1 -0
  361. package/dist/types/hooks.cjs +3 -1
  362. package/dist/types/hooks.cjs.map +1 -0
  363. package/dist/types/hooks.d.cts +19 -21
  364. package/dist/types/hooks.d.ts +19 -21
  365. package/dist/types/hooks.js +3 -1
  366. package/dist/types/hooks.js.map +1 -0
  367. package/dist/types/index.cjs +26 -20
  368. package/dist/types/index.cjs.map +1 -0
  369. package/dist/types/index.d.cts +13 -15
  370. package/dist/types/index.d.ts +13 -15
  371. package/dist/types/index.js +17 -15
  372. package/dist/types/index.js.map +1 -0
  373. package/dist/types/internal.cjs +2 -0
  374. package/dist/types/internal.cjs.map +1 -0
  375. package/dist/types/internal.d.cts +20 -22
  376. package/dist/types/internal.d.ts +20 -22
  377. package/dist/types/internal.js +2 -0
  378. package/dist/types/internal.js.map +1 -0
  379. package/dist/types/plugin.cjs +5 -3
  380. package/dist/types/plugin.cjs.map +1 -0
  381. package/dist/types/plugin.d.cts +9 -11
  382. package/dist/types/plugin.d.ts +9 -11
  383. package/dist/types/plugin.js +4 -2
  384. package/dist/types/plugin.js.map +1 -0
  385. package/dist/types/resolved.cjs +3 -1
  386. package/dist/types/resolved.cjs.map +1 -0
  387. package/dist/types/resolved.d.cts +7 -9
  388. package/dist/types/resolved.d.ts +7 -9
  389. package/dist/types/resolved.js +3 -1
  390. package/dist/types/resolved.js.map +1 -0
  391. package/dist/types/tsconfig.cjs +3 -1
  392. package/dist/types/tsconfig.cjs.map +1 -0
  393. package/dist/types/tsconfig.js +3 -1
  394. package/dist/types/tsconfig.js.map +1 -0
  395. package/dist/types/typedoc.cjs +3 -1
  396. package/dist/types/typedoc.cjs.map +1 -0
  397. package/dist/types/typedoc.js +3 -1
  398. package/dist/types/typedoc.js.map +1 -0
  399. package/dist/types/unplugin.cjs +3 -1
  400. package/dist/types/unplugin.cjs.map +1 -0
  401. package/dist/types/unplugin.d.cts +11 -13
  402. package/dist/types/unplugin.d.ts +11 -13
  403. package/dist/types/unplugin.js +3 -1
  404. package/dist/types/unplugin.js.map +1 -0
  405. package/dist/unloader.cjs +9 -7
  406. package/dist/unloader.d.cts +19 -21
  407. package/dist/unloader.d.ts +19 -21
  408. package/dist/unloader.js +8 -6
  409. package/dist/unplugin.cjs +20 -20
  410. package/dist/unplugin.d.cts +19 -21
  411. package/dist/unplugin.d.ts +19 -21
  412. package/dist/unplugin.js +10 -10
  413. package/dist/vite.cjs +13 -11
  414. package/dist/vite.d.cts +19 -21
  415. package/dist/vite.d.ts +19 -21
  416. package/dist/vite.js +10 -8
  417. package/dist/webpack.cjs +12 -10
  418. package/dist/webpack.d.cts +19 -21
  419. package/dist/webpack.d.ts +19 -21
  420. package/dist/webpack.js +9 -7
  421. package/package.json +72 -19
  422. package/schemas/fs.capnp +4 -59
  423. package/dist/chunk-2NO7N5OW.cjs +0 -2
  424. package/dist/chunk-7GYTTM4M.cjs +0 -2
  425. package/dist/chunk-AENPRFWJ.cjs +0 -2
  426. package/dist/chunk-AYKZK666.cjs +0 -8
  427. package/dist/chunk-BUR2JQ6G.cjs +0 -11
  428. package/dist/chunk-DRXFQCNC.js +0 -1
  429. package/dist/chunk-FNZDWE4L.js +0 -1
  430. package/dist/chunk-GHJU2KGP.cjs +0 -2
  431. package/dist/chunk-GRU7B3QM.cjs +0 -2
  432. package/dist/chunk-HQFZ64VC.cjs +0 -2
  433. package/dist/chunk-J4BQZHTQ.js +0 -1
  434. package/dist/chunk-JGB5YQ2U.js +0 -1
  435. package/dist/chunk-KALR2O2F.cjs +0 -2
  436. package/dist/chunk-LOUZXJFY.cjs +0 -10
  437. package/dist/chunk-OO3YXM72.js +0 -1
  438. package/dist/chunk-QE3WGMAP.js +0 -1
  439. package/dist/chunk-SMNKPH4T.js +0 -1
  440. package/dist/chunk-T2P533I5.js +0 -1
  441. package/dist/chunk-V3MLQDZQ.js +0 -1
  442. package/dist/chunk-VT7NVLLU.js +0 -5
  443. package/dist/chunk-YRJ4MLVL.cjs +0 -2
  444. package/dist/chunk-ZC43PZXS.cjs +0 -2
  445. package/dist/lib/chunk-3MZQ4MQX.cjs +0 -2360
  446. package/dist/lib/chunk-5JAFU45Z.js +0 -2324
  447. package/dist/lib/chunk-HAXL7QE7.js +0 -154
  448. package/dist/lib/chunk-SAS5EPBD.cjs +0 -107
  449. package/dist/lib/chunk-WUYK74EH.cjs +0 -165
  450. package/dist/lib/chunk-YQ3ODCHV.js +0 -105
  451. package/dist/lib/typescript/compiler-host.cjs +0 -164
  452. package/dist/lib/typescript/compiler-host.d.cts +0 -63
  453. package/dist/lib/typescript/compiler-host.d.ts +0 -63
  454. package/dist/lib/typescript/compiler-host.js +0 -156
  455. package/dist/lib/typescript/program.cjs +0 -27
  456. package/dist/lib/typescript/program.d.cts +0 -68
  457. package/dist/lib/typescript/program.d.ts +0 -68
  458. package/dist/lib/typescript/program.js +0 -2
  459. /package/dist/{chunk-2NCILNCH.cjs → lib/chunk-K2SFTPN3.cjs} +0 -0
  460. /package/dist/{chunk-BLNT5INX.js → lib/chunk-NQAHFTUW.js} +0 -0
@@ -1,10 +1,110 @@
1
1
  import { ResolveOptions as ResolveOptions$1 } from '@stryke/fs/resolve';
2
- import { StatSyncOptions, Stats, RmDirOptions, RmOptions, Mode, MakeDirectoryOptions as MakeDirectoryOptions$1, WriteFileOptions as WriteFileOptions$1 } from 'node:fs';
2
+ import { MaybePromise } from '@stryke/types/base';
3
3
 
4
4
  type VirtualFileExtension = "js" | "ts" | "jsx" | "tsx";
5
5
  declare const __VFS_PATCH__ = "__VFS_PATCH__";
6
6
  declare const __VFS_REVERT__ = "__VFS_REVERT__";
7
- type OutputModeType = "fs" | "virtual";
7
+ declare enum StoragePreset {
8
+ VIRTUAL = "virtual",
9
+ FS = "fs"
10
+ }
11
+ /**
12
+ * Interface defining the methods and properties for a storage adapter.
13
+ */
14
+ interface StorageAdapter {
15
+ /**
16
+ * A name identifying the storage adapter type.
17
+ */
18
+ name: string;
19
+ /**
20
+ * Checks if a key exists in the storage.
21
+ *
22
+ * @param key - The key to check for existence.
23
+ * @returns A promise that resolves to `true` if the key exists, otherwise `false`.
24
+ */
25
+ exists: (key: string) => Promise<boolean>;
26
+ /**
27
+ * Synchronously checks if a key exists in the storage.
28
+ *
29
+ * @param key - The key to check for existence.
30
+ * @returns Returns `true` if the key exists, otherwise `false`.
31
+ */
32
+ existsSync: (key: string) => boolean;
33
+ /**
34
+ * Read a value associated with a key from the storage.
35
+ *
36
+ * @param key - The key to read the value for.
37
+ * @returns A promise that resolves to the value if found, otherwise `null`.
38
+ */
39
+ get: (key: string) => Promise<string | null>;
40
+ /**
41
+ * Synchronously reads the value associated with a key from the storage.
42
+ *
43
+ * @param key - The key to read the value for.
44
+ * @returns The value if found, otherwise `null`.
45
+ */
46
+ getSync: (key: string) => string | null;
47
+ /**
48
+ * Writes a value to the storage for the given key.
49
+ *
50
+ * @param key - The key to associate the value with.
51
+ * @param value - The value to store.
52
+ */
53
+ set: (key: string, value: string) => Promise<void>;
54
+ /**
55
+ * Synchronously writes a value to the storage for the given key.
56
+ *
57
+ * @param key - The key to associate the value with.
58
+ * @param value - The value to store.
59
+ */
60
+ setSync: (key: string, value: string) => void;
61
+ /**
62
+ * Removes a value from the storage.
63
+ *
64
+ * @param key - The key whose value should be removed.
65
+ */
66
+ remove: (key: string) => Promise<void>;
67
+ /**
68
+ * Synchronously removes a value from the storage.
69
+ *
70
+ * @param key - The key whose value should be removed.
71
+ */
72
+ removeSync: (key: string) => void;
73
+ /**
74
+ * Remove all entries from the storage that match the provided base path.
75
+ *
76
+ * @param base - The base path or prefix to clear entries from.
77
+ */
78
+ clear: (base?: string) => Promise<void>;
79
+ /**
80
+ * Synchronously remove all entries from the storage that match the provided base path.
81
+ *
82
+ * @param base - The base path or prefix to clear entries from.
83
+ */
84
+ clearSync: (base?: string) => void;
85
+ /**
86
+ * Lists all keys under the provided base path.
87
+ *
88
+ * @param base - The base path or prefix to list keys from.
89
+ * @returns A promise resolving to the list of keys.
90
+ */
91
+ list: (base?: string) => Promise<string[]>;
92
+ /**
93
+ * Synchronously lists all keys under the provided base path.
94
+ *
95
+ * @param base - The base path or prefix to list keys from.
96
+ * @returns The list of keys.
97
+ */
98
+ listSync: (base?: string) => string[];
99
+ /**
100
+ * Releases any resources held by the storage adapter.
101
+ */
102
+ dispose: () => MaybePromise<void>;
103
+ }
104
+ /**
105
+ * A mapping of file paths to storage adapter names and their corresponding {@link StorageAdapter} instances.
106
+ */
107
+ type StoragePort = Record<string, StorageAdapter>;
8
108
  interface VirtualFileMetadata {
9
109
  /**
10
110
  * The identifier for the file data.
@@ -24,10 +124,6 @@ interface VirtualFileMetadata {
24
124
  * - `normal`: Indicates that the file is a standard file without any special role.
25
125
  */
26
126
  type: string;
27
- /**
28
- * The output mode of the file.
29
- */
30
- mode: string;
31
127
  /**
32
128
  * Additional metadata associated with the file.
33
129
  */
@@ -49,16 +145,9 @@ interface VirtualFileData {
49
145
  * This string represents the purpose/function of the file in the virtual file system. A potential list of variants includes:
50
146
  * - `builtin`: Indicates that the file is a built-in module provided by the system.
51
147
  * - `entry`: Indicates that the file is an entry point for execution.
52
- * - `chunk`: Indicates that the file is a code chunk, typically used in code-splitting scenarios.
53
- * - `prebuilt-chunk`: Indicates that the file is a prebuilt code chunk.
54
- * - `asset`: Indicates that the file is a static asset, such as an image or stylesheet.
55
148
  * - `normal`: Indicates that the file is a standard file without any special role.
56
149
  */
57
150
  type?: string;
58
- /**
59
- * The output mode of the file.
60
- */
61
- mode?: string;
62
151
  /**
63
152
  * Additional metadata associated with the file.
64
153
  */
@@ -74,21 +163,19 @@ interface VirtualFile extends Required<VirtualFileData>, VirtualFileMetadata {
74
163
  */
75
164
  timestamp: number;
76
165
  }
77
- interface ResolveFSOptions {
78
- mode?: OutputModeType;
79
- }
80
- type MakeDirectoryOptions = (Mode | MakeDirectoryOptions$1) & ResolveFSOptions;
81
- interface PowerlinesWriteFileOptions extends ResolveFSOptions {
166
+ interface WriteOptions {
82
167
  /**
83
168
  * Should the file skip formatting before being written?
84
169
  *
85
170
  * @defaultValue false
86
171
  */
87
172
  skipFormat?: boolean;
173
+ /**
174
+ * Additional metadata for the file.
175
+ */
176
+ meta?: VirtualFileMetadata;
88
177
  }
89
- type NodeWriteFileOptions = WriteFileOptions$1;
90
- type WriteFileOptions = NodeWriteFileOptions | PowerlinesWriteFileOptions;
91
- type WriteFileData = string | NodeJS.ArrayBufferView | VirtualFileData;
178
+ type WriteData = string | NodeJS.ArrayBufferView | VirtualFileData;
92
179
  interface ResolveOptions extends ResolveOptions$1 {
93
180
  /**
94
181
  * If true, the module is being resolved as an entry point.
@@ -112,14 +199,6 @@ interface ResolveOptions extends ResolveOptions$1 {
112
199
  skipNodeModulesBundle?: boolean;
113
200
  }
114
201
  interface VirtualFileSystemInterface {
115
- /**
116
- * Patches the File System to include the virtual file system (VFS) contents.
117
- */
118
- [__VFS_PATCH__]: () => void;
119
- /**
120
- * Reverts the virtual file system (VFS) to its previous state.
121
- */
122
- [__VFS_REVERT__]: () => void;
123
202
  /**
124
203
  * The underlying file metadata.
125
204
  */
@@ -132,208 +211,92 @@ interface VirtualFileSystemInterface {
132
211
  * A map of module ids to their file paths.
133
212
  */
134
213
  paths: Readonly<Record<string, string>>;
135
- /**
136
- * Check if a path or id corresponds to a virtual file **(does not actually exists on disk)**.
137
- *
138
- * @param pathOrId - The path or id to check.
139
- * @param importer - The importer path, if any.
140
- * @param options - Optional parameters for resolving the path.
141
- * @returns Whether the path or id corresponds to a virtual file **(does not actually exists on disk)**.
142
- */
143
- isVirtual: (pathOrId: string, importer?: string, options?: ResolveOptions) => boolean;
144
- /**
145
- * Check if a path or id corresponds to a file written to the file system **(actually exists on disk)**.
146
- *
147
- * @param pathOrId - The path or id to check.
148
- * @param importer - The importer path, if any.
149
- * @param options - Optional parameters for resolving the path.
150
- * @returns Whether the path or id corresponds to a file written to the file system **(actually exists on disk)**.
151
- */
152
- isPhysical: (pathOrId: string, importer?: string, options?: ResolveOptions) => boolean;
153
214
  /**
154
215
  * Checks if a file exists in the virtual file system (VFS).
155
216
  *
156
- * @param path - The path of the file to check.
217
+ * @param path - The path or id of the file.
157
218
  * @returns `true` if the file exists, otherwise `false`.
158
219
  */
159
- isFile: (path: string) => boolean;
220
+ exists: (path: string) => Promise<boolean>;
160
221
  /**
161
- * Checks if a directory exists in the virtual file system (VFS).
222
+ * Synchronously Checks if a file exists in the virtual file system (VFS).
162
223
  *
163
- * @param path - The path of the directory to check.
164
- * @returns `true` if the directory exists, otherwise `false`.
224
+ * @param path - The path or id of the file.
225
+ * @returns `true` if the file exists, otherwise `false`.
165
226
  */
166
- isDirectory: (path: string) => boolean;
227
+ existsSync: (path: string) => boolean;
167
228
  /**
168
- * Checks if a file exists in the virtual file system (VFS).
229
+ * Checks if a file is virtual in the virtual file system (VFS).
169
230
  *
170
- * @param pathOrId - The path or id of the file.
171
- * @returns `true` if the file exists, otherwise `false`.
231
+ * @param path - The path or id of the file.
232
+ * @returns `true` if the file is virtual, otherwise `false`.
172
233
  */
173
- existsSync: (pathOrId: string) => boolean;
234
+ isVirtual: (path: string) => boolean;
174
235
  /**
175
236
  * Gets the metadata of a file in the virtual file system (VFS).
176
237
  *
177
- * @param pathOrId - The path or id of the file.
238
+ * @param path - The path or id of the file.
178
239
  * @returns The metadata of the file if it exists, otherwise undefined.
179
240
  */
180
- getMetadata: (pathOrId: string) => VirtualFileMetadata | undefined;
181
- /**
182
- * Gets the stats of a file in the virtual file system (VFS).
183
- *
184
- * @param pathOrId - The path or id of the file.
185
- * @param options - Optional parameters for getting the stats.
186
- * @returns The stats of the file if it exists, otherwise undefined.
187
- */
188
- lstat: (pathOrId: string, options?: StatSyncOptions & {
189
- bigint?: false | undefined;
190
- throwIfNoEntry: false;
191
- }) => Promise<Stats>;
192
- /**
193
- * Gets the stats of a file in the virtual file system (VFS).
194
- *
195
- * @param pathOrId - The path or id of the file.
196
- * @param options - Optional parameters for getting the stats.
197
- * @returns The stats of the file if it exists, otherwise undefined.
198
- */
199
- lstatSync: (pathOrId: string, options?: StatSyncOptions & {
200
- bigint?: false | undefined;
201
- throwIfNoEntry: false;
202
- }) => Stats | undefined;
203
- /**
204
- * Gets the stats of a file in the virtual file system (VFS).
205
- *
206
- * @param pathOrId - The path or id of the file.
207
- * @returns The stats of the file if it exists, otherwise false.
208
- */
209
- stat: (pathOrId: string, options?: StatSyncOptions & {
210
- bigint?: false | undefined;
211
- throwIfNoEntry: false;
212
- }) => Promise<Stats>;
213
- /**
214
- * Gets the stats of a file in the virtual file system (VFS).
215
- *
216
- * @param pathOrId - The path or id of the file.
217
- * @returns The stats of the file if it exists, otherwise false.
218
- */
219
- statSync: (pathOrId: string, options?: StatSyncOptions & {
220
- bigint?: false | undefined;
221
- throwIfNoEntry: false;
222
- }) => Stats | undefined;
241
+ getMetadata: (path: string) => VirtualFileMetadata | undefined;
223
242
  /**
224
243
  * Lists files in a given path.
225
244
  *
226
245
  * @param path - The path to list files from.
227
- * @param options - Options for listing files, such as encoding and recursion.
228
246
  * @returns An array of file names in the specified path.
229
247
  */
230
- readdirSync: (path: string, options?: {
231
- encoding: BufferEncoding | null;
232
- withFileTypes?: false | undefined;
233
- recursive?: boolean | undefined;
234
- } | BufferEncoding) => string[];
248
+ listSync: (path: string) => string[];
235
249
  /**
236
250
  * Lists files in a given path.
237
251
  *
238
252
  * @param path - The path to list files from.
239
- * @param options - Options for listing files, such as encoding and recursion.
240
253
  * @returns An array of file names in the specified path.
241
254
  */
242
- readdir: (path: string, options?: {
243
- encoding: BufferEncoding | null;
244
- withFileTypes?: false | undefined;
245
- recursive?: boolean | undefined;
246
- } | BufferEncoding) => Promise<string[]>;
255
+ list: (path: string) => Promise<string[]>;
247
256
  /**
248
257
  * Removes a file or symbolic link in the virtual file system (VFS).
249
258
  *
250
259
  * @param path - The path to the file to remove.
251
260
  * @returns A promise that resolves when the file is removed.
252
261
  */
253
- unlinkSync: (path: string, options?: ResolveFSOptions) => void;
262
+ removeSync: (path: string) => void;
254
263
  /**
255
264
  * Asynchronously removes a file or symbolic link in the virtual file system (VFS).
256
265
  *
257
266
  * @param path - The path to the file to remove.
258
267
  * @returns A promise that resolves when the file is removed.
259
268
  */
260
- unlink: (path: string, options?: ResolveFSOptions) => Promise<void>;
261
- /**
262
- * Removes a directory in the virtual file system (VFS).
263
- *
264
- * @param path - The path to create the directory at.
265
- * @param options - Options for creating the directory.
266
- */
267
- rmdirSync: (path: string, options?: RmDirOptions & ResolveFSOptions) => any;
268
- /**
269
- * Removes a directory in the virtual file system (VFS).
270
- *
271
- * @param path - The path to create the directory at.
272
- * @param options - Options for creating the directory.
273
- * @returns A promise that resolves to the path of the created directory, or undefined if the directory could not be created.
274
- */
275
- rmdir: (path: string, options?: RmDirOptions & ResolveFSOptions) => Promise<void>;
276
- /**
277
- * Removes a file or directory in the virtual file system (VFS).
278
- *
279
- * @param path - The path to the file or directory to remove.
280
- * @param options - Options for removing the file or directory.
281
- * @returns A promise that resolves when the file or directory is removed.
282
- */
283
- rm: (path: string, options?: RmOptions & ResolveFSOptions) => Promise<void>;
284
- /**
285
- * Synchronously removes a file or directory in the virtual file system (VFS).
286
- *
287
- * @param path - The path to the file or directory to remove.
288
- * @param options - Options for removing the file or directory.
289
- */
290
- rmSync: (path: string, options?: RmOptions & ResolveFSOptions) => void;
291
- /**
292
- * Creates a directory in the virtual file system (VFS).
293
- *
294
- * @param path - The path to create the directory at.
295
- * @param options - Options for creating the directory.
296
- * @returns A promise that resolves to the path of the created directory, or undefined if the directory could not be created.
297
- */
298
- mkdirSync: (path: string, options?: MakeDirectoryOptions) => string | undefined;
299
- /**
300
- * Creates a directory in the virtual file system (VFS).
301
- *
302
- * @param path - The path to create the directory at.
303
- * @param options - Options for creating the directory.
304
- * @returns A promise that resolves to the path of the created directory, or undefined if the directory could not be created.
305
- */
306
- mkdir: (path: string, options?: MakeDirectoryOptions) => Promise<string | undefined>;
269
+ remove: (path: string) => Promise<void>;
307
270
  /**
308
271
  * Reads a file from the virtual file system (VFS).
309
272
  *
310
- * @param pathOrId - The path or id of the file.
273
+ * @param path - The path or id of the file.
311
274
  * @returns The contents of the file if it exists, otherwise undefined.
312
275
  */
313
- readFile: (pathOrId: string) => Promise<string | undefined>;
276
+ read: (path: string) => Promise<string | undefined>;
314
277
  /**
315
278
  * Reads a file from the virtual file system (VFS).
316
279
  *
317
- * @param pathOrId - The path or id of the file.
280
+ * @param path - The path or id of the file.
318
281
  */
319
- readFileSync: (pathOrId: string) => string | undefined;
282
+ readSync: (path: string) => string | undefined;
320
283
  /**
321
284
  * Writes a file to the virtual file system (VFS).
322
285
  *
323
286
  * @param path - The path to the file.
324
287
  * @param data - The contents of the file.
325
- * @param options - Optional parameters for writing the file.
288
+ * @param options - Options for writing the file.
326
289
  * @returns A promise that resolves when the file is written.
327
290
  */
328
- writeFile: (path: string, data?: WriteFileData, options?: WriteFileOptions) => Promise<void>;
291
+ write: (path: string, data: string, options?: WriteOptions) => Promise<void>;
329
292
  /**
330
293
  * Writes a file to the virtual file system (VFS).
331
294
  *
332
295
  * @param path - The path to the file.
333
296
  * @param data - The contents of the file.
334
- * @param options - Optional parameters for writing the file.
297
+ * @param options - Options for writing the file.
335
298
  */
336
- writeFileSync: (path: string, data?: WriteFileData, options?: WriteFileOptions) => void;
299
+ writeSync: (path: string, data: string, options?: WriteOptions) => void;
337
300
  /**
338
301
  * Moves a file from one path to another in the virtual file system (VFS).
339
302
  *
@@ -376,13 +339,6 @@ interface VirtualFileSystemInterface {
376
339
  * @returns An array of file paths matching the provided pattern(s)
377
340
  */
378
341
  globSync: (pattern: string | string[]) => string[];
379
- /**
380
- * Resolves a path or id to a file path in the virtual file system.
381
- *
382
- * @param pathOrId - The path or id of the file to resolve.
383
- * @returns The resolved path of the file if it exists, otherwise false.
384
- */
385
- realpathSync: (pathOrId: string) => string;
386
342
  /**
387
343
  * A helper function to resolve modules using the Jiti resolver
388
344
  *
@@ -423,17 +379,15 @@ interface VirtualFileSystemInterface {
423
379
  dispose: () => Promise<void>;
424
380
  }
425
381
  declare type __ΩVirtualFileExtension = any[];
426
- declare type __ΩOutputModeType = any[];
382
+ declare type __ΩStoragePreset = any[];
383
+ declare type __ΩStorageAdapter = any[];
384
+ declare type __ΩStoragePort = any[];
427
385
  declare type __ΩVirtualFileMetadata = any[];
428
386
  declare type __ΩVirtualFileData = any[];
429
387
  declare type __ΩVirtualFile = any[];
430
- declare type __ΩResolveFSOptions = any[];
431
- declare type __ΩMakeDirectoryOptions = any[];
432
- declare type __ΩPowerlinesWriteFileOptions = any[];
433
- declare type __ΩNodeWriteFileOptions = any[];
434
- declare type __ΩWriteFileOptions = any[];
435
- declare type __ΩWriteFileData = any[];
388
+ declare type __ΩWriteOptions = any[];
389
+ declare type __ΩWriteData = any[];
436
390
  declare type __ΩResolveOptions = any[];
437
391
  declare type __ΩVirtualFileSystemInterface = any[];
438
392
 
439
- export { type MakeDirectoryOptions, type NodeWriteFileOptions, type OutputModeType, type PowerlinesWriteFileOptions, type ResolveFSOptions, type ResolveOptions, type VirtualFile, type VirtualFileData, type VirtualFileExtension, type VirtualFileMetadata, type VirtualFileSystemInterface, type WriteFileData, type WriteFileOptions, __VFS_PATCH__, __VFS_REVERT__, type __ΩMakeDirectoryOptions, type __ΩNodeWriteFileOptions, type __ΩOutputModeType, type __ΩPowerlinesWriteFileOptions, type __ΩResolveFSOptions, type __ΩResolveOptions, type __ΩVirtualFile, type __ΩVirtualFileData, type __ΩVirtualFileExtension, type __ΩVirtualFileMetadata, type __ΩVirtualFileSystemInterface, type __ΩWriteFileData, type __ΩWriteFileOptions };
393
+ export { type ResolveOptions, type StorageAdapter, type StoragePort, StoragePreset, type VirtualFile, type VirtualFileData, type VirtualFileExtension, type VirtualFileMetadata, type VirtualFileSystemInterface, type WriteData, type WriteOptions, __VFS_PATCH__, __VFS_REVERT__, type __ΩResolveOptions, type __ΩStorageAdapter, type __ΩStoragePort, type __ΩStoragePreset, type __ΩVirtualFile, type __ΩVirtualFileData, type __ΩVirtualFileExtension, type __ΩVirtualFileMetadata, type __ΩVirtualFileSystemInterface, type __ΩWriteData, type __ΩWriteOptions };
package/dist/types/fs.js CHANGED
@@ -1,2 +1,4 @@
1
- export { __VFS_PATCH__, __VFS_REVERT__ } from '../chunk-VT7NVLLU.js';
2
- import '../chunk-SHUYVCID.js';
1
+ export { StoragePreset, __VFS_PATCH__, __VFS_REVERT__ } from '../chunk-JU2HWIWS.js';
2
+ import '../chunk-7QVYU63E.js';
3
+ //# sourceMappingURL=fs.js.map
4
+ //# sourceMappingURL=fs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"fs.js"}
@@ -1,4 +1,6 @@
1
1
  'use strict';
2
2
 
3
- require('../chunk-HQFZ64VC.cjs');
3
+ require('../chunk-XZO6ZJQP.cjs');
4
4
 
5
+ //# sourceMappingURL=hooks.cjs.map
6
+ //# sourceMappingURL=hooks.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"hooks.cjs"}
@@ -1,8 +1,26 @@
1
- export { by as BaseHookKeys, bx as BaseHooks, bE as BaseHooksList, bD as BaseHooksListItem, bA as ExternalHookKeys, bz as ExternalHooks, bF as ExternalHooksListItem, bC as HookKeys, bB as Hooks, bG as HooksList, bH as InferHookHandler, bJ as InferHookParameters, bI as InferHookReturnType, bK as InferHookThisType, bM as __ΩBaseHookKeys, bL as __ΩBaseHooks, bS as __ΩBaseHooksList, bR as __ΩBaseHooksListItem, bO as __ΩExternalHookKeys, bN as __ΩExternalHooks, bT as __ΩExternalHooksListItem, bQ as __ΩHookKeys, bP as __ΩHooks, bU as __ΩHooksList, bV as __ΩInferHookHandler, bX as __ΩInferHookParameters, bW as __ΩInferHookReturnType, bY as __ΩInferHookThisType } from '../resolved-CSqGKlA5.cjs';
1
+ export { bw as BaseHookKeys, bv as BaseHooks, bC as BaseHooksList, bB as BaseHooksListItem, by as ExternalHookKeys, bx as ExternalHooks, bD as ExternalHooksListItem, bA as HookKeys, bz as Hooks, bE as HooksList, bF as InferHookHandler, bH as InferHookParameters, bG as InferHookReturnType, bI as InferHookThisType, bK as __ΩBaseHookKeys, bJ as __ΩBaseHooks, bQ as __ΩBaseHooksList, bP as __ΩBaseHooksListItem, bM as __ΩExternalHookKeys, bL as __ΩExternalHooks, bR as __ΩExternalHooksListItem, bO as __ΩHookKeys, bN as __ΩHooks, bS as __ΩHooksList, bT as __ΩInferHookHandler, bV as __ΩInferHookParameters, bU as __ΩInferHookReturnType, bW as __ΩInferHookThisType } from '../context-TizkCfOv.cjs';
2
+ import '@stryke/env/get-env-paths';
2
3
  import '@stryke/types/base';
4
+ import '@stryke/types/package-json';
5
+ import 'jest-worker';
6
+ import 'jiti';
7
+ import 'magic-string';
8
+ import 'semver';
9
+ import 'ts-morph';
10
+ import 'unimport';
11
+ import 'unplugin';
12
+ import '@babel/core';
13
+ import '@storm-software/build-tools/types';
14
+ import '@storm-software/config-tools/types';
15
+ import '@storm-software/config/types';
3
16
  import '@stryke/types/configuration';
4
17
  import '@stryke/types/file';
18
+ import 'c12';
5
19
  import 'vite';
20
+ import '@babel/helper-plugin-utils';
21
+ import './fs.cjs';
22
+ import '@stryke/fs/resolve';
23
+ import '@stryke/types/array';
6
24
  import './build.cjs';
7
25
  import '@farmfe/core';
8
26
  import '@rspack/core';
@@ -12,26 +30,6 @@ import 'esbuild';
12
30
  import 'rolldown';
13
31
  import 'rollup';
14
32
  import 'webpack';
15
- import '@babel/core';
16
- import '@storm-software/build-tools/types';
17
- import '@storm-software/config-tools/types';
18
- import '@storm-software/config/types';
19
- import 'c12';
20
- import '@babel/helper-plugin-utils';
21
- import '@stryke/env/get-env-paths';
22
- import '@stryke/types/package-json';
23
- import 'jest-worker';
24
- import 'jiti';
25
- import 'magic-string';
26
- import 'memfs';
27
- import 'semver';
28
- import 'ts-morph';
29
- import 'unimport';
30
- import 'unplugin';
31
- import './fs.cjs';
32
- import '@stryke/fs/resolve';
33
- import 'node:fs';
34
- import '@stryke/types/array';
35
33
  import './tsconfig.cjs';
36
34
  import '@stryke/types/tsconfig';
37
35
  import 'typescript';
@@ -1,8 +1,26 @@
1
- export { by as BaseHookKeys, bx as BaseHooks, bE as BaseHooksList, bD as BaseHooksListItem, bA as ExternalHookKeys, bz as ExternalHooks, bF as ExternalHooksListItem, bC as HookKeys, bB as Hooks, bG as HooksList, bH as InferHookHandler, bJ as InferHookParameters, bI as InferHookReturnType, bK as InferHookThisType, bM as __ΩBaseHookKeys, bL as __ΩBaseHooks, bS as __ΩBaseHooksList, bR as __ΩBaseHooksListItem, bO as __ΩExternalHookKeys, bN as __ΩExternalHooks, bT as __ΩExternalHooksListItem, bQ as __ΩHookKeys, bP as __ΩHooks, bU as __ΩHooksList, bV as __ΩInferHookHandler, bX as __ΩInferHookParameters, bW as __ΩInferHookReturnType, bY as __ΩInferHookThisType } from '../resolved-BABoCnXm.js';
1
+ export { bw as BaseHookKeys, bv as BaseHooks, bC as BaseHooksList, bB as BaseHooksListItem, by as ExternalHookKeys, bx as ExternalHooks, bD as ExternalHooksListItem, bA as HookKeys, bz as Hooks, bE as HooksList, bF as InferHookHandler, bH as InferHookParameters, bG as InferHookReturnType, bI as InferHookThisType, bK as __ΩBaseHookKeys, bJ as __ΩBaseHooks, bQ as __ΩBaseHooksList, bP as __ΩBaseHooksListItem, bM as __ΩExternalHookKeys, bL as __ΩExternalHooks, bR as __ΩExternalHooksListItem, bO as __ΩHookKeys, bN as __ΩHooks, bS as __ΩHooksList, bT as __ΩInferHookHandler, bV as __ΩInferHookParameters, bU as __ΩInferHookReturnType, bW as __ΩInferHookThisType } from '../context-jhcT1Vi1.js';
2
+ import '@stryke/env/get-env-paths';
2
3
  import '@stryke/types/base';
4
+ import '@stryke/types/package-json';
5
+ import 'jest-worker';
6
+ import 'jiti';
7
+ import 'magic-string';
8
+ import 'semver';
9
+ import 'ts-morph';
10
+ import 'unimport';
11
+ import 'unplugin';
12
+ import '@babel/core';
13
+ import '@storm-software/build-tools/types';
14
+ import '@storm-software/config-tools/types';
15
+ import '@storm-software/config/types';
3
16
  import '@stryke/types/configuration';
4
17
  import '@stryke/types/file';
18
+ import 'c12';
5
19
  import 'vite';
20
+ import '@babel/helper-plugin-utils';
21
+ import './fs.js';
22
+ import '@stryke/fs/resolve';
23
+ import '@stryke/types/array';
6
24
  import './build.js';
7
25
  import '@farmfe/core';
8
26
  import '@rspack/core';
@@ -12,26 +30,6 @@ import 'esbuild';
12
30
  import 'rolldown';
13
31
  import 'rollup';
14
32
  import 'webpack';
15
- import '@babel/core';
16
- import '@storm-software/build-tools/types';
17
- import '@storm-software/config-tools/types';
18
- import '@storm-software/config/types';
19
- import 'c12';
20
- import '@babel/helper-plugin-utils';
21
- import '@stryke/env/get-env-paths';
22
- import '@stryke/types/package-json';
23
- import 'jest-worker';
24
- import 'jiti';
25
- import 'magic-string';
26
- import 'memfs';
27
- import 'semver';
28
- import 'ts-morph';
29
- import 'unimport';
30
- import 'unplugin';
31
- import './fs.js';
32
- import '@stryke/fs/resolve';
33
- import 'node:fs';
34
- import '@stryke/types/array';
35
33
  import './tsconfig.js';
36
34
  import '@stryke/types/tsconfig';
37
35
  import 'typescript';
@@ -1 +1,3 @@
1
- import '../chunk-JGB5YQ2U.js';
1
+ import '../chunk-HJW7OH6E.js';
2
+ //# sourceMappingURL=hooks.js.map
3
+ //# sourceMappingURL=hooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"hooks.js"}
@@ -1,40 +1,46 @@
1
1
  'use strict';
2
2
 
3
- require('../chunk-2NCILNCH.cjs');
4
- require('../chunk-KALR2O2F.cjs');
5
- require('../chunk-YRJ4MLVL.cjs');
6
- require('../chunk-AENPRFWJ.cjs');
7
- require('../chunk-GHJU2KGP.cjs');
8
- require('../chunk-GRU7B3QM.cjs');
9
- require('../chunk-ZC43PZXS.cjs');
10
- require('../chunk-2NO7N5OW.cjs');
11
- require('../chunk-7GYTTM4M.cjs');
12
- var chunkXP7OML7S_cjs = require('../chunk-XP7OML7S.cjs');
13
- require('../chunk-HQFZ64VC.cjs');
14
- var chunkETKZMGLN_cjs = require('../chunk-ETKZMGLN.cjs');
15
- var chunkPAMSESZV_cjs = require('../chunk-PAMSESZV.cjs');
16
- var chunkAYKZK666_cjs = require('../chunk-AYKZK666.cjs');
17
- require('../chunk-USNT2KNT.cjs');
3
+ require('../chunk-6ZGIV2SU.cjs');
4
+ require('../chunk-DS7OM4NX.cjs');
5
+ require('../chunk-Q7EJVZVI.cjs');
6
+ require('../chunk-7BZQBW77.cjs');
7
+ require('../chunk-IHUNA3MO.cjs');
8
+ require('../chunk-YZZUOOPS.cjs');
9
+ require('../chunk-DFLNRC3B.cjs');
10
+ require('../chunk-VQCQRLGM.cjs');
11
+ require('../chunk-4JCNAKOE.cjs');
12
+ var chunkYUX7LOBU_cjs = require('../chunk-YUX7LOBU.cjs');
13
+ require('../chunk-XZO6ZJQP.cjs');
14
+ var chunkPSTCR335_cjs = require('../chunk-PSTCR335.cjs');
15
+ var chunkZ6ARQDHR_cjs = require('../chunk-Z6ARQDHR.cjs');
16
+ var chunkMBBNZS6K_cjs = require('../chunk-MBBNZS6K.cjs');
17
+ require('../chunk-PK6SKIKE.cjs');
18
18
 
19
19
 
20
20
 
21
21
  Object.defineProperty(exports, "LogLevel", {
22
22
  enumerable: true,
23
- get: function () { return chunkXP7OML7S_cjs.LogLevel; }
23
+ get: function () { return chunkYUX7LOBU_cjs.LogLevel; }
24
24
  });
25
25
  Object.defineProperty(exports, "PLUGIN_NON_HOOK_FIELDS", {
26
26
  enumerable: true,
27
- get: function () { return chunkETKZMGLN_cjs.PLUGIN_NON_HOOK_FIELDS; }
27
+ get: function () { return chunkPSTCR335_cjs.PLUGIN_NON_HOOK_FIELDS; }
28
28
  });
29
29
  Object.defineProperty(exports, "SUPPORTED_COMMANDS", {
30
30
  enumerable: true,
31
- get: function () { return chunkPAMSESZV_cjs.SUPPORTED_COMMANDS; }
31
+ get: function () { return chunkZ6ARQDHR_cjs.SUPPORTED_COMMANDS; }
32
+ });
33
+ Object.defineProperty(exports, "StoragePreset", {
34
+ enumerable: true,
35
+ get: function () { return chunkMBBNZS6K_cjs.StoragePreset; }
32
36
  });
33
37
  Object.defineProperty(exports, "__VFS_PATCH__", {
34
38
  enumerable: true,
35
- get: function () { return chunkAYKZK666_cjs.__VFS_PATCH__; }
39
+ get: function () { return chunkMBBNZS6K_cjs.__VFS_PATCH__; }
36
40
  });
37
41
  Object.defineProperty(exports, "__VFS_REVERT__", {
38
42
  enumerable: true,
39
- get: function () { return chunkAYKZK666_cjs.__VFS_REVERT__; }
43
+ get: function () { return chunkMBBNZS6K_cjs.__VFS_REVERT__; }
40
44
  });
45
+ //# sourceMappingURL=index.cjs.map
46
+ //# sourceMappingURL=index.cjs.map