@powerlines/plugin-env 0.13.63 → 0.13.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (251) hide show
  1. package/dist/{chunk-DT2f8AgL.cjs → _virtual/rolldown_runtime.cjs} +1 -1
  2. package/dist/{chunk-CbqXBSoN.mjs → _virtual/rolldown_runtime.mjs} +1 -1
  3. package/dist/alloy/src/core/components/output.cjs +1 -0
  4. package/dist/alloy/src/core/components/output.mjs +1 -0
  5. package/dist/alloy/src/core/components/single-line-comment.cjs +1 -0
  6. package/dist/alloy/src/core/components/single-line-comment.mjs +1 -0
  7. package/dist/alloy/src/core/components/source-file.cjs +1 -0
  8. package/dist/alloy/src/core/components/source-file.d.cts +22 -0
  9. package/dist/alloy/src/core/components/source-file.d.mts +22 -0
  10. package/dist/alloy/src/core/components/source-file.mjs +1 -0
  11. package/dist/alloy/src/core/contexts/context.cjs +1 -0
  12. package/dist/alloy/src/core/contexts/context.mjs +1 -0
  13. package/dist/alloy/src/core/contexts/reflection.cjs +1 -0
  14. package/dist/alloy/src/core/contexts/reflection.mjs +1 -0
  15. package/dist/alloy/src/create-plugin.cjs +2 -0
  16. package/dist/alloy/src/create-plugin.mjs +2 -0
  17. package/dist/alloy/src/helpers/refkey.cjs +1 -0
  18. package/dist/alloy/src/helpers/refkey.mjs +1 -0
  19. package/dist/alloy/src/markdown/components/markdown-file.cjs +1 -0
  20. package/dist/alloy/src/markdown/components/markdown-file.mjs +1 -0
  21. package/dist/alloy/src/markdown/components/markdown-table.cjs +1 -0
  22. package/dist/alloy/src/markdown/components/markdown-table.mjs +1 -0
  23. package/dist/alloy/src/markdown/contexts/markdown-table.cjs +1 -0
  24. package/dist/alloy/src/markdown/contexts/markdown-table.mjs +1 -0
  25. package/dist/alloy/src/types/components.d.cts +19 -0
  26. package/dist/alloy/src/types/components.d.mts +23 -0
  27. package/dist/alloy/src/types/plugin.d.cts +15 -0
  28. package/dist/alloy/src/types/plugin.d.mts +15 -0
  29. package/dist/alloy/src/typescript/components/builtin-file.cjs +1 -0
  30. package/dist/alloy/src/typescript/components/builtin-file.d.cts +25 -0
  31. package/dist/alloy/src/typescript/components/builtin-file.d.mts +26 -0
  32. package/dist/alloy/src/typescript/components/builtin-file.mjs +1 -0
  33. package/dist/alloy/src/typescript/components/tsdoc-reflection.cjs +1 -0
  34. package/dist/alloy/src/typescript/components/tsdoc-reflection.mjs +1 -0
  35. package/dist/alloy/src/typescript/components/tsdoc.cjs +1 -0
  36. package/dist/alloy/src/typescript/components/tsdoc.d.cts +27 -0
  37. package/dist/alloy/src/typescript/components/tsdoc.d.mts +28 -0
  38. package/dist/alloy/src/typescript/components/tsdoc.mjs +1 -0
  39. package/dist/alloy/src/typescript/components/typescript-file.cjs +1 -0
  40. package/dist/alloy/src/typescript/components/typescript-file.d.cts +13 -0
  41. package/dist/alloy/src/typescript/components/typescript-file.d.mts +14 -0
  42. package/dist/alloy/src/typescript/components/typescript-file.mjs +1 -0
  43. package/dist/alloy/src/typescript/components/typescript-interface.cjs +1 -0
  44. package/dist/alloy/src/typescript/components/typescript-interface.d.cts +11 -0
  45. package/dist/alloy/src/typescript/components/typescript-interface.d.mts +12 -0
  46. package/dist/alloy/src/typescript/components/typescript-interface.mjs +1 -0
  47. package/dist/alloy/src/typescript/components/typescript-object.cjs +1 -0
  48. package/dist/alloy/src/typescript/components/typescript-object.mjs +1 -0
  49. package/dist/babel/index.cjs +1 -1
  50. package/dist/babel/index.d.cts +1 -16
  51. package/dist/babel/index.d.mts +1 -16
  52. package/dist/babel/index.mjs +1 -1
  53. package/dist/babel/plugin.cjs +5 -1
  54. package/dist/babel/plugin.d.cts +6 -16
  55. package/dist/babel/plugin.d.mts +8 -16
  56. package/dist/babel/plugin.mjs +5 -1
  57. package/dist/components/docs.cjs +1 -1
  58. package/dist/components/docs.d.cts +8 -1
  59. package/dist/components/docs.d.mts +8 -1
  60. package/dist/components/docs.mjs +1 -1
  61. package/dist/components/env.cjs +34 -1
  62. package/dist/components/env.d.cts +19 -3
  63. package/dist/components/env.d.mts +19 -3
  64. package/dist/components/env.mjs +31 -1
  65. package/dist/components/index.cjs +1 -1
  66. package/dist/components/index.d.cts +2 -5
  67. package/dist/components/index.d.mts +2 -5
  68. package/dist/components/index.mjs +1 -1
  69. package/dist/deepkit/schemas/reflection.cjs +1 -0
  70. package/dist/{plugin-CO-g42T8.d.mts → deepkit/schemas/reflection.d.cts} +1 -156
  71. package/dist/{plugin-COCJiK-0.d.cts → deepkit/schemas/reflection.d.mts} +1 -156
  72. package/dist/deepkit/schemas/reflection.mjs +1 -0
  73. package/dist/deepkit/schemas/reflection2.cjs +1 -0
  74. package/dist/deepkit/schemas/reflection2.mjs +1 -0
  75. package/dist/deepkit/src/capnp.cjs +1 -0
  76. package/dist/deepkit/src/capnp.mjs +1 -0
  77. package/dist/deepkit/src/reflect-type.cjs +1 -0
  78. package/dist/deepkit/src/reflect-type.mjs +1 -0
  79. package/dist/deepkit/src/resolve-reflections.cjs +1 -0
  80. package/dist/deepkit/src/resolve-reflections.mjs +1 -0
  81. package/dist/deepkit/src/types.d.cts +10 -0
  82. package/dist/deepkit/src/types.d.mts +10 -0
  83. package/dist/deepkit/src/utilities.cjs +1 -0
  84. package/dist/deepkit/src/utilities.mjs +1 -0
  85. package/dist/deepkit/src/vendor/type.cjs +1 -0
  86. package/dist/deepkit/src/vendor/type.d.cts +7 -0
  87. package/dist/deepkit/src/vendor/type.d.mts +7 -0
  88. package/dist/deepkit/src/vendor/type.mjs +1 -0
  89. package/dist/helpers/create-reflection-resource.cjs +1 -1
  90. package/dist/helpers/create-reflection-resource.d.cts +14 -5
  91. package/dist/helpers/create-reflection-resource.d.mts +14 -5
  92. package/dist/helpers/create-reflection-resource.mjs +1 -1
  93. package/dist/helpers/index.cjs +1 -1
  94. package/dist/helpers/index.d.cts +6 -11
  95. package/dist/helpers/index.d.mts +6 -11
  96. package/dist/helpers/index.mjs +1 -1
  97. package/dist/helpers/load.cjs +1 -1
  98. package/dist/helpers/load.d.cts +34 -5
  99. package/dist/helpers/load.d.mts +35 -5
  100. package/dist/helpers/load.mjs +1 -1
  101. package/dist/helpers/persistence.cjs +1 -1
  102. package/dist/helpers/persistence.d.cts +83 -5
  103. package/dist/helpers/persistence.d.mts +83 -5
  104. package/dist/helpers/persistence.mjs +1 -1
  105. package/dist/helpers/reflect.cjs +1 -1
  106. package/dist/helpers/reflect.d.cts +45 -5
  107. package/dist/helpers/reflect.d.mts +45 -5
  108. package/dist/helpers/reflect.mjs +1 -1
  109. package/dist/helpers/source-file-env.cjs +1 -1
  110. package/dist/helpers/source-file-env.d.cts +7 -1
  111. package/dist/helpers/source-file-env.d.mts +7 -1
  112. package/dist/helpers/source-file-env.mjs +1 -1
  113. package/dist/helpers/template-helpers.cjs +1 -1
  114. package/dist/helpers/template-helpers.d.cts +14 -5
  115. package/dist/helpers/template-helpers.d.mts +14 -5
  116. package/dist/helpers/template-helpers.mjs +1 -1
  117. package/dist/index.cjs +3 -4
  118. package/dist/index.d.cts +20 -16
  119. package/dist/index.d.mts +25 -16
  120. package/dist/index.mjs +2 -3
  121. package/dist/plugin-babel/src/helpers/ast-utils.cjs +1 -0
  122. package/dist/plugin-babel/src/helpers/ast-utils.mjs +1 -0
  123. package/dist/plugin-babel/src/helpers/create-plugin.cjs +1 -0
  124. package/dist/plugin-babel/src/helpers/create-plugin.mjs +1 -0
  125. package/dist/plugin-babel/src/helpers/filters.cjs +1 -0
  126. package/dist/plugin-babel/src/helpers/filters.mjs +1 -0
  127. package/dist/plugin-babel/src/helpers/index.cjs +1 -0
  128. package/dist/plugin-babel/src/helpers/index.mjs +1 -0
  129. package/dist/plugin-babel/src/helpers/module-helpers.cjs +1 -0
  130. package/dist/plugin-babel/src/helpers/module-helpers.mjs +1 -0
  131. package/dist/plugin-babel/src/helpers/options.cjs +1 -0
  132. package/dist/plugin-babel/src/helpers/options.mjs +1 -0
  133. package/dist/plugin-babel/src/index.cjs +1 -0
  134. package/dist/plugin-babel/src/index.mjs +1 -0
  135. package/dist/plugin-babel/src/types/index.d.mts +1 -0
  136. package/dist/plugin-babel/src/types/plugin.d.cts +15 -0
  137. package/dist/plugin-babel/src/types/plugin.d.mts +15 -0
  138. package/dist/plugin-plugin/src/types/plugin.d.cts +21 -0
  139. package/dist/plugin-plugin/src/types/plugin.d.mts +24 -0
  140. package/dist/powerlines/src/internal/helpers/hooks.d.mts +5 -0
  141. package/dist/powerlines/src/lib/build/esbuild.cjs +14 -0
  142. package/dist/powerlines/src/lib/build/esbuild.mjs +14 -0
  143. package/dist/powerlines/src/lib/entry.cjs +1 -0
  144. package/dist/powerlines/src/lib/entry.mjs +1 -0
  145. package/dist/powerlines/src/lib/logger.cjs +1 -0
  146. package/dist/powerlines/src/lib/logger.mjs +1 -0
  147. package/dist/powerlines/src/lib/utilities/bundle.cjs +1 -0
  148. package/dist/powerlines/src/lib/utilities/bundle.mjs +1 -0
  149. package/dist/powerlines/src/lib/utilities/resolve.cjs +1 -0
  150. package/dist/powerlines/src/lib/utilities/resolve.mjs +1 -0
  151. package/dist/powerlines/src/plugin-utils/helpers.cjs +1 -0
  152. package/dist/powerlines/src/plugin-utils/helpers.mjs +1 -0
  153. package/dist/powerlines/src/plugin-utils/paths.cjs +1 -0
  154. package/dist/powerlines/src/plugin-utils/paths.mjs +1 -0
  155. package/dist/powerlines/src/types/api.d.mts +5 -0
  156. package/dist/powerlines/src/types/babel.d.cts +23 -0
  157. package/dist/powerlines/src/types/babel.d.mts +23 -0
  158. package/dist/powerlines/src/types/build.d.cts +139 -0
  159. package/dist/powerlines/src/types/build.d.mts +141 -0
  160. package/dist/powerlines/src/types/commands.d.cts +8 -0
  161. package/dist/powerlines/src/types/commands.d.mts +9 -0
  162. package/dist/powerlines/src/types/config.d.cts +356 -0
  163. package/dist/powerlines/src/types/config.d.mts +357 -0
  164. package/dist/powerlines/src/types/context.d.cts +358 -0
  165. package/dist/powerlines/src/types/context.d.mts +360 -0
  166. package/dist/powerlines/src/types/fs.d.cts +458 -0
  167. package/dist/powerlines/src/types/fs.d.mts +458 -0
  168. package/dist/powerlines/src/types/hooks.d.mts +2 -0
  169. package/dist/powerlines/src/types/index.d.mts +12 -0
  170. package/dist/powerlines/src/types/plugin.d.cts +232 -0
  171. package/dist/powerlines/src/types/plugin.d.mts +232 -0
  172. package/dist/powerlines/src/types/resolved.d.cts +82 -0
  173. package/dist/powerlines/src/types/resolved.d.mts +83 -0
  174. package/dist/powerlines/src/types/tsconfig.d.cts +69 -0
  175. package/dist/powerlines/src/types/tsconfig.d.mts +69 -0
  176. package/dist/powerlines/src/types/unplugin.d.mts +7 -0
  177. package/dist/types/index.cjs +0 -1
  178. package/dist/types/index.d.cts +2 -5
  179. package/dist/types/index.d.mts +2 -5
  180. package/dist/types/index.mjs +1 -1
  181. package/dist/types/plugin.cjs +0 -1
  182. package/dist/types/plugin.d.cts +140 -4
  183. package/dist/types/plugin.d.mts +141 -4
  184. package/dist/types/plugin.mjs +1 -1
  185. package/dist/types/runtime.cjs +0 -1
  186. package/dist/types/runtime.d.cts +793 -2
  187. package/dist/types/runtime.d.mts +793 -2
  188. package/dist/types/runtime.mjs +1 -1
  189. package/package.json +16 -16
  190. package/dist/babel-Bmzkjy1p.cjs +0 -0
  191. package/dist/babel-CE47sTzg.mjs +0 -1
  192. package/dist/components-BWruXLSx.cjs +0 -0
  193. package/dist/components-LyHNrcZE.mjs +0 -1
  194. package/dist/config-B6yMOlZT.d.mts +0 -1681
  195. package/dist/config-CROY1-l7.d.cts +0 -1679
  196. package/dist/create-reflection-resource-CDu8E8gy.d.mts +0 -15
  197. package/dist/create-reflection-resource-CQHJrkQi.cjs +0 -1
  198. package/dist/create-reflection-resource-JeWoqMUl.d.cts +0 -15
  199. package/dist/create-reflection-resource-UtOwX4Ml.mjs +0 -1
  200. package/dist/docs-BDiEhcDa.mjs +0 -1
  201. package/dist/docs-Bhi9smBO.cjs +0 -1
  202. package/dist/docs-BoZkRBO4.d.cts +0 -9
  203. package/dist/docs-BwK6pC_c.d.mts +0 -9
  204. package/dist/env-0C9Vc_CF.cjs +0 -34
  205. package/dist/env-D4MK9BWK.mjs +0 -31
  206. package/dist/env-DmwP_i6i.d.cts +0 -112
  207. package/dist/env-aTFI4okB.d.mts +0 -112
  208. package/dist/helpers-DfMThUgD.mjs +0 -1
  209. package/dist/helpers-YGhXHw5G.cjs +0 -0
  210. package/dist/index-BJKE_VGb.d.cts +0 -41
  211. package/dist/index-BRBK9zG-.d.cts +0 -1
  212. package/dist/index-Bt4QNofW.d.mts +0 -1
  213. package/dist/index-CRo77wc3.d.mts +0 -1
  214. package/dist/index-CspKFJM1.d.cts +0 -1
  215. package/dist/index-DmOJrPah.d.mts +0 -41
  216. package/dist/index-Dpmi5zcN.d.cts +0 -1
  217. package/dist/index-Wc1llEvP.d.mts +0 -1
  218. package/dist/load-BBU7vb0J.d.mts +0 -38
  219. package/dist/load-BZTlThWg.mjs +0 -1
  220. package/dist/load-BsKAoTvl.d.cts +0 -35
  221. package/dist/load-nUlit5lR.cjs +0 -1
  222. package/dist/persistence-2A9ruTmd.d.cts +0 -84
  223. package/dist/persistence-Br-YMVb1.mjs +0 -14
  224. package/dist/persistence-DzVrJHWz.d.mts +0 -84
  225. package/dist/persistence-KaP3-ka1.cjs +0 -14
  226. package/dist/plugin-CRYQ682C.cjs +0 -0
  227. package/dist/plugin-Cx61c9gw.mjs +0 -5
  228. package/dist/plugin-DrnPbdzR.mjs +0 -1
  229. package/dist/plugin-v-FJGggy.cjs +0 -5
  230. package/dist/reflect-C_H160xV.d.mts +0 -46
  231. package/dist/reflect-DBJcecMD.d.cts +0 -46
  232. package/dist/runtime-B5r9vNRi.d.cts +0 -794
  233. package/dist/runtime-BaZivi6m.cjs +0 -0
  234. package/dist/runtime-DqCYc37d.mjs +0 -1
  235. package/dist/runtime-mCXb10Zi.d.mts +0 -794
  236. package/dist/source-file-CLCTB4C7.cjs +0 -1
  237. package/dist/source-file-CjFSCK1w.mjs +0 -1
  238. package/dist/source-file-env-BDFTs5WJ.mjs +0 -1
  239. package/dist/source-file-env-C6uYyxww.cjs +0 -1
  240. package/dist/source-file-env-DonDJDV1.d.cts +0 -8
  241. package/dist/source-file-env-DzpWKluw.d.mts +0 -8
  242. package/dist/template-helpers-BSbamu0U.cjs +0 -1
  243. package/dist/template-helpers-BW7Ws5s0.d.cts +0 -15
  244. package/dist/template-helpers-CLrM_TtO.mjs +0 -1
  245. package/dist/template-helpers-jUbL9h-F.d.mts +0 -15
  246. package/dist/type-CnPIyotQ.d.mts +0 -3
  247. package/dist/type-D6dRgWJT.d.cts +0 -3
  248. package/dist/types-BCto_Rzj.mjs +0 -1
  249. package/dist/types-DS7T32tb.cjs +0 -0
  250. package/dist/utilities-4S--uN0L.mjs +0 -1
  251. package/dist/utilities-CxyT2chk.cjs +0 -1
@@ -0,0 +1,356 @@
1
+ import { StoragePort, StoragePreset } from "./fs.cjs";
2
+ import { BuildConfig, BuildResolvedConfig } from "./build.cjs";
3
+ import { Plugin } from "./plugin.cjs";
4
+ import { TSConfig } from "./tsconfig.cjs";
5
+ import { PluginContext } from "./context.cjs";
6
+ import { BabelTransformPluginOptions } from "./babel.cjs";
7
+ import { transformAsync } from "@babel/core";
8
+ import { Format } from "@storm-software/build-tools/types";
9
+ import { LogLevelLabel } from "@storm-software/config-tools/types";
10
+ import { StormWorkspaceConfig } from "@storm-software/config/types";
11
+ import { MaybePromise } from "@stryke/types/base";
12
+ import { TypeDefinitionParameter } from "@stryke/types/configuration";
13
+ import { AssetGlob } from "@stryke/types/file";
14
+ import { PreviewOptions } from "vite";
15
+
16
+ //#region ../powerlines/src/types/config.d.ts
17
+ type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
18
+ /**
19
+ * The {@link StormWorkspaceConfig | configuration} object for an entire Powerlines workspace
20
+ */
21
+ type WorkspaceConfig = Partial<StormWorkspaceConfig> & Required<Pick<StormWorkspaceConfig, "workspaceRoot">>;
22
+ type PluginFactory<in out TContext extends PluginContext = PluginContext, TOptions = any> = (options: TOptions) => MaybePromise<Plugin<TContext>>;
23
+ /**
24
+ * A configuration tuple for a Powerlines plugin.
25
+ */
26
+ type PluginConfigTuple<TContext extends PluginContext = PluginContext, TOptions = any> = [string | PluginFactory<TContext, TOptions>, TOptions] | [Plugin<TContext>];
27
+ /**
28
+ * A configuration object for a Powerlines plugin.
29
+ */
30
+ type PluginConfigObject<TContext extends PluginContext = PluginContext, TOptions = any> = {
31
+ plugin: string | PluginFactory<TContext, TOptions>;
32
+ options: TOptions;
33
+ } | {
34
+ plugin: Plugin<TContext>;
35
+ options?: never;
36
+ };
37
+ /**
38
+ * A configuration tuple for a Powerlines plugin.
39
+ */
40
+ type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> | Promise<Plugin<TContext>> | PluginConfigTuple<TContext> | PluginConfigObject<TContext>;
41
+ type ProjectType = "application" | "library";
42
+ type BabelUserConfig = Parameters<typeof transformAsync>[1] & {
43
+ /**
44
+ * The Babel plugins to be used during the build process
45
+ */
46
+ plugins?: BabelTransformPluginOptions[];
47
+ /**
48
+ * The Babel presets to be used during the build process
49
+ */
50
+ presets?: BabelTransformPluginOptions[];
51
+ };
52
+ interface DeployConfig {
53
+ /**
54
+ * The deployment variant being used by the Powerlines engine.
55
+ *
56
+ * @example
57
+ * ```ts
58
+ * export default defineConfig({
59
+ * deploy: {
60
+ * variant: "cloudflare"
61
+ * }
62
+ * });
63
+ *
64
+ * ```
65
+ */
66
+ variant?: string;
67
+ }
68
+ interface OutputConfig {
69
+ /**
70
+ * The path to output the final compiled files to
71
+ *
72
+ * @remarks
73
+ * If a value is not provided, Powerlines will attempt to:
74
+ * 1. Use the `outDir` value in the `tsconfig.json` file.
75
+ * 2. Use the `dist` directory in the project root directory.
76
+ *
77
+ * @defaultValue "dist/\{projectRoot\}"
78
+ */
79
+ outputPath?: string;
80
+ /**
81
+ * The output directory path for the project build.
82
+ *
83
+ * @remarks
84
+ * This path is used to determine where the built files will be placed after the build process completes. This will be used in scenarios where the monorepo uses TSConfig paths to link packages together.
85
+ *
86
+ * @defaultValue "\{projectRoot\}/dist"
87
+ */
88
+ buildPath?: string;
89
+ /**
90
+ * The folder where the generated runtime artifacts will be located
91
+ *
92
+ * @remarks
93
+ * This folder will contain all runtime artifacts and builtins generated during the "prepare" phase.
94
+ *
95
+ * @defaultValue "\{projectRoot\}/.powerlines"
96
+ */
97
+ artifactsPath?: string;
98
+ /**
99
+ * The path of the generated runtime declaration file relative to the workspace root.
100
+ *
101
+ * @defaultValue "\{projectRoot\}/powerlines.d.ts"
102
+ */
103
+ dts?: string | false;
104
+ /**
105
+ * A prefix to use for identifying builtin modules
106
+ *
107
+ * @remarks
108
+ * This prefix will be used to identify all builtin modules generated during the "prepare" phase. An example builtin ID for a module called `"utils"` would be `"{builtinPrefix}:utils"`.
109
+ *
110
+ * @defaultValue "powerlines"
111
+ */
112
+ builtinPrefix?: string;
113
+ /**
114
+ * The module format of the output files
115
+ *
116
+ * @remarks
117
+ * This option can be a single format or an array of formats. If an array is provided, multiple builds will be generated for each format.
118
+ *
119
+ * @defaultValue "esm"
120
+ */
121
+ format?: Format | Format[];
122
+ /**
123
+ * A list of assets to copy to the output directory
124
+ *
125
+ * @remarks
126
+ * The assets can be specified as a string (path to the asset) or as an object with a `glob` property (to match multiple files). The paths are relative to the project root directory.
127
+ */
128
+ assets?: Array<string | AssetGlob>;
129
+ /**
130
+ * A string preset or a custom {@link StoragePort} to provide fine-grained control over generated/output file storage.
131
+ *
132
+ * @remarks
133
+ * If a string preset is provided, it must be one of the following values:
134
+ * - `"virtual"`: Uses the local file system for storage.
135
+ * - `"fs"`: Uses an in-memory virtual file system for storage.
136
+ *
137
+ * If a custom {@link StoragePort} is provided, it will be used for all file storage operations during the build process.
138
+ *
139
+ * @defaultValue "virtual"
140
+ */
141
+ storage?: StoragePort | StoragePreset;
142
+ }
143
+ interface BaseConfig {
144
+ /**
145
+ * The entry point(s) for the application
146
+ */
147
+ entry?: TypeDefinitionParameter | TypeDefinitionParameter[];
148
+ /**
149
+ * Configuration for the output of the build process
150
+ */
151
+ output?: OutputConfig;
152
+ /**
153
+ * Configuration for cleaning the build artifacts
154
+ *
155
+ * @remarks
156
+ * If set to `false`, the cleaning process will be disabled.
157
+ */
158
+ clean?: Record<string, any> | false;
159
+ /**
160
+ * Configuration for linting the source code
161
+ *
162
+ * @remarks
163
+ * If set to `false`, linting will be disabled.
164
+ */
165
+ lint?: Record<string, any> | false;
166
+ /**
167
+ * Configuration for testing the source code
168
+ *
169
+ * @remarks
170
+ * If set to `false`, testing will be disabled.
171
+ */
172
+ test?: Record<string, any> | false;
173
+ /**
174
+ * Configuration for the transformation of the source code
175
+ */
176
+ transform?: Record<string, any>;
177
+ /**
178
+ * Configuration provided to build processes
179
+ *
180
+ * @remarks
181
+ * This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
182
+ */
183
+ build?: BuildConfig;
184
+ /**
185
+ * Configuration for documentation generation
186
+ *
187
+ * @remarks
188
+ * This configuration will be used by the documentation generation plugins during the `docs` command.
189
+ */
190
+ docs?: Record<string, any>;
191
+ /**
192
+ * Configuration for deploying the source code
193
+ *
194
+ * @remarks
195
+ * If set to `false`, the deployment will be disabled.
196
+ */
197
+ deploy?: DeployConfig | false;
198
+ /**
199
+ * The path to the tsconfig file to be used by the compiler
200
+ *
201
+ * @remarks
202
+ * If a value is not provided, the plugin will attempt to find the `tsconfig.json` file in the project root directory. The parsed tsconfig compiler options will be merged with the {@link Options.tsconfigRaw} value (if provided).
203
+ *
204
+ * @defaultValue "\{projectRoot\}/tsconfig.json"
205
+ */
206
+ tsconfig?: string;
207
+ /**
208
+ * The raw {@link TSConfig} object to be used by the compiler. This object will be merged with the `tsconfig.json` file.
209
+ *
210
+ * @see https://www.typescriptlang.org/tsconfig
211
+ *
212
+ * @remarks
213
+ * If populated, this option takes higher priority than `tsconfig`
214
+ */
215
+ tsconfigRaw?: TSConfig;
216
+ }
217
+ interface EnvironmentConfig extends BaseConfig {
218
+ /**
219
+ * Configuration options for the preview server
220
+ */
221
+ preview?: PreviewOptions;
222
+ /**
223
+ * A flag indicating whether the build is for a Server-Side Rendering environment.
224
+ */
225
+ ssr?: boolean;
226
+ /**
227
+ * Define if this environment is used for Server-Side Rendering
228
+ *
229
+ * @defaultValue "server" (if it isn't the client environment)
230
+ */
231
+ consumer?: "client" | "server";
232
+ }
233
+ interface CommonUserConfig extends BaseConfig {
234
+ /**
235
+ * The name of the project
236
+ */
237
+ name?: string;
238
+ /**
239
+ * The project display title
240
+ *
241
+ * @remarks
242
+ * This option is used in documentation generation and other places where a human-readable title is needed.
243
+ */
244
+ title?: string;
245
+ /**
246
+ * A description of the project
247
+ *
248
+ * @remarks
249
+ * If this option is not provided, the build process will try to use the \`description\` value from the `\package.json\` file.
250
+ */
251
+ description?: string;
252
+ /**
253
+ * The log level to use for the Powerlines processes.
254
+ *
255
+ * @defaultValue "info"
256
+ */
257
+ logLevel?: LogLevelLabel | null;
258
+ /**
259
+ * A custom logger function to use for logging messages
260
+ */
261
+ customLogger?: LogFn;
262
+ /**
263
+ * Explicitly set a mode to run in. This mode will be used at various points throughout the Powerlines processes, such as when compiling the source code.
264
+ *
265
+ * @defaultValue "production"
266
+ */
267
+ mode?: "development" | "test" | "production";
268
+ /**
269
+ * The type of project being built
270
+ *
271
+ * @defaultValue "application"
272
+ */
273
+ type?: ProjectType;
274
+ /**
275
+ * The root directory of the project
276
+ */
277
+ root: string;
278
+ /**
279
+ * The root directory of the project's source code
280
+ *
281
+ * @defaultValue "\{root\}/src"
282
+ */
283
+ sourceRoot?: string;
284
+ /**
285
+ * A path to a custom configuration file to be used instead of the default `storm.json`, `powerlines.config.js`, or `powerlines.config.ts` files.
286
+ *
287
+ * @remarks
288
+ * This option is useful for running Powerlines commands with different configuration files, such as in CI/CD environments or when testing different configurations.
289
+ */
290
+ configFile?: string;
291
+ /**
292
+ * Should the Powerlines CLI processes skip installing missing packages?
293
+ *
294
+ * @remarks
295
+ * This option is useful for CI/CD environments where the installation of packages is handled by a different process.
296
+ *
297
+ * @defaultValue false
298
+ */
299
+ skipInstalls?: boolean;
300
+ /**
301
+ * Should the compiler processes skip any improvements that make use of cache?
302
+ *
303
+ * @defaultValue false
304
+ */
305
+ skipCache?: boolean;
306
+ /**
307
+ * A list of resolvable paths to plugins used during the build process
308
+ */
309
+ plugins?: PluginConfig<PluginContext<any>>[];
310
+ /**
311
+ * Environment-specific configurations
312
+ */
313
+ environments?: Record<string, EnvironmentConfig>;
314
+ /**
315
+ * A string identifier that allows a child framework or tool to identify itself when using Powerlines.
316
+ *
317
+ * @remarks
318
+ * If no values are provided for {@link OutputConfig.dts | output.dts}, {@link OutputConfig.builtinPrefix | output.builtinPrefix}, or {@link OutputConfig.artifactsPath | output.artifactsFolder}, this value will be used as the default.
319
+ *
320
+ * @defaultValue "powerlines"
321
+ */
322
+ framework?: string;
323
+ }
324
+ interface UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> extends Omit<CommonUserConfig, "build"> {
325
+ /**
326
+ * Configuration provided to build processes
327
+ *
328
+ * @remarks
329
+ * This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
330
+ */
331
+ build: Omit<TBuildConfig, "override"> & {
332
+ /**
333
+ * The build variant being used by the Powerlines engine.
334
+ */
335
+ variant?: TBuildVariant;
336
+ /**
337
+ * An optional set of override options to apply to the selected build variant.
338
+ *
339
+ * @remarks
340
+ * 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.
341
+ */
342
+ override?: Partial<TBuildResolvedConfig>;
343
+ };
344
+ }
345
+ type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "deploy" | "clean";
346
+ /**
347
+ * The configuration provided while executing Powerlines commands.
348
+ */
349
+ type InlineConfig<TUserConfig extends UserConfig = UserConfig> = Partial<TUserConfig> & {
350
+ /**
351
+ * A string identifier for the Powerlines command being executed
352
+ */
353
+ command: PowerlinesCommand;
354
+ };
355
+ //#endregion
356
+ export { BabelUserConfig, EnvironmentConfig, InlineConfig, LogFn, OutputConfig, PluginConfig, UserConfig, WorkspaceConfig };