powerlines 0.19.4 → 0.20.0

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 (269) hide show
  1. package/dist/api.cjs +2 -2
  2. package/dist/api.d.cts +2 -2
  3. package/dist/api.d.ts +2 -2
  4. package/dist/api.js +1 -1
  5. package/dist/astro.cjs +8 -8
  6. package/dist/astro.d.cts +1 -1
  7. package/dist/astro.d.ts +1 -1
  8. package/dist/astro.js +5 -5
  9. package/dist/{chunk-JPWBN72J.js → chunk-24AZZCCW.js} +1 -1
  10. package/dist/{chunk-HI3LNK6Q.js → chunk-2KGMZZ36.js} +1 -1
  11. package/dist/{chunk-BHPTTRBA.js → chunk-2QGVOWKM.js} +16 -11
  12. package/dist/{chunk-AEJIVPUZ.js → chunk-4KCSCJ6E.js} +1 -1
  13. package/dist/{chunk-ULFJBFI7.cjs → chunk-6UVRB3IN.cjs} +3 -3
  14. package/dist/{chunk-RR7EC4RF.js → chunk-A2EZ3M22.js} +1 -1
  15. package/dist/{chunk-ZOUGUAQY.cjs → chunk-CTSV5JAF.cjs} +18 -13
  16. package/dist/{chunk-GFINPIIK.js → chunk-F4TS44KB.js} +3 -4
  17. package/dist/{chunk-I4LLZ5BI.js → chunk-FBMQTOMN.js} +1 -1
  18. package/dist/{chunk-PAJB5K7A.js → chunk-FYKDALJL.js} +3 -2
  19. package/dist/{chunk-MCDMY6GK.cjs → chunk-IHWRGHX6.cjs} +2 -2
  20. package/dist/{chunk-7HKTQSUG.cjs → chunk-IMMNZSFZ.cjs} +4 -3
  21. package/dist/{chunk-VICSRRKQ.js → chunk-JKF342AW.js} +2 -2
  22. package/dist/{chunk-LIXKMZW5.cjs → chunk-KL7HP7JM.cjs} +2 -2
  23. package/dist/{chunk-5PRY6OJM.cjs → chunk-LM6YBGC6.cjs} +2 -2
  24. package/dist/{chunk-KMELWYHW.cjs → chunk-MOH4CWHN.cjs} +3 -4
  25. package/dist/{chunk-YQZXG4X6.cjs → chunk-MZQXGWUK.cjs} +2 -2
  26. package/dist/{chunk-BSGWY4AP.cjs → chunk-OQNYDN5F.cjs} +2 -2
  27. package/dist/{chunk-X5LPEBDE.cjs → chunk-P3BP6LXC.cjs} +2 -2
  28. package/dist/{chunk-HEG6IAVR.js → chunk-QH3M5FBF.js} +1 -1
  29. package/dist/chunk-SECEPZQ3.cjs +32 -0
  30. package/dist/{chunk-GQM2JCO3.js → chunk-SIEHJFKB.js} +2 -2
  31. package/dist/{chunk-TK6CN2KT.cjs → chunk-T4AJOD6A.cjs} +4 -4
  32. package/dist/chunk-TY3QAXEY.js +105 -0
  33. package/dist/{chunk-OJSRHKHW.js → chunk-VSZXQLMI.js} +1 -1
  34. package/dist/{chunk-A3FMGMBV.cjs → chunk-VVFIZVYE.cjs} +2 -2
  35. package/dist/{chunk-Z63SQZUB.cjs → chunk-VXF37DA2.cjs} +4 -4
  36. package/dist/chunk-WE7PLY4H.cjs +111 -0
  37. package/dist/{chunk-MLAYLHZO.js → chunk-WRP6ANCC.js} +1 -1
  38. package/dist/chunk-XBS3AHAK.js +29 -0
  39. package/dist/config.d.cts +1 -1
  40. package/dist/config.d.ts +1 -1
  41. package/dist/esbuild.cjs +7 -7
  42. package/dist/esbuild.d.cts +1 -1
  43. package/dist/esbuild.d.ts +1 -1
  44. package/dist/esbuild.js +4 -4
  45. package/dist/farm.cjs +3 -3
  46. package/dist/farm.d.cts +1 -1
  47. package/dist/farm.d.ts +1 -1
  48. package/dist/farm.js +2 -2
  49. package/dist/{hooks-Bq2jUAKs.d.ts → hooks-BBZyf9CN.d.ts} +1 -1
  50. package/dist/{hooks-C6t50M6a.d.cts → hooks-CUxY7WKY.d.cts} +1 -1
  51. package/dist/index.cjs +18 -18
  52. package/dist/index.d.cts +2 -2
  53. package/dist/index.d.ts +2 -2
  54. package/dist/index.js +16 -16
  55. package/dist/lib/build/esbuild.cjs +4 -4
  56. package/dist/lib/build/esbuild.d.cts +3 -3
  57. package/dist/lib/build/esbuild.d.ts +3 -3
  58. package/dist/lib/build/esbuild.js +1 -1
  59. package/dist/lib/build/index.cjs +33 -33
  60. package/dist/lib/build/index.d.cts +3 -3
  61. package/dist/lib/build/index.d.ts +3 -3
  62. package/dist/lib/build/index.js +8 -8
  63. package/dist/lib/build/rolldown.cjs +3 -3
  64. package/dist/lib/build/rolldown.d.cts +1 -1
  65. package/dist/lib/build/rolldown.d.ts +1 -1
  66. package/dist/lib/build/rolldown.js +2 -2
  67. package/dist/lib/build/rollup.cjs +3 -3
  68. package/dist/lib/build/rollup.d.cts +1 -1
  69. package/dist/lib/build/rollup.d.ts +1 -1
  70. package/dist/lib/build/rollup.js +1 -1
  71. package/dist/lib/build/rspack.cjs +2 -2
  72. package/dist/lib/build/rspack.d.cts +1 -1
  73. package/dist/lib/build/rspack.d.ts +1 -1
  74. package/dist/lib/build/rspack.js +1 -1
  75. package/dist/lib/build/tsup.cjs +5 -5
  76. package/dist/lib/build/tsup.d.cts +1 -1
  77. package/dist/lib/build/tsup.d.ts +1 -1
  78. package/dist/lib/build/tsup.js +2 -2
  79. package/dist/lib/build/unbuild.cjs +5 -5
  80. package/dist/lib/build/unbuild.d.cts +2 -2
  81. package/dist/lib/build/unbuild.d.ts +2 -2
  82. package/dist/lib/build/unbuild.js +2 -2
  83. package/dist/lib/build/vite.cjs +4 -4
  84. package/dist/lib/build/vite.d.cts +1 -1
  85. package/dist/lib/build/vite.d.ts +1 -1
  86. package/dist/lib/build/vite.js +2 -2
  87. package/dist/lib/build/webpack.cjs +2 -2
  88. package/dist/lib/build/webpack.d.cts +1 -1
  89. package/dist/lib/build/webpack.d.ts +1 -1
  90. package/dist/lib/build/webpack.js +1 -1
  91. package/dist/lib/{chunk-7OHD3BD4.js → chunk-4QRL5CNE.js} +1 -5
  92. package/dist/lib/{chunk-5ASXKB2V.js → chunk-4RUHX7LV.js} +1 -1
  93. package/dist/lib/{chunk-KXCEN6Y4.js → chunk-5SP6QZLX.js} +1 -1
  94. package/dist/lib/{chunk-GBICSIXP.cjs → chunk-ARCFV3IJ.cjs} +7 -8
  95. package/dist/lib/{chunk-5EXW3ZRC.cjs → chunk-CLV4J4L7.cjs} +26 -4
  96. package/dist/lib/{chunk-ADKYAHF5.js → chunk-DFRWBQQT.js} +33 -12
  97. package/dist/lib/{chunk-F7IDAYLH.cjs → chunk-FGYAS4NB.cjs} +1 -5
  98. package/dist/lib/{chunk-MVSXEH4P.cjs → chunk-H7V7EPB2.cjs} +6 -9
  99. package/dist/lib/{chunk-LSZT4OD3.cjs → chunk-HIY6WOU3.cjs} +3 -3
  100. package/dist/lib/{chunk-ESNHFT4V.cjs → chunk-IBONIIAZ.cjs} +10 -10
  101. package/dist/lib/{chunk-47WZIAPZ.js → chunk-IXREPTHZ.js} +5 -8
  102. package/dist/lib/chunk-K4FER6YK.cjs +125 -0
  103. package/dist/lib/{chunk-LJ4WO7TW.cjs → chunk-MWA3DWY5.cjs} +36 -13
  104. package/dist/lib/{chunk-YKSKJTO3.js → chunk-NU4GDWLL.js} +2 -2
  105. package/dist/lib/{chunk-37W2ZDLA.cjs → chunk-O36FCQM6.cjs} +2 -2
  106. package/dist/lib/{chunk-ET5QBFGZ.cjs → chunk-O5LNKYQV.cjs} +2 -2
  107. package/dist/lib/{chunk-SYHVP3OW.js → chunk-OI2V6L7D.js} +24 -4
  108. package/dist/lib/{chunk-JB2JJXGW.js → chunk-S5F4DE65.js} +1 -1
  109. package/dist/lib/{chunk-N66R6SPI.js → chunk-TTKY3DR4.js} +7 -8
  110. package/dist/lib/{chunk-N2EGPL2L.js → chunk-WWNNBLU7.js} +9 -9
  111. package/dist/lib/{chunk-AOKLB4V2.cjs → chunk-Y2BHXV33.cjs} +1 -1
  112. package/dist/lib/chunk-ZJNDT3GX.js +117 -0
  113. package/dist/lib/{config-gWvjY0K0.d.ts → config-Bag1Ft7u.d.ts} +139 -53
  114. package/dist/lib/{config-B8PZKdIr.d.cts → config-DN8Ad0lv.d.cts} +139 -53
  115. package/dist/lib/config-file.d.cts +1 -1
  116. package/dist/lib/config-file.d.ts +1 -1
  117. package/dist/lib/create-program.d.cts +1 -1
  118. package/dist/lib/create-program.d.ts +1 -1
  119. package/dist/lib/entry.d.cts +1 -1
  120. package/dist/lib/entry.d.ts +1 -1
  121. package/dist/lib/{hooks-BL4stJLn.d.ts → hooks-BVnPAWgt.d.ts} +1 -1
  122. package/dist/lib/{hooks-DnWcaiLo.d.cts → hooks-H2P-7xA4.d.cts} +1 -1
  123. package/dist/lib/index.cjs +95 -95
  124. package/dist/lib/index.d.cts +2 -2
  125. package/dist/lib/index.d.ts +2 -2
  126. package/dist/lib/index.js +15 -15
  127. package/dist/lib/logger.d.cts +1 -1
  128. package/dist/lib/logger.d.ts +1 -1
  129. package/dist/lib/typescript/compiler-host.d.cts +1 -1
  130. package/dist/lib/typescript/compiler-host.d.ts +1 -1
  131. package/dist/lib/typescript/import-transformer.d.cts +1 -1
  132. package/dist/lib/typescript/import-transformer.d.ts +1 -1
  133. package/dist/lib/typescript/index.d.cts +1 -1
  134. package/dist/lib/typescript/index.d.ts +1 -1
  135. package/dist/lib/typescript/program.d.cts +1 -1
  136. package/dist/lib/typescript/program.d.ts +1 -1
  137. package/dist/lib/unplugin/factory.cjs +6 -6
  138. package/dist/lib/unplugin/factory.d.cts +2 -2
  139. package/dist/lib/unplugin/factory.d.ts +2 -2
  140. package/dist/lib/unplugin/factory.js +5 -5
  141. package/dist/lib/unplugin/index.cjs +10 -10
  142. package/dist/lib/unplugin/index.d.cts +2 -2
  143. package/dist/lib/unplugin/index.d.ts +2 -2
  144. package/dist/lib/unplugin/index.js +6 -6
  145. package/dist/lib/unplugin/plugin.cjs +3 -3
  146. package/dist/lib/unplugin/plugin.d.cts +1 -1
  147. package/dist/lib/unplugin/plugin.d.ts +1 -1
  148. package/dist/lib/unplugin/plugin.js +2 -2
  149. package/dist/lib/unplugin/resolve-id.d.cts +1 -1
  150. package/dist/lib/unplugin/resolve-id.d.ts +1 -1
  151. package/dist/lib/utilities/bundle.cjs +3 -3
  152. package/dist/lib/utilities/bundle.d.cts +1 -1
  153. package/dist/lib/utilities/bundle.d.ts +1 -1
  154. package/dist/lib/utilities/bundle.js +2 -2
  155. package/dist/lib/utilities/cache.d.cts +1 -1
  156. package/dist/lib/utilities/cache.d.ts +1 -1
  157. package/dist/lib/utilities/file-header.d.cts +1 -1
  158. package/dist/lib/utilities/file-header.d.ts +1 -1
  159. package/dist/lib/utilities/index.cjs +29 -29
  160. package/dist/lib/utilities/index.d.cts +1 -1
  161. package/dist/lib/utilities/index.d.ts +1 -1
  162. package/dist/lib/utilities/index.js +7 -7
  163. package/dist/lib/utilities/meta.d.cts +1 -1
  164. package/dist/lib/utilities/meta.d.ts +1 -1
  165. package/dist/lib/utilities/resolve-path.d.cts +1 -1
  166. package/dist/lib/utilities/resolve-path.d.ts +1 -1
  167. package/dist/lib/utilities/resolve.cjs +4 -4
  168. package/dist/lib/utilities/resolve.d.cts +1 -1
  169. package/dist/lib/utilities/resolve.d.ts +1 -1
  170. package/dist/lib/utilities/resolve.js +3 -3
  171. package/dist/lib/utilities/source-file.d.cts +1 -1
  172. package/dist/lib/utilities/source-file.d.ts +1 -1
  173. package/dist/lib/utilities/source-map.d.cts +1 -1
  174. package/dist/lib/utilities/source-map.d.ts +1 -1
  175. package/dist/lib/utilities/worker.d.cts +1 -1
  176. package/dist/lib/utilities/worker.d.ts +1 -1
  177. package/dist/lib/utilities/write-file.d.cts +1 -1
  178. package/dist/lib/utilities/write-file.d.ts +1 -1
  179. package/dist/next.cjs +7 -7
  180. package/dist/next.js +4 -4
  181. package/dist/nuxt.cjs +9 -9
  182. package/dist/nuxt.js +6 -6
  183. package/dist/plugin-utils/chunk-J33TXWF6.js +12 -0
  184. package/dist/plugin-utils/chunk-QP6OJWFG.cjs +14 -0
  185. package/dist/plugin-utils/{config-48EWGWXq.d.cts → config-pwKiZvzJ.d.cts} +138 -52
  186. package/dist/plugin-utils/{config-48EWGWXq.d.ts → config-pwKiZvzJ.d.ts} +138 -52
  187. package/dist/plugin-utils/enforce.d.cts +1 -1
  188. package/dist/plugin-utils/enforce.d.ts +1 -1
  189. package/dist/plugin-utils/extend.d.cts +1 -1
  190. package/dist/plugin-utils/extend.d.ts +1 -1
  191. package/dist/plugin-utils/get-config-path.d.cts +2 -2
  192. package/dist/plugin-utils/get-config-path.d.ts +2 -2
  193. package/dist/plugin-utils/helpers.d.cts +3 -3
  194. package/dist/plugin-utils/helpers.d.ts +3 -3
  195. package/dist/plugin-utils/index.cjs +2 -2
  196. package/dist/plugin-utils/index.d.cts +1 -1
  197. package/dist/plugin-utils/index.d.ts +1 -1
  198. package/dist/plugin-utils/index.js +1 -1
  199. package/dist/plugin-utils/merge.d.cts +1 -1
  200. package/dist/plugin-utils/merge.d.ts +1 -1
  201. package/dist/plugin-utils/paths.cjs +2 -2
  202. package/dist/plugin-utils/paths.d.cts +3 -2
  203. package/dist/plugin-utils/paths.d.ts +3 -2
  204. package/dist/plugin-utils/paths.js +1 -1
  205. package/dist/{resolved-J7a2Aeuk.d.ts → resolved-Sxyrlt6g.d.ts} +68 -52
  206. package/dist/{resolved-B41SbjnS.d.cts → resolved-ohMN-3VJ.d.cts} +68 -52
  207. package/dist/rolldown.cjs +6 -6
  208. package/dist/rolldown.d.cts +1 -1
  209. package/dist/rolldown.d.ts +1 -1
  210. package/dist/rolldown.js +3 -3
  211. package/dist/rollup.cjs +6 -6
  212. package/dist/rollup.d.cts +1 -1
  213. package/dist/rollup.d.ts +1 -1
  214. package/dist/rollup.js +3 -3
  215. package/dist/rspack.cjs +6 -6
  216. package/dist/rspack.d.cts +1 -1
  217. package/dist/rspack.d.ts +1 -1
  218. package/dist/rspack.js +3 -3
  219. package/dist/tsup.cjs +8 -8
  220. package/dist/tsup.js +5 -5
  221. package/dist/types/babel.d.cts +1 -1
  222. package/dist/types/babel.d.ts +1 -1
  223. package/dist/types/build.d.cts +76 -6
  224. package/dist/types/build.d.ts +76 -6
  225. package/dist/types/commands.d.cts +1 -1
  226. package/dist/types/commands.d.ts +1 -1
  227. package/dist/types/config.d.cts +1 -1
  228. package/dist/types/config.d.ts +1 -1
  229. package/dist/types/context.d.cts +2 -2
  230. package/dist/types/context.d.ts +2 -2
  231. package/dist/types/hooks.d.cts +1 -1
  232. package/dist/types/hooks.d.ts +1 -1
  233. package/dist/types/index.d.cts +1 -1
  234. package/dist/types/index.d.ts +1 -1
  235. package/dist/types/internal.d.cts +2 -2
  236. package/dist/types/internal.d.ts +2 -2
  237. package/dist/types/plugin.d.cts +1 -1
  238. package/dist/types/plugin.d.ts +1 -1
  239. package/dist/types/resolved.d.cts +1 -1
  240. package/dist/types/resolved.d.ts +1 -1
  241. package/dist/types/unplugin.d.cts +1 -1
  242. package/dist/types/unplugin.d.ts +1 -1
  243. package/dist/unloader.cjs +6 -6
  244. package/dist/unloader.d.cts +3 -3
  245. package/dist/unloader.d.ts +3 -3
  246. package/dist/unloader.js +3 -3
  247. package/dist/unplugin.cjs +18 -18
  248. package/dist/unplugin.d.cts +4 -4
  249. package/dist/unplugin.d.ts +4 -4
  250. package/dist/unplugin.js +15 -15
  251. package/dist/vite.cjs +7 -7
  252. package/dist/vite.d.cts +1 -1
  253. package/dist/vite.d.ts +1 -1
  254. package/dist/vite.js +4 -4
  255. package/dist/webpack.cjs +6 -6
  256. package/dist/webpack.d.cts +1 -1
  257. package/dist/webpack.d.ts +1 -1
  258. package/dist/webpack.js +3 -3
  259. package/package.json +14 -12
  260. package/dist/chunk-CWCEYGLM.js +0 -43
  261. package/dist/chunk-F5NKLRZD.cjs +0 -49
  262. package/dist/chunk-RDMLGFIT.js +0 -29
  263. package/dist/chunk-XDLLDHRY.cjs +0 -32
  264. package/dist/lib/chunk-POOHWK7C.cjs +0 -63
  265. package/dist/lib/chunk-VLHOYZG2.js +0 -55
  266. package/dist/plugin-utils/chunk-2HFS2OOG.cjs +0 -14
  267. package/dist/plugin-utils/chunk-CVZA2RT3.js +0 -12
  268. package/dist/lib/{chunk-QJZZF22Y.js → chunk-7Y5MJRWF.js} +1 -1
  269. package/dist/lib/{chunk-MLILHOLG.cjs → chunk-UDJ37BEE.cjs} +1 -1
@@ -1,4 +1,4 @@
1
- import { MaybePromise, FunctionLike, DeepPartial, NonUndefined } from '@stryke/types/base';
1
+ import { MaybePromise, FunctionLike, NonUndefined, DeepPartial as DeepPartial$1 } from '@stryke/types/base';
2
2
  import { TypeDefinitionParameter, TypeDefinition } from '@stryke/types/configuration';
3
3
  import { AssetGlob } from '@stryke/types/file';
4
4
  import { PreviewOptions, ResolvedConfig as ResolvedConfig$2, ResolvedPreviewOptions } from 'vite';
@@ -49,6 +49,10 @@ interface GenerateTypesResult {
49
49
  directives?: string[];
50
50
  code: string;
51
51
  }
52
+ type DeepPartial<T> = {
53
+ [K in keyof T]?: DeepPartial<T[K]>;
54
+ };
55
+ type ConfigResult<TContext extends PluginContext = PluginContext> = DeepPartial<TContext["config"]> & Record<string, any>;
52
56
  interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext> extends Record<CommandType, (this: TContext) => MaybePromise<void>> {
53
57
  /**
54
58
  * A function that returns configuration options to be merged with the build context's options.
@@ -64,7 +68,7 @@ interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext
64
68
  * @param config - The partial configuration object to be modified.
65
69
  * @returns A promise that resolves to a partial configuration object.
66
70
  */
67
- config: (this: Context<TContext["config"]>) => MaybePromise<Partial<TContext["config"]["userConfig"]>>;
71
+ config: (this: UnresolvedContext<TContext["config"]>) => MaybePromise<ConfigResult<TContext>>;
68
72
  /**
69
73
  * Modify environment configs before it's resolved. The hook can either mutate the passed-in environment config directly, or return a partial config object that will be deeply merged into existing config.
70
74
  *
@@ -172,7 +176,7 @@ type PluginHooks<TContext extends PluginContext = PluginContext> = {
172
176
  * @param config - The partial configuration object to be modified.
173
177
  * @returns A promise that resolves to a partial configuration object.
174
178
  */
175
- config: PluginHook<(this: Context<TContext["config"]>) => MaybePromise<Partial<TContext["config"]["userConfig"]>>> | Partial<TContext["config"]["userConfig"]>;
179
+ config: PluginHook<(this: UnresolvedContext<TContext["config"]>) => MaybePromise<ConfigResult<TContext>>> | ConfigResult<TContext>;
176
180
  /**
177
181
  * A hook that is called to transform the source code.
178
182
  *
@@ -378,7 +382,13 @@ interface InitContextOptions {
378
382
  */
379
383
  isHighPriority: boolean;
380
384
  }
381
- interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
385
+ /**
386
+ * The unresolved Powerlines context.
387
+ *
388
+ * @remarks
389
+ * This context is used before the user configuration has been fully resolved after the `config`.
390
+ */
391
+ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
382
392
  /**
383
393
  * The Storm workspace configuration
384
394
  */
@@ -386,7 +396,10 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
386
396
  /**
387
397
  * An object containing the options provided to Powerlines
388
398
  */
389
- config: TResolvedConfig;
399
+ config: Omit<TResolvedConfig["userConfig"], "build" | "output"> & Required<Pick<TResolvedConfig["userConfig"], "build" | "output">> & {
400
+ projectRoot: NonUndefined<TResolvedConfig["userConfig"]["root"]>;
401
+ output: TResolvedConfig["output"];
402
+ };
390
403
  /**
391
404
  * A logging function for the Powerlines engine
392
405
  */
@@ -543,6 +556,12 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
543
556
  */
544
557
  extendLog: (name: string) => LogFn;
545
558
  }
559
+ type Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = Omit<UnresolvedContext<TResolvedConfig>, "config"> & {
560
+ /**
561
+ * The fully resolved Powerlines configuration
562
+ */
563
+ config: TResolvedConfig;
564
+ };
546
565
  interface APIContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig> {
547
566
  /**
548
567
  * The expected plugins options for the Powerlines project.
@@ -743,7 +762,7 @@ type PluginConfigObject<TContext extends PluginContext = PluginContext, TOptions
743
762
  * A configuration tuple for a Powerlines plugin.
744
763
  */
745
764
  type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> | Promise<Plugin<TContext>> | PluginConfigTuple<TContext> | PluginConfigObject<TContext>;
746
- type PartialPlugin<in out TContext extends PluginContext = PluginContext> = DeepPartial<Plugin<TContext>>;
765
+ type PartialPlugin<in out TContext extends PluginContext = PluginContext> = DeepPartial$1<Plugin<TContext>>;
747
766
  type PartialPluginFactory<in out TContext extends PluginContext = PluginContext, TOptions = any> = (options: TOptions) => MaybePromise<PartialPlugin<TContext>>;
748
767
  type ProjectType = "application" | "library";
749
768
  type BabelUserConfig = Parameters<typeof transformAsync>[1] & {
@@ -854,24 +873,33 @@ interface BaseConfig {
854
873
  * The entry point(s) for the application
855
874
  */
856
875
  entry?: TypeDefinitionParameter | TypeDefinitionParameter[];
876
+ /**
877
+ * Configuration for the output of the build process
878
+ */
879
+ output?: OutputConfig;
857
880
  /**
858
881
  * Configuration for linting the source code
882
+ *
883
+ * @remarks
884
+ * If set to `false`, linting will be disabled.
859
885
  */
860
886
  lint?: Record<string, any> | false;
861
887
  /**
862
888
  * Configuration for testing the source code
889
+ *
890
+ * @remarks
891
+ * If set to `false`, testing will be disabled.
863
892
  */
864
893
  test?: Record<string, any> | false;
865
- /**
866
- * Configuration for the output of the build process
867
- */
868
- output?: OutputConfig;
869
894
  /**
870
895
  * Configuration for the transformation of the source code
871
896
  */
872
897
  transform?: Record<string, any>;
873
898
  /**
874
- * Options to to provide to the build process
899
+ * Configuration provided to build processes
900
+ *
901
+ * @remarks
902
+ * This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
875
903
  */
876
904
  build?: BuildConfig;
877
905
  /**
@@ -901,37 +929,6 @@ interface BaseConfig {
901
929
  tsconfigRaw?: TSConfig;
902
930
  }
903
931
  interface EnvironmentConfig extends BaseConfig {
904
- /**
905
- * Array of strings indicating the order in which fields in a package.json file should be resolved to determine the entry point for a module.
906
- *
907
- * @defaultValue `['browser', 'module', 'jsnext:main', 'jsnext']`
908
- */
909
- mainFields?: string[];
910
- /**
911
- * Array of strings indicating what conditions should be used for module resolution.
912
- */
913
- conditions?: string[];
914
- /**
915
- * Array of strings indicating what conditions should be used for external modules.
916
- */
917
- externalConditions?: string[];
918
- /**
919
- * Array of strings indicating what file extensions should be used for module resolution.
920
- *
921
- * @defaultValue `['.mjs', '.js', '.mts', '.ts', '.jsx', '.tsx', '.json']`
922
- */
923
- extensions?: string[];
924
- /**
925
- * Array of strings indicating what modules should be deduplicated to a single version in the build.
926
- *
927
- * @remarks
928
- * This option is useful for ensuring that only one version of a module is included in the bundle, which can help reduce bundle size and avoid conflicts.
929
- */
930
- dedupe?: string[];
931
- /**
932
- * Array of strings or regular expressions that indicate what modules are builtin for the environment.
933
- */
934
- builtins?: (string | RegExp)[];
935
932
  /**
936
933
  * Configuration options for the preview server
937
934
  */
@@ -1004,14 +1001,26 @@ interface CommonUserConfig extends BaseConfig {
1004
1001
  */
1005
1002
  framework?: string;
1006
1003
  }
1007
- type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> = CommonUserConfig & {
1008
- build?: TBuildConfig & {
1004
+ type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> = Omit<CommonUserConfig, "build"> & {
1005
+ /**
1006
+ * Configuration provided to build processes
1007
+ *
1008
+ * @remarks
1009
+ * This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
1010
+ */
1011
+ build: Omit<TBuildConfig, "override"> & {
1009
1012
  /**
1010
1013
  * The build variant being used by the Powerlines engine.
1011
1014
  */
1012
1015
  variant?: TBuildVariant;
1016
+ /**
1017
+ * An optional set of override options to apply to the selected build variant.
1018
+ *
1019
+ * @remarks
1020
+ * This option allows you to provide configuration options with the guarantee that they will **not** be overridden and will take precedence over other build configurations.
1021
+ */
1022
+ override?: Partial<TBuildResolvedConfig>;
1013
1023
  };
1014
- override?: Partial<TBuildResolvedConfig>;
1015
1024
  };
1016
1025
  type WebpackUserConfig = UserConfig<WebpackBuildConfig, WebpackResolvedBuildConfig, "webpack">;
1017
1026
  type RspackUserConfig = UserConfig<RspackBuildConfig, RspackResolvedBuildConfig, "rspack">;
@@ -1093,10 +1102,10 @@ type ReleaseInlineConfig<TUserConfig extends UserConfig = UserConfig> = InlineCo
1093
1102
  };
1094
1103
  type ConfigEnv = Pick<ResolvedConfig$2, "command" | "mode" | "environments" | "preview">;
1095
1104
  type AnyUserConfig = Record<string, any> & (Partial<UserConfig> | Partial<WebpackUserConfig> | Partial<RspackUserConfig> | Partial<ViteUserConfig> | Partial<ESBuildUserConfig> | Partial<UnbuildUserConfig> | Partial<TsupUserConfig> | Partial<RolldownUserConfig> | Partial<RollupUserConfig> | Partial<FarmUserConfig>);
1096
- type UserConfigFnObject = (env: ConfigEnv) => DeepPartial<UserConfig>;
1097
- type UserConfigFnPromise = (env: ConfigEnv) => Promise<DeepPartial<UserConfig>>;
1098
- type UserConfigFn = (env: ConfigEnv) => UserConfig | Promise<DeepPartial<UserConfig>>;
1099
- type UserConfigExport = DeepPartial<UserConfig> | Promise<DeepPartial<UserConfig>> | UserConfigFnObject | UserConfigFnPromise | UserConfigFn;
1105
+ type UserConfigFnObject = (env: ConfigEnv) => DeepPartial$1<UserConfig>;
1106
+ type UserConfigFnPromise = (env: ConfigEnv) => Promise<DeepPartial$1<UserConfig>>;
1107
+ type UserConfigFn = (env: ConfigEnv) => UserConfig | Promise<DeepPartial$1<UserConfig>>;
1108
+ type UserConfigExport = DeepPartial$1<UserConfig> | Promise<DeepPartial$1<UserConfig>> | UserConfigFnObject | UserConfigFnPromise | UserConfigFn;
1100
1109
 
1101
1110
  interface ResolvedEntryTypeDefinition extends TypeDefinition {
1102
1111
  /**
@@ -1109,7 +1118,7 @@ interface ResolvedEntryTypeDefinition extends TypeDefinition {
1109
1118
  output?: string;
1110
1119
  }
1111
1120
  type BabelResolvedConfig = Omit<BabelUserConfig, "plugins" | "presets"> & Required<Pick<BabelUserConfig, "plugins" | "presets">>;
1112
- type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "mode" | "ssr" | "preview" | "mainFields" | "extensions"> & Required<Pick<EnvironmentConfig, "consumer" | "mode" | "ssr" | "mainFields" | "extensions">> & {
1121
+ type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "mode" | "ssr" | "preview"> & Required<Pick<EnvironmentConfig, "consumer" | "mode" | "ssr">> & {
1113
1122
  /**
1114
1123
  * The name of the environment
1115
1124
  */
@@ -1126,7 +1135,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets"> & {
1126
1135
  /**
1127
1136
  * The resolved options for the Powerlines project configuration.
1128
1137
  */
1129
- type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "override" | "root" | "variant" | "type" | "output" | "logLevel" | "framework"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "override" | "framework">> & {
1138
+ type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "variant" | "type" | "output" | "logLevel" | "framework"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "framework">> & {
1130
1139
  /**
1131
1140
  * The configuration options that were provided inline to the Powerlines CLI.
1132
1141
  */
@@ -1157,6 +1166,13 @@ type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserCon
1157
1166
  * The output configuration options to use for the build process
1158
1167
  */
1159
1168
  output: OutputResolvedConfig;
1169
+ /**
1170
+ * Configuration provided to build processes
1171
+ *
1172
+ * @remarks
1173
+ * This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
1174
+ */
1175
+ build: Omit<TUserConfig["build"], "override"> & Required<Pick<Required<TUserConfig["build"]>, "override">>;
1160
1176
  /**
1161
1177
  * The log level to use for the Powerlines processes.
1162
1178
  *
@@ -1175,4 +1191,4 @@ type UnbuildResolvedConfig = ResolvedConfig<UnbuildUserConfig>;
1175
1191
  type FarmResolvedConfig = ResolvedConfig<FarmUserConfig>;
1176
1192
  type InferResolvedConfig<TBuildVariant extends BuildVariant | undefined> = TBuildVariant extends undefined ? ResolvedConfig : TBuildVariant extends "webpack" ? WebpackResolvedConfig : TBuildVariant extends "rspack" ? RspackResolvedConfig : TBuildVariant extends "vite" ? ViteResolvedConfig : TBuildVariant extends "esbuild" ? ESBuildResolvedConfig : TBuildVariant extends "unbuild" ? UnbuildResolvedConfig : TBuildVariant extends "tsup" ? TsupResolvedConfig : TBuildVariant extends "rolldown" ? RolldownResolvedConfig : TBuildVariant extends "rollup" ? RollupResolvedConfig : TBuildVariant extends "farm" ? FarmResolvedConfig : ResolvedConfig;
1177
1193
 
1178
- export { type AnyUserConfig as $, type ParsedUserConfig as A, type BabelPluginPass as B, type CommandType as C, type DefaultImportDefinition as D, type EnvironmentConfig as E, type FarmUserConfig as F, type PowerlinesCommand as G, type InlineConfig as H, type ImportDefinition as I, type NewInlineConfig as J, type CleanInlineConfig as K, type LogFn as L, type PrepareInlineConfig as M, type NamedImportDefinition as N, type OutputConfig as O, type PluginFactory as P, type BuildInlineConfig as Q, type ResolvedBabelTransformPluginOptions as R, SUPPORTED_COMMANDS as S, type TsupUserConfig as T, type UserConfig as U, type ViteUserConfig as V, type WorkspaceConfig as W, type LintInlineConfig as X, type DocsInlineConfig as Y, type ReleaseInlineConfig as Z, type ConfigEnv as _, type BabelTransformPluginFilter as a, type UserConfigFnObject as a0, type UserConfigFnPromise as a1, type UserConfigFn as a2, type UserConfigExport as a3, LogLevel as a4, type WorkerProcess as a5, type MetaInfo as a6, type Resolver as a7, type TransformResult as a8, type SourceFile as a9, type GenerateTypesResult as aA, type BasePluginHookFunctions as aB, type BuildPlugin as aC, type ExternalPluginHookFunctionsVariant as aD, type ExternalPluginHookFunctions as aE, type PluginHookFunctions as aF, type PluginHooks as aG, type PluginBuildPlugins as aH, type Plugin as aI, PLUGIN_NON_HOOK_FIELDS as aJ, type PluginNonHookFields as aK, type ResolvedEntryTypeDefinition as aL, type BabelResolvedConfig as aM, type EnvironmentResolvedConfig as aN, type ResolvedAssetGlob as aO, type OutputResolvedConfig as aP, type ResolvedConfig as aQ, type ViteResolvedConfig as aR, type WebpackResolvedConfig as aS, type RspackResolvedConfig as aT, type ESBuildResolvedConfig as aU, type RollupResolvedConfig as aV, type RolldownResolvedConfig as aW, type TsupResolvedConfig as aX, type UnbuildResolvedConfig as aY, type FarmResolvedConfig as aZ, type InferResolvedConfig as a_, type UnimportContext as aa, type SelectHooksOptions as ab, type InitContextOptions as ac, type Context as ad, type APIContext as ae, type EnvironmentContextPlugin as af, type EnvironmentContext as ag, type PluginContext as ah, type BuildPluginContext as ai, type SerializedVirtualFileSystem as aj, type BaseHooks as ak, type BaseHookKeys as al, type ExternalHooks as am, type ExternalHookKeys as an, type Hooks as ao, type HookKeys as ap, type BaseHooksListItem as aq, type BaseHooksList as ar, type ExternalHooksListItem as as, type HooksList as at, type InferHookHandler as au, type InferHookReturnType as av, type InferHookParameters as aw, type InferHookThisType as ax, type PluginHookObject as ay, type PluginHook as az, type BabelTransformPlugin as b, type BabelTransformPluginOptions as c, type BabelTransformInput as d, type BabelTransformPluginBuilderParams as e, type BabelTransformPluginBuilder as f, type DeclareBabelTransformPluginReturn as g, type ImportSpecifier as h, type Commands as i, type PluginConfigTuple as j, type PluginConfigObject as k, type PluginConfig as l, type PartialPlugin as m, type PartialPluginFactory as n, type ProjectType as o, type BabelUserConfig as p, type BaseConfig as q, type CommonUserConfig as r, type WebpackUserConfig as s, type RspackUserConfig as t, type RollupUserConfig as u, type RolldownUserConfig as v, type ESBuildUserConfig as w, type UnbuildUserConfig as x, type InferUserConfig as y, type InitialUserConfig as z };
1194
+ export { type AnyUserConfig as $, type ParsedUserConfig as A, type BabelPluginPass as B, type CommandType as C, type DefaultImportDefinition as D, type EnvironmentConfig as E, type FarmUserConfig as F, type PowerlinesCommand as G, type InlineConfig as H, type ImportDefinition as I, type NewInlineConfig as J, type CleanInlineConfig as K, type LogFn as L, type PrepareInlineConfig as M, type NamedImportDefinition as N, type OutputConfig as O, type PluginFactory as P, type BuildInlineConfig as Q, type ResolvedBabelTransformPluginOptions as R, SUPPORTED_COMMANDS as S, type TsupUserConfig as T, type UserConfig as U, type ViteUserConfig as V, type WorkspaceConfig as W, type LintInlineConfig as X, type DocsInlineConfig as Y, type ReleaseInlineConfig as Z, type ConfigEnv as _, type BabelTransformPluginFilter as a, type FarmResolvedConfig as a$, type UserConfigFnObject as a0, type UserConfigFnPromise as a1, type UserConfigFn as a2, type UserConfigExport as a3, LogLevel as a4, type WorkerProcess as a5, type MetaInfo as a6, type Resolver as a7, type TransformResult as a8, type SourceFile as a9, type PluginHook as aA, type GenerateTypesResult as aB, type ConfigResult as aC, type BasePluginHookFunctions as aD, type BuildPlugin as aE, type ExternalPluginHookFunctionsVariant as aF, type ExternalPluginHookFunctions as aG, type PluginHookFunctions as aH, type PluginHooks as aI, type PluginBuildPlugins as aJ, type Plugin as aK, PLUGIN_NON_HOOK_FIELDS as aL, type PluginNonHookFields as aM, type ResolvedEntryTypeDefinition as aN, type BabelResolvedConfig as aO, type EnvironmentResolvedConfig as aP, type ResolvedAssetGlob as aQ, type OutputResolvedConfig as aR, type ResolvedConfig as aS, type ViteResolvedConfig as aT, type WebpackResolvedConfig as aU, type RspackResolvedConfig as aV, type ESBuildResolvedConfig as aW, type RollupResolvedConfig as aX, type RolldownResolvedConfig as aY, type TsupResolvedConfig as aZ, type UnbuildResolvedConfig as a_, type UnimportContext as aa, type SelectHooksOptions as ab, type InitContextOptions as ac, type UnresolvedContext as ad, type Context as ae, type APIContext as af, type EnvironmentContextPlugin as ag, type EnvironmentContext as ah, type PluginContext as ai, type BuildPluginContext as aj, type SerializedVirtualFileSystem as ak, type BaseHooks as al, type BaseHookKeys as am, type ExternalHooks as an, type ExternalHookKeys as ao, type Hooks as ap, type HookKeys as aq, type BaseHooksListItem as ar, type BaseHooksList as as, type ExternalHooksListItem as at, type HooksList as au, type InferHookHandler as av, type InferHookReturnType as aw, type InferHookParameters as ax, type InferHookThisType as ay, type PluginHookObject as az, type BabelTransformPlugin as b, type InferResolvedConfig as b0, type BabelTransformPluginOptions as c, type BabelTransformInput as d, type BabelTransformPluginBuilderParams as e, type BabelTransformPluginBuilder as f, type DeclareBabelTransformPluginReturn as g, type ImportSpecifier as h, type Commands as i, type PluginConfigTuple as j, type PluginConfigObject as k, type PluginConfig as l, type PartialPlugin as m, type PartialPluginFactory as n, type ProjectType as o, type BabelUserConfig as p, type BaseConfig as q, type CommonUserConfig as r, type WebpackUserConfig as s, type RspackUserConfig as t, type RollupUserConfig as u, type RolldownUserConfig as v, type ESBuildUserConfig as w, type UnbuildUserConfig as x, type InferUserConfig as y, type InitialUserConfig as z };
package/dist/rolldown.cjs CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkA3FMGMBV_cjs = require('./chunk-A3FMGMBV.cjs');
6
- require('./chunk-ULFJBFI7.cjs');
7
- require('./chunk-KMELWYHW.cjs');
5
+ var chunkVVFIZVYE_cjs = require('./chunk-VVFIZVYE.cjs');
6
+ require('./chunk-6UVRB3IN.cjs');
7
+ require('./chunk-MOH4CWHN.cjs');
8
8
  require('./chunk-ETKZMGLN.cjs');
9
9
  require('./chunk-RF6RSWD4.cjs');
10
10
  require('./chunk-FCTNMPJF.cjs');
@@ -14,13 +14,13 @@ require('./chunk-USNT2KNT.cjs');
14
14
 
15
15
  Object.defineProperty(exports, "default", {
16
16
  enumerable: true,
17
- get: function () { return chunkA3FMGMBV_cjs.rolldown_default; }
17
+ get: function () { return chunkVVFIZVYE_cjs.rolldown_default; }
18
18
  });
19
19
  Object.defineProperty(exports, "module.exports", {
20
20
  enumerable: true,
21
- get: function () { return chunkA3FMGMBV_cjs.rolldown; }
21
+ get: function () { return chunkVVFIZVYE_cjs.rolldown; }
22
22
  });
23
23
  Object.defineProperty(exports, "rolldown", {
24
24
  enumerable: true,
25
- get: function () { return chunkA3FMGMBV_cjs.rolldown; }
25
+ get: function () { return chunkVVFIZVYE_cjs.rolldown; }
26
26
  });
@@ -1,5 +1,5 @@
1
1
  import * as rolldown$1 from 'rolldown';
2
- import { v as RolldownUserConfig } from './resolved-B41SbjnS.cjs';
2
+ import { v as RolldownUserConfig } from './resolved-ohMN-3VJ.cjs';
3
3
  import '@stryke/types/base';
4
4
  import '@stryke/types/configuration';
5
5
  import '@stryke/types/file';
@@ -1,5 +1,5 @@
1
1
  import * as rolldown$1 from 'rolldown';
2
- import { v as RolldownUserConfig } from './resolved-J7a2Aeuk.js';
2
+ import { v as RolldownUserConfig } from './resolved-Sxyrlt6g.js';
3
3
  import '@stryke/types/base';
4
4
  import '@stryke/types/configuration';
5
5
  import '@stryke/types/file';
package/dist/rolldown.js CHANGED
@@ -1,6 +1,6 @@
1
- export { rolldown_default as default, rolldown as "module.exports", rolldown } from './chunk-HI3LNK6Q.js';
2
- import './chunk-MLAYLHZO.js';
3
- import './chunk-GFINPIIK.js';
1
+ export { rolldown_default as default, rolldown as "module.exports", rolldown } from './chunk-2KGMZZ36.js';
2
+ import './chunk-WRP6ANCC.js';
3
+ import './chunk-F4TS44KB.js';
4
4
  import './chunk-JQCWV4DT.js';
5
5
  import './chunk-OBYFBPPO.js';
6
6
  import './chunk-WJ4CZKXY.js';
package/dist/rollup.cjs CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkYQZXG4X6_cjs = require('./chunk-YQZXG4X6.cjs');
6
- require('./chunk-ULFJBFI7.cjs');
7
- require('./chunk-KMELWYHW.cjs');
5
+ var chunkMZQXGWUK_cjs = require('./chunk-MZQXGWUK.cjs');
6
+ require('./chunk-6UVRB3IN.cjs');
7
+ require('./chunk-MOH4CWHN.cjs');
8
8
  require('./chunk-ETKZMGLN.cjs');
9
9
  require('./chunk-RF6RSWD4.cjs');
10
10
  require('./chunk-FCTNMPJF.cjs');
@@ -14,13 +14,13 @@ require('./chunk-USNT2KNT.cjs');
14
14
 
15
15
  Object.defineProperty(exports, "default", {
16
16
  enumerable: true,
17
- get: function () { return chunkYQZXG4X6_cjs.rollup_default; }
17
+ get: function () { return chunkMZQXGWUK_cjs.rollup_default; }
18
18
  });
19
19
  Object.defineProperty(exports, "module.exports", {
20
20
  enumerable: true,
21
- get: function () { return chunkYQZXG4X6_cjs.rollup; }
21
+ get: function () { return chunkMZQXGWUK_cjs.rollup; }
22
22
  });
23
23
  Object.defineProperty(exports, "rollup", {
24
24
  enumerable: true,
25
- get: function () { return chunkYQZXG4X6_cjs.rollup; }
25
+ get: function () { return chunkMZQXGWUK_cjs.rollup; }
26
26
  });
package/dist/rollup.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as rollup$1 from 'rollup';
2
- import { u as RollupUserConfig } from './resolved-B41SbjnS.cjs';
2
+ import { u as RollupUserConfig } from './resolved-ohMN-3VJ.cjs';
3
3
  import '@stryke/types/base';
4
4
  import '@stryke/types/configuration';
5
5
  import '@stryke/types/file';
package/dist/rollup.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as rollup$1 from 'rollup';
2
- import { u as RollupUserConfig } from './resolved-J7a2Aeuk.js';
2
+ import { u as RollupUserConfig } from './resolved-Sxyrlt6g.js';
3
3
  import '@stryke/types/base';
4
4
  import '@stryke/types/configuration';
5
5
  import '@stryke/types/file';
package/dist/rollup.js CHANGED
@@ -1,6 +1,6 @@
1
- export { rollup_default as default, rollup as "module.exports", rollup } from './chunk-RR7EC4RF.js';
2
- import './chunk-MLAYLHZO.js';
3
- import './chunk-GFINPIIK.js';
1
+ export { rollup_default as default, rollup as "module.exports", rollup } from './chunk-A2EZ3M22.js';
2
+ import './chunk-WRP6ANCC.js';
3
+ import './chunk-F4TS44KB.js';
4
4
  import './chunk-JQCWV4DT.js';
5
5
  import './chunk-OBYFBPPO.js';
6
6
  import './chunk-WJ4CZKXY.js';
package/dist/rspack.cjs CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkBSGWY4AP_cjs = require('./chunk-BSGWY4AP.cjs');
6
- require('./chunk-ULFJBFI7.cjs');
7
- require('./chunk-KMELWYHW.cjs');
5
+ var chunkOQNYDN5F_cjs = require('./chunk-OQNYDN5F.cjs');
6
+ require('./chunk-6UVRB3IN.cjs');
7
+ require('./chunk-MOH4CWHN.cjs');
8
8
  require('./chunk-ETKZMGLN.cjs');
9
9
  require('./chunk-RF6RSWD4.cjs');
10
10
  require('./chunk-FCTNMPJF.cjs');
@@ -14,13 +14,13 @@ require('./chunk-USNT2KNT.cjs');
14
14
 
15
15
  Object.defineProperty(exports, "default", {
16
16
  enumerable: true,
17
- get: function () { return chunkBSGWY4AP_cjs.rspack_default; }
17
+ get: function () { return chunkOQNYDN5F_cjs.rspack_default; }
18
18
  });
19
19
  Object.defineProperty(exports, "module.exports", {
20
20
  enumerable: true,
21
- get: function () { return chunkBSGWY4AP_cjs.rspack; }
21
+ get: function () { return chunkOQNYDN5F_cjs.rspack; }
22
22
  });
23
23
  Object.defineProperty(exports, "rspack", {
24
24
  enumerable: true,
25
- get: function () { return chunkBSGWY4AP_cjs.rspack; }
25
+ get: function () { return chunkOQNYDN5F_cjs.rspack; }
26
26
  });
package/dist/rspack.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as unplugin from 'unplugin';
2
- import { t as RspackUserConfig } from './resolved-B41SbjnS.cjs';
2
+ import { t as RspackUserConfig } from './resolved-ohMN-3VJ.cjs';
3
3
  import '@stryke/types/base';
4
4
  import '@stryke/types/configuration';
5
5
  import '@stryke/types/file';
package/dist/rspack.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as unplugin from 'unplugin';
2
- import { t as RspackUserConfig } from './resolved-J7a2Aeuk.js';
2
+ import { t as RspackUserConfig } from './resolved-Sxyrlt6g.js';
3
3
  import '@stryke/types/base';
4
4
  import '@stryke/types/configuration';
5
5
  import '@stryke/types/file';
package/dist/rspack.js CHANGED
@@ -1,6 +1,6 @@
1
- export { rspack_default as default, rspack as "module.exports", rspack } from './chunk-HEG6IAVR.js';
2
- import './chunk-MLAYLHZO.js';
3
- import './chunk-GFINPIIK.js';
1
+ export { rspack_default as default, rspack as "module.exports", rspack } from './chunk-QH3M5FBF.js';
2
+ import './chunk-WRP6ANCC.js';
3
+ import './chunk-F4TS44KB.js';
4
4
  import './chunk-JQCWV4DT.js';
5
5
  import './chunk-OBYFBPPO.js';
6
6
  import './chunk-WJ4CZKXY.js';
package/dist/tsup.cjs CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunk7HKTQSUG_cjs = require('./chunk-7HKTQSUG.cjs');
6
- require('./chunk-TK6CN2KT.cjs');
7
- require('./chunk-F5NKLRZD.cjs');
8
- require('./chunk-ULFJBFI7.cjs');
9
- require('./chunk-KMELWYHW.cjs');
5
+ var chunkIMMNZSFZ_cjs = require('./chunk-IMMNZSFZ.cjs');
6
+ require('./chunk-T4AJOD6A.cjs');
7
+ require('./chunk-WE7PLY4H.cjs');
8
+ require('./chunk-6UVRB3IN.cjs');
9
+ require('./chunk-MOH4CWHN.cjs');
10
10
  require('./chunk-ETKZMGLN.cjs');
11
11
  require('./chunk-RF6RSWD4.cjs');
12
12
  require('./chunk-FCTNMPJF.cjs');
@@ -16,13 +16,13 @@ require('./chunk-USNT2KNT.cjs');
16
16
 
17
17
  Object.defineProperty(exports, "default", {
18
18
  enumerable: true,
19
- get: function () { return chunk7HKTQSUG_cjs.tsup_default; }
19
+ get: function () { return chunkIMMNZSFZ_cjs.tsup_default; }
20
20
  });
21
21
  Object.defineProperty(exports, "module.exports", {
22
22
  enumerable: true,
23
- get: function () { return chunk7HKTQSUG_cjs.tsup; }
23
+ get: function () { return chunkIMMNZSFZ_cjs.tsup; }
24
24
  });
25
25
  Object.defineProperty(exports, "tsup", {
26
26
  enumerable: true,
27
- get: function () { return chunk7HKTQSUG_cjs.tsup; }
27
+ get: function () { return chunkIMMNZSFZ_cjs.tsup; }
28
28
  });
package/dist/tsup.js CHANGED
@@ -1,8 +1,8 @@
1
- export { tsup_default as default, tsup as "module.exports", tsup } from './chunk-PAJB5K7A.js';
2
- import './chunk-VICSRRKQ.js';
3
- import './chunk-CWCEYGLM.js';
4
- import './chunk-MLAYLHZO.js';
5
- import './chunk-GFINPIIK.js';
1
+ export { tsup_default as default, tsup as "module.exports", tsup } from './chunk-FYKDALJL.js';
2
+ import './chunk-JKF342AW.js';
3
+ import './chunk-TY3QAXEY.js';
4
+ import './chunk-WRP6ANCC.js';
5
+ import './chunk-F4TS44KB.js';
6
6
  import './chunk-JQCWV4DT.js';
7
7
  import './chunk-OBYFBPPO.js';
8
8
  import './chunk-WJ4CZKXY.js';
@@ -1,6 +1,6 @@
1
1
  import '@babel/core';
2
2
  import '@babel/helper-plugin-utils';
3
- export { B as BabelPluginPass, d as BabelTransformInput, b as BabelTransformPlugin, f as BabelTransformPluginBuilder, e as BabelTransformPluginBuilderParams, a as BabelTransformPluginFilter, c as BabelTransformPluginOptions, g as DeclareBabelTransformPluginReturn, D as DefaultImportDefinition, I as ImportDefinition, h as ImportSpecifier, N as NamedImportDefinition, R as ResolvedBabelTransformPluginOptions } from '../resolved-B41SbjnS.cjs';
3
+ export { B as BabelPluginPass, d as BabelTransformInput, b as BabelTransformPlugin, f as BabelTransformPluginBuilder, e as BabelTransformPluginBuilderParams, a as BabelTransformPluginFilter, c as BabelTransformPluginOptions, g as DeclareBabelTransformPluginReturn, D as DefaultImportDefinition, I as ImportDefinition, h as ImportSpecifier, N as NamedImportDefinition, R as ResolvedBabelTransformPluginOptions } from '../resolved-ohMN-3VJ.cjs';
4
4
  import '@stryke/types/base';
5
5
  import '@stryke/types/configuration';
6
6
  import '@stryke/types/file';
@@ -1,6 +1,6 @@
1
1
  import '@babel/core';
2
2
  import '@babel/helper-plugin-utils';
3
- export { B as BabelPluginPass, d as BabelTransformInput, b as BabelTransformPlugin, f as BabelTransformPluginBuilder, e as BabelTransformPluginBuilderParams, a as BabelTransformPluginFilter, c as BabelTransformPluginOptions, g as DeclareBabelTransformPluginReturn, D as DefaultImportDefinition, I as ImportDefinition, h as ImportSpecifier, N as NamedImportDefinition, R as ResolvedBabelTransformPluginOptions } from '../resolved-J7a2Aeuk.js';
3
+ export { B as BabelPluginPass, d as BabelTransformInput, b as BabelTransformPlugin, f as BabelTransformPluginBuilder, e as BabelTransformPluginBuilderParams, a as BabelTransformPluginFilter, c as BabelTransformPluginOptions, g as DeclareBabelTransformPluginReturn, D as DefaultImportDefinition, I as ImportDefinition, h as ImportSpecifier, N as NamedImportDefinition, R as ResolvedBabelTransformPluginOptions } from '../resolved-Sxyrlt6g.js';
4
4
  import '@stryke/types/base';
5
5
  import '@stryke/types/configuration';
6
6
  import '@stryke/types/file';
@@ -18,6 +18,73 @@ interface BuildConfig {
18
18
  * @defaultValue "neutral"
19
19
  */
20
20
  platform?: "node" | "browser" | "neutral";
21
+ /**
22
+ * Array of strings indicating the order in which fields in a package.json file should be resolved to determine the entry point for a module.
23
+ *
24
+ * @defaultValue `['browser', 'module', 'jsnext:main', 'jsnext']`
25
+ */
26
+ mainFields?: string[];
27
+ /**
28
+ * Array of strings indicating what conditions should be used for module resolution.
29
+ */
30
+ conditions?: string[];
31
+ /**
32
+ * Array of strings indicating what file extensions should be used for module resolution.
33
+ *
34
+ * @defaultValue `['.mjs', '.js', '.mts', '.ts', '.jsx', '.tsx', '.json']`
35
+ */
36
+ extensions?: string[];
37
+ /**
38
+ * Array of strings indicating what modules should be deduplicated to a single version in the build.
39
+ *
40
+ * @remarks
41
+ * This option is useful for ensuring that only one version of a module is included in the bundle, which can help reduce bundle size and avoid conflicts.
42
+ */
43
+ dedupe?: string[];
44
+ /**
45
+ * Array of strings or regular expressions that indicate what modules are builtin for the environment.
46
+ */
47
+ builtins?: (string | RegExp)[];
48
+ /**
49
+ * Define global variable replacements.
50
+ *
51
+ * @remarks
52
+ * This option allows you to specify global constants that will be replaced in the code during the build process. It is similar to the `define` option in esbuild and Vite, enabling you to replace specific identifiers with constant expressions at build time.
53
+ *
54
+ * @example
55
+ * ```ts
56
+ * {
57
+ * define: {
58
+ * __VERSION__: '"1.0.0"',
59
+ * __DEV__: 'process.env.NODE_ENV !== "production"'
60
+ * }
61
+ * }
62
+ * ```
63
+ *
64
+ * @see https://esbuild.github.io/api/#define
65
+ * @see https://vitejs.dev/config/build-options.html#define
66
+ * @see https://github.com/rollup/plugins/tree/master/packages/replace
67
+ */
68
+ define?: Record<string, any>;
69
+ /**
70
+ * Global variables that will have import statements injected where necessary
71
+ *
72
+ * @remarks
73
+ * This option allows you to specify global variables that should be automatically imported from specified modules whenever they are used in the code. This is particularly useful for polyfilling Node.js globals in a browser environment.
74
+ *
75
+ * @example
76
+ * ```ts
77
+ * {
78
+ * inject: {
79
+ * process: 'process/browser',
80
+ * Buffer: ['buffer', 'Buffer'],
81
+ * }
82
+ * }
83
+ * ```
84
+ *
85
+ * @see https://github.com/rollup/plugins/tree/master/packages/inject
86
+ */
87
+ inject?: Record<string, string | string[]>;
21
88
  /**
22
89
  * The alias mappings to use for module resolution during the build process.
23
90
  *
@@ -33,6 +100,8 @@ interface BuildConfig {
33
100
  * }
34
101
  * }
35
102
  * ```
103
+ *
104
+ * @see https://github.com/rollup/plugins/tree/master/packages/alias
36
105
  */
37
106
  alias?: Record<string, string>;
38
107
  /**
@@ -51,15 +120,16 @@ interface BuildConfig {
51
120
  */
52
121
  skipNodeModulesBundle?: boolean;
53
122
  /**
54
- * Should the Powerlines processes skip the `"prepare"` task prior to building?
123
+ * An optional set of override options to apply to the selected build variant.
55
124
  *
56
- * @defaultValue false
125
+ * @remarks
126
+ * This option allows you to provide configuration options with the guarantee that they will **not** be overridden and will take precedence over other build configurations.
57
127
  */
58
- skipPrepare?: boolean;
128
+ override?: Record<string, any>;
59
129
  }
60
- type BuildResolvedConfig = BuildConfig;
61
- type ESBuildBuildConfig = Omit<BuildOptions, "entryPoints" | "sourceRoot" | "platform" | "outdir" | "env" | "assets" | "external" | "tsconfig" | "tsconfigRaw" | "logLevel"> & BuildConfig;
62
- type ESBuildResolvedBuildConfig = BuildOptions & BuildResolvedConfig;
130
+ type BuildResolvedConfig = Omit<BuildConfig, "override">;
131
+ type ESBuildBuildConfig = Omit<BuildOptions, "entryPoints" | "sourceRoot" | "platform" | "outdir" | "env" | "assets" | "external" | "inject" | "tsconfig" | "tsconfigRaw" | "logLevel"> & BuildConfig;
132
+ type ESBuildResolvedBuildConfig = Omit<BuildOptions, "inject"> & BuildResolvedConfig;
63
133
  type ViteBuildConfig = Omit<UserConfig, "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output"> & BuildConfig;
64
134
  type ViteResolvedBuildConfig = UserConfig & BuildResolvedConfig;
65
135
  type WebpackBuildConfig = Omit<Configuration, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw"> & BuildConfig;