powerlines 0.30.13 → 0.31.1

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 (251) hide show
  1. package/dist/{api-jxhfIQp9.d.cts → api-B0ptP6qb.d.cts} +1 -1
  2. package/dist/{api-CXv3AaZq.d.ts → api-T2Rpxoy_.d.ts} +1 -1
  3. package/dist/api.cjs +3 -3
  4. package/dist/api.d.cts +2 -2
  5. package/dist/api.d.ts +2 -2
  6. package/dist/api.js +2 -2
  7. package/dist/astro.cjs +5 -5
  8. package/dist/astro.d.cts +1 -1
  9. package/dist/astro.d.ts +1 -1
  10. package/dist/astro.js +4 -4
  11. package/dist/chunk-2TPZV3VK.cjs +12 -0
  12. package/dist/chunk-45YZCBHR.cjs +12 -0
  13. package/dist/{chunk-ZFMDBIE2.js → chunk-D5WIJFI4.js} +2 -2
  14. package/dist/{chunk-753CT77J.js → chunk-DZY3LNTY.js} +3 -3
  15. package/dist/{chunk-VLTSN4BC.js → chunk-EMIKBRCT.js} +61 -29
  16. package/dist/{chunk-LMASEANM.js → chunk-FJ5JKE4N.js} +18 -5
  17. package/dist/{chunk-YFKHICPO.cjs → chunk-GHDZ3BE6.cjs} +2 -2
  18. package/dist/{chunk-ZYU7E7JL.js → chunk-JGSCIWFQ.js} +2 -2
  19. package/dist/{chunk-6S6OZJYJ.js → chunk-NGRCYHUU.js} +3 -3
  20. package/dist/{chunk-XUT7OSUL.cjs → chunk-OENQ5VVB.cjs} +62 -30
  21. package/dist/{chunk-BLQAOMJB.js → chunk-RPBIX6JI.js} +3 -3
  22. package/dist/{chunk-R4HDRLOF.cjs → chunk-UDPMUFXM.cjs} +19 -6
  23. package/dist/{chunk-3YOLTBW7.cjs → chunk-VFXZVCGG.cjs} +2 -2
  24. package/dist/{chunk-4PIQOC7T.cjs → chunk-XTSKPL6I.cjs} +5 -5
  25. package/dist/{chunk-E2IMELHG.js → chunk-Z5MNSDM4.js} +3 -3
  26. package/dist/{chunk-73HMVW7B.cjs → chunk-ZLLAZ5LF.cjs} +4 -4
  27. package/dist/{context-Bzahbvre.d.cts → context-BGFgv6JB.d.cts} +19 -1
  28. package/dist/{context-DIXLOQWy.d.ts → context-Bv1Saa4e.d.ts} +19 -1
  29. package/dist/esbuild.cjs +7 -7
  30. package/dist/esbuild.d.cts +1 -1
  31. package/dist/esbuild.d.ts +1 -1
  32. package/dist/esbuild.js +4 -4
  33. package/dist/farm.cjs +4 -4
  34. package/dist/farm.d.cts +1 -1
  35. package/dist/farm.d.ts +1 -1
  36. package/dist/farm.js +3 -3
  37. package/dist/index.cjs +13 -13
  38. package/dist/index.d.cts +3 -3
  39. package/dist/index.d.ts +3 -3
  40. package/dist/index.js +4 -4
  41. package/dist/lib/{api-JesRJRuE.d.cts → api-Cpbei2p8.d.cts} +1 -1
  42. package/dist/lib/{api-D1XGInIf.d.ts → api-Xq9Nk4VC.d.ts} +1 -1
  43. package/dist/lib/build/esbuild.d.cts +1 -1
  44. package/dist/lib/build/esbuild.d.ts +1 -1
  45. package/dist/lib/build/index.cjs +3 -3
  46. package/dist/lib/build/index.d.cts +3 -3
  47. package/dist/lib/build/index.d.ts +3 -3
  48. package/dist/lib/build/index.js +1 -1
  49. package/dist/lib/build/rolldown.d.cts +1 -1
  50. package/dist/lib/build/rolldown.d.ts +1 -1
  51. package/dist/lib/build/rollup.d.cts +1 -1
  52. package/dist/lib/build/rollup.d.ts +1 -1
  53. package/dist/lib/build/rspack.d.cts +1 -1
  54. package/dist/lib/build/rspack.d.ts +1 -1
  55. package/dist/lib/build/tsdown.d.cts +1 -1
  56. package/dist/lib/build/tsdown.d.ts +1 -1
  57. package/dist/lib/build/tsup.d.cts +1 -1
  58. package/dist/lib/build/tsup.d.ts +1 -1
  59. package/dist/lib/build/unbuild.d.cts +3 -3
  60. package/dist/lib/build/unbuild.d.ts +3 -3
  61. package/dist/lib/build/vite.cjs +3 -3
  62. package/dist/lib/build/vite.d.cts +1 -1
  63. package/dist/lib/build/vite.d.ts +1 -1
  64. package/dist/lib/build/vite.js +1 -1
  65. package/dist/lib/build/webpack.d.cts +1 -1
  66. package/dist/lib/build/webpack.d.ts +1 -1
  67. package/dist/lib/{chunk-NRH2VGE4.js → chunk-72NPPPRF.js} +29 -4
  68. package/dist/lib/chunk-72NPPPRF.js.map +1 -0
  69. package/dist/lib/{chunk-YV2TNMIL.cjs → chunk-ACVINY5F.cjs} +30 -5
  70. package/dist/lib/chunk-ACVINY5F.cjs.map +1 -0
  71. package/dist/lib/{chunk-TMQFJ5FK.js → chunk-AEUGNAWZ.js} +35 -28
  72. package/dist/lib/chunk-AEUGNAWZ.js.map +1 -0
  73. package/dist/lib/{chunk-YFB6OGXJ.js → chunk-CRH3UFPJ.js} +17 -4
  74. package/dist/lib/chunk-CRH3UFPJ.js.map +1 -0
  75. package/dist/lib/{chunk-7OO4SKFN.cjs → chunk-DJR7QB4T.cjs} +17 -4
  76. package/dist/lib/chunk-DJR7QB4T.cjs.map +1 -0
  77. package/dist/lib/{chunk-DMQ7IY4L.js → chunk-FR2ZVFLT.js} +2 -2
  78. package/dist/lib/{chunk-DMQ7IY4L.js.map → chunk-FR2ZVFLT.js.map} +1 -1
  79. package/dist/lib/{chunk-VXSQ52OZ.cjs → chunk-O6E2NAHX.cjs} +36 -29
  80. package/dist/lib/chunk-O6E2NAHX.cjs.map +1 -0
  81. package/dist/lib/{chunk-OSLTVUMN.cjs → chunk-UHQU5ASL.cjs} +2 -2
  82. package/dist/lib/{chunk-OSLTVUMN.cjs.map → chunk-UHQU5ASL.cjs.map} +1 -1
  83. package/dist/lib/{config-jmSBo5Uf.d.ts → config-BR0ecb9N.d.ts} +32 -3
  84. package/dist/lib/{config-DQwfksQx.d.cts → config-CvJCttn8.d.cts} +32 -3
  85. package/dist/lib/config-file.d.cts +1 -1
  86. package/dist/lib/config-file.d.ts +1 -1
  87. package/dist/lib/contexts/api-context.cjs +3 -3
  88. package/dist/lib/contexts/api-context.d.cts +18 -3
  89. package/dist/lib/contexts/api-context.d.ts +18 -3
  90. package/dist/lib/contexts/api-context.js +2 -2
  91. package/dist/lib/contexts/context.d.cts +3 -3
  92. package/dist/lib/contexts/context.d.ts +3 -3
  93. package/dist/lib/contexts/environment-context.cjs +2 -2
  94. package/dist/lib/contexts/environment-context.d.cts +3 -3
  95. package/dist/lib/contexts/environment-context.d.ts +3 -3
  96. package/dist/lib/contexts/environment-context.js +1 -1
  97. package/dist/lib/contexts/index.cjs +4 -4
  98. package/dist/lib/contexts/index.d.cts +3 -3
  99. package/dist/lib/contexts/index.d.ts +3 -3
  100. package/dist/lib/contexts/index.js +2 -2
  101. package/dist/lib/contexts/plugin-context.d.cts +3 -3
  102. package/dist/lib/contexts/plugin-context.d.ts +3 -3
  103. package/dist/lib/entry.d.cts +1 -1
  104. package/dist/lib/entry.d.ts +1 -1
  105. package/dist/lib/fs/index.d.cts +1 -1
  106. package/dist/lib/fs/index.d.ts +1 -1
  107. package/dist/lib/fs/vfs.d.cts +1 -1
  108. package/dist/lib/fs/vfs.d.ts +1 -1
  109. package/dist/lib/index.cjs +6 -6
  110. package/dist/lib/index.d.cts +4 -4
  111. package/dist/lib/index.d.ts +4 -4
  112. package/dist/lib/index.js +3 -3
  113. package/dist/lib/{internal-BVDm0kBL.d.cts → internal-CgKAUH2G.d.cts} +2 -2
  114. package/dist/lib/{internal-BM4-dK4g.d.ts → internal-Dae64cVF.d.ts} +2 -2
  115. package/dist/lib/logger.d.cts +1 -1
  116. package/dist/lib/logger.d.ts +1 -1
  117. package/dist/lib/typescript/import-transformer.d.cts +1 -1
  118. package/dist/lib/typescript/import-transformer.d.ts +1 -1
  119. package/dist/lib/typescript/index.d.cts +1 -1
  120. package/dist/lib/typescript/index.d.ts +1 -1
  121. package/dist/lib/typescript/ts-morph.d.cts +1 -1
  122. package/dist/lib/typescript/ts-morph.d.ts +1 -1
  123. package/dist/lib/unplugin/factory.cjs +4 -4
  124. package/dist/lib/unplugin/factory.d.cts +3 -3
  125. package/dist/lib/unplugin/factory.d.ts +3 -3
  126. package/dist/lib/unplugin/factory.js +3 -3
  127. package/dist/lib/unplugin/helpers.d.cts +1 -1
  128. package/dist/lib/unplugin/helpers.d.ts +1 -1
  129. package/dist/lib/unplugin/index.cjs +4 -4
  130. package/dist/lib/unplugin/index.d.cts +3 -3
  131. package/dist/lib/unplugin/index.d.ts +3 -3
  132. package/dist/lib/unplugin/index.js +3 -3
  133. package/dist/lib/unplugin/plugin.d.cts +3 -3
  134. package/dist/lib/unplugin/plugin.d.ts +3 -3
  135. package/dist/lib/{unplugin-BZkVo2w3.d.cts → unplugin-DiXnp3FJ.d.cts} +2 -2
  136. package/dist/lib/{unplugin-DZeOgtvW.d.ts → unplugin-sk-4XDIu.d.ts} +2 -2
  137. package/dist/lib/utilities/bundle.d.cts +1 -1
  138. package/dist/lib/utilities/bundle.d.ts +1 -1
  139. package/dist/lib/utilities/cache.d.cts +1 -1
  140. package/dist/lib/utilities/cache.d.ts +1 -1
  141. package/dist/lib/utilities/file-header.d.cts +1 -1
  142. package/dist/lib/utilities/file-header.d.ts +1 -1
  143. package/dist/lib/utilities/index.d.cts +1 -1
  144. package/dist/lib/utilities/index.d.ts +1 -1
  145. package/dist/lib/utilities/meta.d.cts +1 -1
  146. package/dist/lib/utilities/meta.d.ts +1 -1
  147. package/dist/lib/utilities/resolve.d.cts +1 -1
  148. package/dist/lib/utilities/resolve.d.ts +1 -1
  149. package/dist/lib/utilities/source-file.d.cts +1 -1
  150. package/dist/lib/utilities/source-file.d.ts +1 -1
  151. package/dist/lib/utilities/source-map.d.cts +1 -1
  152. package/dist/lib/utilities/source-map.d.ts +1 -1
  153. package/dist/lib/utilities/worker.d.cts +1 -1
  154. package/dist/lib/utilities/worker.d.ts +1 -1
  155. package/dist/lib/utilities/write-file.d.cts +1 -1
  156. package/dist/lib/utilities/write-file.d.ts +1 -1
  157. package/dist/next.cjs +5 -5
  158. package/dist/next.js +4 -4
  159. package/dist/nuxt.cjs +8 -8
  160. package/dist/nuxt.d.cts +1 -1
  161. package/dist/nuxt.d.ts +1 -1
  162. package/dist/nuxt.js +6 -6
  163. package/dist/plugin-utils/{context-BusdtMHI.d.cts → context-BKItR0Gj.d.cts} +19 -1
  164. package/dist/plugin-utils/{context-BusdtMHI.d.ts → context-BKItR0Gj.d.ts} +19 -1
  165. package/dist/plugin-utils/context-helpers.d.cts +1 -1
  166. package/dist/plugin-utils/context-helpers.d.ts +1 -1
  167. package/dist/plugin-utils/enforce.d.cts +1 -1
  168. package/dist/plugin-utils/enforce.d.ts +1 -1
  169. package/dist/plugin-utils/extend.d.cts +1 -1
  170. package/dist/plugin-utils/extend.d.ts +1 -1
  171. package/dist/plugin-utils/get-config-path.d.cts +1 -1
  172. package/dist/plugin-utils/get-config-path.d.ts +1 -1
  173. package/dist/plugin-utils/helpers.d.cts +1 -1
  174. package/dist/plugin-utils/helpers.d.ts +1 -1
  175. package/dist/plugin-utils/index.d.cts +1 -1
  176. package/dist/plugin-utils/index.d.ts +1 -1
  177. package/dist/plugin-utils/merge.d.cts +1 -1
  178. package/dist/plugin-utils/merge.d.ts +1 -1
  179. package/dist/plugin-utils/paths.d.cts +1 -1
  180. package/dist/plugin-utils/paths.d.ts +1 -1
  181. package/dist/rolldown.cjs +7 -7
  182. package/dist/rolldown.d.cts +1 -1
  183. package/dist/rolldown.d.ts +1 -1
  184. package/dist/rolldown.js +4 -4
  185. package/dist/rollup.cjs +4 -4
  186. package/dist/rollup.d.cts +1 -1
  187. package/dist/rollup.d.ts +1 -1
  188. package/dist/rollup.js +3 -3
  189. package/dist/rspack.cjs +4 -4
  190. package/dist/rspack.d.cts +1 -1
  191. package/dist/rspack.d.ts +1 -1
  192. package/dist/rspack.js +3 -3
  193. package/dist/tsdown.cjs +5 -5
  194. package/dist/tsdown.js +4 -4
  195. package/dist/tsup.cjs +5 -5
  196. package/dist/tsup.js +4 -4
  197. package/dist/types/api.d.cts +2 -2
  198. package/dist/types/api.d.ts +2 -2
  199. package/dist/types/babel.d.cts +1 -1
  200. package/dist/types/babel.d.ts +1 -1
  201. package/dist/types/build.d.cts +13 -2
  202. package/dist/types/build.d.ts +13 -2
  203. package/dist/types/commands.d.cts +1 -1
  204. package/dist/types/commands.d.ts +1 -1
  205. package/dist/types/config.d.cts +1 -1
  206. package/dist/types/config.d.ts +1 -1
  207. package/dist/types/context.cjs +2 -2
  208. package/dist/types/context.d.cts +1 -1
  209. package/dist/types/context.d.ts +1 -1
  210. package/dist/types/context.js +1 -1
  211. package/dist/types/hooks.d.cts +1 -1
  212. package/dist/types/hooks.d.ts +1 -1
  213. package/dist/types/index.cjs +4 -4
  214. package/dist/types/index.d.cts +2 -2
  215. package/dist/types/index.d.ts +2 -2
  216. package/dist/types/index.js +2 -2
  217. package/dist/types/internal.d.cts +2 -2
  218. package/dist/types/internal.d.ts +2 -2
  219. package/dist/types/plugin.cjs +2 -2
  220. package/dist/types/plugin.d.cts +1 -1
  221. package/dist/types/plugin.d.ts +1 -1
  222. package/dist/types/plugin.js +1 -1
  223. package/dist/types/resolved.d.cts +1 -1
  224. package/dist/types/resolved.d.ts +1 -1
  225. package/dist/types/unplugin.d.cts +2 -2
  226. package/dist/types/unplugin.d.ts +2 -2
  227. package/dist/unloader.cjs +4 -4
  228. package/dist/unloader.d.cts +1 -1
  229. package/dist/unloader.d.ts +1 -1
  230. package/dist/unloader.js +3 -3
  231. package/dist/unplugin.cjs +6 -6
  232. package/dist/unplugin.d.cts +2 -2
  233. package/dist/unplugin.d.ts +2 -2
  234. package/dist/unplugin.js +4 -4
  235. package/dist/vite.cjs +7 -7
  236. package/dist/vite.d.cts +1 -1
  237. package/dist/vite.d.ts +1 -1
  238. package/dist/vite.js +4 -4
  239. package/dist/webpack.cjs +7 -7
  240. package/dist/webpack.d.cts +1 -1
  241. package/dist/webpack.d.ts +1 -1
  242. package/dist/webpack.js +4 -4
  243. package/package.json +13 -13
  244. package/dist/chunk-3QPWBUQF.cjs +0 -12
  245. package/dist/chunk-CA4T7HLA.cjs +0 -12
  246. package/dist/lib/chunk-7OO4SKFN.cjs.map +0 -1
  247. package/dist/lib/chunk-NRH2VGE4.js.map +0 -1
  248. package/dist/lib/chunk-TMQFJ5FK.js.map +0 -1
  249. package/dist/lib/chunk-VXSQ52OZ.cjs.map +0 -1
  250. package/dist/lib/chunk-YFB6OGXJ.js.map +0 -1
  251. package/dist/lib/chunk-YV2TNMIL.cjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { MaybePromise } from '@stryke/types/base';
2
- import { b0 as SelectHooksOptions, cr as ResolvedConfig, b6 as APIContext, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bA as HookKeys, ba as PluginContext, b9 as EnvironmentContext, bH as InferHookParameters, bG as InferHookReturnType } from './context-Bzahbvre.cjs';
2
+ import { b0 as SelectHooksOptions, cr as ResolvedConfig, b6 as APIContext, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bA as HookKeys, ba as PluginContext, b9 as EnvironmentContext, bH as InferHookParameters, bG as InferHookReturnType } from './context-BGFgv6JB.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, cr as ResolvedConfig, b6 as APIContext, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bA as HookKeys, ba as PluginContext, b9 as EnvironmentContext, bH as InferHookParameters, bG as InferHookReturnType } from './context-DIXLOQWy.js';
2
+ import { b0 as SelectHooksOptions, cr as ResolvedConfig, b6 as APIContext, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bA as HookKeys, ba as PluginContext, b9 as EnvironmentContext, bH as InferHookParameters, bG as InferHookReturnType } from './context-Bv1Saa4e.js';
3
3
 
4
4
  type CallHookOptions = SelectHooksOptions & (({
5
5
  /**
package/dist/api.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkXUT7OSUL_cjs = require('./chunk-XUT7OSUL.cjs');
4
- require('./chunk-3YOLTBW7.cjs');
3
+ var chunkOENQ5VVB_cjs = require('./chunk-OENQ5VVB.cjs');
4
+ require('./chunk-VFXZVCGG.cjs');
5
5
  require('./chunk-Z6ARQDHR.cjs');
6
6
  require('./chunk-PK6SKIKE.cjs');
7
7
 
@@ -9,7 +9,7 @@ require('./chunk-PK6SKIKE.cjs');
9
9
 
10
10
  Object.defineProperty(exports, "PowerlinesAPI", {
11
11
  enumerable: true,
12
- get: function () { return chunkXUT7OSUL_cjs.PowerlinesAPI; }
12
+ get: function () { return chunkOENQ5VVB_cjs.PowerlinesAPI; }
13
13
  });
14
14
  //# sourceMappingURL=api.cjs.map
15
15
  //# sourceMappingURL=api.cjs.map
package/dist/api.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as API, C as CallHookOptions } from './api-jxhfIQp9.cjs';
2
- import { cr as ResolvedConfig, b6 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, bA as HookKeys, ba as PluginContext, b9 as EnvironmentContext, bH as InferHookParameters, bG as InferHookReturnType } from './context-Bzahbvre.cjs';
1
+ import { A as API, C as CallHookOptions } from './api-B0ptP6qb.cjs';
2
+ import { cr as ResolvedConfig, b6 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, bA as HookKeys, ba as PluginContext, b9 as EnvironmentContext, bH as InferHookParameters, bG as InferHookReturnType } from './context-BGFgv6JB.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-CXv3AaZq.js';
2
- import { cr as ResolvedConfig, b6 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, bA as HookKeys, ba as PluginContext, b9 as EnvironmentContext, bH as InferHookParameters, bG as InferHookReturnType } from './context-DIXLOQWy.js';
1
+ import { A as API, C as CallHookOptions } from './api-T2Rpxoy_.js';
2
+ import { cr as ResolvedConfig, b6 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, bA as HookKeys, ba as PluginContext, b9 as EnvironmentContext, bH as InferHookParameters, bG as InferHookReturnType } from './context-Bv1Saa4e.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,5 +1,5 @@
1
- export { PowerlinesAPI } from './chunk-VLTSN4BC.js';
2
- import './chunk-ZYU7E7JL.js';
1
+ export { PowerlinesAPI } from './chunk-EMIKBRCT.js';
2
+ import './chunk-JGSCIWFQ.js';
3
3
  import './chunk-2MYPFASJ.js';
4
4
  import './chunk-7QVYU63E.js';
5
5
  //# sourceMappingURL=api.js.map
package/dist/astro.cjs CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkR4HDRLOF_cjs = require('./chunk-R4HDRLOF.cjs');
5
+ var chunkUDPMUFXM_cjs = require('./chunk-UDPMUFXM.cjs');
6
6
  require('./chunk-AATT73UY.cjs');
7
- require('./chunk-4PIQOC7T.cjs');
8
- require('./chunk-XUT7OSUL.cjs');
9
- require('./chunk-3YOLTBW7.cjs');
7
+ require('./chunk-XTSKPL6I.cjs');
8
+ require('./chunk-OENQ5VVB.cjs');
9
+ require('./chunk-VFXZVCGG.cjs');
10
10
  require('./chunk-Z6ARQDHR.cjs');
11
11
  var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
12
12
 
@@ -14,7 +14,7 @@ var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
14
14
  var astro = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((config) => ({
15
15
  vite: {
16
16
  plugins: [
17
- chunkR4HDRLOF_cjs.vite_default(config)
17
+ chunkUDPMUFXM_cjs.vite_default(config)
18
18
  ]
19
19
  }
20
20
  }), "astro");
package/dist/astro.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { AstroUserConfig } from 'astro';
2
- import { cs as ViteResolvedConfig } from './context-Bzahbvre.cjs';
2
+ import { cs as ViteResolvedConfig } from './context-BGFgv6JB.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 { cs as ViteResolvedConfig } from './context-DIXLOQWy.js';
2
+ import { cs as ViteResolvedConfig } from './context-Bv1Saa4e.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,8 +1,8 @@
1
- import { vite_default } from './chunk-LMASEANM.js';
1
+ import { vite_default } from './chunk-FJ5JKE4N.js';
2
2
  import './chunk-A7PVG2HH.js';
3
- import './chunk-BLQAOMJB.js';
4
- import './chunk-VLTSN4BC.js';
5
- import './chunk-ZYU7E7JL.js';
3
+ import './chunk-RPBIX6JI.js';
4
+ import './chunk-EMIKBRCT.js';
5
+ import './chunk-JGSCIWFQ.js';
6
6
  import './chunk-2MYPFASJ.js';
7
7
  import { __name } from './chunk-7QVYU63E.js';
8
8
 
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunkXTSKPL6I_cjs = require('./chunk-XTSKPL6I.cjs');
4
+ var unplugin = require('unplugin');
5
+
6
+ var webpack = unplugin.createWebpackPlugin(chunkXTSKPL6I_cjs.createUnpluginFactory("webpack"));
7
+ var webpack_default = webpack;
8
+
9
+ exports.webpack = webpack;
10
+ exports.webpack_default = webpack_default;
11
+ //# sourceMappingURL=chunk-2TPZV3VK.cjs.map
12
+ //# sourceMappingURL=chunk-2TPZV3VK.cjs.map
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunkXTSKPL6I_cjs = require('./chunk-XTSKPL6I.cjs');
4
+ var unplugin = require('unplugin');
5
+
6
+ var rolldown = unplugin.createRolldownPlugin(chunkXTSKPL6I_cjs.createUnpluginFactory("rolldown"));
7
+ var rolldown_default = rolldown;
8
+
9
+ exports.rolldown = rolldown;
10
+ exports.rolldown_default = rolldown_default;
11
+ //# sourceMappingURL=chunk-45YZCBHR.cjs.map
12
+ //# sourceMappingURL=chunk-45YZCBHR.cjs.map
@@ -8,5 +8,5 @@ var LogLevel = {
8
8
  };
9
9
 
10
10
  export { LogLevel };
11
- //# sourceMappingURL=chunk-ZFMDBIE2.js.map
12
- //# sourceMappingURL=chunk-ZFMDBIE2.js.map
11
+ //# sourceMappingURL=chunk-D5WIJFI4.js.map
12
+ //# sourceMappingURL=chunk-D5WIJFI4.js.map
@@ -1,9 +1,9 @@
1
- import { createUnpluginFactory } from './chunk-BLQAOMJB.js';
1
+ import { createUnpluginFactory } from './chunk-RPBIX6JI.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-753CT77J.js.map
9
- //# sourceMappingURL=chunk-753CT77J.js.map
8
+ //# sourceMappingURL=chunk-DZY3LNTY.js.map
9
+ //# sourceMappingURL=chunk-DZY3LNTY.js.map
@@ -1,4 +1,4 @@
1
- import { PLUGIN_NON_HOOK_FIELDS } from './chunk-ZYU7E7JL.js';
1
+ import { PLUGIN_NON_HOOK_FIELDS } from './chunk-JGSCIWFQ.js';
2
2
  import { SUPPORTED_COMMANDS } from './chunk-2MYPFASJ.js';
3
3
  import { __name } from './chunk-7QVYU63E.js';
4
4
  import { transformAsync } from '@babel/core';
@@ -677,7 +677,8 @@ async function resolveTsconfig(context) {
677
677
  }
678
678
  }
679
679
  __name(resolveTsconfig, "resolveTsconfig");
680
- var DEFAULT_ENVIRONMENT = "default";
680
+ var DEFAULT_ENVIRONMENT = "__DEFAULT__";
681
+ var GLOBAL_ENVIRONMENT = "__GLOBAL__";
681
682
  function createEnvironment(name, userConfig) {
682
683
  return defu7(userConfig.environments?.[name] ?? {}, {
683
684
  name,
@@ -3851,6 +3852,12 @@ var PowerlinesAPIContext = class _PowerlinesAPIContext extends PowerlinesContext
3851
3852
  }
3852
3853
  return environment;
3853
3854
  }
3855
+ /**
3856
+ * A safe version of `getEnvironment` that returns `undefined` if the environment is not found
3857
+ *
3858
+ * @param name - The name of the environment to retrieve.
3859
+ * @returns The requested environment context or `undefined` if not found.
3860
+ */
3854
3861
  async getEnvironmentSafe(name) {
3855
3862
  try {
3856
3863
  return await this.getEnvironment(name);
@@ -3858,6 +3865,24 @@ var PowerlinesAPIContext = class _PowerlinesAPIContext extends PowerlinesContext
3858
3865
  return void 0;
3859
3866
  }
3860
3867
  }
3868
+ /**
3869
+ * A function to merge all configured environments into a single context.
3870
+ *
3871
+ * @remarks
3872
+ * If only one environment is configured, that environment will be returned directly.
3873
+ *
3874
+ * @returns A promise that resolves to a merged/global environment context.
3875
+ */
3876
+ async toEnvironment() {
3877
+ let environment;
3878
+ if (Object.keys(this.environments).length > 1) {
3879
+ environment = await this.in(createEnvironment(GLOBAL_ENVIRONMENT, this.config.userConfig));
3880
+ this.log(LogLevelLabel.DEBUG, `Combined all ${Object.keys(this.environments).length} environments into a single global context.`);
3881
+ } else {
3882
+ environment = await this.getEnvironment();
3883
+ }
3884
+ return environment;
3885
+ }
3861
3886
  };
3862
3887
  function getBaseFileHeader(context) {
3863
3888
  return `
@@ -4233,32 +4258,13 @@ ${formatTypes(types)}
4233
4258
  }) {
4234
4259
  this.context.log(LogLevelLabel.INFO, "\u{1F4E6} Building the Powerlines project");
4235
4260
  await this.prepare(inlineConfig);
4236
- await this.#executeEnvironments(async (context) => {
4237
- await this.callHook("build", {
4238
- environment: context,
4239
- order: "pre"
4240
- });
4241
- await this.callHook("build", {
4242
- environment: context,
4243
- order: "normal"
4244
- });
4245
- if (context.config.output.buildPath !== context.config.output.outputPath) {
4246
- const sourcePath = appendPath(context.config.output.buildPath, context.workspaceConfig.workspaceRoot);
4247
- const destinationPath = joinPaths$1(appendPath(context.config.output.outputPath, context.workspaceConfig.workspaceRoot), "dist");
4248
- if (sourcePath !== destinationPath) {
4249
- context.log(LogLevelLabel.INFO, `Copying build output files from project's build directory (${context.config.output.buildPath}) to the workspace's output directory (${context.config.output.outputPath}).`);
4250
- await context.fs.copy(sourcePath, destinationPath);
4251
- }
4252
- }
4253
- await Promise.all(context.config.output.assets.map(async (asset) => {
4254
- context.log(LogLevelLabel.DEBUG, `Copying asset(s): ${chalk5.redBright(context.workspaceConfig.workspaceRoot === asset.input ? asset.glob : joinPaths$1(replacePath(asset.input, context.workspaceConfig.workspaceRoot), asset.glob))} -> ${chalk5.greenBright(joinPaths$1(replacePath(asset.output, context.workspaceConfig.workspaceRoot), asset.glob))} ${Array.isArray(asset.ignore) && asset.ignore.length > 0 ? ` (ignoring: ${asset.ignore.map((i) => chalk5.yellowBright(i)).join(", ")})` : ""}`);
4255
- await context.fs.copy(asset, asset.output);
4256
- }));
4257
- await this.callHook("build", {
4258
- environment: context,
4259
- order: "post"
4261
+ if (this.context.config.singleBuild) {
4262
+ await this.#handleBuild(await this.#context.toEnvironment());
4263
+ } else {
4264
+ await this.#executeEnvironments(async (context) => {
4265
+ await this.#handleBuild(context);
4260
4266
  });
4261
- });
4267
+ }
4262
4268
  this.context.log(LogLevelLabel.TRACE, "Powerlines build completed");
4263
4269
  }
4264
4270
  /**
@@ -4347,6 +4353,32 @@ ${formatTypes(types)}
4347
4353
  async [Symbol.asyncDispose]() {
4348
4354
  await this.finalize();
4349
4355
  }
4356
+ async #handleBuild(context) {
4357
+ await this.callHook("build", {
4358
+ environment: context,
4359
+ order: "pre"
4360
+ });
4361
+ await this.callHook("build", {
4362
+ environment: context,
4363
+ order: "normal"
4364
+ });
4365
+ if (context.config.output.buildPath !== context.config.output.outputPath) {
4366
+ const sourcePath = appendPath(context.config.output.buildPath, context.workspaceConfig.workspaceRoot);
4367
+ const destinationPath = joinPaths$1(appendPath(context.config.output.outputPath, context.workspaceConfig.workspaceRoot), "dist");
4368
+ if (sourcePath !== destinationPath) {
4369
+ context.log(LogLevelLabel.INFO, `Copying build output files from project's build directory (${context.config.output.buildPath}) to the workspace's output directory (${context.config.output.outputPath}).`);
4370
+ await context.fs.copy(sourcePath, destinationPath);
4371
+ }
4372
+ }
4373
+ await Promise.all(context.config.output.assets.map(async (asset) => {
4374
+ context.log(LogLevelLabel.DEBUG, `Copying asset(s): ${chalk5.redBright(context.workspaceConfig.workspaceRoot === asset.input ? asset.glob : joinPaths$1(replacePath(asset.input, context.workspaceConfig.workspaceRoot), asset.glob))} -> ${chalk5.greenBright(joinPaths$1(replacePath(asset.output, context.workspaceConfig.workspaceRoot), asset.glob))} ${Array.isArray(asset.ignore) && asset.ignore.length > 0 ? ` (ignoring: ${asset.ignore.map((i) => chalk5.yellowBright(i)).join(", ")})` : ""}`);
4375
+ await context.fs.copy(asset, asset.output);
4376
+ }));
4377
+ await this.callHook("build", {
4378
+ environment: context,
4379
+ order: "post"
4380
+ });
4381
+ }
4350
4382
  /**
4351
4383
  * Get the configured environments
4352
4384
  *
@@ -4517,5 +4549,5 @@ Note: Please ensure the plugin package's default export is a class that extends
4517
4549
  };
4518
4550
 
4519
4551
  export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId, createLog, extendLog };
4520
- //# sourceMappingURL=chunk-VLTSN4BC.js.map
4521
- //# sourceMappingURL=chunk-VLTSN4BC.js.map
4552
+ //# sourceMappingURL=chunk-EMIKBRCT.js.map
4553
+ //# sourceMappingURL=chunk-EMIKBRCT.js.map
@@ -1,5 +1,5 @@
1
1
  import { extractESBuildConfig } from './chunk-A7PVG2HH.js';
2
- import { createUnpluginFactory } from './chunk-BLQAOMJB.js';
2
+ import { createUnpluginFactory } from './chunk-RPBIX6JI.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';
@@ -53,10 +53,23 @@ function extractViteConfig(context) {
53
53
  conditions: context.config.build.conditions,
54
54
  extensions: context.config.build.extensions
55
55
  }
56
- }, context.config.build.variant === "vite" ? context.config.build.override : {}, context.config.build.variant === "vite" ? omit(context.config.build, [
56
+ }, context.config.build.variant === "vite" ? defu(context.config.build.override ?? {}, {
57
+ optimizeDeps: context.config.build.override?.optimizeDeps ?? {}
58
+ }, {
59
+ optimizeDeps: {
60
+ extensions: context.config.build.override?.extensions
61
+ }
62
+ }) : {}, context.config.build.variant === "vite" ? defu(omit(context.config.build, [
57
63
  "override",
58
64
  "variant"
59
- ]) : {}, {
65
+ ]), {
66
+ optimizeDeps: context.config.build?.optimizeDeps ?? {}
67
+ }, {
68
+ optimizeDeps: {
69
+ extensions: context.config.build.extensions
70
+ }
71
+ }) : {}, {
72
+ keepProcessEnv: context.config.build.keepProcessEnv,
60
73
  define: context.config.build.define,
61
74
  rootDir: context.config.sourceRoot,
62
75
  platform: context.config.build.platform,
@@ -138,5 +151,5 @@ var vite = createVitePlugin(createUnpluginFactory("vite", (api, plugin) => {
138
151
  var vite_default = vite;
139
152
 
140
153
  export { vite, vite_default };
141
- //# sourceMappingURL=chunk-LMASEANM.js.map
142
- //# sourceMappingURL=chunk-LMASEANM.js.map
154
+ //# sourceMappingURL=chunk-FJ5JKE4N.js.map
155
+ //# sourceMappingURL=chunk-FJ5JKE4N.js.map
@@ -10,5 +10,5 @@ var LogLevel = {
10
10
  };
11
11
 
12
12
  exports.LogLevel = LogLevel;
13
- //# sourceMappingURL=chunk-YFKHICPO.cjs.map
14
- //# sourceMappingURL=chunk-YFKHICPO.cjs.map
13
+ //# sourceMappingURL=chunk-GHDZ3BE6.cjs.map
14
+ //# sourceMappingURL=chunk-GHDZ3BE6.cjs.map
@@ -9,5 +9,5 @@ var PLUGIN_NON_HOOK_FIELDS = [
9
9
  ];
10
10
 
11
11
  export { PLUGIN_NON_HOOK_FIELDS };
12
- //# sourceMappingURL=chunk-ZYU7E7JL.js.map
13
- //# sourceMappingURL=chunk-ZYU7E7JL.js.map
12
+ //# sourceMappingURL=chunk-JGSCIWFQ.js.map
13
+ //# sourceMappingURL=chunk-JGSCIWFQ.js.map
@@ -1,5 +1,5 @@
1
1
  import { extractESBuildConfig } from './chunk-A7PVG2HH.js';
2
- import { createUnpluginFactory } from './chunk-BLQAOMJB.js';
2
+ import { createUnpluginFactory } from './chunk-RPBIX6JI.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-6S6OZJYJ.js.map
33
- //# sourceMappingURL=chunk-6S6OZJYJ.js.map
32
+ //# sourceMappingURL=chunk-NGRCYHUU.js.map
33
+ //# sourceMappingURL=chunk-NGRCYHUU.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk3YOLTBW7_cjs = require('./chunk-3YOLTBW7.cjs');
3
+ var chunkVFXZVCGG_cjs = require('./chunk-VFXZVCGG.cjs');
4
4
  var chunkZ6ARQDHR_cjs = require('./chunk-Z6ARQDHR.cjs');
5
5
  var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
6
6
  var core = require('@babel/core');
@@ -706,7 +706,8 @@ async function resolveTsconfig(context) {
706
706
  }
707
707
  }
708
708
  chunkPK6SKIKE_cjs.__name(resolveTsconfig, "resolveTsconfig");
709
- var DEFAULT_ENVIRONMENT = "default";
709
+ var DEFAULT_ENVIRONMENT = "__DEFAULT__";
710
+ var GLOBAL_ENVIRONMENT = "__GLOBAL__";
710
711
  function createEnvironment(name, userConfig) {
711
712
  return defu7__default.default(userConfig.environments?.[name] ?? {}, {
712
713
  name,
@@ -3592,7 +3593,7 @@ var PowerlinesEnvironmentContext = class _PowerlinesEnvironmentContext extends P
3592
3593
  plugin: resolvedPlugin,
3593
3594
  context
3594
3595
  });
3595
- this.#hooks = Object.keys(resolvedPlugin).filter((key) => !chunk3YOLTBW7_cjs.PLUGIN_NON_HOOK_FIELDS.includes(key)).reduce((ret, key) => {
3596
+ this.#hooks = Object.keys(resolvedPlugin).filter((key) => !chunkVFXZVCGG_cjs.PLUGIN_NON_HOOK_FIELDS.includes(key)).reduce((ret, key) => {
3596
3597
  const hook = key;
3597
3598
  const pluginHook = resolvedPlugin[hook];
3598
3599
  if (!isPluginHook(pluginHook)) {
@@ -3880,6 +3881,12 @@ var PowerlinesAPIContext = class _PowerlinesAPIContext extends PowerlinesContext
3880
3881
  }
3881
3882
  return environment;
3882
3883
  }
3884
+ /**
3885
+ * A safe version of `getEnvironment` that returns `undefined` if the environment is not found
3886
+ *
3887
+ * @param name - The name of the environment to retrieve.
3888
+ * @returns The requested environment context or `undefined` if not found.
3889
+ */
3883
3890
  async getEnvironmentSafe(name) {
3884
3891
  try {
3885
3892
  return await this.getEnvironment(name);
@@ -3887,6 +3894,24 @@ var PowerlinesAPIContext = class _PowerlinesAPIContext extends PowerlinesContext
3887
3894
  return void 0;
3888
3895
  }
3889
3896
  }
3897
+ /**
3898
+ * A function to merge all configured environments into a single context.
3899
+ *
3900
+ * @remarks
3901
+ * If only one environment is configured, that environment will be returned directly.
3902
+ *
3903
+ * @returns A promise that resolves to a merged/global environment context.
3904
+ */
3905
+ async toEnvironment() {
3906
+ let environment;
3907
+ if (Object.keys(this.environments).length > 1) {
3908
+ environment = await this.in(createEnvironment(GLOBAL_ENVIRONMENT, this.config.userConfig));
3909
+ this.log(types.LogLevelLabel.DEBUG, `Combined all ${Object.keys(this.environments).length} environments into a single global context.`);
3910
+ } else {
3911
+ environment = await this.getEnvironment();
3912
+ }
3913
+ return environment;
3914
+ }
3890
3915
  };
3891
3916
  function getBaseFileHeader(context) {
3892
3917
  return `
@@ -4262,32 +4287,13 @@ ${formatTypes(types$1)}
4262
4287
  }) {
4263
4288
  this.context.log(types.LogLevelLabel.INFO, "\u{1F4E6} Building the Powerlines project");
4264
4289
  await this.prepare(inlineConfig);
4265
- await this.#executeEnvironments(async (context) => {
4266
- await this.callHook("build", {
4267
- environment: context,
4268
- order: "pre"
4269
- });
4270
- await this.callHook("build", {
4271
- environment: context,
4272
- order: "normal"
4273
- });
4274
- if (context.config.output.buildPath !== context.config.output.outputPath) {
4275
- const sourcePath = append.appendPath(context.config.output.buildPath, context.workspaceConfig.workspaceRoot);
4276
- const destinationPath = joinPaths.joinPaths(append.appendPath(context.config.output.outputPath, context.workspaceConfig.workspaceRoot), "dist");
4277
- if (sourcePath !== destinationPath) {
4278
- context.log(types.LogLevelLabel.INFO, `Copying build output files from project's build directory (${context.config.output.buildPath}) to the workspace's output directory (${context.config.output.outputPath}).`);
4279
- await context.fs.copy(sourcePath, destinationPath);
4280
- }
4281
- }
4282
- await Promise.all(context.config.output.assets.map(async (asset) => {
4283
- context.log(types.LogLevelLabel.DEBUG, `Copying asset(s): ${chalk5__default.default.redBright(context.workspaceConfig.workspaceRoot === asset.input ? asset.glob : joinPaths.joinPaths(replace.replacePath(asset.input, context.workspaceConfig.workspaceRoot), asset.glob))} -> ${chalk5__default.default.greenBright(joinPaths.joinPaths(replace.replacePath(asset.output, context.workspaceConfig.workspaceRoot), asset.glob))} ${Array.isArray(asset.ignore) && asset.ignore.length > 0 ? ` (ignoring: ${asset.ignore.map((i) => chalk5__default.default.yellowBright(i)).join(", ")})` : ""}`);
4284
- await context.fs.copy(asset, asset.output);
4285
- }));
4286
- await this.callHook("build", {
4287
- environment: context,
4288
- order: "post"
4290
+ if (this.context.config.singleBuild) {
4291
+ await this.#handleBuild(await this.#context.toEnvironment());
4292
+ } else {
4293
+ await this.#executeEnvironments(async (context) => {
4294
+ await this.#handleBuild(context);
4289
4295
  });
4290
- });
4296
+ }
4291
4297
  this.context.log(types.LogLevelLabel.TRACE, "Powerlines build completed");
4292
4298
  }
4293
4299
  /**
@@ -4376,6 +4382,32 @@ ${formatTypes(types$1)}
4376
4382
  async [Symbol.asyncDispose]() {
4377
4383
  await this.finalize();
4378
4384
  }
4385
+ async #handleBuild(context) {
4386
+ await this.callHook("build", {
4387
+ environment: context,
4388
+ order: "pre"
4389
+ });
4390
+ await this.callHook("build", {
4391
+ environment: context,
4392
+ order: "normal"
4393
+ });
4394
+ if (context.config.output.buildPath !== context.config.output.outputPath) {
4395
+ const sourcePath = append.appendPath(context.config.output.buildPath, context.workspaceConfig.workspaceRoot);
4396
+ const destinationPath = joinPaths.joinPaths(append.appendPath(context.config.output.outputPath, context.workspaceConfig.workspaceRoot), "dist");
4397
+ if (sourcePath !== destinationPath) {
4398
+ context.log(types.LogLevelLabel.INFO, `Copying build output files from project's build directory (${context.config.output.buildPath}) to the workspace's output directory (${context.config.output.outputPath}).`);
4399
+ await context.fs.copy(sourcePath, destinationPath);
4400
+ }
4401
+ }
4402
+ await Promise.all(context.config.output.assets.map(async (asset) => {
4403
+ context.log(types.LogLevelLabel.DEBUG, `Copying asset(s): ${chalk5__default.default.redBright(context.workspaceConfig.workspaceRoot === asset.input ? asset.glob : joinPaths.joinPaths(replace.replacePath(asset.input, context.workspaceConfig.workspaceRoot), asset.glob))} -> ${chalk5__default.default.greenBright(joinPaths.joinPaths(replace.replacePath(asset.output, context.workspaceConfig.workspaceRoot), asset.glob))} ${Array.isArray(asset.ignore) && asset.ignore.length > 0 ? ` (ignoring: ${asset.ignore.map((i) => chalk5__default.default.yellowBright(i)).join(", ")})` : ""}`);
4404
+ await context.fs.copy(asset, asset.output);
4405
+ }));
4406
+ await this.callHook("build", {
4407
+ environment: context,
4408
+ order: "post"
4409
+ });
4410
+ }
4379
4411
  /**
4380
4412
  * Get the configured environments
4381
4413
  *
@@ -4554,5 +4586,5 @@ exports.PowerlinesAPI = PowerlinesAPI;
4554
4586
  exports._capnpFileId = _capnpFileId;
4555
4587
  exports.createLog = createLog;
4556
4588
  exports.extendLog = extendLog;
4557
- //# sourceMappingURL=chunk-XUT7OSUL.cjs.map
4558
- //# sourceMappingURL=chunk-XUT7OSUL.cjs.map
4589
+ //# sourceMappingURL=chunk-OENQ5VVB.cjs.map
4590
+ //# sourceMappingURL=chunk-OENQ5VVB.cjs.map
@@ -1,4 +1,4 @@
1
- import { createLog, PowerlinesAPI } from './chunk-VLTSN4BC.js';
1
+ import { createLog, PowerlinesAPI } from './chunk-EMIKBRCT.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-BLQAOMJB.js.map
133
- //# sourceMappingURL=chunk-BLQAOMJB.js.map
132
+ //# sourceMappingURL=chunk-RPBIX6JI.js.map
133
+ //# sourceMappingURL=chunk-RPBIX6JI.js.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkAATT73UY_cjs = require('./chunk-AATT73UY.cjs');
4
- var chunk4PIQOC7T_cjs = require('./chunk-4PIQOC7T.cjs');
4
+ var chunkXTSKPL6I_cjs = require('./chunk-XTSKPL6I.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');
@@ -59,10 +59,23 @@ function extractViteConfig(context) {
59
59
  conditions: context.config.build.conditions,
60
60
  extensions: context.config.build.extensions
61
61
  }
62
- }, context.config.build.variant === "vite" ? context.config.build.override : {}, context.config.build.variant === "vite" ? omit.omit(context.config.build, [
62
+ }, context.config.build.variant === "vite" ? defu__default.default(context.config.build.override ?? {}, {
63
+ optimizeDeps: context.config.build.override?.optimizeDeps ?? {}
64
+ }, {
65
+ optimizeDeps: {
66
+ extensions: context.config.build.override?.extensions
67
+ }
68
+ }) : {}, context.config.build.variant === "vite" ? defu__default.default(omit.omit(context.config.build, [
63
69
  "override",
64
70
  "variant"
65
- ]) : {}, {
71
+ ]), {
72
+ optimizeDeps: context.config.build?.optimizeDeps ?? {}
73
+ }, {
74
+ optimizeDeps: {
75
+ extensions: context.config.build.extensions
76
+ }
77
+ }) : {}, {
78
+ keepProcessEnv: context.config.build.keepProcessEnv,
66
79
  define: context.config.build.define,
67
80
  rootDir: context.config.sourceRoot,
68
81
  platform: context.config.build.platform,
@@ -84,7 +97,7 @@ function extractViteConfig(context) {
84
97
  chunkPK6SKIKE_cjs.__name(extractViteConfig, "extractViteConfig");
85
98
 
86
99
  // src/vite.ts
87
- var vite = unplugin.createVitePlugin(chunk4PIQOC7T_cjs.createUnpluginFactory("vite", (api, plugin) => {
100
+ var vite = unplugin.createVitePlugin(chunkXTSKPL6I_cjs.createUnpluginFactory("vite", (api, plugin) => {
88
101
  return {
89
102
  ...plugin,
90
103
  vite: {
@@ -145,5 +158,5 @@ var vite_default = vite;
145
158
 
146
159
  exports.vite = vite;
147
160
  exports.vite_default = vite_default;
148
- //# sourceMappingURL=chunk-R4HDRLOF.cjs.map
149
- //# sourceMappingURL=chunk-R4HDRLOF.cjs.map
161
+ //# sourceMappingURL=chunk-UDPMUFXM.cjs.map
162
+ //# sourceMappingURL=chunk-UDPMUFXM.cjs.map
@@ -11,5 +11,5 @@ var PLUGIN_NON_HOOK_FIELDS = [
11
11
  ];
12
12
 
13
13
  exports.PLUGIN_NON_HOOK_FIELDS = PLUGIN_NON_HOOK_FIELDS;
14
- //# sourceMappingURL=chunk-3YOLTBW7.cjs.map
15
- //# sourceMappingURL=chunk-3YOLTBW7.cjs.map
14
+ //# sourceMappingURL=chunk-VFXZVCGG.cjs.map
15
+ //# sourceMappingURL=chunk-VFXZVCGG.cjs.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkXUT7OSUL_cjs = require('./chunk-XUT7OSUL.cjs');
3
+ var chunkOENQ5VVB_cjs = require('./chunk-OENQ5VVB.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 = chunkXUT7OSUL_cjs.createLog("unplugin", config);
30
+ const log = chunkOENQ5VVB_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 chunkXUT7OSUL_cjs.PowerlinesAPI.from(getWorkspaceRoot.getWorkspaceRoot(process.cwd()), userConfig);
41
+ api = await chunkOENQ5VVB_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-4PIQOC7T.cjs.map
136
- //# sourceMappingURL=chunk-4PIQOC7T.cjs.map
135
+ //# sourceMappingURL=chunk-XTSKPL6I.cjs.map
136
+ //# sourceMappingURL=chunk-XTSKPL6I.cjs.map
@@ -1,9 +1,9 @@
1
- import { createUnpluginFactory } from './chunk-BLQAOMJB.js';
1
+ import { createUnpluginFactory } from './chunk-RPBIX6JI.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-E2IMELHG.js.map
9
- //# sourceMappingURL=chunk-E2IMELHG.js.map
8
+ //# sourceMappingURL=chunk-Z5MNSDM4.js.map
9
+ //# sourceMappingURL=chunk-Z5MNSDM4.js.map