powerlines 0.23.7 → 0.23.9

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 (228) 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-4TAIQVJG.cjs → chunk-2QLM4MYP.cjs} +2 -2
  12. package/dist/{chunk-V732KPW6.cjs → chunk-6ZKM7WOB.cjs} +32 -20
  13. package/dist/{chunk-NVNBOUXL.js → chunk-FDEGM4CR.js} +32 -20
  14. package/dist/{chunk-32NXGMLQ.cjs → chunk-FJWXCUGQ.cjs} +3 -3
  15. package/dist/{chunk-ZUQDWAUO.cjs → chunk-G5K3I7JU.cjs} +2 -2
  16. package/dist/{chunk-I7G24RUE.cjs → chunk-ITL6JGKX.cjs} +2 -2
  17. package/dist/{chunk-RQAKTG6M.js → chunk-KOBCKTHY.js} +1 -1
  18. package/dist/{chunk-QXTSQTX5.js → chunk-RKMUBSYG.js} +1 -1
  19. package/dist/{chunk-6CYDJ53Z.js → chunk-S47BU5QR.js} +1 -1
  20. package/dist/{chunk-CSSV6ES3.js → chunk-UYJXRMS3.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-CCGA6ZHZ.cjs → chunk-3KR6TYGW.cjs} +13 -13
  56. package/dist/lib/{chunk-764HUXP3.js → chunk-63MH3ERQ.js} +25 -4
  57. package/dist/lib/{chunk-XW5TELHB.cjs → chunk-7JAGT5GC.cjs} +10 -3
  58. package/dist/lib/{chunk-EN4XP4D5.js → chunk-AHONHQGB.js} +1 -1
  59. package/dist/lib/{chunk-EJTGOYSI.cjs → chunk-B3DJ4CXY.cjs} +10 -10
  60. package/dist/lib/{chunk-NDKPSA3I.js → chunk-BGGENJH4.js} +2 -2
  61. package/dist/lib/{chunk-NVUXGMU5.cjs → chunk-LQEGZT5U.cjs} +25 -4
  62. package/dist/lib/{chunk-SZH2DJOG.js → chunk-OI7EHXNE.js} +3 -3
  63. package/dist/lib/{chunk-ZPIKFR7Z.js → chunk-PVCAB6BZ.js} +10 -3
  64. package/dist/lib/{chunk-27RAXIPT.cjs → chunk-SMZ672RP.cjs} +6 -6
  65. package/dist/lib/{config-CFZYRPQj.d.ts → config-7Q2dBjJE.d.ts} +6 -0
  66. package/dist/lib/{config-CxONCKEx.d.cts → config-BnJpgcGr.d.cts} +6 -0
  67. package/dist/lib/config-file.cjs +3 -3
  68. package/dist/lib/config-file.d.cts +3 -2
  69. package/dist/lib/config-file.d.ts +3 -2
  70. package/dist/lib/config-file.js +1 -1
  71. package/dist/lib/contexts/api-context.cjs +5 -5
  72. package/dist/lib/contexts/api-context.d.cts +3 -3
  73. package/dist/lib/contexts/api-context.d.ts +3 -3
  74. package/dist/lib/contexts/api-context.js +4 -4
  75. package/dist/lib/contexts/context.cjs +3 -3
  76. package/dist/lib/contexts/context.d.cts +10 -3
  77. package/dist/lib/contexts/context.d.ts +10 -3
  78. package/dist/lib/contexts/context.js +2 -2
  79. package/dist/lib/contexts/environment-context.cjs +4 -4
  80. package/dist/lib/contexts/environment-context.d.cts +3 -3
  81. package/dist/lib/contexts/environment-context.d.ts +3 -3
  82. package/dist/lib/contexts/environment-context.js +3 -3
  83. package/dist/lib/contexts/index.cjs +7 -7
  84. package/dist/lib/contexts/index.d.cts +3 -3
  85. package/dist/lib/contexts/index.d.ts +3 -3
  86. package/dist/lib/contexts/index.js +4 -4
  87. package/dist/lib/contexts/plugin-context.d.cts +3 -3
  88. package/dist/lib/contexts/plugin-context.d.ts +3 -3
  89. package/dist/lib/entry.d.cts +1 -1
  90. package/dist/lib/entry.d.ts +1 -1
  91. package/dist/lib/index.cjs +12 -12
  92. package/dist/lib/index.d.cts +4 -4
  93. package/dist/lib/index.d.ts +4 -4
  94. package/dist/lib/index.js +5 -5
  95. package/dist/lib/{internal-kEzuoIrl.d.ts → internal-BEygquYh.d.ts} +2 -2
  96. package/dist/lib/{internal-9D9Up5pT.d.cts → internal-BeR8fOB1.d.cts} +2 -2
  97. package/dist/lib/logger.d.cts +1 -1
  98. package/dist/lib/logger.d.ts +1 -1
  99. package/dist/lib/typescript/compiler-host.d.cts +1 -1
  100. package/dist/lib/typescript/compiler-host.d.ts +1 -1
  101. package/dist/lib/typescript/import-transformer.d.cts +1 -1
  102. package/dist/lib/typescript/import-transformer.d.ts +1 -1
  103. package/dist/lib/typescript/index.d.cts +1 -1
  104. package/dist/lib/typescript/index.d.ts +1 -1
  105. package/dist/lib/typescript/program.d.cts +1 -1
  106. package/dist/lib/typescript/program.d.ts +1 -1
  107. package/dist/lib/typescript/ts-morph.d.cts +1 -1
  108. package/dist/lib/typescript/ts-morph.d.ts +1 -1
  109. package/dist/lib/unplugin/factory.cjs +6 -6
  110. package/dist/lib/unplugin/factory.d.cts +3 -3
  111. package/dist/lib/unplugin/factory.d.ts +3 -3
  112. package/dist/lib/unplugin/factory.js +5 -5
  113. package/dist/lib/unplugin/helpers.d.cts +1 -1
  114. package/dist/lib/unplugin/helpers.d.ts +1 -1
  115. package/dist/lib/unplugin/index.cjs +6 -6
  116. package/dist/lib/unplugin/index.d.cts +3 -3
  117. package/dist/lib/unplugin/index.d.ts +3 -3
  118. package/dist/lib/unplugin/index.js +5 -5
  119. package/dist/lib/unplugin/plugin.d.cts +3 -3
  120. package/dist/lib/unplugin/plugin.d.ts +3 -3
  121. package/dist/lib/unplugin/resolve-id.d.cts +1 -1
  122. package/dist/lib/unplugin/resolve-id.d.ts +1 -1
  123. package/dist/lib/{unplugin-tmNrQvUk.d.ts → unplugin-CbbNDduM.d.ts} +2 -2
  124. package/dist/lib/{unplugin-BdLs3dwd.d.cts → unplugin-ppAOzR__.d.cts} +2 -2
  125. package/dist/lib/utilities/bundle.d.cts +1 -1
  126. package/dist/lib/utilities/bundle.d.ts +1 -1
  127. package/dist/lib/utilities/cache.d.cts +1 -1
  128. package/dist/lib/utilities/cache.d.ts +1 -1
  129. package/dist/lib/utilities/file-header.d.cts +1 -1
  130. package/dist/lib/utilities/file-header.d.ts +1 -1
  131. package/dist/lib/utilities/index.d.cts +1 -1
  132. package/dist/lib/utilities/index.d.ts +1 -1
  133. package/dist/lib/utilities/meta.d.cts +1 -1
  134. package/dist/lib/utilities/meta.d.ts +1 -1
  135. package/dist/lib/utilities/resolve-path.d.cts +1 -1
  136. package/dist/lib/utilities/resolve-path.d.ts +1 -1
  137. package/dist/lib/utilities/resolve.d.cts +1 -1
  138. package/dist/lib/utilities/resolve.d.ts +1 -1
  139. package/dist/lib/utilities/source-file.d.cts +1 -1
  140. package/dist/lib/utilities/source-file.d.ts +1 -1
  141. package/dist/lib/utilities/source-map.d.cts +1 -1
  142. package/dist/lib/utilities/source-map.d.ts +1 -1
  143. package/dist/lib/utilities/worker.d.cts +1 -1
  144. package/dist/lib/utilities/worker.d.ts +1 -1
  145. package/dist/lib/utilities/write-file.d.cts +1 -1
  146. package/dist/lib/utilities/write-file.d.ts +1 -1
  147. package/dist/next.cjs +4 -4
  148. package/dist/next.js +3 -3
  149. package/dist/nuxt.cjs +7 -7
  150. package/dist/nuxt.d.cts +12 -6
  151. package/dist/nuxt.d.ts +12 -6
  152. package/dist/nuxt.js +5 -5
  153. package/dist/plugin-utils/{context-DRFZE3XI.d.ts → context-Cg11S-CE.d.cts} +6 -0
  154. package/dist/plugin-utils/{context-DRFZE3XI.d.cts → context-Cg11S-CE.d.ts} +6 -0
  155. package/dist/plugin-utils/context-helpers.d.cts +1 -1
  156. package/dist/plugin-utils/context-helpers.d.ts +1 -1
  157. package/dist/plugin-utils/enforce.d.cts +1 -1
  158. package/dist/plugin-utils/enforce.d.ts +1 -1
  159. package/dist/plugin-utils/extend.d.cts +1 -1
  160. package/dist/plugin-utils/extend.d.ts +1 -1
  161. package/dist/plugin-utils/get-config-path.d.cts +1 -1
  162. package/dist/plugin-utils/get-config-path.d.ts +1 -1
  163. package/dist/plugin-utils/helpers.d.cts +1 -1
  164. package/dist/plugin-utils/helpers.d.ts +1 -1
  165. package/dist/plugin-utils/index.d.cts +1 -1
  166. package/dist/plugin-utils/index.d.ts +1 -1
  167. package/dist/plugin-utils/merge.d.cts +1 -1
  168. package/dist/plugin-utils/merge.d.ts +1 -1
  169. package/dist/plugin-utils/paths.d.cts +1 -1
  170. package/dist/plugin-utils/paths.d.ts +1 -1
  171. package/dist/{resolved-DKFZ11S7.d.ts → resolved-B3BSdXCt.d.ts} +13 -1
  172. package/dist/{resolved-C00CJgsk.d.cts → resolved-DGrpILrS.d.cts} +13 -1
  173. package/dist/rolldown.cjs +3 -3
  174. package/dist/rolldown.d.cts +3 -3
  175. package/dist/rolldown.d.ts +3 -3
  176. package/dist/rolldown.js +2 -2
  177. package/dist/rollup.cjs +3 -3
  178. package/dist/rollup.d.cts +3 -3
  179. package/dist/rollup.d.ts +3 -3
  180. package/dist/rollup.js +2 -2
  181. package/dist/rspack.cjs +3 -3
  182. package/dist/rspack.d.cts +3 -3
  183. package/dist/rspack.d.ts +3 -3
  184. package/dist/rspack.js +2 -2
  185. package/dist/tsup.cjs +4 -4
  186. package/dist/tsup.d.cts +3 -2
  187. package/dist/tsup.d.ts +3 -2
  188. package/dist/tsup.js +3 -3
  189. package/dist/types/api.d.cts +2 -2
  190. package/dist/types/api.d.ts +2 -2
  191. package/dist/types/babel.d.cts +1 -1
  192. package/dist/types/babel.d.ts +1 -1
  193. package/dist/types/commands.d.cts +1 -1
  194. package/dist/types/commands.d.ts +1 -1
  195. package/dist/types/config.d.cts +1 -1
  196. package/dist/types/config.d.ts +1 -1
  197. package/dist/types/context.d.cts +1 -1
  198. package/dist/types/context.d.ts +1 -1
  199. package/dist/types/hooks.d.cts +1 -1
  200. package/dist/types/hooks.d.ts +1 -1
  201. package/dist/types/index.d.cts +2 -2
  202. package/dist/types/index.d.ts +2 -2
  203. package/dist/types/internal.d.cts +2 -2
  204. package/dist/types/internal.d.ts +2 -2
  205. package/dist/types/plugin.d.cts +1 -1
  206. package/dist/types/plugin.d.ts +1 -1
  207. package/dist/types/resolved.d.cts +1 -1
  208. package/dist/types/resolved.d.ts +1 -1
  209. package/dist/types/unplugin.d.cts +2 -2
  210. package/dist/types/unplugin.d.ts +2 -2
  211. package/dist/unloader.cjs +3 -3
  212. package/dist/unloader.d.cts +5 -4
  213. package/dist/unloader.d.ts +5 -4
  214. package/dist/unloader.js +2 -2
  215. package/dist/unplugin.cjs +7 -7
  216. package/dist/unplugin.d.cts +2 -2
  217. package/dist/unplugin.d.ts +2 -2
  218. package/dist/unplugin.js +3 -3
  219. package/dist/vite.cjs +6 -6
  220. package/dist/vite.d.cts +5 -4
  221. package/dist/vite.d.ts +5 -4
  222. package/dist/vite.js +3 -3
  223. package/dist/webpack.cjs +6 -6
  224. package/dist/webpack.d.cts +3 -3
  225. package/dist/webpack.d.ts +3 -3
  226. package/dist/webpack.js +3 -3
  227. package/package.json +9 -9
  228. package/dist/babel-types.d.ts +0 -292
@@ -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 chunk6ZKM7WOB_cjs = require('./chunk-6ZKM7WOB.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 chunk6ZKM7WOB_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-FDEGM4CR.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 chunkITL6JGKX_cjs = require('./chunk-ITL6JGKX.cjs');
6
6
  require('./chunk-5IBA5HC2.cjs');
7
- require('./chunk-32NXGMLQ.cjs');
8
- require('./chunk-V732KPW6.cjs');
7
+ require('./chunk-FJWXCUGQ.cjs');
8
+ require('./chunk-6ZKM7WOB.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
+ chunkITL6JGKX_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-UYJXRMS3.js';
2
2
  import './chunk-VBR53KGY.js';
3
- import './chunk-QXTSQTX5.js';
4
- import './chunk-NVNBOUXL.js';
3
+ import './chunk-RKMUBSYG.js';
4
+ import './chunk-FDEGM4CR.js';
5
5
  import './chunk-JQCWV4DT.js';
6
6
  import './chunk-JKBJF3UI.js';
7
7
  import './chunk-VT7NVLLU.js';
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunk32NXGMLQ_cjs = require('./chunk-32NXGMLQ.cjs');
3
+ var chunkFJWXCUGQ_cjs = require('./chunk-FJWXCUGQ.cjs');
4
4
  var unplugin = require('unplugin');
5
5
 
6
- var webpack = unplugin.createWebpackPlugin(chunk32NXGMLQ_cjs.createUnpluginFactory("webpack"));
6
+ var webpack = unplugin.createWebpackPlugin(chunkFJWXCUGQ_cjs.createUnpluginFactory("webpack"));
7
7
  var webpack_default = webpack;
8
8
 
9
9
  exports.webpack = webpack;
@@ -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,11 +667,17 @@ 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, 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
+ const resolvedUserConfigFile = configFile && exists.existsSync(configFile) ? configFile : configFile && exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), configFile)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), configFile) : 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;
673
673
  if (resolvedUserConfigFile) {
674
- const resolved = await jiti.import(jiti.esmResolve(resolvedUserConfigFile));
674
+ let resolvedPath;
675
+ try {
676
+ resolvedPath = jiti.esmResolve(resolvedUserConfigFile);
677
+ } catch {
678
+ resolvedPath = resolvedUserConfigFile;
679
+ }
680
+ const resolved = await jiti.import(resolvedPath);
675
681
  if (resolved) {
676
682
  let config = {};
677
683
  if (isFunction.isFunction(resolved)) {
@@ -2677,20 +2683,6 @@ function getPrefixedProjectRootHash(name, projectRootHash) {
2677
2683
  return combined.length > PROJECT_ROOT_HASH_LENGTH ? combined.slice(0, PROJECT_ROOT_HASH_LENGTH) : combined;
2678
2684
  }
2679
2685
  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
2686
  async function writeMetaFile(context) {
2695
2687
  const metaFilePath = joinPaths.joinPaths(context.dataPath, "meta.json");
2696
2688
  context.log(types.LogLevelLabel.DEBUG, `Writing runtime metadata to ${metaFilePath}`);
@@ -3111,6 +3103,26 @@ var PowerlinesContext = class _PowerlinesContext {
3111
3103
  */
3112
3104
  logFn;
3113
3105
  /**
3106
+ * Generates a checksum representing the current context state
3107
+ *
3108
+ * @param root - The root directory of the project to generate the checksum for
3109
+ * @returns A promise that resolves to a string representing the checksum
3110
+ */
3111
+ async generateChecksum(root = this.config.projectRoot) {
3112
+ this.#checksum = await hashFiles.hashDirectory(root, {
3113
+ ignore: [
3114
+ "node_modules",
3115
+ ".git",
3116
+ ".nx",
3117
+ ".cache",
3118
+ ".storm",
3119
+ "tmp",
3120
+ "dist"
3121
+ ]
3122
+ });
3123
+ return this.#checksum;
3124
+ }
3125
+ /**
3114
3126
  * Initialize the context with the provided configuration options
3115
3127
  *
3116
3128
  * @param config - The partial user configuration to use for initialization.
@@ -3142,7 +3154,7 @@ var PowerlinesContext = class _PowerlinesContext {
3142
3154
  if (exists.existsSync(packageJsonPath)) {
3143
3155
  this.packageJson = await json.readJsonFile(packageJsonPath);
3144
3156
  }
3145
- this.#checksum = await getChecksum(cacheKey.projectRoot);
3157
+ this.#checksum = await this.generateChecksum(cacheKey.projectRoot);
3146
3158
  this.resolver = createResolver({
3147
3159
  workspaceRoot: this.workspaceConfig.workspaceRoot,
3148
3160
  projectRoot: cacheKey.projectRoot,
@@ -3150,7 +3162,7 @@ var PowerlinesContext = class _PowerlinesContext {
3150
3162
  mode: cacheKey.mode,
3151
3163
  skipCache: cacheKey.skipCache
3152
3164
  });
3153
- const userConfig = await loadUserConfigFile(cacheKey.projectRoot, this.resolver, cacheKey.command, cacheKey.mode, cacheKey.configFile, cacheKey.framework);
3165
+ const userConfig = await loadUserConfigFile(cacheKey.projectRoot, this.workspaceConfig.workspaceRoot, this.resolver, cacheKey.command, cacheKey.mode, cacheKey.configFile, cacheKey.framework);
3154
3166
  this.mergeUserConfig(userConfig.config);
3155
3167
  configCache.set(cacheKey, {
3156
3168
  projectJson: this.projectJson,
@@ -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,11 +637,17 @@ 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, 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
+ const resolvedUserConfigFile = configFile && existsSync(configFile) ? configFile : configFile && existsSync(joinPaths$1(appendPath(projectRoot, workspaceRoot), configFile)) ? joinPaths$1(appendPath(projectRoot, workspaceRoot), configFile) : 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;
643
643
  if (resolvedUserConfigFile) {
644
- const resolved = await jiti.import(jiti.esmResolve(resolvedUserConfigFile));
644
+ let resolvedPath;
645
+ try {
646
+ resolvedPath = jiti.esmResolve(resolvedUserConfigFile);
647
+ } catch {
648
+ resolvedPath = resolvedUserConfigFile;
649
+ }
650
+ const resolved = await jiti.import(resolvedPath);
645
651
  if (resolved) {
646
652
  let config = {};
647
653
  if (isFunction(resolved)) {
@@ -2647,20 +2653,6 @@ function getPrefixedProjectRootHash(name, projectRootHash) {
2647
2653
  return combined.length > PROJECT_ROOT_HASH_LENGTH ? combined.slice(0, PROJECT_ROOT_HASH_LENGTH) : combined;
2648
2654
  }
2649
2655
  __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
2656
  async function writeMetaFile(context) {
2665
2657
  const metaFilePath = joinPaths$1(context.dataPath, "meta.json");
2666
2658
  context.log(LogLevelLabel.DEBUG, `Writing runtime metadata to ${metaFilePath}`);
@@ -3081,6 +3073,26 @@ var PowerlinesContext = class _PowerlinesContext {
3081
3073
  */
3082
3074
  logFn;
3083
3075
  /**
3076
+ * Generates a checksum representing the current context state
3077
+ *
3078
+ * @param root - The root directory of the project to generate the checksum for
3079
+ * @returns A promise that resolves to a string representing the checksum
3080
+ */
3081
+ async generateChecksum(root = this.config.projectRoot) {
3082
+ this.#checksum = await hashDirectory(root, {
3083
+ ignore: [
3084
+ "node_modules",
3085
+ ".git",
3086
+ ".nx",
3087
+ ".cache",
3088
+ ".storm",
3089
+ "tmp",
3090
+ "dist"
3091
+ ]
3092
+ });
3093
+ return this.#checksum;
3094
+ }
3095
+ /**
3084
3096
  * Initialize the context with the provided configuration options
3085
3097
  *
3086
3098
  * @param config - The partial user configuration to use for initialization.
@@ -3112,7 +3124,7 @@ var PowerlinesContext = class _PowerlinesContext {
3112
3124
  if (existsSync(packageJsonPath)) {
3113
3125
  this.packageJson = await readJsonFile(packageJsonPath);
3114
3126
  }
3115
- this.#checksum = await getChecksum(cacheKey.projectRoot);
3127
+ this.#checksum = await this.generateChecksum(cacheKey.projectRoot);
3116
3128
  this.resolver = createResolver({
3117
3129
  workspaceRoot: this.workspaceConfig.workspaceRoot,
3118
3130
  projectRoot: cacheKey.projectRoot,
@@ -3120,7 +3132,7 @@ var PowerlinesContext = class _PowerlinesContext {
3120
3132
  mode: cacheKey.mode,
3121
3133
  skipCache: cacheKey.skipCache
3122
3134
  });
3123
- const userConfig = await loadUserConfigFile(cacheKey.projectRoot, this.resolver, cacheKey.command, cacheKey.mode, cacheKey.configFile, cacheKey.framework);
3135
+ const userConfig = await loadUserConfigFile(cacheKey.projectRoot, this.workspaceConfig.workspaceRoot, this.resolver, cacheKey.command, cacheKey.mode, cacheKey.configFile, cacheKey.framework);
3124
3136
  this.mergeUserConfig(userConfig.config);
3125
3137
  configCache.set(cacheKey, {
3126
3138
  projectJson: this.projectJson,
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkV732KPW6_cjs = require('./chunk-V732KPW6.cjs');
3
+ var chunk6ZKM7WOB_cjs = require('./chunk-6ZKM7WOB.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 = chunk6ZKM7WOB_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 chunk6ZKM7WOB_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,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 chunkFJWXCUGQ_cjs = require('./chunk-FJWXCUGQ.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(chunkFJWXCUGQ_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 chunkFJWXCUGQ_cjs = require('./chunk-FJWXCUGQ.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(chunkFJWXCUGQ_cjs.createUnpluginFactory("vite", (api, plugin) => {
87
87
  return {
88
88
  ...plugin,
89
89
  vite: {
@@ -1,5 +1,5 @@
1
1
  import { extractESBuildConfig } from './chunk-VBR53KGY.js';
2
- import { createUnpluginFactory } from './chunk-QXTSQTX5.js';
2
+ import { createUnpluginFactory } from './chunk-RKMUBSYG.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';
@@ -1,4 +1,4 @@
1
- import { createLog, PowerlinesAPI } from './chunk-NVNBOUXL.js';
1
+ import { createLog, PowerlinesAPI } from './chunk-FDEGM4CR.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';
@@ -1,4 +1,4 @@
1
- import { createUnpluginFactory } from './chunk-QXTSQTX5.js';
1
+ import { createUnpluginFactory } from './chunk-RKMUBSYG.js';
2
2
  import { createWebpackPlugin } from 'unplugin';
3
3
 
4
4
  var webpack = createWebpackPlugin(createUnpluginFactory("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-RKMUBSYG.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';
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 chunkG5K3I7JU_cjs = require('./chunk-G5K3I7JU.cjs');
6
6
  require('./chunk-5IBA5HC2.cjs');
7
- require('./chunk-32NXGMLQ.cjs');
8
- require('./chunk-V732KPW6.cjs');
7
+ require('./chunk-FJWXCUGQ.cjs');
8
+ require('./chunk-6ZKM7WOB.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 chunkG5K3I7JU_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 chunkG5K3I7JU_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 chunkG5K3I7JU_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-KOBCKTHY.js';
2
2
  import './chunk-VBR53KGY.js';
3
- import './chunk-QXTSQTX5.js';
4
- import './chunk-NVNBOUXL.js';
3
+ import './chunk-RKMUBSYG.js';
4
+ import './chunk-FDEGM4CR.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 chunkFJWXCUGQ_cjs = require('./chunk-FJWXCUGQ.cjs');
6
+ require('./chunk-6ZKM7WOB.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(chunkFJWXCUGQ_cjs.createUnpluginFactory("farm"));
14
14
  var farm_default = farm;
15
15
 
16
16
  exports.default = farm_default;
package/dist/farm.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _farmfe_core from '@farmfe/core';
2
- import { a0 as FarmUserConfig } from './resolved-C00CJgsk.cjs';
2
+ import { a0 as FarmUserConfig } from './resolved-DGrpILrS.cjs';
3
3
  import '@stryke/types/base';
4
4
  import '@stryke/types/configuration';
5
5
  import '@stryke/types/file';
@@ -40,13 +40,15 @@ import 'typescript';
40
40
  * @see https://farmjs.dev/plugins/writing-plugins
41
41
  *
42
42
  * @example
43
- * ```js
44
- * // farm.config.js
45
- * import powerlines from 'powerlines/farm'
43
+ * ```ts
44
+ * // farm.config.ts
45
+ * import powerlines from "powerlines/farm";
46
+ * import { defineConfig } from "@farmfe/core";
47
+ *
48
+ * export default defineConfig({
49
+ * plugins: [powerlines({ name: "example-app", ... })],
50
+ * });
46
51
  *
47
- * export default {
48
- * plugins: [powerlines({ ...options })],
49
- * }
50
52
  * ```
51
53
  */
52
54
  declare const farm: (options: Partial<FarmUserConfig>) => _farmfe_core.JsPlugin;