powerlines 0.23.7 → 0.23.10

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 (235) hide show
  1. package/dist/{api-DxPACGY4.d.ts → api-5H3zEedD.d.ts} +1 -1
  2. package/dist/{api--9pVSIbm.d.cts → api-B77aqxGC.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 +8 -6
  9. package/dist/astro.d.ts +8 -6
  10. package/dist/astro.js +3 -3
  11. package/dist/{chunk-CSSV6ES3.js → chunk-3W5CN3M3.js} +1 -1
  12. package/dist/{chunk-V732KPW6.cjs → chunk-4EIGDACJ.cjs} +34 -20
  13. package/dist/{chunk-32NXGMLQ.cjs → chunk-4TBQYHPZ.cjs} +3 -3
  14. package/dist/{chunk-QXTSQTX5.js → chunk-7G7OFGGH.js} +1 -1
  15. package/dist/{chunk-NVNBOUXL.js → chunk-MUNYXQYT.js} +34 -20
  16. package/dist/{chunk-ZUQDWAUO.cjs → chunk-PR3JGGAL.cjs} +2 -2
  17. package/dist/{chunk-I7G24RUE.cjs → chunk-SNHUEYEP.cjs} +2 -2
  18. package/dist/{chunk-6CYDJ53Z.js → chunk-SS5AXCGJ.js} +1 -1
  19. package/dist/{chunk-4TAIQVJG.cjs → chunk-WBC2XOMT.cjs} +2 -2
  20. package/dist/{chunk-RQAKTG6M.js → chunk-ZIWN73GA.js} +1 -1
  21. package/dist/config.d.cts +2 -2
  22. package/dist/config.d.ts +2 -2
  23. package/dist/esbuild.cjs +6 -6
  24. package/dist/esbuild.d.cts +5 -4
  25. package/dist/esbuild.d.ts +5 -4
  26. package/dist/esbuild.js +3 -3
  27. package/dist/farm.cjs +3 -3
  28. package/dist/farm.d.cts +9 -7
  29. package/dist/farm.d.ts +9 -7
  30. package/dist/farm.js +2 -2
  31. package/dist/index.cjs +14 -14
  32. package/dist/index.d.cts +2 -2
  33. package/dist/index.d.ts +2 -2
  34. package/dist/index.js +2 -2
  35. package/dist/lib/{api-Bwwdt0YR.d.cts → api-Cm51oVbC.d.cts} +1 -1
  36. package/dist/lib/{api-BJ7F7DmT.d.ts → api-mja4jirh.d.ts} +1 -1
  37. package/dist/lib/build/esbuild.d.cts +1 -1
  38. package/dist/lib/build/esbuild.d.ts +1 -1
  39. package/dist/lib/build/index.d.cts +3 -3
  40. package/dist/lib/build/index.d.ts +3 -3
  41. package/dist/lib/build/rolldown.d.cts +1 -1
  42. package/dist/lib/build/rolldown.d.ts +1 -1
  43. package/dist/lib/build/rollup.d.cts +1 -1
  44. package/dist/lib/build/rollup.d.ts +1 -1
  45. package/dist/lib/build/rspack.d.cts +1 -1
  46. package/dist/lib/build/rspack.d.ts +1 -1
  47. package/dist/lib/build/tsup.d.cts +1 -1
  48. package/dist/lib/build/tsup.d.ts +1 -1
  49. package/dist/lib/build/unbuild.d.cts +3 -3
  50. package/dist/lib/build/unbuild.d.ts +3 -3
  51. package/dist/lib/build/vite.d.cts +1 -1
  52. package/dist/lib/build/vite.d.ts +1 -1
  53. package/dist/lib/build/webpack.d.cts +1 -1
  54. package/dist/lib/build/webpack.d.ts +1 -1
  55. package/dist/lib/{chunk-7XHBIYIN.cjs → chunk-7VJ42H2I.cjs} +0 -16
  56. package/dist/lib/{chunk-YH5GOJS3.js → chunk-FQLZZYYO.js} +1 -16
  57. package/dist/lib/{chunk-SZH2DJOG.js → chunk-HNOAMIRO.js} +3 -3
  58. package/dist/lib/{chunk-EJTGOYSI.cjs → chunk-I6TJUFA6.cjs} +10 -10
  59. package/dist/lib/chunk-K3NBD5LL.cjs +75 -0
  60. package/dist/lib/{chunk-EN4XP4D5.js → chunk-OJ5XFCZN.js} +1 -1
  61. package/dist/lib/{chunk-NVUXGMU5.cjs → chunk-QABAD5RE.cjs} +32 -9
  62. package/dist/lib/{chunk-CCGA6ZHZ.cjs → chunk-RBSNQFLF.cjs} +16 -16
  63. package/dist/lib/{chunk-NDKPSA3I.js → chunk-VDPCG3RR.js} +3 -3
  64. package/dist/lib/{chunk-27RAXIPT.cjs → chunk-VLOUSKRX.cjs} +6 -6
  65. package/dist/lib/chunk-XBM7FHNK.js +68 -0
  66. package/dist/lib/{chunk-764HUXP3.js → chunk-XG4CC73V.js} +27 -4
  67. package/dist/lib/{config-CFZYRPQj.d.ts → config-7Q2dBjJE.d.ts} +6 -0
  68. package/dist/lib/{config-CxONCKEx.d.cts → config-BnJpgcGr.d.cts} +6 -0
  69. package/dist/lib/config-file.cjs +3 -3
  70. package/dist/lib/config-file.d.cts +3 -2
  71. package/dist/lib/config-file.d.ts +3 -2
  72. package/dist/lib/config-file.js +1 -1
  73. package/dist/lib/contexts/api-context.cjs +6 -6
  74. package/dist/lib/contexts/api-context.d.cts +3 -3
  75. package/dist/lib/contexts/api-context.d.ts +3 -3
  76. package/dist/lib/contexts/api-context.js +5 -5
  77. package/dist/lib/contexts/context.cjs +4 -4
  78. package/dist/lib/contexts/context.d.cts +10 -3
  79. package/dist/lib/contexts/context.d.ts +10 -3
  80. package/dist/lib/contexts/context.js +3 -3
  81. package/dist/lib/contexts/environment-context.cjs +5 -5
  82. package/dist/lib/contexts/environment-context.d.cts +3 -3
  83. package/dist/lib/contexts/environment-context.d.ts +3 -3
  84. package/dist/lib/contexts/environment-context.js +4 -4
  85. package/dist/lib/contexts/index.cjs +8 -8
  86. package/dist/lib/contexts/index.d.cts +3 -3
  87. package/dist/lib/contexts/index.d.ts +3 -3
  88. package/dist/lib/contexts/index.js +5 -5
  89. package/dist/lib/contexts/plugin-context.d.cts +3 -3
  90. package/dist/lib/contexts/plugin-context.d.ts +3 -3
  91. package/dist/lib/entry.d.cts +1 -1
  92. package/dist/lib/entry.d.ts +1 -1
  93. package/dist/lib/index.cjs +19 -23
  94. package/dist/lib/index.d.cts +5 -5
  95. package/dist/lib/index.d.ts +5 -5
  96. package/dist/lib/index.js +6 -6
  97. package/dist/lib/{internal-kEzuoIrl.d.ts → internal-BEygquYh.d.ts} +2 -2
  98. package/dist/lib/{internal-9D9Up5pT.d.cts → internal-BeR8fOB1.d.cts} +2 -2
  99. package/dist/lib/logger.d.cts +1 -1
  100. package/dist/lib/logger.d.ts +1 -1
  101. package/dist/lib/typescript/compiler-host.d.cts +1 -1
  102. package/dist/lib/typescript/compiler-host.d.ts +1 -1
  103. package/dist/lib/typescript/import-transformer.d.cts +1 -1
  104. package/dist/lib/typescript/import-transformer.d.ts +1 -1
  105. package/dist/lib/typescript/index.d.cts +1 -1
  106. package/dist/lib/typescript/index.d.ts +1 -1
  107. package/dist/lib/typescript/program.d.cts +1 -1
  108. package/dist/lib/typescript/program.d.ts +1 -1
  109. package/dist/lib/typescript/ts-morph.d.cts +1 -1
  110. package/dist/lib/typescript/ts-morph.d.ts +1 -1
  111. package/dist/lib/unplugin/factory.cjs +7 -7
  112. package/dist/lib/unplugin/factory.d.cts +3 -3
  113. package/dist/lib/unplugin/factory.d.ts +3 -3
  114. package/dist/lib/unplugin/factory.js +6 -6
  115. package/dist/lib/unplugin/helpers.d.cts +1 -1
  116. package/dist/lib/unplugin/helpers.d.ts +1 -1
  117. package/dist/lib/unplugin/index.cjs +7 -7
  118. package/dist/lib/unplugin/index.d.cts +3 -3
  119. package/dist/lib/unplugin/index.d.ts +3 -3
  120. package/dist/lib/unplugin/index.js +6 -6
  121. package/dist/lib/unplugin/plugin.d.cts +3 -3
  122. package/dist/lib/unplugin/plugin.d.ts +3 -3
  123. package/dist/lib/unplugin/resolve-id.d.cts +1 -1
  124. package/dist/lib/unplugin/resolve-id.d.ts +1 -1
  125. package/dist/lib/{unplugin-tmNrQvUk.d.ts → unplugin-CbbNDduM.d.ts} +2 -2
  126. package/dist/lib/{unplugin-BdLs3dwd.d.cts → unplugin-ppAOzR__.d.cts} +2 -2
  127. package/dist/lib/utilities/bundle.d.cts +1 -1
  128. package/dist/lib/utilities/bundle.d.ts +1 -1
  129. package/dist/lib/utilities/cache.d.cts +1 -1
  130. package/dist/lib/utilities/cache.d.ts +1 -1
  131. package/dist/lib/utilities/file-header.d.cts +1 -1
  132. package/dist/lib/utilities/file-header.d.ts +1 -1
  133. package/dist/lib/utilities/index.cjs +7 -11
  134. package/dist/lib/utilities/index.d.cts +2 -2
  135. package/dist/lib/utilities/index.d.ts +2 -2
  136. package/dist/lib/utilities/index.js +1 -1
  137. package/dist/lib/utilities/meta.cjs +7 -11
  138. package/dist/lib/utilities/meta.d.cts +2 -3
  139. package/dist/lib/utilities/meta.d.ts +2 -3
  140. package/dist/lib/utilities/meta.js +1 -1
  141. package/dist/lib/utilities/resolve-path.d.cts +1 -1
  142. package/dist/lib/utilities/resolve-path.d.ts +1 -1
  143. package/dist/lib/utilities/resolve.d.cts +1 -1
  144. package/dist/lib/utilities/resolve.d.ts +1 -1
  145. package/dist/lib/utilities/source-file.d.cts +1 -1
  146. package/dist/lib/utilities/source-file.d.ts +1 -1
  147. package/dist/lib/utilities/source-map.d.cts +1 -1
  148. package/dist/lib/utilities/source-map.d.ts +1 -1
  149. package/dist/lib/utilities/worker.d.cts +1 -1
  150. package/dist/lib/utilities/worker.d.ts +1 -1
  151. package/dist/lib/utilities/write-file.d.cts +1 -1
  152. package/dist/lib/utilities/write-file.d.ts +1 -1
  153. package/dist/next.cjs +4 -4
  154. package/dist/next.js +3 -3
  155. package/dist/nuxt.cjs +7 -7
  156. package/dist/nuxt.d.cts +12 -6
  157. package/dist/nuxt.d.ts +12 -6
  158. package/dist/nuxt.js +5 -5
  159. package/dist/plugin-utils/{context-DRFZE3XI.d.ts → context-Cg11S-CE.d.cts} +6 -0
  160. package/dist/plugin-utils/{context-DRFZE3XI.d.cts → context-Cg11S-CE.d.ts} +6 -0
  161. package/dist/plugin-utils/context-helpers.d.cts +1 -1
  162. package/dist/plugin-utils/context-helpers.d.ts +1 -1
  163. package/dist/plugin-utils/enforce.d.cts +1 -1
  164. package/dist/plugin-utils/enforce.d.ts +1 -1
  165. package/dist/plugin-utils/extend.d.cts +1 -1
  166. package/dist/plugin-utils/extend.d.ts +1 -1
  167. package/dist/plugin-utils/get-config-path.d.cts +1 -1
  168. package/dist/plugin-utils/get-config-path.d.ts +1 -1
  169. package/dist/plugin-utils/helpers.d.cts +1 -1
  170. package/dist/plugin-utils/helpers.d.ts +1 -1
  171. package/dist/plugin-utils/index.d.cts +1 -1
  172. package/dist/plugin-utils/index.d.ts +1 -1
  173. package/dist/plugin-utils/merge.d.cts +1 -1
  174. package/dist/plugin-utils/merge.d.ts +1 -1
  175. package/dist/plugin-utils/paths.d.cts +1 -1
  176. package/dist/plugin-utils/paths.d.ts +1 -1
  177. package/dist/{resolved-DKFZ11S7.d.ts → resolved-B3BSdXCt.d.ts} +13 -1
  178. package/dist/{resolved-C00CJgsk.d.cts → resolved-DGrpILrS.d.cts} +13 -1
  179. package/dist/rolldown.cjs +3 -3
  180. package/dist/rolldown.d.cts +3 -3
  181. package/dist/rolldown.d.ts +3 -3
  182. package/dist/rolldown.js +2 -2
  183. package/dist/rollup.cjs +3 -3
  184. package/dist/rollup.d.cts +3 -3
  185. package/dist/rollup.d.ts +3 -3
  186. package/dist/rollup.js +2 -2
  187. package/dist/rspack.cjs +3 -3
  188. package/dist/rspack.d.cts +3 -3
  189. package/dist/rspack.d.ts +3 -3
  190. package/dist/rspack.js +2 -2
  191. package/dist/tsup.cjs +4 -4
  192. package/dist/tsup.d.cts +3 -2
  193. package/dist/tsup.d.ts +3 -2
  194. package/dist/tsup.js +3 -3
  195. package/dist/types/api.d.cts +2 -2
  196. package/dist/types/api.d.ts +2 -2
  197. package/dist/types/babel.d.cts +1 -1
  198. package/dist/types/babel.d.ts +1 -1
  199. package/dist/types/commands.d.cts +1 -1
  200. package/dist/types/commands.d.ts +1 -1
  201. package/dist/types/config.d.cts +1 -1
  202. package/dist/types/config.d.ts +1 -1
  203. package/dist/types/context.d.cts +1 -1
  204. package/dist/types/context.d.ts +1 -1
  205. package/dist/types/hooks.d.cts +1 -1
  206. package/dist/types/hooks.d.ts +1 -1
  207. package/dist/types/index.d.cts +2 -2
  208. package/dist/types/index.d.ts +2 -2
  209. package/dist/types/internal.d.cts +2 -2
  210. package/dist/types/internal.d.ts +2 -2
  211. package/dist/types/plugin.d.cts +1 -1
  212. package/dist/types/plugin.d.ts +1 -1
  213. package/dist/types/resolved.d.cts +1 -1
  214. package/dist/types/resolved.d.ts +1 -1
  215. package/dist/types/unplugin.d.cts +2 -2
  216. package/dist/types/unplugin.d.ts +2 -2
  217. package/dist/unloader.cjs +3 -3
  218. package/dist/unloader.d.cts +5 -4
  219. package/dist/unloader.d.ts +5 -4
  220. package/dist/unloader.js +2 -2
  221. package/dist/unplugin.cjs +7 -7
  222. package/dist/unplugin.d.cts +2 -2
  223. package/dist/unplugin.d.ts +2 -2
  224. package/dist/unplugin.js +3 -3
  225. package/dist/vite.cjs +6 -6
  226. package/dist/vite.d.cts +5 -4
  227. package/dist/vite.d.ts +5 -4
  228. package/dist/vite.js +3 -3
  229. package/dist/webpack.cjs +6 -6
  230. package/dist/webpack.d.cts +3 -3
  231. package/dist/webpack.d.ts +3 -3
  232. package/dist/webpack.js +3 -3
  233. package/package.json +10 -9
  234. package/dist/lib/chunk-XW5TELHB.cjs +0 -67
  235. package/dist/lib/chunk-ZPIKFR7Z.js +0 -60
@@ -1,4 +1,4 @@
1
- import { b4 as SelectHooksOptions, cr as ResolvedConfig, b8 as APIContext, a8 as PrepareInlineConfig, a6 as NewInlineConfig, a7 as CleanInlineConfig, a9 as BuildInlineConfig, aa as LintInlineConfig, ab as DocsInlineConfig, ac as DeployInlineConfig, bA as HookKeys, bb as PluginContext, ba as EnvironmentContext, bH as InferHookParameters, bG as InferHookReturnType } from './resolved-DKFZ11S7.js';
1
+ import { b6 as SelectHooksOptions, ct as ResolvedConfig, ba as APIContext, a8 as PrepareInlineConfig, a6 as NewInlineConfig, a7 as CleanInlineConfig, a9 as BuildInlineConfig, aa as LintInlineConfig, ab as DocsInlineConfig, ac as DeployInlineConfig, bC as HookKeys, bd as PluginContext, bc as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './resolved-B3BSdXCt.js';
2
2
 
3
3
  type CallHookOptions = SelectHooksOptions & ({
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { b4 as SelectHooksOptions, cr as ResolvedConfig, b8 as APIContext, a8 as PrepareInlineConfig, a6 as NewInlineConfig, a7 as CleanInlineConfig, a9 as BuildInlineConfig, aa as LintInlineConfig, ab as DocsInlineConfig, ac as DeployInlineConfig, bA as HookKeys, bb as PluginContext, ba as EnvironmentContext, bH as InferHookParameters, bG as InferHookReturnType } from './resolved-C00CJgsk.cjs';
1
+ import { b6 as SelectHooksOptions, ct as ResolvedConfig, ba as APIContext, a8 as PrepareInlineConfig, a6 as NewInlineConfig, a7 as CleanInlineConfig, a9 as BuildInlineConfig, aa as LintInlineConfig, ab as DocsInlineConfig, ac as DeployInlineConfig, bC as HookKeys, bd as PluginContext, bc as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './resolved-DGrpILrS.cjs';
2
2
 
3
3
  type CallHookOptions = SelectHooksOptions & ({
4
4
  /**
package/dist/api.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkV732KPW6_cjs = require('./chunk-V732KPW6.cjs');
3
+ var chunk4EIGDACJ_cjs = require('./chunk-4EIGDACJ.cjs');
4
4
  require('./chunk-ETKZMGLN.cjs');
5
5
  require('./chunk-PAMSESZV.cjs');
6
6
  require('./chunk-AYKZK666.cjs');
@@ -10,5 +10,5 @@ require('./chunk-USNT2KNT.cjs');
10
10
 
11
11
  Object.defineProperty(exports, "PowerlinesAPI", {
12
12
  enumerable: true,
13
- get: function () { return chunkV732KPW6_cjs.PowerlinesAPI; }
13
+ get: function () { return chunk4EIGDACJ_cjs.PowerlinesAPI; }
14
14
  });
package/dist/api.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as API, C as CallHookOptions } from './api--9pVSIbm.cjs';
2
- import { cr as ResolvedConfig, b8 as APIContext, a2 as InitialUserConfig, a8 as PrepareInlineConfig, a6 as NewInlineConfig, a7 as CleanInlineConfig, a9 as BuildInlineConfig, aa as LintInlineConfig, ab as DocsInlineConfig, ac as DeployInlineConfig, bA as HookKeys, bb as PluginContext, ba as EnvironmentContext, bH as InferHookParameters, bG as InferHookReturnType } from './resolved-C00CJgsk.cjs';
1
+ import { A as API, C as CallHookOptions } from './api-B77aqxGC.cjs';
2
+ import { ct as ResolvedConfig, ba as APIContext, a2 as InitialUserConfig, a8 as PrepareInlineConfig, a6 as NewInlineConfig, a7 as CleanInlineConfig, a9 as BuildInlineConfig, aa as LintInlineConfig, ab as DocsInlineConfig, ac as DeployInlineConfig, bC as HookKeys, bd as PluginContext, bc as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './resolved-DGrpILrS.cjs';
3
3
  import '@stryke/types/base';
4
4
  import '@stryke/types/configuration';
5
5
  import '@stryke/types/file';
package/dist/api.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as API, C as CallHookOptions } from './api-DxPACGY4.js';
2
- import { cr as ResolvedConfig, b8 as APIContext, a2 as InitialUserConfig, a8 as PrepareInlineConfig, a6 as NewInlineConfig, a7 as CleanInlineConfig, a9 as BuildInlineConfig, aa as LintInlineConfig, ab as DocsInlineConfig, ac as DeployInlineConfig, bA as HookKeys, bb as PluginContext, ba as EnvironmentContext, bH as InferHookParameters, bG as InferHookReturnType } from './resolved-DKFZ11S7.js';
1
+ import { A as API, C as CallHookOptions } from './api-5H3zEedD.js';
2
+ import { ct as ResolvedConfig, ba as APIContext, a2 as InitialUserConfig, a8 as PrepareInlineConfig, a6 as NewInlineConfig, a7 as CleanInlineConfig, a9 as BuildInlineConfig, aa as LintInlineConfig, ab as DocsInlineConfig, ac as DeployInlineConfig, bC as HookKeys, bd as PluginContext, bc as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './resolved-B3BSdXCt.js';
3
3
  import '@stryke/types/base';
4
4
  import '@stryke/types/configuration';
5
5
  import '@stryke/types/file';
package/dist/api.js CHANGED
@@ -1,4 +1,4 @@
1
- export { PowerlinesAPI } from './chunk-NVNBOUXL.js';
1
+ export { PowerlinesAPI } from './chunk-MUNYXQYT.js';
2
2
  import './chunk-JQCWV4DT.js';
3
3
  import './chunk-JKBJF3UI.js';
4
4
  import './chunk-VT7NVLLU.js';
package/dist/astro.cjs CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkI7G24RUE_cjs = require('./chunk-I7G24RUE.cjs');
5
+ var chunkSNHUEYEP_cjs = require('./chunk-SNHUEYEP.cjs');
6
6
  require('./chunk-5IBA5HC2.cjs');
7
- require('./chunk-32NXGMLQ.cjs');
8
- require('./chunk-V732KPW6.cjs');
7
+ require('./chunk-4TBQYHPZ.cjs');
8
+ require('./chunk-4EIGDACJ.cjs');
9
9
  require('./chunk-ETKZMGLN.cjs');
10
10
  require('./chunk-PAMSESZV.cjs');
11
11
  require('./chunk-AYKZK666.cjs');
@@ -15,7 +15,7 @@ var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
15
15
  var astro = /* @__PURE__ */ chunkUSNT2KNT_cjs.__name((config) => ({
16
16
  vite: {
17
17
  plugins: [
18
- chunkI7G24RUE_cjs.vite_default(config)
18
+ chunkSNHUEYEP_cjs.vite_default(config)
19
19
  ]
20
20
  }
21
21
  }), "astro");
package/dist/astro.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { AstroUserConfig } from 'astro';
2
- import { cs as ViteResolvedConfig } from './resolved-C00CJgsk.cjs';
2
+ import { cu as ViteResolvedConfig } from './resolved-DGrpILrS.cjs';
3
3
  import '@stryke/types/base';
4
4
  import '@stryke/types/configuration';
5
5
  import '@stryke/types/file';
@@ -42,12 +42,14 @@ import 'typescript';
42
42
  *
43
43
  * @example
44
44
  * ```js
45
- * // astro.config.js
46
- * import powerlines from 'powerlines/astro'
45
+ * // astro.config.mjs
46
+ * import { defineConfig } from "astro/config";
47
+ * import powerlines from "powerlines/astro";
48
+ *
49
+ * export default defineConfig({
50
+ * integrations: [powerlines({ name: "example-app", ... })]
51
+ * });
47
52
  *
48
- * default export {
49
- * plugins: [powerlines()],
50
- * }
51
53
  * ```
52
54
  */
53
55
  declare const astro: (config: Partial<Omit<ViteResolvedConfig["userConfig"], "variant">>) => AstroUserConfig;
package/dist/astro.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { AstroUserConfig } from 'astro';
2
- import { cs as ViteResolvedConfig } from './resolved-DKFZ11S7.js';
2
+ import { cu as ViteResolvedConfig } from './resolved-B3BSdXCt.js';
3
3
  import '@stryke/types/base';
4
4
  import '@stryke/types/configuration';
5
5
  import '@stryke/types/file';
@@ -42,12 +42,14 @@ import 'typescript';
42
42
  *
43
43
  * @example
44
44
  * ```js
45
- * // astro.config.js
46
- * import powerlines from 'powerlines/astro'
45
+ * // astro.config.mjs
46
+ * import { defineConfig } from "astro/config";
47
+ * import powerlines from "powerlines/astro";
48
+ *
49
+ * export default defineConfig({
50
+ * integrations: [powerlines({ name: "example-app", ... })]
51
+ * });
47
52
  *
48
- * default export {
49
- * plugins: [powerlines()],
50
- * }
51
53
  * ```
52
54
  */
53
55
  declare const astro: (config: Partial<Omit<ViteResolvedConfig["userConfig"], "variant">>) => AstroUserConfig;
package/dist/astro.js CHANGED
@@ -1,7 +1,7 @@
1
- import { vite_default } from './chunk-CSSV6ES3.js';
1
+ import { vite_default } from './chunk-3W5CN3M3.js';
2
2
  import './chunk-VBR53KGY.js';
3
- import './chunk-QXTSQTX5.js';
4
- import './chunk-NVNBOUXL.js';
3
+ import './chunk-7G7OFGGH.js';
4
+ import './chunk-MUNYXQYT.js';
5
5
  import './chunk-JQCWV4DT.js';
6
6
  import './chunk-JKBJF3UI.js';
7
7
  import './chunk-VT7NVLLU.js';
@@ -1,5 +1,5 @@
1
1
  import { extractESBuildConfig } from './chunk-VBR53KGY.js';
2
- import { createUnpluginFactory } from './chunk-QXTSQTX5.js';
2
+ import { createUnpluginFactory } from './chunk-7G7OFGGH.js';
3
3
  import { __name } from './chunk-SHUYVCID.js';
4
4
  import { isDevelopmentMode, isTestMode } from '@stryke/env/environment-checks';
5
5
  import defu from 'defu';
@@ -44,6 +44,7 @@ var getConfig = require('@storm-software/config-tools/get-config');
44
44
  var c12 = require('c12');
45
45
  var getEnvPaths = require('@stryke/env/get-env-paths');
46
46
  var getWorkspaceRoot = require('@stryke/fs/get-workspace-root');
47
+ var hashFiles = require('@stryke/hash/hash-files');
47
48
  var murmurhash = require('@stryke/hash/murmurhash');
48
49
  var getUnique = require('@stryke/helpers/get-unique');
49
50
  var omit = require('@stryke/helpers/omit');
@@ -70,7 +71,6 @@ var isParentPath = require('@stryke/path/is-parent-path');
70
71
  var memfs = require('memfs');
71
72
  var unionfs = require('unionfs');
72
73
  require('@stryke/fs/remove-file');
73
- var hashFiles = require('@stryke/hash/hash-files');
74
74
  var kebabCase = require('@stryke/string-format/kebab-case');
75
75
  var isObject = require('@stryke/type-checks/is-object');
76
76
 
@@ -667,9 +667,15 @@ async function loadWorkspaceConfig(workspaceRoot, cwd) {
667
667
  }));
668
668
  }
669
669
  chunkUSNT2KNT_cjs.__name(loadWorkspaceConfig, "loadWorkspaceConfig");
670
- async function loadUserConfigFile(projectRoot, jiti, command, mode, configFile, framework = "powerlines") {
670
+ async function loadUserConfigFile(projectRoot, workspaceRoot, jiti, command, mode = "production", configFile, framework = "powerlines") {
671
671
  let resolvedUserConfig = {};
672
- const resolvedUserConfigFile = configFile && exists.existsSync(configFile) ? configFile : configFile && exists.existsSync(joinPaths.joinPaths(projectRoot, configFile)) ? joinPaths.joinPaths(projectRoot, configFile) : exists.existsSync(joinPaths.joinPaths(projectRoot, `${framework}.config.ts`)) ? joinPaths.joinPaths(projectRoot, `${framework}.config.ts`) : exists.existsSync(joinPaths.joinPaths(projectRoot, `${framework}.config.js`)) ? joinPaths.joinPaths(projectRoot, `${framework}.config.js`) : exists.existsSync(joinPaths.joinPaths(projectRoot, `${framework}.config.mts`)) ? joinPaths.joinPaths(projectRoot, `${framework}.config.mts`) : exists.existsSync(joinPaths.joinPaths(projectRoot, `${framework}.config.mjs`)) ? joinPaths.joinPaths(projectRoot, `${framework}.config.mjs`) : void 0;
672
+ let resolvedUserConfigFile;
673
+ if (configFile) {
674
+ resolvedUserConfigFile = exists.existsSync(replace.replacePath(configFile, projectRoot)) ? replace.replacePath(configFile, projectRoot) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), replace.replacePath(configFile, projectRoot))) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), replace.replacePath(configFile, projectRoot)) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), configFile)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), configFile) : void 0;
675
+ }
676
+ if (!resolvedUserConfigFile) {
677
+ resolvedUserConfigFile = exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.ts`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.ts`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.js`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.js`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mts`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mts`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mjs`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mjs`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.ts`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.ts`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.js`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.js`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.mts`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.mts`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.mjs`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.mjs`) : void 0;
678
+ }
673
679
  if (resolvedUserConfigFile) {
674
680
  const resolved = await jiti.import(jiti.esmResolve(resolvedUserConfigFile));
675
681
  if (resolved) {
@@ -677,7 +683,7 @@ async function loadUserConfigFile(projectRoot, jiti, command, mode, configFile,
677
683
  if (isFunction.isFunction(resolved)) {
678
684
  config = await Promise.resolve(resolved({
679
685
  command,
680
- mode: mode || "production",
686
+ mode,
681
687
  isSsrBuild: false,
682
688
  isPreview: false
683
689
  }));
@@ -708,6 +714,7 @@ async function loadUserConfigFile(projectRoot, jiti, command, mode, configFile,
708
714
  chunkUSNT2KNT_cjs.__name(loadUserConfigFile, "loadUserConfigFile");
709
715
  function resolveOptions(options) {
710
716
  return defu6__default.default(options, {
717
+ debug: options.logLevel === "trace",
711
718
  interopDefault: true,
712
719
  fsCache: options.mode !== "development" ? joinPaths.joinPaths(options.cacheDir, "jiti") : false,
713
720
  moduleCache: options.mode !== "development"
@@ -2677,20 +2684,6 @@ function getPrefixedProjectRootHash(name, projectRootHash) {
2677
2684
  return combined.length > PROJECT_ROOT_HASH_LENGTH ? combined.slice(0, PROJECT_ROOT_HASH_LENGTH) : combined;
2678
2685
  }
2679
2686
  chunkUSNT2KNT_cjs.__name(getPrefixedProjectRootHash, "getPrefixedProjectRootHash");
2680
- async function getChecksum(path) {
2681
- return hashFiles.hashDirectory(path, {
2682
- ignore: [
2683
- "node_modules",
2684
- ".git",
2685
- ".nx",
2686
- ".cache",
2687
- ".storm",
2688
- "tmp",
2689
- "dist"
2690
- ]
2691
- });
2692
- }
2693
- chunkUSNT2KNT_cjs.__name(getChecksum, "getChecksum");
2694
2687
  async function writeMetaFile(context) {
2695
2688
  const metaFilePath = joinPaths.joinPaths(context.dataPath, "meta.json");
2696
2689
  context.log(types.LogLevelLabel.DEBUG, `Writing runtime metadata to ${metaFilePath}`);
@@ -3111,6 +3104,26 @@ var PowerlinesContext = class _PowerlinesContext {
3111
3104
  */
3112
3105
  logFn;
3113
3106
  /**
3107
+ * Generates a checksum representing the current context state
3108
+ *
3109
+ * @param root - The root directory of the project to generate the checksum for
3110
+ * @returns A promise that resolves to a string representing the checksum
3111
+ */
3112
+ async generateChecksum(root = this.config.projectRoot) {
3113
+ this.#checksum = await hashFiles.hashDirectory(root, {
3114
+ ignore: [
3115
+ "node_modules",
3116
+ ".git",
3117
+ ".nx",
3118
+ ".cache",
3119
+ ".storm",
3120
+ "tmp",
3121
+ "dist"
3122
+ ]
3123
+ });
3124
+ return this.#checksum;
3125
+ }
3126
+ /**
3114
3127
  * Initialize the context with the provided configuration options
3115
3128
  *
3116
3129
  * @param config - The partial user configuration to use for initialization.
@@ -3142,15 +3155,16 @@ var PowerlinesContext = class _PowerlinesContext {
3142
3155
  if (exists.existsSync(packageJsonPath)) {
3143
3156
  this.packageJson = await json.readJsonFile(packageJsonPath);
3144
3157
  }
3145
- this.#checksum = await getChecksum(cacheKey.projectRoot);
3158
+ this.#checksum = await this.generateChecksum(cacheKey.projectRoot);
3146
3159
  this.resolver = createResolver({
3147
3160
  workspaceRoot: this.workspaceConfig.workspaceRoot,
3148
3161
  projectRoot: cacheKey.projectRoot,
3149
3162
  cacheDir: this.cachePath,
3150
3163
  mode: cacheKey.mode,
3164
+ logLevel: config.logLevel || this.config?.logLevel || this.workspaceConfig.logLevel || "info",
3151
3165
  skipCache: cacheKey.skipCache
3152
3166
  });
3153
- const userConfig = await loadUserConfigFile(cacheKey.projectRoot, this.resolver, cacheKey.command, cacheKey.mode, cacheKey.configFile, cacheKey.framework);
3167
+ const userConfig = await loadUserConfigFile(cacheKey.projectRoot, this.workspaceConfig.workspaceRoot, this.resolver, cacheKey.command, cacheKey.mode, cacheKey.configFile, cacheKey.framework);
3154
3168
  this.mergeUserConfig(userConfig.config);
3155
3169
  configCache.set(cacheKey, {
3156
3170
  projectJson: this.projectJson,
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkV732KPW6_cjs = require('./chunk-V732KPW6.cjs');
3
+ var chunk4EIGDACJ_cjs = require('./chunk-4EIGDACJ.cjs');
4
4
  var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
5
5
  var join = require('@stryke/path/join');
6
6
  var bundleRequire = require('bundle-require');
@@ -111,7 +111,7 @@ chunkUSNT2KNT_cjs.__name(getString, "getString");
111
111
  // src/lib/unplugin/factory.ts
112
112
  function createUnpluginFactory(variant, decorate) {
113
113
  return (config, meta) => {
114
- const log = chunkV732KPW6_cjs.createLog("unplugin", config);
114
+ const log = chunk4EIGDACJ_cjs.createLog("unplugin", config);
115
115
  log(types.LogLevelLabel.DEBUG, "Initializing Unplugin");
116
116
  try {
117
117
  const userConfig = {
@@ -124,7 +124,7 @@ function createUnpluginFactory(variant, decorate) {
124
124
  async function buildStart() {
125
125
  log(types.LogLevelLabel.DEBUG, "Powerlines build plugin starting...");
126
126
  const workspaceRoot = getWorkspaceRoot.getWorkspaceRoot(process.cwd());
127
- api = await chunkV732KPW6_cjs.PowerlinesAPI.from(workspaceRoot, userConfig);
127
+ api = await chunk4EIGDACJ_cjs.PowerlinesAPI.from(workspaceRoot, userConfig);
128
128
  if (api.context.config.build.skipNodeModulesBundle) {
129
129
  resolvePatterns = bundleRequire.tsconfigPathsToRegExp(api.context.tsconfig.options.paths ?? []);
130
130
  }
@@ -1,4 +1,4 @@
1
- import { createLog, PowerlinesAPI } from './chunk-NVNBOUXL.js';
1
+ import { createLog, PowerlinesAPI } from './chunk-MUNYXQYT.js';
2
2
  import { __name } from './chunk-SHUYVCID.js';
3
3
  import { joinPaths } from '@stryke/path/join';
4
4
  import { match, tsconfigPathsToRegExp } from 'bundle-require';
@@ -42,6 +42,7 @@ import { getWorkspaceConfig } from '@storm-software/config-tools/get-config';
42
42
  import { loadConfig } from 'c12';
43
43
  import { getEnvPaths } from '@stryke/env/get-env-paths';
44
44
  import { relativeToWorkspaceRoot } from '@stryke/fs/get-workspace-root';
45
+ import { hashDirectory } from '@stryke/hash/hash-files';
45
46
  import { murmurhash } from '@stryke/hash/murmurhash';
46
47
  import { getUnique, getUniqueBy } from '@stryke/helpers/get-unique';
47
48
  import { omit } from '@stryke/helpers/omit';
@@ -68,7 +69,6 @@ import { isParentPath } from '@stryke/path/is-parent-path';
68
69
  import { Volume } from 'memfs';
69
70
  import { Union } from 'unionfs';
70
71
  import '@stryke/fs/remove-file';
71
- import { hashDirectory } from '@stryke/hash/hash-files';
72
72
  import { kebabCase } from '@stryke/string-format/kebab-case';
73
73
  import { isObject } from '@stryke/type-checks/is-object';
74
74
 
@@ -637,9 +637,15 @@ async function loadWorkspaceConfig(workspaceRoot, cwd) {
637
637
  }));
638
638
  }
639
639
  __name(loadWorkspaceConfig, "loadWorkspaceConfig");
640
- async function loadUserConfigFile(projectRoot, jiti, command, mode, configFile, framework = "powerlines") {
640
+ async function loadUserConfigFile(projectRoot, workspaceRoot, jiti, command, mode = "production", configFile, framework = "powerlines") {
641
641
  let resolvedUserConfig = {};
642
- const resolvedUserConfigFile = configFile && existsSync(configFile) ? configFile : configFile && existsSync(joinPaths$1(projectRoot, configFile)) ? joinPaths$1(projectRoot, configFile) : existsSync(joinPaths$1(projectRoot, `${framework}.config.ts`)) ? joinPaths$1(projectRoot, `${framework}.config.ts`) : existsSync(joinPaths$1(projectRoot, `${framework}.config.js`)) ? joinPaths$1(projectRoot, `${framework}.config.js`) : existsSync(joinPaths$1(projectRoot, `${framework}.config.mts`)) ? joinPaths$1(projectRoot, `${framework}.config.mts`) : existsSync(joinPaths$1(projectRoot, `${framework}.config.mjs`)) ? joinPaths$1(projectRoot, `${framework}.config.mjs`) : void 0;
642
+ let resolvedUserConfigFile;
643
+ if (configFile) {
644
+ resolvedUserConfigFile = existsSync(replacePath(configFile, projectRoot)) ? replacePath(configFile, projectRoot) : existsSync(joinPaths$1(appendPath(projectRoot, workspaceRoot), replacePath(configFile, projectRoot))) ? joinPaths$1(appendPath(projectRoot, workspaceRoot), replacePath(configFile, projectRoot)) : existsSync(joinPaths$1(appendPath(projectRoot, workspaceRoot), configFile)) ? joinPaths$1(appendPath(projectRoot, workspaceRoot), configFile) : void 0;
645
+ }
646
+ if (!resolvedUserConfigFile) {
647
+ resolvedUserConfigFile = existsSync(joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.ts`)) ? joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.ts`) : existsSync(joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.js`)) ? joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.js`) : existsSync(joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mts`)) ? joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mts`) : existsSync(joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mjs`)) ? joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mjs`) : existsSync(joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.config.ts`)) ? joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.config.ts`) : existsSync(joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.config.js`)) ? joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.config.js`) : existsSync(joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.config.mts`)) ? joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.config.mts`) : existsSync(joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.config.mjs`)) ? joinPaths$1(appendPath(projectRoot, workspaceRoot), `${framework}.config.mjs`) : void 0;
648
+ }
643
649
  if (resolvedUserConfigFile) {
644
650
  const resolved = await jiti.import(jiti.esmResolve(resolvedUserConfigFile));
645
651
  if (resolved) {
@@ -647,7 +653,7 @@ async function loadUserConfigFile(projectRoot, jiti, command, mode, configFile,
647
653
  if (isFunction(resolved)) {
648
654
  config = await Promise.resolve(resolved({
649
655
  command,
650
- mode: mode || "production",
656
+ mode,
651
657
  isSsrBuild: false,
652
658
  isPreview: false
653
659
  }));
@@ -678,6 +684,7 @@ async function loadUserConfigFile(projectRoot, jiti, command, mode, configFile,
678
684
  __name(loadUserConfigFile, "loadUserConfigFile");
679
685
  function resolveOptions(options) {
680
686
  return defu6(options, {
687
+ debug: options.logLevel === "trace",
681
688
  interopDefault: true,
682
689
  fsCache: options.mode !== "development" ? joinPaths$1(options.cacheDir, "jiti") : false,
683
690
  moduleCache: options.mode !== "development"
@@ -2647,20 +2654,6 @@ function getPrefixedProjectRootHash(name, projectRootHash) {
2647
2654
  return combined.length > PROJECT_ROOT_HASH_LENGTH ? combined.slice(0, PROJECT_ROOT_HASH_LENGTH) : combined;
2648
2655
  }
2649
2656
  __name(getPrefixedProjectRootHash, "getPrefixedProjectRootHash");
2650
- async function getChecksum(path) {
2651
- return hashDirectory(path, {
2652
- ignore: [
2653
- "node_modules",
2654
- ".git",
2655
- ".nx",
2656
- ".cache",
2657
- ".storm",
2658
- "tmp",
2659
- "dist"
2660
- ]
2661
- });
2662
- }
2663
- __name(getChecksum, "getChecksum");
2664
2657
  async function writeMetaFile(context) {
2665
2658
  const metaFilePath = joinPaths$1(context.dataPath, "meta.json");
2666
2659
  context.log(LogLevelLabel.DEBUG, `Writing runtime metadata to ${metaFilePath}`);
@@ -3081,6 +3074,26 @@ var PowerlinesContext = class _PowerlinesContext {
3081
3074
  */
3082
3075
  logFn;
3083
3076
  /**
3077
+ * Generates a checksum representing the current context state
3078
+ *
3079
+ * @param root - The root directory of the project to generate the checksum for
3080
+ * @returns A promise that resolves to a string representing the checksum
3081
+ */
3082
+ async generateChecksum(root = this.config.projectRoot) {
3083
+ this.#checksum = await hashDirectory(root, {
3084
+ ignore: [
3085
+ "node_modules",
3086
+ ".git",
3087
+ ".nx",
3088
+ ".cache",
3089
+ ".storm",
3090
+ "tmp",
3091
+ "dist"
3092
+ ]
3093
+ });
3094
+ return this.#checksum;
3095
+ }
3096
+ /**
3084
3097
  * Initialize the context with the provided configuration options
3085
3098
  *
3086
3099
  * @param config - The partial user configuration to use for initialization.
@@ -3112,15 +3125,16 @@ var PowerlinesContext = class _PowerlinesContext {
3112
3125
  if (existsSync(packageJsonPath)) {
3113
3126
  this.packageJson = await readJsonFile(packageJsonPath);
3114
3127
  }
3115
- this.#checksum = await getChecksum(cacheKey.projectRoot);
3128
+ this.#checksum = await this.generateChecksum(cacheKey.projectRoot);
3116
3129
  this.resolver = createResolver({
3117
3130
  workspaceRoot: this.workspaceConfig.workspaceRoot,
3118
3131
  projectRoot: cacheKey.projectRoot,
3119
3132
  cacheDir: this.cachePath,
3120
3133
  mode: cacheKey.mode,
3134
+ logLevel: config.logLevel || this.config?.logLevel || this.workspaceConfig.logLevel || "info",
3121
3135
  skipCache: cacheKey.skipCache
3122
3136
  });
3123
- const userConfig = await loadUserConfigFile(cacheKey.projectRoot, this.resolver, cacheKey.command, cacheKey.mode, cacheKey.configFile, cacheKey.framework);
3137
+ const userConfig = await loadUserConfigFile(cacheKey.projectRoot, this.workspaceConfig.workspaceRoot, this.resolver, cacheKey.command, cacheKey.mode, cacheKey.configFile, cacheKey.framework);
3124
3138
  this.mergeUserConfig(userConfig.config);
3125
3139
  configCache.set(cacheKey, {
3126
3140
  projectJson: this.projectJson,
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
3
  var chunk5IBA5HC2_cjs = require('./chunk-5IBA5HC2.cjs');
4
- var chunk32NXGMLQ_cjs = require('./chunk-32NXGMLQ.cjs');
4
+ var chunk4TBQYHPZ_cjs = require('./chunk-4TBQYHPZ.cjs');
5
5
  var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
6
6
  var isUndefined = require('@stryke/type-checks/is-undefined');
7
7
  var unplugin = require('unplugin');
8
8
 
9
- var esbuild = unplugin.createEsbuildPlugin(chunk32NXGMLQ_cjs.createUnpluginFactory("esbuild", (api, plugin) => {
9
+ var esbuild = unplugin.createEsbuildPlugin(chunk4TBQYHPZ_cjs.createUnpluginFactory("esbuild", (api, plugin) => {
10
10
  return {
11
11
  ...plugin,
12
12
  esbuild: {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunk5IBA5HC2_cjs = require('./chunk-5IBA5HC2.cjs');
4
- var chunk32NXGMLQ_cjs = require('./chunk-32NXGMLQ.cjs');
4
+ var chunk4TBQYHPZ_cjs = require('./chunk-4TBQYHPZ.cjs');
5
5
  var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
6
6
  var environmentChecks = require('@stryke/env/environment-checks');
7
7
  var defu = require('defu');
@@ -83,7 +83,7 @@ function extractViteConfig(context) {
83
83
  chunkUSNT2KNT_cjs.__name(extractViteConfig, "extractViteConfig");
84
84
 
85
85
  // src/vite.ts
86
- var vite = unplugin.createVitePlugin(chunk32NXGMLQ_cjs.createUnpluginFactory("vite", (api, plugin) => {
86
+ var vite = unplugin.createVitePlugin(chunk4TBQYHPZ_cjs.createUnpluginFactory("vite", (api, plugin) => {
87
87
  return {
88
88
  ...plugin,
89
89
  vite: {
@@ -1,4 +1,4 @@
1
- import { createUnpluginFactory } from './chunk-QXTSQTX5.js';
1
+ import { createUnpluginFactory } from './chunk-7G7OFGGH.js';
2
2
  import { createWebpackPlugin } from 'unplugin';
3
3
 
4
4
  var webpack = createWebpackPlugin(createUnpluginFactory("webpack"));
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunk32NXGMLQ_cjs = require('./chunk-32NXGMLQ.cjs');
3
+ var chunk4TBQYHPZ_cjs = require('./chunk-4TBQYHPZ.cjs');
4
4
  var unplugin = require('unplugin');
5
5
 
6
- var webpack = unplugin.createWebpackPlugin(chunk32NXGMLQ_cjs.createUnpluginFactory("webpack"));
6
+ var webpack = unplugin.createWebpackPlugin(chunk4TBQYHPZ_cjs.createUnpluginFactory("webpack"));
7
7
  var webpack_default = webpack;
8
8
 
9
9
  exports.webpack = webpack;
@@ -1,5 +1,5 @@
1
1
  import { extractESBuildConfig } from './chunk-VBR53KGY.js';
2
- import { createUnpluginFactory } from './chunk-QXTSQTX5.js';
2
+ import { createUnpluginFactory } from './chunk-7G7OFGGH.js';
3
3
  import { __name } from './chunk-SHUYVCID.js';
4
4
  import { isUndefined } from '@stryke/type-checks/is-undefined';
5
5
  import { createEsbuildPlugin } from 'unplugin';
package/dist/config.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { DeepPartial } from '@stryke/types/base';
2
- import { ae as AnyUserConfig, U as UserConfig } from './resolved-C00CJgsk.cjs';
2
+ import { ae as AnyUserConfig, aj as DefineConfigInput, U as UserConfig } from './resolved-DGrpILrS.cjs';
3
3
  import '@stryke/types/configuration';
4
4
  import '@stryke/types/file';
5
5
  import 'vite';
@@ -40,6 +40,6 @@ import 'typescript';
40
40
  * @remarks
41
41
  * The function accepts a direct {@link UserConfig} object, or a function that returns it. The function receives a {@link ConfigEnv} object.
42
42
  */
43
- declare function defineConfig(config: DeepPartial<AnyUserConfig> & Record<string, any>): UserConfig;
43
+ declare function defineConfig(config: DeepPartial<AnyUserConfig> & DefineConfigInput): UserConfig;
44
44
 
45
45
  export { defineConfig };
package/dist/config.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { DeepPartial } from '@stryke/types/base';
2
- import { ae as AnyUserConfig, U as UserConfig } from './resolved-DKFZ11S7.js';
2
+ import { ae as AnyUserConfig, aj as DefineConfigInput, U as UserConfig } from './resolved-B3BSdXCt.js';
3
3
  import '@stryke/types/configuration';
4
4
  import '@stryke/types/file';
5
5
  import 'vite';
@@ -40,6 +40,6 @@ import 'typescript';
40
40
  * @remarks
41
41
  * The function accepts a direct {@link UserConfig} object, or a function that returns it. The function receives a {@link ConfigEnv} object.
42
42
  */
43
- declare function defineConfig(config: DeepPartial<AnyUserConfig> & Record<string, any>): UserConfig;
43
+ declare function defineConfig(config: DeepPartial<AnyUserConfig> & DefineConfigInput): UserConfig;
44
44
 
45
45
  export { defineConfig };
package/dist/esbuild.cjs CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkZUQDWAUO_cjs = require('./chunk-ZUQDWAUO.cjs');
5
+ var chunkPR3JGGAL_cjs = require('./chunk-PR3JGGAL.cjs');
6
6
  require('./chunk-5IBA5HC2.cjs');
7
- require('./chunk-32NXGMLQ.cjs');
8
- require('./chunk-V732KPW6.cjs');
7
+ require('./chunk-4TBQYHPZ.cjs');
8
+ require('./chunk-4EIGDACJ.cjs');
9
9
  require('./chunk-ETKZMGLN.cjs');
10
10
  require('./chunk-PAMSESZV.cjs');
11
11
  require('./chunk-AYKZK666.cjs');
@@ -15,13 +15,13 @@ require('./chunk-USNT2KNT.cjs');
15
15
 
16
16
  Object.defineProperty(exports, "default", {
17
17
  enumerable: true,
18
- get: function () { return chunkZUQDWAUO_cjs.esbuild_default; }
18
+ get: function () { return chunkPR3JGGAL_cjs.esbuild_default; }
19
19
  });
20
20
  Object.defineProperty(exports, "esbuild", {
21
21
  enumerable: true,
22
- get: function () { return chunkZUQDWAUO_cjs.esbuild; }
22
+ get: function () { return chunkPR3JGGAL_cjs.esbuild; }
23
23
  });
24
24
  Object.defineProperty(exports, "module.exports", {
25
25
  enumerable: true,
26
- get: function () { return chunkZUQDWAUO_cjs.esbuild; }
26
+ get: function () { return chunkPR3JGGAL_cjs.esbuild; }
27
27
  });
@@ -1,5 +1,5 @@
1
1
  import * as _esbuild from 'esbuild';
2
- import { Y as ESBuildUserConfig } from './resolved-C00CJgsk.cjs';
2
+ import { Y as ESBuildUserConfig } from './resolved-DGrpILrS.cjs';
3
3
  import '@stryke/types/base';
4
4
  import '@stryke/types/configuration';
5
5
  import '@stryke/types/file';
@@ -42,11 +42,12 @@ import 'typescript';
42
42
  * @example
43
43
  * ```js
44
44
  * // esbuild.config.js
45
- * import powerlines from 'powerlines/esbuild'
45
+ * import powerlines from "powerlines/esbuild";
46
46
  *
47
47
  * default export {
48
- * plugins: [powerlines()],
49
- * }
48
+ * plugins: [powerlines({ name: "example-app", ... })],
49
+ * };
50
+ *
50
51
  * ```
51
52
  */
52
53
  declare const esbuild: (options: Partial<ESBuildUserConfig>) => _esbuild.Plugin;
package/dist/esbuild.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _esbuild from 'esbuild';
2
- import { Y as ESBuildUserConfig } from './resolved-DKFZ11S7.js';
2
+ import { Y as ESBuildUserConfig } from './resolved-B3BSdXCt.js';
3
3
  import '@stryke/types/base';
4
4
  import '@stryke/types/configuration';
5
5
  import '@stryke/types/file';
@@ -42,11 +42,12 @@ import 'typescript';
42
42
  * @example
43
43
  * ```js
44
44
  * // esbuild.config.js
45
- * import powerlines from 'powerlines/esbuild'
45
+ * import powerlines from "powerlines/esbuild";
46
46
  *
47
47
  * default export {
48
- * plugins: [powerlines()],
49
- * }
48
+ * plugins: [powerlines({ name: "example-app", ... })],
49
+ * };
50
+ *
50
51
  * ```
51
52
  */
52
53
  declare const esbuild: (options: Partial<ESBuildUserConfig>) => _esbuild.Plugin;
package/dist/esbuild.js CHANGED
@@ -1,7 +1,7 @@
1
- export { esbuild_default as default, esbuild, esbuild as "module.exports" } from './chunk-RQAKTG6M.js';
1
+ export { esbuild_default as default, esbuild, esbuild as "module.exports" } from './chunk-ZIWN73GA.js';
2
2
  import './chunk-VBR53KGY.js';
3
- import './chunk-QXTSQTX5.js';
4
- import './chunk-NVNBOUXL.js';
3
+ import './chunk-7G7OFGGH.js';
4
+ import './chunk-MUNYXQYT.js';
5
5
  import './chunk-JQCWV4DT.js';
6
6
  import './chunk-JKBJF3UI.js';
7
7
  import './chunk-VT7NVLLU.js';
package/dist/farm.cjs CHANGED
@@ -2,15 +2,15 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunk32NXGMLQ_cjs = require('./chunk-32NXGMLQ.cjs');
6
- require('./chunk-V732KPW6.cjs');
5
+ var chunk4TBQYHPZ_cjs = require('./chunk-4TBQYHPZ.cjs');
6
+ require('./chunk-4EIGDACJ.cjs');
7
7
  require('./chunk-ETKZMGLN.cjs');
8
8
  require('./chunk-PAMSESZV.cjs');
9
9
  require('./chunk-AYKZK666.cjs');
10
10
  require('./chunk-USNT2KNT.cjs');
11
11
  var unplugin = require('unplugin');
12
12
 
13
- var farm = unplugin.createFarmPlugin(chunk32NXGMLQ_cjs.createUnpluginFactory("farm"));
13
+ var farm = unplugin.createFarmPlugin(chunk4TBQYHPZ_cjs.createUnpluginFactory("farm"));
14
14
  var farm_default = farm;
15
15
 
16
16
  exports.default = farm_default;