powerlines 0.36.21 → 0.36.23

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-DpWSpwpF.d.ts} +1 -1
  2. package/dist/{api-DhwCWSTm.d.cts → api-N_vxh61N.d.cts} +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-4YZZZ76B.cjs +12 -0
  12. package/dist/{chunk-HJQ77IG5.js → chunk-A42QONGV.js} +3 -3
  13. package/dist/{chunk-Q3EYAAGO.cjs → chunk-A7AUGAHH.cjs} +7 -2
  14. package/dist/{chunk-FGJPJGGC.js → chunk-DIXXAXEC.js} +3 -3
  15. package/dist/chunk-DIYWNVH6.cjs +12 -0
  16. package/dist/{chunk-GIOACISS.js → chunk-EXY3RCJH.js} +2 -2
  17. package/dist/{chunk-UZQX7NJH.js → chunk-G6FXWWCK.js} +3 -3
  18. package/dist/chunk-KXRVVFNK.js +11 -0
  19. package/dist/{chunk-CXAAEG5H.js → chunk-LSRYGX7V.js} +3 -3
  20. package/dist/{chunk-HICL77ZC.js → chunk-MP6EXEZ3.js} +121 -6
  21. package/dist/{chunk-C4AK4CRR.cjs → chunk-MYNL7MRH.cjs} +4 -4
  22. package/dist/{chunk-6JCE4KHT.js → chunk-PZ5LJOMU.js} +3 -3
  23. package/dist/{chunk-NAC3BK64.cjs → chunk-Q2IEO3ZW.cjs} +121 -6
  24. package/dist/{chunk-FZIDEHX4.cjs → chunk-SAVBNMWQ.cjs} +4 -4
  25. package/dist/{chunk-IJXEMXLH.cjs → chunk-TP4FRF4H.cjs} +2 -2
  26. package/dist/{chunk-B6F32B3B.cjs → chunk-ZBDGZ7QG.cjs} +5 -5
  27. package/dist/{context-AF63GCTq.d.cts → context-bJmSqotS.d.cts} +46 -4
  28. package/dist/{context-BTkUT4s7.d.ts → context-vT1NL0QB.d.ts} +46 -4
  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-BpxWBxyN.d.ts} +1 -1
  42. package/dist/lib/{api-B8z7HzBo.d.cts → api-DuKKNbVT.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-QBE4SZN6.cjs → chunk-FO5AJ2PR.cjs} +11 -4
  66. package/dist/lib/chunk-FO5AJ2PR.cjs.map +1 -0
  67. package/dist/lib/{chunk-VF3S2D2V.cjs → chunk-HE2IFXW4.cjs} +91 -8
  68. package/dist/lib/chunk-HE2IFXW4.cjs.map +1 -0
  69. package/dist/lib/{chunk-5QMQ5G73.js → chunk-I3GWGYDB.js} +10 -3
  70. package/dist/lib/chunk-I3GWGYDB.js.map +1 -0
  71. package/dist/lib/{chunk-YITP2ODI.cjs → chunk-I4ZNMVU2.cjs} +22 -11
  72. package/dist/lib/chunk-I4ZNMVU2.cjs.map +1 -0
  73. package/dist/lib/{chunk-BZFQYIWK.cjs → chunk-IJ5YZSJO.cjs} +14 -14
  74. package/dist/lib/{chunk-BZFQYIWK.cjs.map → chunk-IJ5YZSJO.cjs.map} +1 -1
  75. package/dist/lib/{chunk-YJEZASNU.js → chunk-NE26SC53.js} +10 -3
  76. package/dist/lib/chunk-NE26SC53.js.map +1 -0
  77. package/dist/lib/{chunk-CTMPQSK7.js → chunk-QHKZQZJG.js} +9 -2
  78. package/dist/lib/chunk-QHKZQZJG.js.map +1 -0
  79. package/dist/lib/{chunk-AQNUFK3L.cjs → chunk-RI3JLIUH.cjs} +11 -4
  80. package/dist/lib/chunk-RI3JLIUH.cjs.map +1 -0
  81. package/dist/lib/{chunk-WWWGFMAA.js → chunk-RZ4LXAZQ.js} +4 -4
  82. package/dist/lib/{chunk-WWWGFMAA.js.map → chunk-RZ4LXAZQ.js.map} +1 -1
  83. package/dist/lib/{chunk-67XMKJXQ.js → chunk-TGIY7Q6N.js} +4 -4
  84. package/dist/lib/{chunk-67XMKJXQ.js.map → chunk-TGIY7Q6N.js.map} +1 -1
  85. package/dist/lib/{chunk-QOVSEBZF.js → chunk-UNJET22R.js} +89 -6
  86. package/dist/lib/chunk-UNJET22R.js.map +1 -0
  87. package/dist/lib/{chunk-BT6ROHLM.js → chunk-UOKSPMLS.js} +17 -6
  88. package/dist/lib/chunk-UOKSPMLS.js.map +1 -0
  89. package/dist/lib/{chunk-WQNUM4K3.js → chunk-WF65LEKW.js} +3 -3
  90. package/dist/lib/{chunk-WQNUM4K3.js.map → chunk-WF65LEKW.js.map} +1 -1
  91. package/dist/lib/{chunk-HZ2RLNLV.cjs → chunk-Z64F7URT.cjs} +6 -6
  92. package/dist/lib/{chunk-HZ2RLNLV.cjs.map → chunk-Z64F7URT.cjs.map} +1 -1
  93. package/dist/lib/{chunk-3P36ZLXD.cjs → chunk-ZBC4D6BA.cjs} +16 -16
  94. package/dist/lib/{chunk-3P36ZLXD.cjs.map → chunk-ZBC4D6BA.cjs.map} +1 -1
  95. package/dist/lib/{config-Ds6GSd34.d.ts → config-B-3g4vlp.d.ts} +45 -4
  96. package/dist/lib/{config-BbtAp2KJ.d.cts → config-BaPuSNy_.d.cts} +45 -4
  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 +38 -5
  105. package/dist/lib/contexts/context.d.ts +38 -5
  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-8-kuDx9k.d.ts} +2 -2
  150. package/dist/lib/{internal-DkOa3QW7.d.cts → internal-Dvez9bHr.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-ByfVrTII.d.ts → unplugin-CAhjFZ9E.d.ts} +2 -2
  172. package/dist/lib/{unplugin-Z1cKpW1R.d.cts → unplugin-Ckt_H0y0.d.cts} +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-DV64LM07.d.cts} +57 -2
  200. package/dist/plugin-utils/{context-BoulfuGO.d.ts → context-DV64LM07.d.ts} +57 -2
  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 +15 -15
  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
@@ -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] = {
@@ -3200,6 +3232,44 @@ var PowerlinesContext = class _PowerlinesContext {
3200
3232
  }));
3201
3233
  }
3202
3234
  /**
3235
+ * Resolves a file and writes it to the VFS if it does not already exist
3236
+ *
3237
+ * @param code - The source code of the file
3238
+ * @param path - The path to write the file to
3239
+ * @param options - Additional options for writing the file
3240
+ */
3241
+ async emit(code, path, options = {}) {
3242
+ if (isFunction.isFunction(this.emitFile) && options.emitWithBundler) {
3243
+ return this.emitFile({
3244
+ needsCodeReference: options.needsCodeReference,
3245
+ originalFileName: options.originalFileName,
3246
+ fileName: path,
3247
+ source: code,
3248
+ type: "asset"
3249
+ });
3250
+ }
3251
+ return this.fs.write(path, code, options);
3252
+ }
3253
+ /**
3254
+ * Synchronously resolves a file and writes it to the VFS if it does not already exist
3255
+ *
3256
+ * @param code - The source code of the file
3257
+ * @param path - The path to write the file to
3258
+ * @param options - Additional options for writing the file
3259
+ */
3260
+ emitSync(code, path, options = {}) {
3261
+ if (isFunction.isFunction(this.emitFile) && options.emitWithBundler) {
3262
+ return this.emitFile({
3263
+ needsCodeReference: options.needsCodeReference,
3264
+ originalFileName: options.originalFileName,
3265
+ fileName: path,
3266
+ source: code,
3267
+ type: "asset"
3268
+ });
3269
+ }
3270
+ return this.fs.writeSync(path, code, options);
3271
+ }
3272
+ /**
3203
3273
  * Resolves a entry virtual file and writes it to the VFS if it does not already exist
3204
3274
  *
3205
3275
  * @param code - The source code of the entry file
@@ -3215,7 +3285,7 @@ var PowerlinesContext = class _PowerlinesContext {
3215
3285
  input: options.input,
3216
3286
  output: options.output
3217
3287
  });
3218
- return this.fs.write(entryPath, code, defu7__default.default(omit.omit(options, [
3288
+ return this.emit(entryPath, code, defu7__default.default(omit.omit(options, [
3219
3289
  "name"
3220
3290
  ]), {
3221
3291
  meta: {
@@ -3230,6 +3300,36 @@ var PowerlinesContext = class _PowerlinesContext {
3230
3300
  }));
3231
3301
  }
3232
3302
  /**
3303
+ * Synchronously resolves a entry virtual file and writes it to the VFS if it does not already exist
3304
+ *
3305
+ * @param code - The source code of the entry file
3306
+ * @param path - A path to write the entry file to
3307
+ * @param options - Optional write file options
3308
+ */
3309
+ emitEntrySync(code, path, options = {}) {
3310
+ const entryPath = isType.isAbsolute(path) ? path : append.appendPath(path, this.entryPath);
3311
+ this.entry ??= [];
3312
+ this.entry.push({
3313
+ name: options?.name,
3314
+ file: entryPath,
3315
+ input: options?.input,
3316
+ output: options?.output
3317
+ });
3318
+ return this.emitSync(entryPath, code, defu7__default.default(omit.omit(options, [
3319
+ "name"
3320
+ ]), {
3321
+ meta: {
3322
+ type: "entry",
3323
+ properties: {
3324
+ name: options?.name,
3325
+ output: options?.output,
3326
+ "input.file": options?.input?.file,
3327
+ "input.name": options?.input?.name
3328
+ }
3329
+ }
3330
+ }));
3331
+ }
3332
+ /**
3233
3333
  * Resolves a builtin virtual file and writes it to the VFS if it does not already exist
3234
3334
  *
3235
3335
  * @param code - The source code of the builtin file
@@ -3238,7 +3338,22 @@ var PowerlinesContext = class _PowerlinesContext {
3238
3338
  * @param options - Optional write file options
3239
3339
  */
3240
3340
  async emitBuiltin(code, id, path, options = {}) {
3241
- return this.fs.write(path ? isType.isAbsolute(path) ? path : join.joinPaths(this.builtinsPath, path) : append.appendPath(id, this.builtinsPath), code, defu7__default.default(options, {
3341
+ return this.emit(path ? isType.isAbsolute(path) ? path : join.joinPaths(this.builtinsPath, path) : append.appendPath(id, this.builtinsPath), code, defu7__default.default(options, {
3342
+ meta: {
3343
+ type: "builtin"
3344
+ }
3345
+ }));
3346
+ }
3347
+ /**
3348
+ * Synchronously resolves a builtin virtual file and writes it to the VFS if it does not already exist
3349
+ *
3350
+ * @param code - The source code of the builtin file
3351
+ * @param id - The unique identifier of the builtin file
3352
+ * @param path - An optional path to write the builtin file to
3353
+ * @param options - Optional write file options
3354
+ */
3355
+ emitBuiltinSync(code, id, path, options = {}) {
3356
+ return this.emitSync(path ? isType.isAbsolute(path) ? path : join.joinPaths(this.builtinsPath, path) : append.appendPath(id, this.builtinsPath), code, defu7__default.default(options, {
3242
3357
  meta: {
3243
3358
  type: "builtin"
3244
3359
  }
@@ -4737,5 +4852,5 @@ exports.PowerlinesAPI = PowerlinesAPI;
4737
4852
  exports._capnpFileId = _capnpFileId;
4738
4853
  exports.createLog = createLog;
4739
4854
  exports.extendLog = extendLog;
4740
- //# sourceMappingURL=chunk-NAC3BK64.cjs.map
4741
- //# sourceMappingURL=chunk-NAC3BK64.cjs.map
4855
+ //# sourceMappingURL=chunk-Q2IEO3ZW.cjs.map
4856
+ //# sourceMappingURL=chunk-Q2IEO3ZW.cjs.map
@@ -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 chunkZBDGZ7QG_cjs = require('./chunk-ZBDGZ7QG.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(chunkZBDGZ7QG_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-SAVBNMWQ.cjs.map
36
+ //# sourceMappingURL=chunk-SAVBNMWQ.cjs.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-TP4FRF4H.cjs.map
14
+ //# sourceMappingURL=chunk-TP4FRF4H.cjs.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkNAC3BK64_cjs = require('./chunk-NAC3BK64.cjs');
3
+ var chunkQ2IEO3ZW_cjs = require('./chunk-Q2IEO3ZW.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 = chunkQ2IEO3ZW_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 chunkQ2IEO3ZW_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-ZBDGZ7QG.cjs.map
136
+ //# sourceMappingURL=chunk-ZBDGZ7QG.cjs.map
@@ -10,7 +10,7 @@ import { Range } from 'semver';
10
10
  import { Project } from 'ts-morph';
11
11
  import { RequestInfo, Response } from 'undici';
12
12
  import { Unimport } from 'unimport';
13
- import { TransformResult as TransformResult$1, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginMessage, UnpluginContext, UnpluginBuildContext } from 'unplugin';
13
+ import { TransformResult as TransformResult$1, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginMessage, UnpluginBuildContext, UnpluginContext } from 'unplugin';
14
14
  import { PluginPass, PluginObj, PluginItem, TransformOptions, transformAsync } from '@babel/core';
15
15
  import { Format } from '@storm-software/build-tools/types';
16
16
  import { LogLevelLabel } from '@storm-software/config-tools/types';
@@ -1100,10 +1100,18 @@ interface ParseOptions extends ParserOptions {
1100
1100
  */
1101
1101
  allowReturnOutsideFunction?: boolean;
1102
1102
  }
1103
+ interface EmitOptions extends WriteOptions {
1104
+ /**
1105
+ * If true, will emit the file using {@link UnpluginBuildContext.emitFile | the bundler's emit function}.
1106
+ */
1107
+ emitWithBundler?: boolean;
1108
+ needsCodeReference?: Parameters<UnpluginBuildContext["emitFile"]>[0]["needsCodeReference"];
1109
+ originalFileName?: Parameters<UnpluginBuildContext["emitFile"]>[0]["originalFileName"];
1110
+ }
1103
1111
  /**
1104
1112
  * Options for emitting entry virtual files
1105
1113
  */
1106
- type EmitEntryOptions = WriteOptions & Omit<ResolvedEntryTypeDefinition, "file">;
1114
+ type EmitEntryOptions = EmitOptions & Omit<ResolvedEntryTypeDefinition, "file">;
1107
1115
  /**
1108
1116
  * The unresolved Powerlines context.
1109
1117
  *
@@ -1314,6 +1322,22 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
1314
1322
  * The Powerlines builtin virtual files
1315
1323
  */
1316
1324
  getBuiltins: () => Promise<VirtualFile[]>;
1325
+ /**
1326
+ * Resolves a file and writes it to the VFS if it does not already exist
1327
+ *
1328
+ * @param code - The source code of the file
1329
+ * @param path - The path to write the file to
1330
+ * @param options - Additional options for writing the file
1331
+ */
1332
+ emit: (code: string, path: string, options?: EmitOptions) => Promise<void>;
1333
+ /**
1334
+ * Synchronously resolves a file and writes it to the VFS if it does not already exist
1335
+ *
1336
+ * @param code - The source code of the file
1337
+ * @param path - The path to write the file to
1338
+ * @param options - Additional options for writing the file
1339
+ */
1340
+ emitSync: (code: string, path: string, options?: EmitOptions) => void;
1317
1341
  /**
1318
1342
  * Resolves a builtin virtual file and writes it to the VFS if it does not already exist
1319
1343
  *
@@ -1322,7 +1346,16 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
1322
1346
  * @param path - An optional path to write the builtin file to
1323
1347
  * @param options - Additional options for writing the builtin file
1324
1348
  */
1325
- emitBuiltin: (code: string, id: string, path?: string, options?: WriteOptions) => Promise<void>;
1349
+ emitBuiltin: (code: string, id: string, path?: string, options?: EmitOptions) => Promise<void>;
1350
+ /**
1351
+ * Synchronously resolves a builtin virtual file and writes it to the VFS if it does not already exist
1352
+ *
1353
+ * @param code - The source code of the builtin file
1354
+ * @param id - The unique identifier of the builtin file
1355
+ * @param path - An optional path to write the builtin file to
1356
+ * @param options - Additional options for writing the builtin file
1357
+ */
1358
+ emitBuiltinSync: (code: string, id: string, path?: string, options?: EmitOptions) => void;
1326
1359
  /**
1327
1360
  * Resolves a entry virtual file and writes it to the VFS if it does not already exist
1328
1361
  *
@@ -1331,6 +1364,14 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
1331
1364
  * @param options - Additional options for writing the entry file
1332
1365
  */
1333
1366
  emitEntry: (code: string, path: string, options?: EmitEntryOptions) => Promise<void>;
1367
+ /**
1368
+ * Synchronously resolves a entry virtual file and writes it to the VFS if it does not already exist
1369
+ *
1370
+ * @param code - The source code of the entry file
1371
+ * @param path - An optional path to write the entry file to
1372
+ * @param options - Additional options for writing the entry file
1373
+ */
1374
+ emitEntrySync: (code: string, path: string, options?: EmitEntryOptions) => void;
1334
1375
  /**
1335
1376
  * A function to update the context fields using a new user configuration options
1336
1377
  */
@@ -1497,6 +1538,7 @@ declare type __ΩSelectHooksOptions = any[];
1497
1538
  declare type __ΩInitContextOptions = any[];
1498
1539
  declare type __ΩFetchOptions = any[];
1499
1540
  declare type __ΩParseOptions = any[];
1541
+ declare type __ΩEmitOptions = any[];
1500
1542
  declare type __ΩEmitEntryOptions = any[];
1501
1543
  declare type __ΩUnresolvedContext = any[];
1502
1544
  declare type __ΩContext = any[];
@@ -1507,4 +1549,4 @@ declare type __ΩEnvironmentContext = any[];
1507
1549
  declare type __ΩPluginContext = any[];
1508
1550
  declare type __ΩBuildPluginContext = any[];
1509
1551
 
1510
- export { type UnbuildUserConfig as $, type PartialPlugin as A, type BabelPluginPass as B, type CommandType as C, type DefaultImportDefinition as D, type PartialPluginFactory as E, type ProjectType as F, type BabelUserConfig as G, type DeployConfig as H, type ImportDefinition as I, type BaseConfig as J, type EnvironmentConfig as K, type LogFn as L, type CommonUserConfig as M, type NamedImportDefinition as N, type OutputConfig as O, type PluginFactory as P, type WebpackUserConfig as Q, type ResolvedBabelTransformPluginOptions as R, SUPPORTED_COMMANDS as S, type RspackUserConfig as T, type UserConfig as U, type RollupUserConfig as V, type WorkspaceConfig as W, type RolldownUserConfig as X, type ViteUserConfig as Y, type ESBuildUserConfig as Z, type __ΩNamedImportDefinition as _, type BabelTransformPluginFilter as a, type UnimportContext as a$, type TsupUserConfig as a0, type TsdownUserConfig as a1, type FarmUserConfig as a2, type InferUserConfig as a3, type InitialUserConfig as a4, type ParsedUserConfig as a5, type PowerlinesCommand as a6, type InlineConfig as a7, type NewInlineConfig as a8, type CleanInlineConfig as a9, type __ΩRolldownUserConfig as aA, type __ΩViteUserConfig as aB, type __ΩESBuildUserConfig as aC, type __ΩUnbuildUserConfig as aD, type __ΩTsupUserConfig as aE, type __ΩTsdownUserConfig as aF, type __ΩFarmUserConfig as aG, type __ΩInferUserConfig as aH, type __ΩInitialUserConfig as aI, type __ΩParsedUserConfig as aJ, type __ΩPowerlinesCommand as aK, type __ΩInlineConfig as aL, type __ΩNewInlineConfig as aM, type __ΩCleanInlineConfig as aN, type __ΩPrepareInlineConfig as aO, type __ΩBuildInlineConfig as aP, type __ΩLintInlineConfig as aQ, type __ΩDocsInlineConfig as aR, type __ΩDeployInlineConfig as aS, type __ΩConfigEnv as aT, type __ΩAnyUserConfig as aU, LogLevel as aV, type WorkerProcess as aW, type MetaInfo as aX, type Resolver as aY, type TransformResult as aZ, type SourceFile as a_, type PrepareInlineConfig as aa, type BuildInlineConfig as ab, type LintInlineConfig as ac, type DocsInlineConfig as ad, type DeployInlineConfig as ae, type ConfigEnv as af, type AnyUserConfig as ag, type __ΩLogFn as ah, type __ΩWorkspaceConfig as ai, type __ΩPluginFactory as aj, type __ΩPluginConfigTuple as ak, type __ΩPluginConfigObject as al, type __ΩPluginConfig as am, type __ΩPartialPlugin as an, type __ΩPartialPluginFactory as ao, type __ΩProjectType as ap, type __ΩBabelUserConfig as aq, type __ΩDeployConfig as ar, type __ΩOutputConfig as as, type __ΩBaseConfig as at, type __ΩEnvironmentConfig as au, type __ΩCommonUserConfig as av, type __ΩUserConfig as aw, type __ΩWebpackUserConfig as ax, type __ΩRspackUserConfig as ay, type __ΩRollupUserConfig as az, type BabelTransformPlugin as b, type TypesResult as b$, type SelectHooksOptions as b0, type InitContextOptions as b1, type FetchOptions as b2, type ParseOptions as b3, type EmitEntryOptions as b4, type UnresolvedContext as b5, type Context as b6, type APIContext as b7, type EnvironmentContextPlugin as b8, type SelectHooksResult as b9, type ExternalHookKeys as bA, type Hooks as bB, type HookKeys as bC, type BaseHooksListItem as bD, type BaseHooksList as bE, type ExternalHooksListItem as bF, type HooksList as bG, type InferHookHandler as bH, type InferHookReturnType as bI, type InferHookParameters as bJ, type InferHookThisType as bK, type __ΩBaseHooks as bL, type __ΩBaseHookKeys as bM, type __ΩExternalHooks as bN, type __ΩExternalHookKeys as bO, type __ΩHooks as bP, type __ΩHookKeys as bQ, type __ΩBaseHooksListItem as bR, type __ΩBaseHooksList as bS, type __ΩExternalHooksListItem as bT, type __ΩHooksList as bU, type __ΩInferHookHandler as bV, type __ΩInferHookReturnType as bW, type __ΩInferHookParameters as bX, type __ΩInferHookThisType as bY, type PluginHookObject as bZ, type PluginHook as b_, type EnvironmentContext as ba, type PluginContext as bb, type BuildPluginContext as bc, type __ΩLogLevel as bd, type __ΩWorkerProcess as be, type __ΩMetaInfo as bf, type __ΩResolver as bg, type __ΩTransformResult as bh, type __ΩSourceFile as bi, type __ΩUnimportContext as bj, type __ΩSelectHooksOptions as bk, type __ΩInitContextOptions as bl, type __ΩFetchOptions as bm, type __ΩParseOptions as bn, type __ΩEmitEntryOptions as bo, type __ΩUnresolvedContext as bp, type __ΩContext as bq, type __ΩAPIContext as br, type __ΩEnvironmentContextPlugin as bs, type __ΩSelectHooksResult as bt, type __ΩEnvironmentContext as bu, type __ΩPluginContext as bv, type __ΩBuildPluginContext as bw, type BaseHooks as bx, type BaseHookKeys as by, type ExternalHooks as bz, type BabelTransformPluginOptions as c, type __ΩInferResolvedConfig as c$, type ConfigResult as c0, type BasePluginHookFunctions as c1, type BuildPlugin as c2, type ExternalPluginHookFunctionsVariant as c3, type ExternalPluginHookFunctions as c4, type PluginHookFunctions as c5, type PluginHooks as c6, type PluginBuildPlugins as c7, type Plugin as c8, PLUGIN_NON_HOOK_FIELDS as c9, type ViteResolvedConfig as cA, type WebpackResolvedConfig as cB, type RspackResolvedConfig as cC, type ESBuildResolvedConfig as cD, type RollupResolvedConfig as cE, type RolldownResolvedConfig as cF, type TsupResolvedConfig as cG, type TsdownResolvedConfig as cH, type UnbuildResolvedConfig as cI, type FarmResolvedConfig as cJ, type InferResolvedConfig as cK, type __ΩResolvedEntryTypeDefinition as cL, type __ΩBabelResolvedConfig as cM, type __ΩEnvironmentResolvedConfig as cN, type __ΩResolvedAssetGlob as cO, type __ΩOutputResolvedConfig as cP, type __ΩResolvedConfig as cQ, type __ΩViteResolvedConfig as cR, type __ΩWebpackResolvedConfig as cS, type __ΩRspackResolvedConfig as cT, type __ΩESBuildResolvedConfig as cU, type __ΩRollupResolvedConfig as cV, type __ΩRolldownResolvedConfig as cW, type __ΩTsupResolvedConfig as cX, type __ΩTsdownResolvedConfig as cY, type __ΩUnbuildResolvedConfig as cZ, type __ΩFarmResolvedConfig as c_, type PluginNonHookFields as ca, KNOWN_HOOKS as cb, type KnownHooks as cc, KNOWN_PLUGIN_FIELDS as cd, type KnownPluginFields as ce, type __ΩPluginHookObject as cf, type __ΩPluginHook as cg, type __ΩTypesResult as ch, type __ΩConfigResult as ci, type __ΩBasePluginHookFunctions as cj, type __ΩBuildPlugin as ck, type __ΩExternalPluginHookFunctionsVariant as cl, type __ΩExternalPluginHookFunctions as cm, type __ΩPluginHookFunctions as cn, type __ΩPluginHooks as co, type __ΩPluginBuildPlugins as cp, type __ΩPlugin as cq, type __ΩPluginNonHookFields as cr, type __ΩKnownHooks as cs, type __ΩKnownPluginFields as ct, type ResolvedEntryTypeDefinition as cu, type BabelResolvedConfig as cv, type EnvironmentResolvedConfig as cw, type ResolvedAssetGlob as cx, type OutputResolvedConfig as cy, type ResolvedConfig as cz, type BabelTransformInput as d, type BabelTransformPluginBuilderParams as e, type BabelTransformPluginBuilder as f, type DeclareBabelTransformPluginReturn as g, type ImportSpecifier as h, type __ΩDefaultImportDefinition as i, type __ΩImportDefinition as j, type __ΩBabelPluginPass as k, type __ΩBabelTransformPluginFilter as l, type __ΩBabelTransformPlugin as m, type __ΩBabelTransformPluginOptions as n, type __ΩResolvedBabelTransformPluginOptions as o, type __ΩBabelTransformInput as p, type __ΩBabelTransformPluginBuilderParams as q, type __ΩBabelTransformPluginBuilder as r, type __ΩDeclareBabelTransformPluginReturn as s, type __ΩImportSpecifier as t, type Commands as u, type __ΩCommandType as v, type __ΩCommands as w, type PluginConfigTuple as x, type PluginConfigObject as y, type PluginConfig as z };
1552
+ export { type UnbuildUserConfig as $, type PartialPlugin as A, type BabelPluginPass as B, type CommandType as C, type DefaultImportDefinition as D, type PartialPluginFactory as E, type ProjectType as F, type BabelUserConfig as G, type DeployConfig as H, type ImportDefinition as I, type BaseConfig as J, type EnvironmentConfig as K, type LogFn as L, type CommonUserConfig as M, type NamedImportDefinition as N, type OutputConfig as O, type PluginFactory as P, type WebpackUserConfig as Q, type ResolvedBabelTransformPluginOptions as R, SUPPORTED_COMMANDS as S, type RspackUserConfig as T, type UserConfig as U, type RollupUserConfig as V, type WorkspaceConfig as W, type RolldownUserConfig as X, type ViteUserConfig as Y, type ESBuildUserConfig as Z, type __ΩNamedImportDefinition as _, type BabelTransformPluginFilter as a, type UnimportContext as a$, type TsupUserConfig as a0, type TsdownUserConfig as a1, type FarmUserConfig as a2, type InferUserConfig as a3, type InitialUserConfig as a4, type ParsedUserConfig as a5, type PowerlinesCommand as a6, type InlineConfig as a7, type NewInlineConfig as a8, type CleanInlineConfig as a9, type __ΩRolldownUserConfig as aA, type __ΩViteUserConfig as aB, type __ΩESBuildUserConfig as aC, type __ΩUnbuildUserConfig as aD, type __ΩTsupUserConfig as aE, type __ΩTsdownUserConfig as aF, type __ΩFarmUserConfig as aG, type __ΩInferUserConfig as aH, type __ΩInitialUserConfig as aI, type __ΩParsedUserConfig as aJ, type __ΩPowerlinesCommand as aK, type __ΩInlineConfig as aL, type __ΩNewInlineConfig as aM, type __ΩCleanInlineConfig as aN, type __ΩPrepareInlineConfig as aO, type __ΩBuildInlineConfig as aP, type __ΩLintInlineConfig as aQ, type __ΩDocsInlineConfig as aR, type __ΩDeployInlineConfig as aS, type __ΩConfigEnv as aT, type __ΩAnyUserConfig as aU, LogLevel as aV, type WorkerProcess as aW, type MetaInfo as aX, type Resolver as aY, type TransformResult as aZ, type SourceFile as a_, type PrepareInlineConfig as aa, type BuildInlineConfig as ab, type LintInlineConfig as ac, type DocsInlineConfig as ad, type DeployInlineConfig as ae, type ConfigEnv as af, type AnyUserConfig as ag, type __ΩLogFn as ah, type __ΩWorkspaceConfig as ai, type __ΩPluginFactory as aj, type __ΩPluginConfigTuple as ak, type __ΩPluginConfigObject as al, type __ΩPluginConfig as am, type __ΩPartialPlugin as an, type __ΩPartialPluginFactory as ao, type __ΩProjectType as ap, type __ΩBabelUserConfig as aq, type __ΩDeployConfig as ar, type __ΩOutputConfig as as, type __ΩBaseConfig as at, type __ΩEnvironmentConfig as au, type __ΩCommonUserConfig as av, type __ΩUserConfig as aw, type __ΩWebpackUserConfig as ax, type __ΩRspackUserConfig as ay, type __ΩRollupUserConfig as az, type BabelTransformPlugin as b, type PluginHookObject as b$, type SelectHooksOptions as b0, type InitContextOptions as b1, type FetchOptions as b2, type ParseOptions as b3, type EmitOptions as b4, type EmitEntryOptions as b5, type UnresolvedContext as b6, type Context as b7, type APIContext as b8, type EnvironmentContextPlugin as b9, type BaseHookKeys as bA, type ExternalHooks as bB, type ExternalHookKeys as bC, type Hooks as bD, type HookKeys as bE, type BaseHooksListItem as bF, type BaseHooksList as bG, type ExternalHooksListItem as bH, type HooksList as bI, type InferHookHandler as bJ, type InferHookReturnType as bK, type InferHookParameters as bL, type InferHookThisType as bM, type __ΩBaseHooks as bN, type __ΩBaseHookKeys as bO, type __ΩExternalHooks as bP, type __ΩExternalHookKeys as bQ, type __ΩHooks as bR, type __ΩHookKeys as bS, type __ΩBaseHooksListItem as bT, type __ΩBaseHooksList as bU, type __ΩExternalHooksListItem as bV, type __ΩHooksList as bW, type __ΩInferHookHandler as bX, type __ΩInferHookReturnType as bY, type __ΩInferHookParameters as bZ, type __ΩInferHookThisType as b_, type SelectHooksResult as ba, type EnvironmentContext as bb, type PluginContext as bc, type BuildPluginContext as bd, type __ΩLogLevel as be, type __ΩWorkerProcess as bf, type __ΩMetaInfo as bg, type __ΩResolver as bh, type __ΩTransformResult as bi, type __ΩSourceFile as bj, type __ΩUnimportContext as bk, type __ΩSelectHooksOptions as bl, type __ΩInitContextOptions as bm, type __ΩFetchOptions as bn, type __ΩParseOptions as bo, type __ΩEmitOptions as bp, type __ΩEmitEntryOptions as bq, type __ΩUnresolvedContext as br, type __ΩContext as bs, type __ΩAPIContext as bt, type __ΩEnvironmentContextPlugin as bu, type __ΩSelectHooksResult as bv, type __ΩEnvironmentContext as bw, type __ΩPluginContext as bx, type __ΩBuildPluginContext as by, type BaseHooks as bz, type BabelTransformPluginOptions as c, type __ΩUnbuildResolvedConfig as c$, type PluginHook as c0, type TypesResult as c1, type ConfigResult as c2, type BasePluginHookFunctions as c3, type BuildPlugin as c4, type ExternalPluginHookFunctionsVariant as c5, type ExternalPluginHookFunctions as c6, type PluginHookFunctions as c7, type PluginHooks as c8, type PluginBuildPlugins as c9, type OutputResolvedConfig as cA, type ResolvedConfig as cB, type ViteResolvedConfig as cC, type WebpackResolvedConfig as cD, type RspackResolvedConfig as cE, type ESBuildResolvedConfig as cF, type RollupResolvedConfig as cG, type RolldownResolvedConfig as cH, type TsupResolvedConfig as cI, type TsdownResolvedConfig as cJ, type UnbuildResolvedConfig as cK, type FarmResolvedConfig as cL, type InferResolvedConfig as cM, type __ΩResolvedEntryTypeDefinition as cN, type __ΩBabelResolvedConfig as cO, type __ΩEnvironmentResolvedConfig as cP, type __ΩResolvedAssetGlob as cQ, type __ΩOutputResolvedConfig as cR, type __ΩResolvedConfig as cS, type __ΩViteResolvedConfig as cT, type __ΩWebpackResolvedConfig as cU, type __ΩRspackResolvedConfig as cV, type __ΩESBuildResolvedConfig as cW, type __ΩRollupResolvedConfig as cX, type __ΩRolldownResolvedConfig as cY, type __ΩTsupResolvedConfig as cZ, type __ΩTsdownResolvedConfig as c_, type Plugin as ca, PLUGIN_NON_HOOK_FIELDS as cb, type PluginNonHookFields as cc, KNOWN_HOOKS as cd, type KnownHooks as ce, KNOWN_PLUGIN_FIELDS as cf, type KnownPluginFields as cg, type __ΩPluginHookObject as ch, type __ΩPluginHook as ci, type __ΩTypesResult as cj, type __ΩConfigResult as ck, type __ΩBasePluginHookFunctions as cl, type __ΩBuildPlugin as cm, type __ΩExternalPluginHookFunctionsVariant as cn, type __ΩExternalPluginHookFunctions as co, type __ΩPluginHookFunctions as cp, type __ΩPluginHooks as cq, type __ΩPluginBuildPlugins as cr, type __ΩPlugin as cs, type __ΩPluginNonHookFields as ct, type __ΩKnownHooks as cu, type __ΩKnownPluginFields as cv, type ResolvedEntryTypeDefinition as cw, type BabelResolvedConfig as cx, type EnvironmentResolvedConfig as cy, type ResolvedAssetGlob as cz, type BabelTransformInput as d, type __ΩFarmResolvedConfig as d0, type __ΩInferResolvedConfig as d1, type BabelTransformPluginBuilderParams as e, type BabelTransformPluginBuilder as f, type DeclareBabelTransformPluginReturn as g, type ImportSpecifier as h, type __ΩDefaultImportDefinition as i, type __ΩImportDefinition as j, type __ΩBabelPluginPass as k, type __ΩBabelTransformPluginFilter as l, type __ΩBabelTransformPlugin as m, type __ΩBabelTransformPluginOptions as n, type __ΩResolvedBabelTransformPluginOptions as o, type __ΩBabelTransformInput as p, type __ΩBabelTransformPluginBuilderParams as q, type __ΩBabelTransformPluginBuilder as r, type __ΩDeclareBabelTransformPluginReturn as s, type __ΩImportSpecifier as t, type Commands as u, type __ΩCommandType as v, type __ΩCommands as w, type PluginConfigTuple as x, type PluginConfigObject as y, type PluginConfig as z };
@@ -10,7 +10,7 @@ import { Range } from 'semver';
10
10
  import { Project } from 'ts-morph';
11
11
  import { RequestInfo, Response } from 'undici';
12
12
  import { Unimport } from 'unimport';
13
- import { TransformResult as TransformResult$1, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginMessage, UnpluginContext, UnpluginBuildContext } from 'unplugin';
13
+ import { TransformResult as TransformResult$1, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginMessage, UnpluginBuildContext, UnpluginContext } from 'unplugin';
14
14
  import { PluginPass, PluginObj, PluginItem, TransformOptions, transformAsync } from '@babel/core';
15
15
  import { Format } from '@storm-software/build-tools/types';
16
16
  import { LogLevelLabel } from '@storm-software/config-tools/types';
@@ -1100,10 +1100,18 @@ interface ParseOptions extends ParserOptions {
1100
1100
  */
1101
1101
  allowReturnOutsideFunction?: boolean;
1102
1102
  }
1103
+ interface EmitOptions extends WriteOptions {
1104
+ /**
1105
+ * If true, will emit the file using {@link UnpluginBuildContext.emitFile | the bundler's emit function}.
1106
+ */
1107
+ emitWithBundler?: boolean;
1108
+ needsCodeReference?: Parameters<UnpluginBuildContext["emitFile"]>[0]["needsCodeReference"];
1109
+ originalFileName?: Parameters<UnpluginBuildContext["emitFile"]>[0]["originalFileName"];
1110
+ }
1103
1111
  /**
1104
1112
  * Options for emitting entry virtual files
1105
1113
  */
1106
- type EmitEntryOptions = WriteOptions & Omit<ResolvedEntryTypeDefinition, "file">;
1114
+ type EmitEntryOptions = EmitOptions & Omit<ResolvedEntryTypeDefinition, "file">;
1107
1115
  /**
1108
1116
  * The unresolved Powerlines context.
1109
1117
  *
@@ -1314,6 +1322,22 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
1314
1322
  * The Powerlines builtin virtual files
1315
1323
  */
1316
1324
  getBuiltins: () => Promise<VirtualFile[]>;
1325
+ /**
1326
+ * Resolves a file and writes it to the VFS if it does not already exist
1327
+ *
1328
+ * @param code - The source code of the file
1329
+ * @param path - The path to write the file to
1330
+ * @param options - Additional options for writing the file
1331
+ */
1332
+ emit: (code: string, path: string, options?: EmitOptions) => Promise<void>;
1333
+ /**
1334
+ * Synchronously resolves a file and writes it to the VFS if it does not already exist
1335
+ *
1336
+ * @param code - The source code of the file
1337
+ * @param path - The path to write the file to
1338
+ * @param options - Additional options for writing the file
1339
+ */
1340
+ emitSync: (code: string, path: string, options?: EmitOptions) => void;
1317
1341
  /**
1318
1342
  * Resolves a builtin virtual file and writes it to the VFS if it does not already exist
1319
1343
  *
@@ -1322,7 +1346,16 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
1322
1346
  * @param path - An optional path to write the builtin file to
1323
1347
  * @param options - Additional options for writing the builtin file
1324
1348
  */
1325
- emitBuiltin: (code: string, id: string, path?: string, options?: WriteOptions) => Promise<void>;
1349
+ emitBuiltin: (code: string, id: string, path?: string, options?: EmitOptions) => Promise<void>;
1350
+ /**
1351
+ * Synchronously resolves a builtin virtual file and writes it to the VFS if it does not already exist
1352
+ *
1353
+ * @param code - The source code of the builtin file
1354
+ * @param id - The unique identifier of the builtin file
1355
+ * @param path - An optional path to write the builtin file to
1356
+ * @param options - Additional options for writing the builtin file
1357
+ */
1358
+ emitBuiltinSync: (code: string, id: string, path?: string, options?: EmitOptions) => void;
1326
1359
  /**
1327
1360
  * Resolves a entry virtual file and writes it to the VFS if it does not already exist
1328
1361
  *
@@ -1331,6 +1364,14 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
1331
1364
  * @param options - Additional options for writing the entry file
1332
1365
  */
1333
1366
  emitEntry: (code: string, path: string, options?: EmitEntryOptions) => Promise<void>;
1367
+ /**
1368
+ * Synchronously resolves a entry virtual file and writes it to the VFS if it does not already exist
1369
+ *
1370
+ * @param code - The source code of the entry file
1371
+ * @param path - An optional path to write the entry file to
1372
+ * @param options - Additional options for writing the entry file
1373
+ */
1374
+ emitEntrySync: (code: string, path: string, options?: EmitEntryOptions) => void;
1334
1375
  /**
1335
1376
  * A function to update the context fields using a new user configuration options
1336
1377
  */
@@ -1497,6 +1538,7 @@ declare type __ΩSelectHooksOptions = any[];
1497
1538
  declare type __ΩInitContextOptions = any[];
1498
1539
  declare type __ΩFetchOptions = any[];
1499
1540
  declare type __ΩParseOptions = any[];
1541
+ declare type __ΩEmitOptions = any[];
1500
1542
  declare type __ΩEmitEntryOptions = any[];
1501
1543
  declare type __ΩUnresolvedContext = any[];
1502
1544
  declare type __ΩContext = any[];
@@ -1507,4 +1549,4 @@ declare type __ΩEnvironmentContext = any[];
1507
1549
  declare type __ΩPluginContext = any[];
1508
1550
  declare type __ΩBuildPluginContext = any[];
1509
1551
 
1510
- export { type UnbuildUserConfig as $, type PartialPlugin as A, type BabelPluginPass as B, type CommandType as C, type DefaultImportDefinition as D, type PartialPluginFactory as E, type ProjectType as F, type BabelUserConfig as G, type DeployConfig as H, type ImportDefinition as I, type BaseConfig as J, type EnvironmentConfig as K, type LogFn as L, type CommonUserConfig as M, type NamedImportDefinition as N, type OutputConfig as O, type PluginFactory as P, type WebpackUserConfig as Q, type ResolvedBabelTransformPluginOptions as R, SUPPORTED_COMMANDS as S, type RspackUserConfig as T, type UserConfig as U, type RollupUserConfig as V, type WorkspaceConfig as W, type RolldownUserConfig as X, type ViteUserConfig as Y, type ESBuildUserConfig as Z, type __ΩNamedImportDefinition as _, type BabelTransformPluginFilter as a, type UnimportContext as a$, type TsupUserConfig as a0, type TsdownUserConfig as a1, type FarmUserConfig as a2, type InferUserConfig as a3, type InitialUserConfig as a4, type ParsedUserConfig as a5, type PowerlinesCommand as a6, type InlineConfig as a7, type NewInlineConfig as a8, type CleanInlineConfig as a9, type __ΩRolldownUserConfig as aA, type __ΩViteUserConfig as aB, type __ΩESBuildUserConfig as aC, type __ΩUnbuildUserConfig as aD, type __ΩTsupUserConfig as aE, type __ΩTsdownUserConfig as aF, type __ΩFarmUserConfig as aG, type __ΩInferUserConfig as aH, type __ΩInitialUserConfig as aI, type __ΩParsedUserConfig as aJ, type __ΩPowerlinesCommand as aK, type __ΩInlineConfig as aL, type __ΩNewInlineConfig as aM, type __ΩCleanInlineConfig as aN, type __ΩPrepareInlineConfig as aO, type __ΩBuildInlineConfig as aP, type __ΩLintInlineConfig as aQ, type __ΩDocsInlineConfig as aR, type __ΩDeployInlineConfig as aS, type __ΩConfigEnv as aT, type __ΩAnyUserConfig as aU, LogLevel as aV, type WorkerProcess as aW, type MetaInfo as aX, type Resolver as aY, type TransformResult as aZ, type SourceFile as a_, type PrepareInlineConfig as aa, type BuildInlineConfig as ab, type LintInlineConfig as ac, type DocsInlineConfig as ad, type DeployInlineConfig as ae, type ConfigEnv as af, type AnyUserConfig as ag, type __ΩLogFn as ah, type __ΩWorkspaceConfig as ai, type __ΩPluginFactory as aj, type __ΩPluginConfigTuple as ak, type __ΩPluginConfigObject as al, type __ΩPluginConfig as am, type __ΩPartialPlugin as an, type __ΩPartialPluginFactory as ao, type __ΩProjectType as ap, type __ΩBabelUserConfig as aq, type __ΩDeployConfig as ar, type __ΩOutputConfig as as, type __ΩBaseConfig as at, type __ΩEnvironmentConfig as au, type __ΩCommonUserConfig as av, type __ΩUserConfig as aw, type __ΩWebpackUserConfig as ax, type __ΩRspackUserConfig as ay, type __ΩRollupUserConfig as az, type BabelTransformPlugin as b, type TypesResult as b$, type SelectHooksOptions as b0, type InitContextOptions as b1, type FetchOptions as b2, type ParseOptions as b3, type EmitEntryOptions as b4, type UnresolvedContext as b5, type Context as b6, type APIContext as b7, type EnvironmentContextPlugin as b8, type SelectHooksResult as b9, type ExternalHookKeys as bA, type Hooks as bB, type HookKeys as bC, type BaseHooksListItem as bD, type BaseHooksList as bE, type ExternalHooksListItem as bF, type HooksList as bG, type InferHookHandler as bH, type InferHookReturnType as bI, type InferHookParameters as bJ, type InferHookThisType as bK, type __ΩBaseHooks as bL, type __ΩBaseHookKeys as bM, type __ΩExternalHooks as bN, type __ΩExternalHookKeys as bO, type __ΩHooks as bP, type __ΩHookKeys as bQ, type __ΩBaseHooksListItem as bR, type __ΩBaseHooksList as bS, type __ΩExternalHooksListItem as bT, type __ΩHooksList as bU, type __ΩInferHookHandler as bV, type __ΩInferHookReturnType as bW, type __ΩInferHookParameters as bX, type __ΩInferHookThisType as bY, type PluginHookObject as bZ, type PluginHook as b_, type EnvironmentContext as ba, type PluginContext as bb, type BuildPluginContext as bc, type __ΩLogLevel as bd, type __ΩWorkerProcess as be, type __ΩMetaInfo as bf, type __ΩResolver as bg, type __ΩTransformResult as bh, type __ΩSourceFile as bi, type __ΩUnimportContext as bj, type __ΩSelectHooksOptions as bk, type __ΩInitContextOptions as bl, type __ΩFetchOptions as bm, type __ΩParseOptions as bn, type __ΩEmitEntryOptions as bo, type __ΩUnresolvedContext as bp, type __ΩContext as bq, type __ΩAPIContext as br, type __ΩEnvironmentContextPlugin as bs, type __ΩSelectHooksResult as bt, type __ΩEnvironmentContext as bu, type __ΩPluginContext as bv, type __ΩBuildPluginContext as bw, type BaseHooks as bx, type BaseHookKeys as by, type ExternalHooks as bz, type BabelTransformPluginOptions as c, type __ΩInferResolvedConfig as c$, type ConfigResult as c0, type BasePluginHookFunctions as c1, type BuildPlugin as c2, type ExternalPluginHookFunctionsVariant as c3, type ExternalPluginHookFunctions as c4, type PluginHookFunctions as c5, type PluginHooks as c6, type PluginBuildPlugins as c7, type Plugin as c8, PLUGIN_NON_HOOK_FIELDS as c9, type ViteResolvedConfig as cA, type WebpackResolvedConfig as cB, type RspackResolvedConfig as cC, type ESBuildResolvedConfig as cD, type RollupResolvedConfig as cE, type RolldownResolvedConfig as cF, type TsupResolvedConfig as cG, type TsdownResolvedConfig as cH, type UnbuildResolvedConfig as cI, type FarmResolvedConfig as cJ, type InferResolvedConfig as cK, type __ΩResolvedEntryTypeDefinition as cL, type __ΩBabelResolvedConfig as cM, type __ΩEnvironmentResolvedConfig as cN, type __ΩResolvedAssetGlob as cO, type __ΩOutputResolvedConfig as cP, type __ΩResolvedConfig as cQ, type __ΩViteResolvedConfig as cR, type __ΩWebpackResolvedConfig as cS, type __ΩRspackResolvedConfig as cT, type __ΩESBuildResolvedConfig as cU, type __ΩRollupResolvedConfig as cV, type __ΩRolldownResolvedConfig as cW, type __ΩTsupResolvedConfig as cX, type __ΩTsdownResolvedConfig as cY, type __ΩUnbuildResolvedConfig as cZ, type __ΩFarmResolvedConfig as c_, type PluginNonHookFields as ca, KNOWN_HOOKS as cb, type KnownHooks as cc, KNOWN_PLUGIN_FIELDS as cd, type KnownPluginFields as ce, type __ΩPluginHookObject as cf, type __ΩPluginHook as cg, type __ΩTypesResult as ch, type __ΩConfigResult as ci, type __ΩBasePluginHookFunctions as cj, type __ΩBuildPlugin as ck, type __ΩExternalPluginHookFunctionsVariant as cl, type __ΩExternalPluginHookFunctions as cm, type __ΩPluginHookFunctions as cn, type __ΩPluginHooks as co, type __ΩPluginBuildPlugins as cp, type __ΩPlugin as cq, type __ΩPluginNonHookFields as cr, type __ΩKnownHooks as cs, type __ΩKnownPluginFields as ct, type ResolvedEntryTypeDefinition as cu, type BabelResolvedConfig as cv, type EnvironmentResolvedConfig as cw, type ResolvedAssetGlob as cx, type OutputResolvedConfig as cy, type ResolvedConfig as cz, type BabelTransformInput as d, type BabelTransformPluginBuilderParams as e, type BabelTransformPluginBuilder as f, type DeclareBabelTransformPluginReturn as g, type ImportSpecifier as h, type __ΩDefaultImportDefinition as i, type __ΩImportDefinition as j, type __ΩBabelPluginPass as k, type __ΩBabelTransformPluginFilter as l, type __ΩBabelTransformPlugin as m, type __ΩBabelTransformPluginOptions as n, type __ΩResolvedBabelTransformPluginOptions as o, type __ΩBabelTransformInput as p, type __ΩBabelTransformPluginBuilderParams as q, type __ΩBabelTransformPluginBuilder as r, type __ΩDeclareBabelTransformPluginReturn as s, type __ΩImportSpecifier as t, type Commands as u, type __ΩCommandType as v, type __ΩCommands as w, type PluginConfigTuple as x, type PluginConfigObject as y, type PluginConfig as z };
1552
+ export { type UnbuildUserConfig as $, type PartialPlugin as A, type BabelPluginPass as B, type CommandType as C, type DefaultImportDefinition as D, type PartialPluginFactory as E, type ProjectType as F, type BabelUserConfig as G, type DeployConfig as H, type ImportDefinition as I, type BaseConfig as J, type EnvironmentConfig as K, type LogFn as L, type CommonUserConfig as M, type NamedImportDefinition as N, type OutputConfig as O, type PluginFactory as P, type WebpackUserConfig as Q, type ResolvedBabelTransformPluginOptions as R, SUPPORTED_COMMANDS as S, type RspackUserConfig as T, type UserConfig as U, type RollupUserConfig as V, type WorkspaceConfig as W, type RolldownUserConfig as X, type ViteUserConfig as Y, type ESBuildUserConfig as Z, type __ΩNamedImportDefinition as _, type BabelTransformPluginFilter as a, type UnimportContext as a$, type TsupUserConfig as a0, type TsdownUserConfig as a1, type FarmUserConfig as a2, type InferUserConfig as a3, type InitialUserConfig as a4, type ParsedUserConfig as a5, type PowerlinesCommand as a6, type InlineConfig as a7, type NewInlineConfig as a8, type CleanInlineConfig as a9, type __ΩRolldownUserConfig as aA, type __ΩViteUserConfig as aB, type __ΩESBuildUserConfig as aC, type __ΩUnbuildUserConfig as aD, type __ΩTsupUserConfig as aE, type __ΩTsdownUserConfig as aF, type __ΩFarmUserConfig as aG, type __ΩInferUserConfig as aH, type __ΩInitialUserConfig as aI, type __ΩParsedUserConfig as aJ, type __ΩPowerlinesCommand as aK, type __ΩInlineConfig as aL, type __ΩNewInlineConfig as aM, type __ΩCleanInlineConfig as aN, type __ΩPrepareInlineConfig as aO, type __ΩBuildInlineConfig as aP, type __ΩLintInlineConfig as aQ, type __ΩDocsInlineConfig as aR, type __ΩDeployInlineConfig as aS, type __ΩConfigEnv as aT, type __ΩAnyUserConfig as aU, LogLevel as aV, type WorkerProcess as aW, type MetaInfo as aX, type Resolver as aY, type TransformResult as aZ, type SourceFile as a_, type PrepareInlineConfig as aa, type BuildInlineConfig as ab, type LintInlineConfig as ac, type DocsInlineConfig as ad, type DeployInlineConfig as ae, type ConfigEnv as af, type AnyUserConfig as ag, type __ΩLogFn as ah, type __ΩWorkspaceConfig as ai, type __ΩPluginFactory as aj, type __ΩPluginConfigTuple as ak, type __ΩPluginConfigObject as al, type __ΩPluginConfig as am, type __ΩPartialPlugin as an, type __ΩPartialPluginFactory as ao, type __ΩProjectType as ap, type __ΩBabelUserConfig as aq, type __ΩDeployConfig as ar, type __ΩOutputConfig as as, type __ΩBaseConfig as at, type __ΩEnvironmentConfig as au, type __ΩCommonUserConfig as av, type __ΩUserConfig as aw, type __ΩWebpackUserConfig as ax, type __ΩRspackUserConfig as ay, type __ΩRollupUserConfig as az, type BabelTransformPlugin as b, type PluginHookObject as b$, type SelectHooksOptions as b0, type InitContextOptions as b1, type FetchOptions as b2, type ParseOptions as b3, type EmitOptions as b4, type EmitEntryOptions as b5, type UnresolvedContext as b6, type Context as b7, type APIContext as b8, type EnvironmentContextPlugin as b9, type BaseHookKeys as bA, type ExternalHooks as bB, type ExternalHookKeys as bC, type Hooks as bD, type HookKeys as bE, type BaseHooksListItem as bF, type BaseHooksList as bG, type ExternalHooksListItem as bH, type HooksList as bI, type InferHookHandler as bJ, type InferHookReturnType as bK, type InferHookParameters as bL, type InferHookThisType as bM, type __ΩBaseHooks as bN, type __ΩBaseHookKeys as bO, type __ΩExternalHooks as bP, type __ΩExternalHookKeys as bQ, type __ΩHooks as bR, type __ΩHookKeys as bS, type __ΩBaseHooksListItem as bT, type __ΩBaseHooksList as bU, type __ΩExternalHooksListItem as bV, type __ΩHooksList as bW, type __ΩInferHookHandler as bX, type __ΩInferHookReturnType as bY, type __ΩInferHookParameters as bZ, type __ΩInferHookThisType as b_, type SelectHooksResult as ba, type EnvironmentContext as bb, type PluginContext as bc, type BuildPluginContext as bd, type __ΩLogLevel as be, type __ΩWorkerProcess as bf, type __ΩMetaInfo as bg, type __ΩResolver as bh, type __ΩTransformResult as bi, type __ΩSourceFile as bj, type __ΩUnimportContext as bk, type __ΩSelectHooksOptions as bl, type __ΩInitContextOptions as bm, type __ΩFetchOptions as bn, type __ΩParseOptions as bo, type __ΩEmitOptions as bp, type __ΩEmitEntryOptions as bq, type __ΩUnresolvedContext as br, type __ΩContext as bs, type __ΩAPIContext as bt, type __ΩEnvironmentContextPlugin as bu, type __ΩSelectHooksResult as bv, type __ΩEnvironmentContext as bw, type __ΩPluginContext as bx, type __ΩBuildPluginContext as by, type BaseHooks as bz, type BabelTransformPluginOptions as c, type __ΩUnbuildResolvedConfig as c$, type PluginHook as c0, type TypesResult as c1, type ConfigResult as c2, type BasePluginHookFunctions as c3, type BuildPlugin as c4, type ExternalPluginHookFunctionsVariant as c5, type ExternalPluginHookFunctions as c6, type PluginHookFunctions as c7, type PluginHooks as c8, type PluginBuildPlugins as c9, type OutputResolvedConfig as cA, type ResolvedConfig as cB, type ViteResolvedConfig as cC, type WebpackResolvedConfig as cD, type RspackResolvedConfig as cE, type ESBuildResolvedConfig as cF, type RollupResolvedConfig as cG, type RolldownResolvedConfig as cH, type TsupResolvedConfig as cI, type TsdownResolvedConfig as cJ, type UnbuildResolvedConfig as cK, type FarmResolvedConfig as cL, type InferResolvedConfig as cM, type __ΩResolvedEntryTypeDefinition as cN, type __ΩBabelResolvedConfig as cO, type __ΩEnvironmentResolvedConfig as cP, type __ΩResolvedAssetGlob as cQ, type __ΩOutputResolvedConfig as cR, type __ΩResolvedConfig as cS, type __ΩViteResolvedConfig as cT, type __ΩWebpackResolvedConfig as cU, type __ΩRspackResolvedConfig as cV, type __ΩESBuildResolvedConfig as cW, type __ΩRollupResolvedConfig as cX, type __ΩRolldownResolvedConfig as cY, type __ΩTsupResolvedConfig as cZ, type __ΩTsdownResolvedConfig as c_, type Plugin as ca, PLUGIN_NON_HOOK_FIELDS as cb, type PluginNonHookFields as cc, KNOWN_HOOKS as cd, type KnownHooks as ce, KNOWN_PLUGIN_FIELDS as cf, type KnownPluginFields as cg, type __ΩPluginHookObject as ch, type __ΩPluginHook as ci, type __ΩTypesResult as cj, type __ΩConfigResult as ck, type __ΩBasePluginHookFunctions as cl, type __ΩBuildPlugin as cm, type __ΩExternalPluginHookFunctionsVariant as cn, type __ΩExternalPluginHookFunctions as co, type __ΩPluginHookFunctions as cp, type __ΩPluginHooks as cq, type __ΩPluginBuildPlugins as cr, type __ΩPlugin as cs, type __ΩPluginNonHookFields as ct, type __ΩKnownHooks as cu, type __ΩKnownPluginFields as cv, type ResolvedEntryTypeDefinition as cw, type BabelResolvedConfig as cx, type EnvironmentResolvedConfig as cy, type ResolvedAssetGlob as cz, type BabelTransformInput as d, type __ΩFarmResolvedConfig as d0, type __ΩInferResolvedConfig as d1, type BabelTransformPluginBuilderParams as e, type BabelTransformPluginBuilder as f, type DeclareBabelTransformPluginReturn as g, type ImportSpecifier as h, type __ΩDefaultImportDefinition as i, type __ΩImportDefinition as j, type __ΩBabelPluginPass as k, type __ΩBabelTransformPluginFilter as l, type __ΩBabelTransformPlugin as m, type __ΩBabelTransformPluginOptions as n, type __ΩResolvedBabelTransformPluginOptions as o, type __ΩBabelTransformInput as p, type __ΩBabelTransformPluginBuilderParams as q, type __ΩBabelTransformPluginBuilder as r, type __ΩDeclareBabelTransformPluginReturn as s, type __ΩImportSpecifier as t, type Commands as u, type __ΩCommandType as v, type __ΩCommands as w, type PluginConfigTuple as x, type PluginConfigObject as y, type PluginConfig as z };
package/dist/esbuild.cjs CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkFZIDEHX4_cjs = require('./chunk-FZIDEHX4.cjs');
5
+ var chunkSAVBNMWQ_cjs = require('./chunk-SAVBNMWQ.cjs');
6
6
  require('./chunk-QHEKB7RW.cjs');
7
- require('./chunk-B6F32B3B.cjs');
8
- require('./chunk-NAC3BK64.cjs');
7
+ require('./chunk-ZBDGZ7QG.cjs');
8
+ require('./chunk-Q2IEO3ZW.cjs');
9
9
  require('./chunk-ZCMOAOQN.cjs');
10
10
  require('./chunk-XOMY3USD.cjs');
11
11
  require('./chunk-Z6ARQDHR.cjs');
@@ -15,15 +15,15 @@ require('./chunk-PK6SKIKE.cjs');
15
15
 
16
16
  Object.defineProperty(exports, "default", {
17
17
  enumerable: true,
18
- get: function () { return chunkFZIDEHX4_cjs.esbuild_default; }
18
+ get: function () { return chunkSAVBNMWQ_cjs.esbuild_default; }
19
19
  });
20
20
  Object.defineProperty(exports, "esbuild", {
21
21
  enumerable: true,
22
- get: function () { return chunkFZIDEHX4_cjs.esbuild; }
22
+ get: function () { return chunkSAVBNMWQ_cjs.esbuild; }
23
23
  });
24
24
  Object.defineProperty(exports, "module.exports", {
25
25
  enumerable: true,
26
- get: function () { return chunkFZIDEHX4_cjs.esbuild; }
26
+ get: function () { return chunkSAVBNMWQ_cjs.esbuild; }
27
27
  });
28
28
  //# sourceMappingURL=esbuild.cjs.map
29
29
  //# sourceMappingURL=esbuild.cjs.map
@@ -1,5 +1,5 @@
1
1
  import * as _esbuild from 'esbuild';
2
- import { Z as ESBuildUserConfig } from './context-AF63GCTq.cjs';
2
+ import { Z as ESBuildUserConfig } from './context-bJmSqotS.cjs';
3
3
  import '@stryke/env/get-env-paths';
4
4
  import '@stryke/http/fetch';
5
5
  import '@stryke/types/base';
package/dist/esbuild.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _esbuild from 'esbuild';
2
- import { Z as ESBuildUserConfig } from './context-BTkUT4s7.js';
2
+ import { Z as ESBuildUserConfig } from './context-vT1NL0QB.js';
3
3
  import '@stryke/env/get-env-paths';
4
4
  import '@stryke/http/fetch';
5
5
  import '@stryke/types/base';
package/dist/esbuild.js CHANGED
@@ -1,7 +1,7 @@
1
- export { esbuild_default as default, esbuild, esbuild as "module.exports" } from './chunk-UZQX7NJH.js';
1
+ export { esbuild_default as default, esbuild, esbuild as "module.exports" } from './chunk-G6FXWWCK.js';
2
2
  import './chunk-YJWTNJQF.js';
3
- import './chunk-6JCE4KHT.js';
4
- import './chunk-HICL77ZC.js';
3
+ import './chunk-PZ5LJOMU.js';
4
+ import './chunk-MP6EXEZ3.js';
5
5
  import './chunk-AJPO5EP7.js';
6
6
  import './chunk-U2RJRKLT.js';
7
7
  import './chunk-2MYPFASJ.js';
package/dist/farm.cjs CHANGED
@@ -2,15 +2,15 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkB6F32B3B_cjs = require('./chunk-B6F32B3B.cjs');
6
- require('./chunk-NAC3BK64.cjs');
5
+ var chunkZBDGZ7QG_cjs = require('./chunk-ZBDGZ7QG.cjs');
6
+ require('./chunk-Q2IEO3ZW.cjs');
7
7
  require('./chunk-ZCMOAOQN.cjs');
8
8
  require('./chunk-XOMY3USD.cjs');
9
9
  require('./chunk-Z6ARQDHR.cjs');
10
10
  require('./chunk-PK6SKIKE.cjs');
11
11
  var unplugin = require('unplugin');
12
12
 
13
- var farm = unplugin.createFarmPlugin(chunkB6F32B3B_cjs.createUnpluginFactory("farm"));
13
+ var farm = unplugin.createFarmPlugin(chunkZBDGZ7QG_cjs.createUnpluginFactory("farm"));
14
14
  var farm_default = farm;
15
15
 
16
16
  exports.default = farm_default;
package/dist/farm.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _farmfe_core from '@farmfe/core';
2
- import { a2 as FarmUserConfig } from './context-AF63GCTq.cjs';
2
+ import { a2 as FarmUserConfig } from './context-bJmSqotS.cjs';
3
3
  import '@stryke/env/get-env-paths';
4
4
  import '@stryke/http/fetch';
5
5
  import '@stryke/types/base';
package/dist/farm.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _farmfe_core from '@farmfe/core';
2
- import { a2 as FarmUserConfig } from './context-BTkUT4s7.js';
2
+ import { a2 as FarmUserConfig } from './context-vT1NL0QB.js';
3
3
  import '@stryke/env/get-env-paths';
4
4
  import '@stryke/http/fetch';
5
5
  import '@stryke/types/base';
package/dist/farm.js CHANGED
@@ -1,5 +1,5 @@
1
- import { createUnpluginFactory } from './chunk-6JCE4KHT.js';
2
- import './chunk-HICL77ZC.js';
1
+ import { createUnpluginFactory } from './chunk-PZ5LJOMU.js';
2
+ import './chunk-MP6EXEZ3.js';
3
3
  import './chunk-AJPO5EP7.js';
4
4
  import './chunk-U2RJRKLT.js';
5
5
  import './chunk-2MYPFASJ.js';