@powerlines/plugin-webpack 0.5.241 → 0.5.243

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 (114) hide show
  1. package/dist/helpers/unplugin.cjs +2 -3
  2. package/dist/helpers/unplugin.mjs +1 -2
  3. package/dist/index.cjs +2 -2
  4. package/dist/index.d.cts +3 -2
  5. package/dist/index.d.mts +1 -1
  6. package/dist/index.mjs +3 -3
  7. package/dist/types/plugin.d.cts +3 -3
  8. package/dist/types/plugin.d.mts +3 -3
  9. package/package.json +96 -15
  10. package/dist/powerlines/package.cjs +0 -11
  11. package/dist/powerlines/package.mjs +0 -5
  12. package/dist/powerlines/schemas/fs.cjs +0 -226
  13. package/dist/powerlines/schemas/fs.mjs +0 -224
  14. package/dist/powerlines/src/api.cjs +0 -568
  15. package/dist/powerlines/src/api.mjs +0 -566
  16. package/dist/powerlines/src/internal/helpers/environment.cjs +0 -50
  17. package/dist/powerlines/src/internal/helpers/environment.mjs +0 -47
  18. package/dist/powerlines/src/internal/helpers/generate-types.cjs +0 -78
  19. package/dist/powerlines/src/internal/helpers/generate-types.mjs +0 -76
  20. package/dist/powerlines/src/internal/helpers/hooks.cjs +0 -65
  21. package/dist/powerlines/src/internal/helpers/hooks.d.cts +0 -47
  22. package/dist/powerlines/src/internal/helpers/hooks.d.mts +0 -49
  23. package/dist/powerlines/src/internal/helpers/hooks.mjs +0 -63
  24. package/dist/powerlines/src/internal/helpers/install-dependencies.cjs +0 -24
  25. package/dist/powerlines/src/internal/helpers/install-dependencies.mjs +0 -23
  26. package/dist/powerlines/src/internal/helpers/install.cjs +0 -36
  27. package/dist/powerlines/src/internal/helpers/install.mjs +0 -35
  28. package/dist/powerlines/src/internal/helpers/resolve-tsconfig.cjs +0 -97
  29. package/dist/powerlines/src/internal/helpers/resolve-tsconfig.mjs +0 -93
  30. package/dist/powerlines/src/internal/helpers/resolver.cjs +0 -43
  31. package/dist/powerlines/src/internal/helpers/resolver.mjs +0 -41
  32. package/dist/powerlines/src/lib/build/webpack.cjs +0 -38
  33. package/dist/powerlines/src/lib/build/webpack.mjs +0 -36
  34. package/dist/powerlines/src/lib/config-file.cjs +0 -79
  35. package/dist/powerlines/src/lib/config-file.mjs +0 -76
  36. package/dist/powerlines/src/lib/constants/environments.cjs +0 -8
  37. package/dist/powerlines/src/lib/constants/environments.mjs +0 -6
  38. package/dist/powerlines/src/lib/contexts/api-context.cjs +0 -184
  39. package/dist/powerlines/src/lib/contexts/api-context.mjs +0 -182
  40. package/dist/powerlines/src/lib/contexts/context.cjs +0 -951
  41. package/dist/powerlines/src/lib/contexts/context.mjs +0 -949
  42. package/dist/powerlines/src/lib/contexts/environment-context.cjs +0 -195
  43. package/dist/powerlines/src/lib/contexts/environment-context.mjs +0 -194
  44. package/dist/powerlines/src/lib/contexts/plugin-context.cjs +0 -78
  45. package/dist/powerlines/src/lib/contexts/plugin-context.mjs +0 -77
  46. package/dist/powerlines/src/lib/entry.cjs +0 -85
  47. package/dist/powerlines/src/lib/entry.mjs +0 -83
  48. package/dist/powerlines/src/lib/fs/helpers.cjs +0 -85
  49. package/dist/powerlines/src/lib/fs/helpers.mjs +0 -81
  50. package/dist/powerlines/src/lib/fs/storage/base.cjs +0 -196
  51. package/dist/powerlines/src/lib/fs/storage/base.mjs +0 -195
  52. package/dist/powerlines/src/lib/fs/storage/file-system.cjs +0 -170
  53. package/dist/powerlines/src/lib/fs/storage/file-system.mjs +0 -169
  54. package/dist/powerlines/src/lib/fs/storage/virtual.cjs +0 -88
  55. package/dist/powerlines/src/lib/fs/storage/virtual.mjs +0 -87
  56. package/dist/powerlines/src/lib/fs/vfs.cjs +0 -912
  57. package/dist/powerlines/src/lib/fs/vfs.mjs +0 -910
  58. package/dist/powerlines/src/lib/logger.cjs +0 -58
  59. package/dist/powerlines/src/lib/logger.mjs +0 -55
  60. package/dist/powerlines/src/lib/typescript/ts-morph.cjs +0 -103
  61. package/dist/powerlines/src/lib/typescript/ts-morph.mjs +0 -101
  62. package/dist/powerlines/src/lib/typescript/tsconfig.cjs +0 -149
  63. package/dist/powerlines/src/lib/typescript/tsconfig.mjs +0 -144
  64. package/dist/powerlines/src/lib/unplugin/factory.cjs +0 -6
  65. package/dist/powerlines/src/lib/unplugin/factory.mjs +0 -8
  66. package/dist/powerlines/src/lib/unplugin/helpers.cjs +0 -29
  67. package/dist/powerlines/src/lib/unplugin/helpers.mjs +0 -27
  68. package/dist/powerlines/src/lib/unplugin/index.cjs +0 -4
  69. package/dist/powerlines/src/lib/unplugin/index.mjs +0 -6
  70. package/dist/powerlines/src/lib/unplugin/module-resolution.cjs +0 -66
  71. package/dist/powerlines/src/lib/unplugin/module-resolution.mjs +0 -65
  72. package/dist/powerlines/src/lib/unplugin/plugin.cjs +0 -71
  73. package/dist/powerlines/src/lib/unplugin/plugin.mjs +0 -70
  74. package/dist/powerlines/src/lib/utilities/file-header.cjs +0 -22
  75. package/dist/powerlines/src/lib/utilities/file-header.mjs +0 -21
  76. package/dist/powerlines/src/lib/utilities/format.cjs +0 -48
  77. package/dist/powerlines/src/lib/utilities/format.mjs +0 -46
  78. package/dist/powerlines/src/lib/utilities/meta.cjs +0 -44
  79. package/dist/powerlines/src/lib/utilities/meta.mjs +0 -40
  80. package/dist/powerlines/src/lib/utilities/source-file.cjs +0 -22
  81. package/dist/powerlines/src/lib/utilities/source-file.mjs +0 -21
  82. package/dist/powerlines/src/plugin-utils/helpers.cjs +0 -167
  83. package/dist/powerlines/src/plugin-utils/helpers.mjs +0 -156
  84. package/dist/powerlines/src/plugin-utils/paths.cjs +0 -36
  85. package/dist/powerlines/src/plugin-utils/paths.mjs +0 -35
  86. package/dist/powerlines/src/types/api.d.cts +0 -104
  87. package/dist/powerlines/src/types/api.d.mts +0 -104
  88. package/dist/powerlines/src/types/babel.d.mts +0 -2
  89. package/dist/powerlines/src/types/build.cjs +0 -23
  90. package/dist/powerlines/src/types/build.d.cts +0 -185
  91. package/dist/powerlines/src/types/build.d.mts +0 -185
  92. package/dist/powerlines/src/types/build.mjs +0 -21
  93. package/dist/powerlines/src/types/commands.cjs +0 -16
  94. package/dist/powerlines/src/types/commands.d.cts +0 -8
  95. package/dist/powerlines/src/types/commands.d.mts +0 -9
  96. package/dist/powerlines/src/types/commands.mjs +0 -15
  97. package/dist/powerlines/src/types/config.d.cts +0 -424
  98. package/dist/powerlines/src/types/config.d.mts +0 -425
  99. package/dist/powerlines/src/types/context.d.cts +0 -514
  100. package/dist/powerlines/src/types/context.d.mts +0 -514
  101. package/dist/powerlines/src/types/fs.d.cts +0 -486
  102. package/dist/powerlines/src/types/fs.d.mts +0 -486
  103. package/dist/powerlines/src/types/hooks.d.cts +0 -32
  104. package/dist/powerlines/src/types/hooks.d.mts +0 -32
  105. package/dist/powerlines/src/types/plugin.cjs +0 -33
  106. package/dist/powerlines/src/types/plugin.d.cts +0 -205
  107. package/dist/powerlines/src/types/plugin.d.mts +0 -205
  108. package/dist/powerlines/src/types/plugin.mjs +0 -32
  109. package/dist/powerlines/src/types/resolved.d.cts +0 -93
  110. package/dist/powerlines/src/types/resolved.d.mts +0 -93
  111. package/dist/powerlines/src/types/tsconfig.d.cts +0 -69
  112. package/dist/powerlines/src/types/tsconfig.d.mts +0 -69
  113. package/dist/powerlines/src/types/unplugin.d.cts +0 -22
  114. package/dist/powerlines/src/types/unplugin.d.mts +0 -23
@@ -1,425 +0,0 @@
1
- import { BuildConfig, BuildResolvedConfig, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig } from "./build.mjs";
2
- import "./babel.mjs";
3
- import { StoragePort, StoragePreset } from "./fs.mjs";
4
- import { Plugin } from "./plugin.mjs";
5
- import { TSConfig } from "./tsconfig.mjs";
6
- import { PluginContext } from "./context.mjs";
7
- import { LogLevelLabel } from "@storm-software/config-tools/types";
8
- import "c12";
9
- import { PreviewOptions } from "vite";
10
- import { MaybePromise } from "@stryke/types/base";
11
- import { Format } from "@storm-software/build-tools/types";
12
- import { StormWorkspaceConfig } from "@storm-software/config/types";
13
- import { TypeDefinitionParameter } from "@stryke/types/configuration";
14
- import { AssetGlob } from "@stryke/types/file";
15
- import { DateString } from "compatx";
16
-
17
- //#region ../powerlines/src/types/config.d.ts
18
- type LogLevel = "error" | "warn" | "info" | "debug" | "trace";
19
- type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
20
- /**
21
- * The {@link StormWorkspaceConfig | configuration} object for an entire Powerlines workspace
22
- */
23
- type WorkspaceConfig = Partial<StormWorkspaceConfig> & Required<Pick<StormWorkspaceConfig, "workspaceRoot">>;
24
- type PluginFactory<in out TContext extends PluginContext = PluginContext, TOptions = any> = (options: TOptions) => MaybePromise<Plugin<TContext> | Plugin<TContext>[]>;
25
- /**
26
- * A configuration tuple for a Powerlines plugin.
27
- */
28
- type PluginConfigTuple<TContext extends PluginContext = PluginContext, TOptions = any> = [string | PluginFactory<TContext, TOptions>, TOptions] | [Plugin<TContext>];
29
- /**
30
- * A configuration object for a Powerlines plugin.
31
- */
32
- type PluginConfigObject<TContext extends PluginContext = PluginContext, TOptions = any> = {
33
- plugin: string | PluginFactory<TContext, TOptions>;
34
- options: TOptions;
35
- } | {
36
- plugin: Plugin<TContext>;
37
- options?: never;
38
- };
39
- /**
40
- * A configuration tuple for a Powerlines plugin.
41
- */
42
- type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> | PluginConfigTuple<TContext> | PluginConfigObject<TContext> | Promise<PluginConfig<TContext>> | PluginConfig<TContext>[];
43
- type ProjectType = "application" | "library";
44
- interface DeployConfig {
45
- /**
46
- * The deployment variant being used by the Powerlines engine.
47
- *
48
- * @example
49
- * ```ts
50
- * export default defineConfig({
51
- * deploy: {
52
- * variant: "cloudflare"
53
- * }
54
- * });
55
- *
56
- * ```
57
- */
58
- variant?: string;
59
- }
60
- interface OutputConfig {
61
- /**
62
- * The path to output the final compiled files to
63
- *
64
- * @remarks
65
- * If a value is not provided, Powerlines will attempt to:
66
- * 1. Use the `outDir` value in the `tsconfig.json` file.
67
- * 2. Use the `dist` directory in the project root directory.
68
- *
69
- * @defaultValue "dist/\{projectRoot\}"
70
- */
71
- outputPath?: string;
72
- /**
73
- * The output directory path for the project build.
74
- *
75
- * @remarks
76
- * 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.
77
- *
78
- * @defaultValue "\{projectRoot\}/dist"
79
- */
80
- buildPath?: string;
81
- /**
82
- * The folder where the generated runtime artifacts will be located
83
- *
84
- * @remarks
85
- * This folder will contain all runtime artifacts and builtins generated during the "prepare" phase.
86
- *
87
- * @defaultValue "\{projectRoot\}/.powerlines"
88
- */
89
- artifactsPath?: string;
90
- /**
91
- * The path of the generated runtime declaration file relative to the workspace root.
92
- *
93
- * @defaultValue "\{projectRoot\}/powerlines.d.ts"
94
- */
95
- dts?: string | false;
96
- /**
97
- * The module format of the output files
98
- *
99
- * @remarks
100
- * 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.
101
- *
102
- * @defaultValue "esm"
103
- */
104
- format?: Format | Format[];
105
- /**
106
- * A list of assets to copy to the output directory
107
- *
108
- * @remarks
109
- * 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.
110
- */
111
- assets?: Array<string | AssetGlob>;
112
- /**
113
- * A string preset or a custom {@link StoragePort} to provide fine-grained control over generated/output file storage.
114
- *
115
- * @remarks
116
- * If a string preset is provided, it must be one of the following values:
117
- * - `"virtual"`: Uses the local file system for storage.
118
- * - `"fs"`: Uses an in-memory virtual file system for storage.
119
- *
120
- * If a custom {@link StoragePort} is provided, it will be used for all file storage operations during the build process.
121
- *
122
- * @defaultValue "virtual"
123
- */
124
- storage?: StoragePort | StoragePreset;
125
- }
126
- interface BaseConfig {
127
- /**
128
- * The entry point(s) for the application
129
- */
130
- entry?: TypeDefinitionParameter | TypeDefinitionParameter[];
131
- /**
132
- * Configuration for the output of the build process
133
- */
134
- output?: OutputConfig;
135
- /**
136
- * Configuration for cleaning the build artifacts
137
- *
138
- * @remarks
139
- * If set to `false`, the cleaning process will be disabled.
140
- */
141
- clean?: Record<string, any> | false;
142
- /**
143
- * Configuration for linting the source code
144
- *
145
- * @remarks
146
- * If set to `false`, linting will be disabled.
147
- */
148
- lint?: Record<string, any> | false;
149
- /**
150
- * Configuration for testing the source code
151
- *
152
- * @remarks
153
- * If set to `false`, testing will be disabled.
154
- */
155
- test?: Record<string, any> | false;
156
- /**
157
- * Configuration for the transformation of the source code
158
- */
159
- transform?: Record<string, any>;
160
- /**
161
- * Configuration provided to build processes
162
- *
163
- * @remarks
164
- * This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
165
- */
166
- build?: BuildConfig;
167
- /**
168
- * Configuration for documentation generation
169
- *
170
- * @remarks
171
- * This configuration will be used by the documentation generation plugins during the `docs` command.
172
- */
173
- docs?: Record<string, any>;
174
- /**
175
- * Configuration for deploying the source code
176
- *
177
- * @remarks
178
- * If set to `false`, the deployment will be disabled.
179
- */
180
- deploy?: DeployConfig | false;
181
- /**
182
- * The path to the tsconfig file to be used by the compiler
183
- *
184
- * @remarks
185
- * 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).
186
- *
187
- * @defaultValue "\{projectRoot\}/tsconfig.json"
188
- */
189
- tsconfig?: string;
190
- /**
191
- * The raw {@link TSConfig} object to be used by the compiler. This object will be merged with the `tsconfig.json` file.
192
- *
193
- * @see https://www.typescriptlang.org/tsconfig
194
- *
195
- * @remarks
196
- * If populated, this option takes higher priority than `tsconfig`
197
- */
198
- tsconfigRaw?: TSConfig;
199
- }
200
- interface EnvironmentConfig extends BaseConfig {
201
- /**
202
- * Configuration options for the preview server
203
- */
204
- preview?: PreviewOptions;
205
- /**
206
- * A flag indicating whether the build is for a Server-Side Rendering environment.
207
- */
208
- ssr?: boolean;
209
- /**
210
- * Define if this environment is used for Server-Side Rendering
211
- *
212
- * @defaultValue "server" (if it isn't the client environment)
213
- */
214
- consumer?: "client" | "server";
215
- }
216
- interface CommonUserConfig extends BaseConfig {
217
- /**
218
- * The name of the project
219
- */
220
- name?: string;
221
- /**
222
- * The project display title
223
- *
224
- * @remarks
225
- * This option is used in documentation generation and other places where a human-readable title is needed.
226
- */
227
- title?: string;
228
- /**
229
- * A description of the project
230
- *
231
- * @remarks
232
- * If this option is not provided, the build process will try to use the \`description\` value from the `\package.json\` file.
233
- */
234
- description?: string;
235
- /**
236
- * The organization or author of the project
237
- *
238
- * @remarks
239
- * If this option is not provided, the build process will try to use the \`author\` value from the \`package.json\` file. If the \`author\` value cannot be determined, the {@link name | name configuration} will be used.
240
- */
241
- organization?: string;
242
- /**
243
- * The date to use for compatibility checks
244
- *
245
- * @remarks
246
- * This date can be used by plugins and build processes to determine compatibility with certain features or APIs. It is recommended to set this date to the date when the project was last known to be compatible with the desired features or APIs.
247
- *
248
- * @see https://developers.cloudflare.com/pages/platform/compatibility-dates/
249
- * @see https://docs.netlify.com/configure-builds/get-started/#set-a-compatibility-date
250
- * @see https://github.com/unjs/compatx
251
- */
252
- compatibilityDate?: DateString;
253
- /**
254
- * The log level to use for the Powerlines processes.
255
- *
256
- * @defaultValue "info"
257
- */
258
- logLevel?: LogLevel | null;
259
- /**
260
- * A custom logger function to use for logging messages
261
- */
262
- customLogger?: LogFn;
263
- /**
264
- * 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.
265
- *
266
- * @defaultValue "production"
267
- */
268
- mode?: "development" | "test" | "production";
269
- /**
270
- * The type of project being built
271
- *
272
- * @defaultValue "application"
273
- */
274
- type?: ProjectType;
275
- /**
276
- * The root directory of the project
277
- */
278
- root: string;
279
- /**
280
- * The root directory of the project's source code
281
- *
282
- * @defaultValue "\{root\}/src"
283
- */
284
- sourceRoot?: string;
285
- /**
286
- * A path to a custom configuration file to be used instead of the default `storm.json`, `powerlines.config.js`, or `powerlines.config.ts` files.
287
- *
288
- * @remarks
289
- * This option is useful for running Powerlines commands with different configuration files, such as in CI/CD environments or when testing different configurations.
290
- */
291
- configFile?: string;
292
- /**
293
- * Should the Powerlines processes automatically install missing package dependencies?
294
- *
295
- * @remarks
296
- * When set to `true`, Powerlines will attempt to install any missing dependencies using the package manager detected in the project (e.g., npm, yarn, pnpm). This can be useful for ensuring that all required packages are available during the build and preparation phases.
297
- *
298
- * @defaultValue false
299
- */
300
- autoInstall?: boolean;
301
- /**
302
- * Should the compiler processes skip any improvements that make use of cache?
303
- *
304
- * @defaultValue false
305
- */
306
- skipCache?: boolean;
307
- /**
308
- * A list of resolvable paths to plugins used during the build process
309
- */
310
- plugins?: PluginConfig<any>[];
311
- /**
312
- * Environment-specific configurations
313
- */
314
- environments?: Record<string, EnvironmentConfig>;
315
- /**
316
- * Should a single `build` process be ran for each environment?
317
- *
318
- * @remarks
319
- * This option determines how environments are managed during the `build` process. The available options are:
320
- *
321
- * - `false`: A separate build is ran for each environment.
322
- * - `true`: A single build is ran for all environments.
323
- *
324
- * @defaultValue false
325
- */
326
- singleBuild?: boolean;
327
- /**
328
- * A string identifier that allows a child framework or tool to identify itself when using Powerlines.
329
- *
330
- * @remarks
331
- * If no values are provided for {@link OutputConfig.dts | output.dts} or {@link OutputConfig.artifactsPath | output.artifactsFolder}, this value will be used as the default.
332
- *
333
- * @defaultValue "powerlines"
334
- */
335
- framework?: string;
336
- }
337
- interface UserConfig$1<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> extends Omit<CommonUserConfig, "build"> {
338
- /**
339
- * Configuration provided to build processes
340
- *
341
- * @remarks
342
- * This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
343
- */
344
- build: Omit<TBuildConfig, "override"> & {
345
- /**
346
- * The build variant being used by the Powerlines engine.
347
- */
348
- variant?: TBuildVariant;
349
- /**
350
- * An optional set of override options to apply to the selected build variant.
351
- *
352
- * @remarks
353
- * 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.
354
- */
355
- override?: Partial<TBuildResolvedConfig>;
356
- };
357
- }
358
- type WebpackUserConfig = UserConfig$1<WebpackBuildConfig, WebpackResolvedBuildConfig, "webpack">;
359
- type RspackUserConfig = UserConfig$1<RspackBuildConfig, RspackResolvedBuildConfig, "rspack">;
360
- type RollupUserConfig = UserConfig$1<RollupBuildConfig, RollupResolvedBuildConfig, "rollup">;
361
- type RolldownUserConfig = UserConfig$1<RolldownBuildConfig, RolldownResolvedBuildConfig, "rolldown">;
362
- type ViteUserConfig = UserConfig$1<ViteBuildConfig, ViteResolvedBuildConfig, "vite">;
363
- type ESBuildUserConfig = UserConfig$1<ESBuildBuildConfig, ESBuildResolvedBuildConfig, "esbuild">;
364
- type UnbuildUserConfig = UserConfig$1<UnbuildBuildConfig, UnbuildResolvedBuildConfig, "unbuild">;
365
- type TsupUserConfig = UserConfig$1<TsupBuildConfig, TsupResolvedBuildConfig, "tsup">;
366
- type TsdownUserConfig = UserConfig$1<TsdownBuildConfig, TsdownResolvedBuildConfig, "tsdown">;
367
- type FarmUserConfig = UserConfig$1<FarmBuildConfig, FarmResolvedBuildConfig, "farm">;
368
- type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "deploy" | "clean";
369
- /**
370
- * The configuration provided while executing Powerlines commands.
371
- */
372
- type InlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = Partial<TUserConfig> & {
373
- /**
374
- * A string identifier for the Powerlines command being executed
375
- */
376
- command: PowerlinesCommand;
377
- };
378
- type NewInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = InlineConfig<TUserConfig> & Required<Pick<InlineConfig<TUserConfig>, "root">> & {
379
- /**
380
- * A string identifier for the Powerlines command being executed
381
- */
382
- command: "new";
383
- /**
384
- * The package name (from the \`package.json\`) for the project that will be used in the \`new\` command to create a new project based on this configuration
385
- */
386
- packageName?: string;
387
- };
388
- type CleanInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = InlineConfig<TUserConfig> & {
389
- /**
390
- * A string identifier for the Powerlines command being executed
391
- */
392
- command: "clean";
393
- };
394
- type PrepareInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = InlineConfig<TUserConfig> & {
395
- /**
396
- * A string identifier for the Powerlines command being executed
397
- */
398
- command: "prepare";
399
- };
400
- type BuildInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = InlineConfig<TUserConfig> & {
401
- /**
402
- * A string identifier for the Powerlines command being executed
403
- */
404
- command: "build";
405
- };
406
- type LintInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = InlineConfig<TUserConfig> & {
407
- /**
408
- * A string identifier for the Powerlines command being executed
409
- */
410
- command: "lint";
411
- };
412
- type DocsInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = InlineConfig<TUserConfig> & {
413
- /**
414
- * A string identifier for the Powerlines command being executed
415
- */
416
- command: "docs";
417
- };
418
- type DeployInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = InlineConfig<TUserConfig> & {
419
- /**
420
- * A string identifier for the Powerlines command being executed
421
- */
422
- command: "deploy";
423
- };
424
- //#endregion
425
- export { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LintInlineConfig, LogFn, LogLevel, NewInlineConfig, OutputConfig, PluginConfig, PrepareInlineConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig$1 as UserConfig, ViteUserConfig, WebpackUserConfig, WorkspaceConfig };