powerlines 0.36.21 → 0.36.22

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 (292) hide show
  1. package/dist/{api-BpNyqnfS.d.ts → api-CKsoNfIi.d.cts} +1 -1
  2. package/dist/{api-DhwCWSTm.d.cts → api-DF6OX-CP.d.ts} +1 -1
  3. package/dist/api.cjs +2 -2
  4. package/dist/api.d.cts +2 -2
  5. package/dist/api.d.ts +2 -2
  6. package/dist/api.js +1 -1
  7. package/dist/astro.cjs +4 -4
  8. package/dist/astro.d.cts +1 -1
  9. package/dist/astro.d.ts +1 -1
  10. package/dist/astro.js +3 -3
  11. package/dist/{chunk-FZIDEHX4.cjs → chunk-2XBYBJR5.cjs} +4 -4
  12. package/dist/{chunk-Q3EYAAGO.cjs → chunk-A7AUGAHH.cjs} +7 -2
  13. package/dist/{chunk-NAC3BK64.cjs → chunk-BYE57MON.cjs} +81 -4
  14. package/dist/{chunk-B6F32B3B.cjs → chunk-CY2P2DU6.cjs} +5 -5
  15. package/dist/{chunk-CXAAEG5H.js → chunk-GJ2LG4DD.js} +3 -3
  16. package/dist/chunk-KXRVVFNK.js +11 -0
  17. package/dist/{chunk-GIOACISS.js → chunk-L2PNHKJM.js} +2 -2
  18. package/dist/{chunk-C4AK4CRR.cjs → chunk-NCEMQXI7.cjs} +4 -4
  19. package/dist/{chunk-UZQX7NJH.js → chunk-NIWBFUD2.js} +3 -3
  20. package/dist/{chunk-6JCE4KHT.js → chunk-O2ASVIMW.js} +3 -3
  21. package/dist/{chunk-IJXEMXLH.cjs → chunk-PGF6BCY7.cjs} +2 -2
  22. package/dist/{chunk-HJQ77IG5.js → chunk-PONG5D7V.js} +3 -3
  23. package/dist/{chunk-HICL77ZC.js → chunk-POZHPFH4.js} +81 -4
  24. package/dist/{chunk-FGJPJGGC.js → chunk-V3433RRZ.js} +3 -3
  25. package/dist/chunk-WGXJ6LPR.cjs +12 -0
  26. package/dist/chunk-ZDOLHPJF.cjs +12 -0
  27. package/dist/{context-AF63GCTq.d.cts → context-BjkbWSEi.d.cts} +17 -0
  28. package/dist/{context-BTkUT4s7.d.ts → context-D3mOE_yR.d.ts} +17 -0
  29. package/dist/esbuild.cjs +6 -6
  30. package/dist/esbuild.d.cts +1 -1
  31. package/dist/esbuild.d.ts +1 -1
  32. package/dist/esbuild.js +3 -3
  33. package/dist/farm.cjs +3 -3
  34. package/dist/farm.d.cts +1 -1
  35. package/dist/farm.d.ts +1 -1
  36. package/dist/farm.js +2 -2
  37. package/dist/index.cjs +19 -15
  38. package/dist/index.d.cts +4 -4
  39. package/dist/index.d.ts +4 -4
  40. package/dist/index.js +4 -4
  41. package/dist/lib/{api-D0iAknc0.d.ts → api-U9jjf5ZI.d.ts} +1 -1
  42. package/dist/lib/{api-B8z7HzBo.d.cts → api-tl-yvTre.d.cts} +1 -1
  43. package/dist/lib/build/esbuild.d.cts +2 -2
  44. package/dist/lib/build/esbuild.d.ts +2 -2
  45. package/dist/lib/build/index.d.cts +4 -4
  46. package/dist/lib/build/index.d.ts +4 -4
  47. package/dist/lib/build/rolldown.d.cts +2 -2
  48. package/dist/lib/build/rolldown.d.ts +2 -2
  49. package/dist/lib/build/rollup.d.cts +2 -2
  50. package/dist/lib/build/rollup.d.ts +2 -2
  51. package/dist/lib/build/rspack.d.cts +2 -2
  52. package/dist/lib/build/rspack.d.ts +2 -2
  53. package/dist/lib/build/tsdown.d.cts +2 -2
  54. package/dist/lib/build/tsdown.d.ts +2 -2
  55. package/dist/lib/build/tsup.d.cts +2 -2
  56. package/dist/lib/build/tsup.d.ts +2 -2
  57. package/dist/lib/build/unbuild.d.cts +4 -4
  58. package/dist/lib/build/unbuild.d.ts +4 -4
  59. package/dist/lib/build/vite.d.cts +2 -2
  60. package/dist/lib/build/vite.d.ts +2 -2
  61. package/dist/lib/build/webpack.d.cts +2 -2
  62. package/dist/lib/build/webpack.d.ts +2 -2
  63. package/dist/lib/{chunk-Y5KONJVR.cjs → chunk-4LHV7MWI.cjs} +9 -2
  64. package/dist/lib/chunk-4LHV7MWI.cjs.map +1 -0
  65. package/dist/lib/{chunk-67XMKJXQ.js → chunk-5UUCSS3L.js} +4 -4
  66. package/dist/lib/{chunk-67XMKJXQ.js.map → chunk-5UUCSS3L.js.map} +1 -1
  67. package/dist/lib/{chunk-WQNUM4K3.js → chunk-7WJ27SD3.js} +3 -3
  68. package/dist/lib/{chunk-WQNUM4K3.js.map → chunk-7WJ27SD3.js.map} +1 -1
  69. package/dist/lib/{chunk-WWWGFMAA.js → chunk-AD7VZMXQ.js} +4 -4
  70. package/dist/lib/{chunk-WWWGFMAA.js.map → chunk-AD7VZMXQ.js.map} +1 -1
  71. package/dist/lib/{chunk-VF3S2D2V.cjs → chunk-E76ZBTKK.cjs} +50 -5
  72. package/dist/lib/chunk-E76ZBTKK.cjs.map +1 -0
  73. package/dist/lib/{chunk-QBE4SZN6.cjs → chunk-FO5AJ2PR.cjs} +11 -4
  74. package/dist/lib/chunk-FO5AJ2PR.cjs.map +1 -0
  75. package/dist/lib/{chunk-5QMQ5G73.js → chunk-I3GWGYDB.js} +10 -3
  76. package/dist/lib/chunk-I3GWGYDB.js.map +1 -0
  77. package/dist/lib/{chunk-YITP2ODI.cjs → chunk-I4ZNMVU2.cjs} +22 -11
  78. package/dist/lib/chunk-I4ZNMVU2.cjs.map +1 -0
  79. package/dist/lib/{chunk-3P36ZLXD.cjs → chunk-I6JH6KU3.cjs} +16 -16
  80. package/dist/lib/{chunk-3P36ZLXD.cjs.map → chunk-I6JH6KU3.cjs.map} +1 -1
  81. package/dist/lib/{chunk-QOVSEBZF.js → chunk-INNJR7XT.js} +48 -3
  82. package/dist/lib/chunk-INNJR7XT.js.map +1 -0
  83. package/dist/lib/{chunk-YJEZASNU.js → chunk-NE26SC53.js} +10 -3
  84. package/dist/lib/chunk-NE26SC53.js.map +1 -0
  85. package/dist/lib/{chunk-CTMPQSK7.js → chunk-QHKZQZJG.js} +9 -2
  86. package/dist/lib/chunk-QHKZQZJG.js.map +1 -0
  87. package/dist/lib/{chunk-AQNUFK3L.cjs → chunk-RI3JLIUH.cjs} +11 -4
  88. package/dist/lib/chunk-RI3JLIUH.cjs.map +1 -0
  89. package/dist/lib/{chunk-BT6ROHLM.js → chunk-UOKSPMLS.js} +17 -6
  90. package/dist/lib/chunk-UOKSPMLS.js.map +1 -0
  91. package/dist/lib/{chunk-HZ2RLNLV.cjs → chunk-X3KPKVM3.cjs} +6 -6
  92. package/dist/lib/{chunk-HZ2RLNLV.cjs.map → chunk-X3KPKVM3.cjs.map} +1 -1
  93. package/dist/lib/{chunk-BZFQYIWK.cjs → chunk-YQHAXICU.cjs} +14 -14
  94. package/dist/lib/{chunk-BZFQYIWK.cjs.map → chunk-YQHAXICU.cjs.map} +1 -1
  95. package/dist/lib/{config-Ds6GSd34.d.ts → config-BJy0qydr.d.ts} +18 -1
  96. package/dist/lib/{config-BbtAp2KJ.d.cts → config-D2hB4lan.d.cts} +18 -1
  97. package/dist/lib/config-file.d.cts +2 -2
  98. package/dist/lib/config-file.d.ts +2 -2
  99. package/dist/lib/contexts/api-context.cjs +8 -8
  100. package/dist/lib/contexts/api-context.d.cts +4 -4
  101. package/dist/lib/contexts/api-context.d.ts +4 -4
  102. package/dist/lib/contexts/api-context.js +7 -7
  103. package/dist/lib/contexts/context.cjs +6 -6
  104. package/dist/lib/contexts/context.d.cts +21 -4
  105. package/dist/lib/contexts/context.d.ts +21 -4
  106. package/dist/lib/contexts/context.js +5 -5
  107. package/dist/lib/contexts/environment-context.cjs +7 -7
  108. package/dist/lib/contexts/environment-context.d.cts +4 -4
  109. package/dist/lib/contexts/environment-context.d.ts +4 -4
  110. package/dist/lib/contexts/environment-context.js +6 -6
  111. package/dist/lib/contexts/index.cjs +10 -10
  112. package/dist/lib/contexts/index.d.cts +4 -4
  113. package/dist/lib/contexts/index.d.ts +4 -4
  114. package/dist/lib/contexts/index.js +7 -7
  115. package/dist/lib/contexts/plugin-context.d.cts +4 -4
  116. package/dist/lib/contexts/plugin-context.d.ts +4 -4
  117. package/dist/lib/entry.d.cts +2 -2
  118. package/dist/lib/entry.d.ts +2 -2
  119. package/dist/lib/fs/index.cjs +5 -5
  120. package/dist/lib/fs/index.d.cts +2 -2
  121. package/dist/lib/fs/index.d.ts +2 -2
  122. package/dist/lib/fs/index.js +4 -4
  123. package/dist/lib/fs/storage/base.cjs +2 -2
  124. package/dist/lib/fs/storage/base.d.cts +8 -1
  125. package/dist/lib/fs/storage/base.d.ts +8 -1
  126. package/dist/lib/fs/storage/base.js +1 -1
  127. package/dist/lib/fs/storage/file-system.cjs +3 -3
  128. package/dist/lib/fs/storage/file-system.d.cts +8 -1
  129. package/dist/lib/fs/storage/file-system.d.ts +8 -1
  130. package/dist/lib/fs/storage/file-system.js +2 -2
  131. package/dist/lib/fs/storage/index.cjs +6 -6
  132. package/dist/lib/fs/storage/index.d.cts +1 -1
  133. package/dist/lib/fs/storage/index.d.ts +1 -1
  134. package/dist/lib/fs/storage/index.js +3 -3
  135. package/dist/lib/fs/storage/virtual.cjs +3 -3
  136. package/dist/lib/fs/storage/virtual.d.cts +8 -1
  137. package/dist/lib/fs/storage/virtual.d.ts +8 -1
  138. package/dist/lib/fs/storage/virtual.js +2 -2
  139. package/dist/lib/fs/vfs.cjs +5 -5
  140. package/dist/lib/fs/vfs.d.cts +2 -2
  141. package/dist/lib/fs/vfs.d.ts +2 -2
  142. package/dist/lib/fs/vfs.js +4 -4
  143. package/dist/lib/{fs-BmOAZ4An.d.cts → fs-DkLcPGg-.d.cts} +15 -1
  144. package/dist/lib/{fs-BmOAZ4An.d.ts → fs-DkLcPGg-.d.ts} +15 -1
  145. package/dist/lib/index.cjs +13 -13
  146. package/dist/lib/index.d.cts +5 -5
  147. package/dist/lib/index.d.ts +5 -5
  148. package/dist/lib/index.js +8 -8
  149. package/dist/lib/{internal-Dxf3D0k2.d.ts → internal-CksJ16ez.d.ts} +2 -2
  150. package/dist/lib/{internal-DkOa3QW7.d.cts → internal-V6kgm5vH.d.cts} +2 -2
  151. package/dist/lib/logger.d.cts +2 -2
  152. package/dist/lib/logger.d.ts +2 -2
  153. package/dist/lib/typescript/import-transformer.d.cts +2 -2
  154. package/dist/lib/typescript/import-transformer.d.ts +2 -2
  155. package/dist/lib/typescript/index.d.cts +2 -2
  156. package/dist/lib/typescript/index.d.ts +2 -2
  157. package/dist/lib/typescript/ts-morph.d.cts +2 -2
  158. package/dist/lib/typescript/ts-morph.d.ts +2 -2
  159. package/dist/lib/unplugin/factory.cjs +9 -9
  160. package/dist/lib/unplugin/factory.d.cts +4 -4
  161. package/dist/lib/unplugin/factory.d.ts +4 -4
  162. package/dist/lib/unplugin/factory.js +8 -8
  163. package/dist/lib/unplugin/helpers.d.cts +2 -2
  164. package/dist/lib/unplugin/helpers.d.ts +2 -2
  165. package/dist/lib/unplugin/index.cjs +9 -9
  166. package/dist/lib/unplugin/index.d.cts +4 -4
  167. package/dist/lib/unplugin/index.d.ts +4 -4
  168. package/dist/lib/unplugin/index.js +8 -8
  169. package/dist/lib/unplugin/plugin.d.cts +4 -4
  170. package/dist/lib/unplugin/plugin.d.ts +4 -4
  171. package/dist/lib/{unplugin-Z1cKpW1R.d.cts → unplugin-C4u6D9M3.d.cts} +2 -2
  172. package/dist/lib/{unplugin-ByfVrTII.d.ts → unplugin-I8HmDBMG.d.ts} +2 -2
  173. package/dist/lib/utilities/bundle.d.cts +2 -2
  174. package/dist/lib/utilities/bundle.d.ts +2 -2
  175. package/dist/lib/utilities/cache.d.cts +2 -2
  176. package/dist/lib/utilities/cache.d.ts +2 -2
  177. package/dist/lib/utilities/file-header.d.cts +2 -2
  178. package/dist/lib/utilities/file-header.d.ts +2 -2
  179. package/dist/lib/utilities/index.d.cts +2 -2
  180. package/dist/lib/utilities/index.d.ts +2 -2
  181. package/dist/lib/utilities/meta.d.cts +2 -2
  182. package/dist/lib/utilities/meta.d.ts +2 -2
  183. package/dist/lib/utilities/resolve.d.cts +2 -2
  184. package/dist/lib/utilities/resolve.d.ts +2 -2
  185. package/dist/lib/utilities/source-file.d.cts +2 -2
  186. package/dist/lib/utilities/source-file.d.ts +2 -2
  187. package/dist/lib/utilities/source-map.d.cts +2 -2
  188. package/dist/lib/utilities/source-map.d.ts +2 -2
  189. package/dist/lib/utilities/worker.d.cts +2 -2
  190. package/dist/lib/utilities/worker.d.ts +2 -2
  191. package/dist/lib/utilities/write-file.d.cts +2 -2
  192. package/dist/lib/utilities/write-file.d.ts +2 -2
  193. package/dist/next.cjs +4 -4
  194. package/dist/next.js +3 -3
  195. package/dist/nuxt.cjs +7 -7
  196. package/dist/nuxt.d.cts +1 -1
  197. package/dist/nuxt.d.ts +1 -1
  198. package/dist/nuxt.js +5 -5
  199. package/dist/plugin-utils/{context-BoulfuGO.d.cts → context-BLMhhC0A.d.cts} +31 -0
  200. package/dist/plugin-utils/{context-BoulfuGO.d.ts → context-BLMhhC0A.d.ts} +31 -0
  201. package/dist/plugin-utils/context-helpers.d.cts +1 -1
  202. package/dist/plugin-utils/context-helpers.d.ts +1 -1
  203. package/dist/plugin-utils/enforce.d.cts +1 -1
  204. package/dist/plugin-utils/enforce.d.ts +1 -1
  205. package/dist/plugin-utils/extend.d.cts +1 -1
  206. package/dist/plugin-utils/extend.d.ts +1 -1
  207. package/dist/plugin-utils/get-config-path.d.cts +1 -1
  208. package/dist/plugin-utils/get-config-path.d.ts +1 -1
  209. package/dist/plugin-utils/helpers.d.cts +1 -1
  210. package/dist/plugin-utils/helpers.d.ts +1 -1
  211. package/dist/plugin-utils/index.d.cts +1 -1
  212. package/dist/plugin-utils/index.d.ts +1 -1
  213. package/dist/plugin-utils/merge.d.cts +1 -1
  214. package/dist/plugin-utils/merge.d.ts +1 -1
  215. package/dist/plugin-utils/paths.d.cts +1 -1
  216. package/dist/plugin-utils/paths.d.ts +1 -1
  217. package/dist/rolldown.cjs +6 -6
  218. package/dist/rolldown.d.cts +1 -1
  219. package/dist/rolldown.d.ts +1 -1
  220. package/dist/rolldown.js +3 -3
  221. package/dist/rollup.cjs +3 -3
  222. package/dist/rollup.d.cts +1 -1
  223. package/dist/rollup.d.ts +1 -1
  224. package/dist/rollup.js +2 -2
  225. package/dist/rspack.cjs +3 -3
  226. package/dist/rspack.d.cts +1 -1
  227. package/dist/rspack.d.ts +1 -1
  228. package/dist/rspack.js +2 -2
  229. package/dist/tsdown.cjs +4 -4
  230. package/dist/tsdown.js +3 -3
  231. package/dist/tsup.cjs +4 -4
  232. package/dist/tsup.js +3 -3
  233. package/dist/types/api.d.cts +2 -2
  234. package/dist/types/api.d.ts +2 -2
  235. package/dist/types/babel.d.cts +1 -1
  236. package/dist/types/babel.d.ts +1 -1
  237. package/dist/types/commands.d.cts +1 -1
  238. package/dist/types/commands.d.ts +1 -1
  239. package/dist/types/config.d.cts +1 -1
  240. package/dist/types/config.d.ts +1 -1
  241. package/dist/types/context.cjs +2 -2
  242. package/dist/types/context.d.cts +1 -1
  243. package/dist/types/context.d.ts +1 -1
  244. package/dist/types/context.js +1 -1
  245. package/dist/types/fs.cjs +7 -3
  246. package/dist/types/fs.d.cts +16 -1
  247. package/dist/types/fs.d.ts +16 -1
  248. package/dist/types/fs.js +1 -1
  249. package/dist/types/hooks.d.cts +1 -1
  250. package/dist/types/hooks.d.ts +1 -1
  251. package/dist/types/index.cjs +9 -5
  252. package/dist/types/index.d.cts +3 -3
  253. package/dist/types/index.d.ts +3 -3
  254. package/dist/types/index.js +2 -2
  255. package/dist/types/internal.d.cts +2 -2
  256. package/dist/types/internal.d.ts +2 -2
  257. package/dist/types/plugin.d.cts +1 -1
  258. package/dist/types/plugin.d.ts +1 -1
  259. package/dist/types/resolved.d.cts +1 -1
  260. package/dist/types/resolved.d.ts +1 -1
  261. package/dist/types/unplugin.d.cts +2 -2
  262. package/dist/types/unplugin.d.ts +2 -2
  263. package/dist/unloader.cjs +3 -3
  264. package/dist/unloader.d.cts +1 -1
  265. package/dist/unloader.d.ts +1 -1
  266. package/dist/unloader.js +2 -2
  267. package/dist/unplugin.cjs +5 -5
  268. package/dist/unplugin.d.cts +2 -2
  269. package/dist/unplugin.d.ts +2 -2
  270. package/dist/unplugin.js +3 -3
  271. package/dist/vite.cjs +6 -6
  272. package/dist/vite.d.cts +1 -1
  273. package/dist/vite.d.ts +1 -1
  274. package/dist/vite.js +3 -3
  275. package/dist/webpack.cjs +6 -6
  276. package/dist/webpack.d.cts +1 -1
  277. package/dist/webpack.d.ts +1 -1
  278. package/dist/webpack.js +3 -3
  279. package/package.json +2 -2
  280. package/dist/chunk-2AOMCPQX.cjs +0 -12
  281. package/dist/chunk-FFVBHH5L.js +0 -7
  282. package/dist/chunk-LCNL5IWM.cjs +0 -12
  283. package/dist/lib/chunk-5QMQ5G73.js.map +0 -1
  284. package/dist/lib/chunk-AQNUFK3L.cjs.map +0 -1
  285. package/dist/lib/chunk-BT6ROHLM.js.map +0 -1
  286. package/dist/lib/chunk-CTMPQSK7.js.map +0 -1
  287. package/dist/lib/chunk-QBE4SZN6.cjs.map +0 -1
  288. package/dist/lib/chunk-QOVSEBZF.js.map +0 -1
  289. package/dist/lib/chunk-VF3S2D2V.cjs.map +0 -1
  290. package/dist/lib/chunk-Y5KONJVR.cjs.map +0 -1
  291. package/dist/lib/chunk-YITP2ODI.cjs.map +0 -1
  292. package/dist/lib/chunk-YJEZASNU.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { MaybePromise } from '@stryke/types/base';
2
- import { b0 as SelectHooksOptions, cz as ResolvedConfig, b7 as APIContext, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bC as HookKeys, bb as PluginContext, ba as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './context-BTkUT4s7.js';
2
+ import { b0 as SelectHooksOptions, cz as ResolvedConfig, b7 as APIContext, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bC as HookKeys, bb as PluginContext, ba as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './context-BjkbWSEi.cjs';
3
3
 
4
4
  type CallHookOptions = SelectHooksOptions & (({
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { MaybePromise } from '@stryke/types/base';
2
- import { b0 as SelectHooksOptions, cz as ResolvedConfig, b7 as APIContext, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bC as HookKeys, bb as PluginContext, ba as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './context-AF63GCTq.cjs';
2
+ import { b0 as SelectHooksOptions, cz as ResolvedConfig, b7 as APIContext, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bC as HookKeys, bb as PluginContext, ba as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './context-D3mOE_yR.js';
3
3
 
4
4
  type CallHookOptions = SelectHooksOptions & (({
5
5
  /**
package/dist/api.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkNAC3BK64_cjs = require('./chunk-NAC3BK64.cjs');
3
+ var chunkBYE57MON_cjs = require('./chunk-BYE57MON.cjs');
4
4
  require('./chunk-ZCMOAOQN.cjs');
5
5
  require('./chunk-XOMY3USD.cjs');
6
6
  require('./chunk-Z6ARQDHR.cjs');
@@ -10,7 +10,7 @@ require('./chunk-PK6SKIKE.cjs');
10
10
 
11
11
  Object.defineProperty(exports, "PowerlinesAPI", {
12
12
  enumerable: true,
13
- get: function () { return chunkNAC3BK64_cjs.PowerlinesAPI; }
13
+ get: function () { return chunkBYE57MON_cjs.PowerlinesAPI; }
14
14
  });
15
15
  //# sourceMappingURL=api.cjs.map
16
16
  //# sourceMappingURL=api.cjs.map
package/dist/api.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as API, C as CallHookOptions } from './api-DhwCWSTm.cjs';
2
- import { cz as ResolvedConfig, b7 as APIContext, a4 as InitialUserConfig, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bC as HookKeys, bb as PluginContext, ba as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './context-AF63GCTq.cjs';
1
+ import { A as API, C as CallHookOptions } from './api-CKsoNfIi.cjs';
2
+ import { cz as ResolvedConfig, b7 as APIContext, a4 as InitialUserConfig, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bC as HookKeys, bb as PluginContext, ba as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './context-BjkbWSEi.cjs';
3
3
  import '@stryke/types/base';
4
4
  import '@stryke/env/get-env-paths';
5
5
  import '@stryke/http/fetch';
package/dist/api.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as API, C as CallHookOptions } from './api-BpNyqnfS.js';
2
- import { cz as ResolvedConfig, b7 as APIContext, a4 as InitialUserConfig, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bC as HookKeys, bb as PluginContext, ba as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './context-BTkUT4s7.js';
1
+ import { A as API, C as CallHookOptions } from './api-DF6OX-CP.js';
2
+ import { cz as ResolvedConfig, b7 as APIContext, a4 as InitialUserConfig, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bC as HookKeys, bb as PluginContext, ba as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './context-D3mOE_yR.js';
3
3
  import '@stryke/types/base';
4
4
  import '@stryke/env/get-env-paths';
5
5
  import '@stryke/http/fetch';
package/dist/api.js CHANGED
@@ -1,4 +1,4 @@
1
- export { PowerlinesAPI } from './chunk-HICL77ZC.js';
1
+ export { PowerlinesAPI } from './chunk-POZHPFH4.js';
2
2
  import './chunk-AJPO5EP7.js';
3
3
  import './chunk-U2RJRKLT.js';
4
4
  import './chunk-2MYPFASJ.js';
package/dist/astro.cjs CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkC4AK4CRR_cjs = require('./chunk-C4AK4CRR.cjs');
5
+ var chunkNCEMQXI7_cjs = require('./chunk-NCEMQXI7.cjs');
6
6
  require('./chunk-QHEKB7RW.cjs');
7
- require('./chunk-B6F32B3B.cjs');
8
- require('./chunk-NAC3BK64.cjs');
7
+ require('./chunk-CY2P2DU6.cjs');
8
+ require('./chunk-BYE57MON.cjs');
9
9
  require('./chunk-ZCMOAOQN.cjs');
10
10
  require('./chunk-XOMY3USD.cjs');
11
11
  require('./chunk-Z6ARQDHR.cjs');
@@ -15,7 +15,7 @@ var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
15
15
  var astro = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((config) => ({
16
16
  vite: {
17
17
  plugins: [
18
- chunkC4AK4CRR_cjs.vite_default(config)
18
+ chunkNCEMQXI7_cjs.vite_default(config)
19
19
  ]
20
20
  }
21
21
  }), "astro");
package/dist/astro.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { AstroUserConfig } from 'astro';
2
- import { cA as ViteResolvedConfig } from './context-AF63GCTq.cjs';
2
+ import { cA as ViteResolvedConfig } from './context-BjkbWSEi.cjs';
3
3
  import '@stryke/env/get-env-paths';
4
4
  import '@stryke/http/fetch';
5
5
  import '@stryke/types/base';
package/dist/astro.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { AstroUserConfig } from 'astro';
2
- import { cA as ViteResolvedConfig } from './context-BTkUT4s7.js';
2
+ import { cA as ViteResolvedConfig } from './context-D3mOE_yR.js';
3
3
  import '@stryke/env/get-env-paths';
4
4
  import '@stryke/http/fetch';
5
5
  import '@stryke/types/base';
package/dist/astro.js CHANGED
@@ -1,7 +1,7 @@
1
- import { vite_default } from './chunk-HJQ77IG5.js';
1
+ import { vite_default } from './chunk-PONG5D7V.js';
2
2
  import './chunk-YJWTNJQF.js';
3
- import './chunk-6JCE4KHT.js';
4
- import './chunk-HICL77ZC.js';
3
+ import './chunk-O2ASVIMW.js';
4
+ import './chunk-POZHPFH4.js';
5
5
  import './chunk-AJPO5EP7.js';
6
6
  import './chunk-U2RJRKLT.js';
7
7
  import './chunk-2MYPFASJ.js';
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkQHEKB7RW_cjs = require('./chunk-QHEKB7RW.cjs');
4
- var chunkB6F32B3B_cjs = require('./chunk-B6F32B3B.cjs');
4
+ var chunkCY2P2DU6_cjs = require('./chunk-CY2P2DU6.cjs');
5
5
  var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
6
6
  var isUndefined = require('@stryke/type-checks/is-undefined');
7
7
  var unplugin = require('unplugin');
8
8
 
9
- var esbuild = unplugin.createEsbuildPlugin(chunkB6F32B3B_cjs.createUnpluginFactory("esbuild", (api, plugin) => {
9
+ var esbuild = unplugin.createEsbuildPlugin(chunkCY2P2DU6_cjs.createUnpluginFactory("esbuild", (api, plugin) => {
10
10
  return {
11
11
  ...plugin,
12
12
  esbuild: {
@@ -32,5 +32,5 @@ var esbuild_default = esbuild;
32
32
 
33
33
  exports.esbuild = esbuild;
34
34
  exports.esbuild_default = esbuild_default;
35
- //# sourceMappingURL=chunk-FZIDEHX4.cjs.map
36
- //# sourceMappingURL=chunk-FZIDEHX4.cjs.map
35
+ //# sourceMappingURL=chunk-2XBYBJR5.cjs.map
36
+ //# sourceMappingURL=chunk-2XBYBJR5.cjs.map
@@ -3,8 +3,13 @@
3
3
  // src/types/fs.ts
4
4
  var __VFS_PATCH__ = "__VFS_PATCH__";
5
5
  var __VFS_REVERT__ = "__VFS_REVERT__";
6
+ var STORAGE_PRESETS = [
7
+ "fs",
8
+ "virtual"
9
+ ];
6
10
 
11
+ exports.STORAGE_PRESETS = STORAGE_PRESETS;
7
12
  exports.__VFS_PATCH__ = __VFS_PATCH__;
8
13
  exports.__VFS_REVERT__ = __VFS_REVERT__;
9
- //# sourceMappingURL=chunk-Q3EYAAGO.cjs.map
10
- //# sourceMappingURL=chunk-Q3EYAAGO.cjs.map
14
+ //# sourceMappingURL=chunk-A7AUGAHH.cjs.map
15
+ //# sourceMappingURL=chunk-A7AUGAHH.cjs.map
@@ -1263,6 +1263,13 @@ var BaseStorageAdapter = class {
1263
1263
  */
1264
1264
  options;
1265
1265
  /**
1266
+ * The storage preset for the adapter.
1267
+ *
1268
+ * @remarks
1269
+ * This can be used as an alternate way to identify the type of storage being used.
1270
+ */
1271
+ preset = null;
1272
+ /**
1266
1273
  * Constructor for the BaseStorageAdapter.
1267
1274
  *
1268
1275
  * @param options - Configuration options for the storage adapter.
@@ -1453,6 +1460,13 @@ var FileSystemStorageAdapter = class extends BaseStorageAdapter {
1453
1460
  */
1454
1461
  name = "file-system";
1455
1462
  /**
1463
+ * The storage preset for the adapter.
1464
+ *
1465
+ * @remarks
1466
+ * This can be used as an alternate way to identify the type of storage being used.
1467
+ */
1468
+ preset = "fs";
1469
+ /**
1456
1470
  * Constructor for the FileSystemStorageAdapter.
1457
1471
  *
1458
1472
  * @param options - Configuration options for the storage adapter.
@@ -1612,6 +1626,13 @@ var VirtualStorageAdapter = class extends BaseStorageAdapter {
1612
1626
  */
1613
1627
  name = "virtual";
1614
1628
  /**
1629
+ * The storage preset for the adapter.
1630
+ *
1631
+ * @remarks
1632
+ * This can be used as an alternate way to identify the type of storage being used.
1633
+ */
1634
+ preset = "virtual";
1635
+ /**
1615
1636
  * In-memory data storage.
1616
1637
  */
1617
1638
  data = /* @__PURE__ */ new Map();
@@ -1760,10 +1781,21 @@ var VirtualFileSystem = class _VirtualFileSystem {
1760
1781
  /**
1761
1782
  * Gets the storage adapter and relative key for a given key.
1762
1783
  *
1784
+ * @remarks
1785
+ * The `key` can be either a path or a storage adapter name.
1786
+ *
1763
1787
  * @param key - The key to get the storage adapter for.
1764
1788
  * @returns The storage adapter and relative key for the given key.
1765
1789
  */
1766
1790
  #getStorage(key) {
1791
+ const found = Object.entries(this.#storage).find(([, adapter]) => adapter.name === key || adapter.preset && adapter.preset.toLowerCase() === key?.toLowerCase());
1792
+ if (found) {
1793
+ return {
1794
+ base: found[0],
1795
+ relativeKey: "",
1796
+ adapter: found[1]
1797
+ };
1798
+ }
1767
1799
  const path = this.resolveSync(this.#normalizePath(key)) || key;
1768
1800
  for (const base of Object.keys(this.#storage).filter(Boolean).sort().reverse()) {
1769
1801
  if (isParentPath.isParentPath(path, base)) {
@@ -2311,7 +2343,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
2311
2343
  });
2312
2344
  }
2313
2345
  }
2314
- const { relativeKey, adapter } = this.#getStorage(path);
2346
+ const { relativeKey, adapter } = this.#getStorage(options.storage || path);
2315
2347
  this.#log(types.LogLevelLabel.TRACE, `Writing ${this.#normalizePath(relativeKey)} to ${adapter.name === "virtual" ? "the virtual file system" : adapter.name === "file-system" ? "the local file system" : adapter.name} (size: ${prettyBytes.prettyBytes(new buffer$1.Blob(toArray.toArray(code)).size)})`);
2316
2348
  const id = options?.meta?.id || this.#normalizeId(relativeKey);
2317
2349
  this.#metadata[id] = {
@@ -2331,7 +2363,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
2331
2363
  * @param options - Optional parameters for writing the file.
2332
2364
  */
2333
2365
  writeSync(path, data = "", options = {}) {
2334
- const { relativeKey, adapter } = this.#getStorage(path);
2366
+ const { relativeKey, adapter } = this.#getStorage(options.storage || path);
2335
2367
  this.#log(types.LogLevelLabel.TRACE, `Writing ${this.#normalizePath(relativeKey)} file to ${adapter.name === "virtual" ? "the virtual file system" : adapter.name === "file-system" ? "the local file system" : adapter.name} (size: ${prettyBytes.prettyBytes(new buffer$1.Blob(toArray.toArray(data)).size)})`);
2336
2368
  const id = options?.meta?.id || this.#normalizeId(relativeKey);
2337
2369
  this.#metadata[id] = {
@@ -3230,6 +3262,36 @@ var PowerlinesContext = class _PowerlinesContext {
3230
3262
  }));
3231
3263
  }
3232
3264
  /**
3265
+ * Synchronously resolves a entry virtual file and writes it to the VFS if it does not already exist
3266
+ *
3267
+ * @param code - The source code of the entry file
3268
+ * @param path - A path to write the entry file to
3269
+ * @param options - Optional write file options
3270
+ */
3271
+ emitEntrySync(code, path, options = {}) {
3272
+ const entryPath = isType.isAbsolute(path) ? path : append.appendPath(path, this.entryPath);
3273
+ this.entry ??= [];
3274
+ this.entry.push({
3275
+ name: options?.name,
3276
+ file: entryPath,
3277
+ input: options?.input,
3278
+ output: options?.output
3279
+ });
3280
+ return this.fs.writeSync(entryPath, code, defu7__default.default(omit.omit(options, [
3281
+ "name"
3282
+ ]), {
3283
+ meta: {
3284
+ type: "entry",
3285
+ properties: {
3286
+ name: options?.name,
3287
+ output: options?.output,
3288
+ "input.file": options?.input?.file,
3289
+ "input.name": options?.input?.name
3290
+ }
3291
+ }
3292
+ }));
3293
+ }
3294
+ /**
3233
3295
  * Resolves a builtin virtual file and writes it to the VFS if it does not already exist
3234
3296
  *
3235
3297
  * @param code - The source code of the builtin file
@@ -3245,6 +3307,21 @@ var PowerlinesContext = class _PowerlinesContext {
3245
3307
  }));
3246
3308
  }
3247
3309
  /**
3310
+ * Synchronously resolves a builtin virtual file and writes it to the VFS if it does not already exist
3311
+ *
3312
+ * @param code - The source code of the builtin file
3313
+ * @param id - The unique identifier of the builtin file
3314
+ * @param path - An optional path to write the builtin file to
3315
+ * @param options - Optional write file options
3316
+ */
3317
+ emitBuiltinSync(code, id, path, options) {
3318
+ return this.fs.writeSync(path ? isType.isAbsolute(path) ? path : join.joinPaths(this.builtinsPath, path) : append.appendPath(id, this.builtinsPath), code, defu7__default.default(options, {
3319
+ meta: {
3320
+ type: "builtin"
3321
+ }
3322
+ }));
3323
+ }
3324
+ /**
3248
3325
  * Update the context using a new user configuration options
3249
3326
  *
3250
3327
  * @param userConfig - The new user configuration options.
@@ -4737,5 +4814,5 @@ exports.PowerlinesAPI = PowerlinesAPI;
4737
4814
  exports._capnpFileId = _capnpFileId;
4738
4815
  exports.createLog = createLog;
4739
4816
  exports.extendLog = extendLog;
4740
- //# sourceMappingURL=chunk-NAC3BK64.cjs.map
4741
- //# sourceMappingURL=chunk-NAC3BK64.cjs.map
4817
+ //# sourceMappingURL=chunk-BYE57MON.cjs.map
4818
+ //# sourceMappingURL=chunk-BYE57MON.cjs.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkNAC3BK64_cjs = require('./chunk-NAC3BK64.cjs');
3
+ var chunkBYE57MON_cjs = require('./chunk-BYE57MON.cjs');
4
4
  var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
5
5
  var types = require('@storm-software/config-tools/types');
6
6
  var getWorkspaceRoot = require('@stryke/fs/get-workspace-root');
@@ -27,7 +27,7 @@ chunkPK6SKIKE_cjs.__name(getString, "getString");
27
27
  // src/lib/unplugin/factory.ts
28
28
  function createUnpluginFactory(variant, decorate) {
29
29
  return (config, meta) => {
30
- const log = chunkNAC3BK64_cjs.createLog("unplugin", config);
30
+ const log = chunkBYE57MON_cjs.createLog("unplugin", config);
31
31
  log(types.LogLevelLabel.DEBUG, "Initializing Unplugin");
32
32
  try {
33
33
  const userConfig = {
@@ -38,7 +38,7 @@ function createUnpluginFactory(variant, decorate) {
38
38
  let api;
39
39
  async function buildStart() {
40
40
  log(types.LogLevelLabel.DEBUG, "Powerlines build plugin starting...");
41
- api = await chunkNAC3BK64_cjs.PowerlinesAPI.from(getWorkspaceRoot.getWorkspaceRoot(process.cwd()), userConfig);
41
+ api = await chunkBYE57MON_cjs.PowerlinesAPI.from(getWorkspaceRoot.getWorkspaceRoot(process.cwd()), userConfig);
42
42
  unplugin.setParseImpl(api.context.parse);
43
43
  log(types.LogLevelLabel.DEBUG, "Preparing build artifacts for the Powerlines project...");
44
44
  await api.prepare({
@@ -132,5 +132,5 @@ chunkPK6SKIKE_cjs.__name(createUnpluginFactory, "createUnpluginFactory");
132
132
 
133
133
  exports.createUnpluginFactory = createUnpluginFactory;
134
134
  exports.getString = getString;
135
- //# sourceMappingURL=chunk-B6F32B3B.cjs.map
136
- //# sourceMappingURL=chunk-B6F32B3B.cjs.map
135
+ //# sourceMappingURL=chunk-CY2P2DU6.cjs.map
136
+ //# sourceMappingURL=chunk-CY2P2DU6.cjs.map
@@ -1,9 +1,9 @@
1
- import { createUnpluginFactory } from './chunk-6JCE4KHT.js';
1
+ import { createUnpluginFactory } from './chunk-O2ASVIMW.js';
2
2
  import { createWebpackPlugin } from 'unplugin';
3
3
 
4
4
  var webpack = createWebpackPlugin(createUnpluginFactory("webpack"));
5
5
  var webpack_default = webpack;
6
6
 
7
7
  export { webpack, webpack_default };
8
- //# sourceMappingURL=chunk-CXAAEG5H.js.map
9
- //# sourceMappingURL=chunk-CXAAEG5H.js.map
8
+ //# sourceMappingURL=chunk-GJ2LG4DD.js.map
9
+ //# sourceMappingURL=chunk-GJ2LG4DD.js.map
@@ -0,0 +1,11 @@
1
+ // src/types/fs.ts
2
+ var __VFS_PATCH__ = "__VFS_PATCH__";
3
+ var __VFS_REVERT__ = "__VFS_REVERT__";
4
+ var STORAGE_PRESETS = [
5
+ "fs",
6
+ "virtual"
7
+ ];
8
+
9
+ export { STORAGE_PRESETS, __VFS_PATCH__, __VFS_REVERT__ };
10
+ //# sourceMappingURL=chunk-KXRVVFNK.js.map
11
+ //# sourceMappingURL=chunk-KXRVVFNK.js.map
@@ -8,5 +8,5 @@ var LogLevel = {
8
8
  };
9
9
 
10
10
  export { LogLevel };
11
- //# sourceMappingURL=chunk-GIOACISS.js.map
12
- //# sourceMappingURL=chunk-GIOACISS.js.map
11
+ //# sourceMappingURL=chunk-L2PNHKJM.js.map
12
+ //# sourceMappingURL=chunk-L2PNHKJM.js.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkQHEKB7RW_cjs = require('./chunk-QHEKB7RW.cjs');
4
- var chunkB6F32B3B_cjs = require('./chunk-B6F32B3B.cjs');
4
+ var chunkCY2P2DU6_cjs = require('./chunk-CY2P2DU6.cjs');
5
5
  var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
6
6
  var environmentChecks = require('@stryke/env/environment-checks');
7
7
  var defu = require('defu');
@@ -97,7 +97,7 @@ function extractViteConfig(context) {
97
97
  chunkPK6SKIKE_cjs.__name(extractViteConfig, "extractViteConfig");
98
98
 
99
99
  // src/vite.ts
100
- var vite = unplugin.createVitePlugin(chunkB6F32B3B_cjs.createUnpluginFactory("vite", (api, plugin) => {
100
+ var vite = unplugin.createVitePlugin(chunkCY2P2DU6_cjs.createUnpluginFactory("vite", (api, plugin) => {
101
101
  return {
102
102
  ...plugin,
103
103
  vite: {
@@ -158,5 +158,5 @@ var vite_default = vite;
158
158
 
159
159
  exports.vite = vite;
160
160
  exports.vite_default = vite_default;
161
- //# sourceMappingURL=chunk-C4AK4CRR.cjs.map
162
- //# sourceMappingURL=chunk-C4AK4CRR.cjs.map
161
+ //# sourceMappingURL=chunk-NCEMQXI7.cjs.map
162
+ //# sourceMappingURL=chunk-NCEMQXI7.cjs.map
@@ -1,5 +1,5 @@
1
1
  import { extractESBuildConfig } from './chunk-YJWTNJQF.js';
2
- import { createUnpluginFactory } from './chunk-6JCE4KHT.js';
2
+ import { createUnpluginFactory } from './chunk-O2ASVIMW.js';
3
3
  import { __name } from './chunk-7QVYU63E.js';
4
4
  import { isUndefined } from '@stryke/type-checks/is-undefined';
5
5
  import { createEsbuildPlugin } from 'unplugin';
@@ -29,5 +29,5 @@ var esbuild = createEsbuildPlugin(createUnpluginFactory("esbuild", (api, plugin)
29
29
  var esbuild_default = esbuild;
30
30
 
31
31
  export { esbuild, esbuild_default };
32
- //# sourceMappingURL=chunk-UZQX7NJH.js.map
33
- //# sourceMappingURL=chunk-UZQX7NJH.js.map
32
+ //# sourceMappingURL=chunk-NIWBFUD2.js.map
33
+ //# sourceMappingURL=chunk-NIWBFUD2.js.map
@@ -1,4 +1,4 @@
1
- import { createLog, PowerlinesAPI } from './chunk-HICL77ZC.js';
1
+ import { createLog, PowerlinesAPI } from './chunk-POZHPFH4.js';
2
2
  import { __name } from './chunk-7QVYU63E.js';
3
3
  import { LogLevelLabel } from '@storm-software/config-tools/types';
4
4
  import { getWorkspaceRoot } from '@stryke/fs/get-workspace-root';
@@ -129,5 +129,5 @@ function createUnpluginFactory(variant, decorate) {
129
129
  __name(createUnpluginFactory, "createUnpluginFactory");
130
130
 
131
131
  export { createUnpluginFactory, getString };
132
- //# sourceMappingURL=chunk-6JCE4KHT.js.map
133
- //# sourceMappingURL=chunk-6JCE4KHT.js.map
132
+ //# sourceMappingURL=chunk-O2ASVIMW.js.map
133
+ //# sourceMappingURL=chunk-O2ASVIMW.js.map
@@ -10,5 +10,5 @@ var LogLevel = {
10
10
  };
11
11
 
12
12
  exports.LogLevel = LogLevel;
13
- //# sourceMappingURL=chunk-IJXEMXLH.cjs.map
14
- //# sourceMappingURL=chunk-IJXEMXLH.cjs.map
13
+ //# sourceMappingURL=chunk-PGF6BCY7.cjs.map
14
+ //# sourceMappingURL=chunk-PGF6BCY7.cjs.map
@@ -1,5 +1,5 @@
1
1
  import { extractESBuildConfig } from './chunk-YJWTNJQF.js';
2
- import { createUnpluginFactory } from './chunk-6JCE4KHT.js';
2
+ import { createUnpluginFactory } from './chunk-O2ASVIMW.js';
3
3
  import { __name } from './chunk-7QVYU63E.js';
4
4
  import { isDevelopmentMode, isTestMode } from '@stryke/env/environment-checks';
5
5
  import defu from 'defu';
@@ -151,5 +151,5 @@ var vite = createVitePlugin(createUnpluginFactory("vite", (api, plugin) => {
151
151
  var vite_default = vite;
152
152
 
153
153
  export { vite, vite_default };
154
- //# sourceMappingURL=chunk-HJQ77IG5.js.map
155
- //# sourceMappingURL=chunk-HJQ77IG5.js.map
154
+ //# sourceMappingURL=chunk-PONG5D7V.js.map
155
+ //# sourceMappingURL=chunk-PONG5D7V.js.map
@@ -1234,6 +1234,13 @@ var BaseStorageAdapter = class {
1234
1234
  */
1235
1235
  options;
1236
1236
  /**
1237
+ * The storage preset for the adapter.
1238
+ *
1239
+ * @remarks
1240
+ * This can be used as an alternate way to identify the type of storage being used.
1241
+ */
1242
+ preset = null;
1243
+ /**
1237
1244
  * Constructor for the BaseStorageAdapter.
1238
1245
  *
1239
1246
  * @param options - Configuration options for the storage adapter.
@@ -1424,6 +1431,13 @@ var FileSystemStorageAdapter = class extends BaseStorageAdapter {
1424
1431
  */
1425
1432
  name = "file-system";
1426
1433
  /**
1434
+ * The storage preset for the adapter.
1435
+ *
1436
+ * @remarks
1437
+ * This can be used as an alternate way to identify the type of storage being used.
1438
+ */
1439
+ preset = "fs";
1440
+ /**
1427
1441
  * Constructor for the FileSystemStorageAdapter.
1428
1442
  *
1429
1443
  * @param options - Configuration options for the storage adapter.
@@ -1583,6 +1597,13 @@ var VirtualStorageAdapter = class extends BaseStorageAdapter {
1583
1597
  */
1584
1598
  name = "virtual";
1585
1599
  /**
1600
+ * The storage preset for the adapter.
1601
+ *
1602
+ * @remarks
1603
+ * This can be used as an alternate way to identify the type of storage being used.
1604
+ */
1605
+ preset = "virtual";
1606
+ /**
1586
1607
  * In-memory data storage.
1587
1608
  */
1588
1609
  data = /* @__PURE__ */ new Map();
@@ -1731,10 +1752,21 @@ var VirtualFileSystem = class _VirtualFileSystem {
1731
1752
  /**
1732
1753
  * Gets the storage adapter and relative key for a given key.
1733
1754
  *
1755
+ * @remarks
1756
+ * The `key` can be either a path or a storage adapter name.
1757
+ *
1734
1758
  * @param key - The key to get the storage adapter for.
1735
1759
  * @returns The storage adapter and relative key for the given key.
1736
1760
  */
1737
1761
  #getStorage(key) {
1762
+ const found = Object.entries(this.#storage).find(([, adapter]) => adapter.name === key || adapter.preset && adapter.preset.toLowerCase() === key?.toLowerCase());
1763
+ if (found) {
1764
+ return {
1765
+ base: found[0],
1766
+ relativeKey: "",
1767
+ adapter: found[1]
1768
+ };
1769
+ }
1738
1770
  const path = this.resolveSync(this.#normalizePath(key)) || key;
1739
1771
  for (const base of Object.keys(this.#storage).filter(Boolean).sort().reverse()) {
1740
1772
  if (isParentPath(path, base)) {
@@ -2282,7 +2314,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
2282
2314
  });
2283
2315
  }
2284
2316
  }
2285
- const { relativeKey, adapter } = this.#getStorage(path);
2317
+ const { relativeKey, adapter } = this.#getStorage(options.storage || path);
2286
2318
  this.#log(LogLevelLabel.TRACE, `Writing ${this.#normalizePath(relativeKey)} to ${adapter.name === "virtual" ? "the virtual file system" : adapter.name === "file-system" ? "the local file system" : adapter.name} (size: ${prettyBytes(new Blob(toArray(code)).size)})`);
2287
2319
  const id = options?.meta?.id || this.#normalizeId(relativeKey);
2288
2320
  this.#metadata[id] = {
@@ -2302,7 +2334,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
2302
2334
  * @param options - Optional parameters for writing the file.
2303
2335
  */
2304
2336
  writeSync(path, data = "", options = {}) {
2305
- const { relativeKey, adapter } = this.#getStorage(path);
2337
+ const { relativeKey, adapter } = this.#getStorage(options.storage || path);
2306
2338
  this.#log(LogLevelLabel.TRACE, `Writing ${this.#normalizePath(relativeKey)} file to ${adapter.name === "virtual" ? "the virtual file system" : adapter.name === "file-system" ? "the local file system" : adapter.name} (size: ${prettyBytes(new Blob(toArray(data)).size)})`);
2307
2339
  const id = options?.meta?.id || this.#normalizeId(relativeKey);
2308
2340
  this.#metadata[id] = {
@@ -3201,6 +3233,36 @@ var PowerlinesContext = class _PowerlinesContext {
3201
3233
  }));
3202
3234
  }
3203
3235
  /**
3236
+ * Synchronously resolves a entry virtual file and writes it to the VFS if it does not already exist
3237
+ *
3238
+ * @param code - The source code of the entry file
3239
+ * @param path - A path to write the entry file to
3240
+ * @param options - Optional write file options
3241
+ */
3242
+ emitEntrySync(code, path, options = {}) {
3243
+ const entryPath = isAbsolute(path) ? path : appendPath(path, this.entryPath);
3244
+ this.entry ??= [];
3245
+ this.entry.push({
3246
+ name: options?.name,
3247
+ file: entryPath,
3248
+ input: options?.input,
3249
+ output: options?.output
3250
+ });
3251
+ return this.fs.writeSync(entryPath, code, defu7(omit(options, [
3252
+ "name"
3253
+ ]), {
3254
+ meta: {
3255
+ type: "entry",
3256
+ properties: {
3257
+ name: options?.name,
3258
+ output: options?.output,
3259
+ "input.file": options?.input?.file,
3260
+ "input.name": options?.input?.name
3261
+ }
3262
+ }
3263
+ }));
3264
+ }
3265
+ /**
3204
3266
  * Resolves a builtin virtual file and writes it to the VFS if it does not already exist
3205
3267
  *
3206
3268
  * @param code - The source code of the builtin file
@@ -3216,6 +3278,21 @@ var PowerlinesContext = class _PowerlinesContext {
3216
3278
  }));
3217
3279
  }
3218
3280
  /**
3281
+ * Synchronously resolves a builtin virtual file and writes it to the VFS if it does not already exist
3282
+ *
3283
+ * @param code - The source code of the builtin file
3284
+ * @param id - The unique identifier of the builtin file
3285
+ * @param path - An optional path to write the builtin file to
3286
+ * @param options - Optional write file options
3287
+ */
3288
+ emitBuiltinSync(code, id, path, options) {
3289
+ return this.fs.writeSync(path ? isAbsolute(path) ? path : joinPaths(this.builtinsPath, path) : appendPath(id, this.builtinsPath), code, defu7(options, {
3290
+ meta: {
3291
+ type: "builtin"
3292
+ }
3293
+ }));
3294
+ }
3295
+ /**
3219
3296
  * Update the context using a new user configuration options
3220
3297
  *
3221
3298
  * @param userConfig - The new user configuration options.
@@ -4700,5 +4777,5 @@ Note: Please ensure the plugin package's default export is a class that extends
4700
4777
  };
4701
4778
 
4702
4779
  export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId, createLog, extendLog };
4703
- //# sourceMappingURL=chunk-HICL77ZC.js.map
4704
- //# sourceMappingURL=chunk-HICL77ZC.js.map
4780
+ //# sourceMappingURL=chunk-POZHPFH4.js.map
4781
+ //# sourceMappingURL=chunk-POZHPFH4.js.map
@@ -1,9 +1,9 @@
1
- import { createUnpluginFactory } from './chunk-6JCE4KHT.js';
1
+ import { createUnpluginFactory } from './chunk-O2ASVIMW.js';
2
2
  import { createRolldownPlugin } from 'unplugin';
3
3
 
4
4
  var rolldown = createRolldownPlugin(createUnpluginFactory("rolldown"));
5
5
  var rolldown_default = rolldown;
6
6
 
7
7
  export { rolldown, rolldown_default };
8
- //# sourceMappingURL=chunk-FGJPJGGC.js.map
9
- //# sourceMappingURL=chunk-FGJPJGGC.js.map
8
+ //# sourceMappingURL=chunk-V3433RRZ.js.map
9
+ //# sourceMappingURL=chunk-V3433RRZ.js.map
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunkCY2P2DU6_cjs = require('./chunk-CY2P2DU6.cjs');
4
+ var unplugin = require('unplugin');
5
+
6
+ var webpack = unplugin.createWebpackPlugin(chunkCY2P2DU6_cjs.createUnpluginFactory("webpack"));
7
+ var webpack_default = webpack;
8
+
9
+ exports.webpack = webpack;
10
+ exports.webpack_default = webpack_default;
11
+ //# sourceMappingURL=chunk-WGXJ6LPR.cjs.map
12
+ //# sourceMappingURL=chunk-WGXJ6LPR.cjs.map
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunkCY2P2DU6_cjs = require('./chunk-CY2P2DU6.cjs');
4
+ var unplugin = require('unplugin');
5
+
6
+ var rolldown = unplugin.createRolldownPlugin(chunkCY2P2DU6_cjs.createUnpluginFactory("rolldown"));
7
+ var rolldown_default = rolldown;
8
+
9
+ exports.rolldown = rolldown;
10
+ exports.rolldown_default = rolldown_default;
11
+ //# sourceMappingURL=chunk-ZDOLHPJF.cjs.map
12
+ //# sourceMappingURL=chunk-ZDOLHPJF.cjs.map