@powerlines/plugin-tsup 0.12.55 → 0.12.57

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 (59) hide show
  1. package/README.md +10 -10
  2. package/dist/helpers/index.cjs +1 -1
  3. package/dist/helpers/index.d.cts +4 -22
  4. package/dist/helpers/index.d.mts +4 -0
  5. package/dist/helpers/index.mjs +1 -0
  6. package/dist/helpers/unplugin.cjs +1 -7
  7. package/dist/helpers/unplugin.d.cts +3 -25
  8. package/dist/helpers/unplugin.d.mts +3 -0
  9. package/dist/helpers/unplugin.mjs +1 -0
  10. package/dist/helpers-CRPRhztf.mjs +1 -0
  11. package/dist/index-9iG2qHLe.d.mts +1 -0
  12. package/dist/index-D4ELpJXS.d.cts +1 -0
  13. package/dist/index-D6CnpA_r.d.cts +1 -0
  14. package/dist/index-DL0uimUT.d.mts +1 -0
  15. package/dist/index.cjs +1 -7
  16. package/dist/index.d.cts +9 -25
  17. package/dist/index.d.cts.map +1 -0
  18. package/dist/index.d.mts +14 -0
  19. package/dist/index.d.mts.map +1 -0
  20. package/dist/index.mjs +2 -0
  21. package/dist/index.mjs.map +1 -0
  22. package/dist/plugin-BjiGfRHE.mjs +1 -0
  23. package/dist/plugin-CD-0vofp.d.mts +1656 -0
  24. package/dist/plugin-CD-0vofp.d.mts.map +1 -0
  25. package/dist/plugin-TcZ_5Q61.d.cts +1655 -0
  26. package/dist/plugin-TcZ_5Q61.d.cts.map +1 -0
  27. package/dist/plugin-pBKbb5K9.cjs +0 -0
  28. package/dist/types/index.cjs +1 -1
  29. package/dist/types/index.d.cts +3 -20
  30. package/dist/types/index.d.mts +3 -0
  31. package/dist/types/index.mjs +1 -0
  32. package/dist/types/plugin.cjs +1 -1
  33. package/dist/types/plugin.d.cts +2 -20
  34. package/dist/types/plugin.d.mts +2 -0
  35. package/dist/types/plugin.mjs +1 -0
  36. package/dist/types-n6NgD0QK.mjs +1 -0
  37. package/dist/types-o3zWarRp.cjs +0 -0
  38. package/dist/unplugin-BCi_pCcu.mjs +7 -0
  39. package/dist/unplugin-BCi_pCcu.mjs.map +1 -0
  40. package/dist/unplugin-Bv3_8au7.d.mts +8 -0
  41. package/dist/unplugin-Bv3_8au7.d.mts.map +1 -0
  42. package/dist/unplugin-CB8KRCAV.d.cts +8 -0
  43. package/dist/unplugin-CB8KRCAV.d.cts.map +1 -0
  44. package/dist/unplugin-DboWsLXq.cjs +44 -0
  45. package/package.json +50 -32
  46. package/dist/chunk-FBBMZ4NC.cjs +0 -7
  47. package/dist/chunk-UCUR73HG.js +0 -7
  48. package/dist/helpers/index.d.ts +0 -22
  49. package/dist/helpers/index.js +0 -1
  50. package/dist/helpers/unplugin.d.ts +0 -25
  51. package/dist/helpers/unplugin.js +0 -7
  52. package/dist/index-iiumtuiw.d.cts +0 -1496
  53. package/dist/index-iiumtuiw.d.ts +0 -1496
  54. package/dist/index.d.ts +0 -30
  55. package/dist/index.js +0 -7
  56. package/dist/types/index.d.ts +0 -20
  57. package/dist/types/index.js +0 -1
  58. package/dist/types/plugin.d.ts +0 -20
  59. /package/dist/{types/plugin.js → helpers-LF26RHol.cjs} +0 -0
@@ -0,0 +1,1656 @@
1
+ import { LogLevelLabel } from "@storm-software/config-tools/types";
2
+ import { ExternalIdResult, HookFilter, TransformResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage, UnpluginOptions } from "unplugin";
3
+ import { transformAsync } from "@babel/core";
4
+ import { ResolveOptions } from "@stryke/fs/resolve";
5
+ import ts from "typescript";
6
+ import { Project } from "ts-morph";
7
+ import { EnvPaths } from "@stryke/env/get-env-paths";
8
+ import { FetchRequestOptions } from "@stryke/http/fetch";
9
+ import { ParseResult, ParserOptions } from "oxc-parser";
10
+ import { RequestInfo, Response } from "undici";
11
+ import { Jiti } from "jiti";
12
+ import { SourceMap } from "magic-string";
13
+ import { BuildOptions } from "@storm-software/tsup/types";
14
+ import { PreviewOptions, ResolvedPreviewOptions } from "vite";
15
+ import { Format } from "@storm-software/build-tools/types";
16
+ import { StormWorkspaceConfig } from "@storm-software/config/types";
17
+ import { FunctionLike, MaybePromise, NonUndefined } from "@stryke/types/base";
18
+ import { TypeDefinition, TypeDefinitionParameter } from "@stryke/types/configuration";
19
+ import { AssetGlob } from "@stryke/types/file";
20
+ import { PackageJson } from "@stryke/types/package-json";
21
+ import { Range } from "semver";
22
+ import { ArrayValues } from "@stryke/types/array";
23
+ import { CompilerOptions, TsConfigJson } from "@stryke/types/tsconfig";
24
+
25
+ //#region ../powerlines/src/types/build.d.ts
26
+ type UnpluginBuildVariant = "rollup" | "webpack" | "rspack" | "vite" | "esbuild" | "farm" | "unloader" | "rolldown";
27
+ interface BuildConfig {
28
+ /**
29
+ * The platform to build the project for
30
+ *
31
+ * @defaultValue "neutral"
32
+ */
33
+ platform?: "node" | "browser" | "neutral";
34
+ /**
35
+ * Array of strings indicating the polyfills to include for the build.
36
+ *
37
+ * @remarks
38
+ * This option allows you to specify which polyfills should be included in the build process to ensure compatibility with the target environment. The paths for the polyfills can use placeholder tokens (the `replacePathTokens` helper function will be used to resolve the actual values).
39
+ *
40
+ * @example
41
+ * ```ts
42
+ * {
43
+ * polyfill: ['{projectRoot}/custom-polyfill.ts']
44
+ * }
45
+ * ```
46
+ */
47
+ polyfill?: string[];
48
+ /**
49
+ * 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.
50
+ *
51
+ * @defaultValue `['browser', 'module', 'jsnext:main', 'jsnext']`
52
+ */
53
+ mainFields?: string[];
54
+ /**
55
+ * Array of strings indicating what conditions should be used for module resolution.
56
+ */
57
+ conditions?: string[];
58
+ /**
59
+ * Array of strings indicating what file extensions should be used for module resolution.
60
+ *
61
+ * @defaultValue `['.mjs', '.js', '.mts', '.ts', '.jsx', '.tsx', '.json']`
62
+ */
63
+ extensions?: string[];
64
+ /**
65
+ * Array of strings indicating what modules should be deduplicated to a single version in the build.
66
+ *
67
+ * @remarks
68
+ * 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.
69
+ */
70
+ dedupe?: string[];
71
+ /**
72
+ * Array of strings or regular expressions that indicate what modules are builtin for the environment.
73
+ */
74
+ builtins?: (string | RegExp)[];
75
+ /**
76
+ * Define global variable replacements.
77
+ *
78
+ * @remarks
79
+ * 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.
80
+ *
81
+ * @example
82
+ * ```ts
83
+ * {
84
+ * define: {
85
+ * __VERSION__: '"1.0.0"',
86
+ * __DEV__: 'process.env.NODE_ENV !== "production"'
87
+ * }
88
+ * }
89
+ * ```
90
+ *
91
+ * @see https://esbuild.github.io/api/#define
92
+ * @see https://vitejs.dev/config/build-options.html#define
93
+ * @see https://github.com/rollup/plugins/tree/master/packages/replace
94
+ */
95
+ define?: Record<string, any>;
96
+ /**
97
+ * Global variables that will have import statements injected where necessary
98
+ *
99
+ * @remarks
100
+ * 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.
101
+ *
102
+ * @example
103
+ * ```ts
104
+ * {
105
+ * inject: {
106
+ * process: 'process/browser',
107
+ * Buffer: ['buffer', 'Buffer'],
108
+ * }
109
+ * }
110
+ * ```
111
+ *
112
+ * @see https://github.com/rollup/plugins/tree/master/packages/inject
113
+ */
114
+ inject?: Record<string, string | string[]>;
115
+ /**
116
+ * The alias mappings to use for module resolution during the build process.
117
+ *
118
+ * @remarks
119
+ * This option allows you to define custom path aliases for modules, which can be useful for simplifying imports and managing dependencies.
120
+ *
121
+ * @example
122
+ * ```ts
123
+ * {
124
+ * alias: {
125
+ * "@utils": "./src/utils",
126
+ * "@components": "./src/components"
127
+ * }
128
+ * }
129
+ * ```
130
+ *
131
+ * @see https://github.com/rollup/plugins/tree/master/packages/alias
132
+ */
133
+ alias?: Record<string, string> | Array<{
134
+ find: string | RegExp;
135
+ replacement: string;
136
+ }>;
137
+ /**
138
+ * A list of modules that should not be bundled, even if they are external dependencies.
139
+ *
140
+ * @remarks
141
+ * This option is useful for excluding specific modules from the bundle, such as Node.js built-in modules or other libraries that should not be bundled.
142
+ */
143
+ external?: (string | RegExp)[];
144
+ /**
145
+ * A list of modules that should always be bundled, even if they are external dependencies.
146
+ */
147
+ noExternal?: (string | RegExp)[];
148
+ /**
149
+ * Should the Powerlines CLI processes skip bundling the `node_modules` directory?
150
+ */
151
+ skipNodeModulesBundle?: boolean;
152
+ /**
153
+ * An optional set of override options to apply to the selected build variant.
154
+ *
155
+ * @remarks
156
+ * 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.
157
+ */
158
+ override?: Record<string, any>;
159
+ }
160
+ type BuildResolvedConfig = Omit<BuildConfig, "override">;
161
+ type TsupBuildConfig = Partial<Omit<BuildOptions, "userOptions" | "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "clean" | "env" | "entry" | "entryPoints" | "external" | "noExternal" | "skipNodeModulesBundle">> & BuildConfig;
162
+ type TsupResolvedBuildConfig = BuildOptions & BuildResolvedConfig;
163
+ //#endregion
164
+ //#region ../powerlines/src/types/fs.d.ts
165
+ declare enum StoragePreset {
166
+ VIRTUAL = "virtual",
167
+ FS = "fs",
168
+ }
169
+ /**
170
+ * Interface defining the methods and properties for a storage adapter.
171
+ */
172
+ interface StorageAdapter {
173
+ /**
174
+ * A name identifying the storage adapter type.
175
+ */
176
+ name: string;
177
+ /**
178
+ * Checks if a key exists in the storage.
179
+ *
180
+ * @param key - The key to check for existence.
181
+ * @returns A promise that resolves to `true` if the key exists, otherwise `false`.
182
+ */
183
+ exists: (key: string) => Promise<boolean>;
184
+ /**
185
+ * Synchronously checks if a key exists in the storage.
186
+ *
187
+ * @param key - The key to check for existence.
188
+ * @returns Returns `true` if the key exists, otherwise `false`.
189
+ */
190
+ existsSync: (key: string) => boolean;
191
+ /**
192
+ * Read a value associated with a key from the storage.
193
+ *
194
+ * @param key - The key to read the value for.
195
+ * @returns A promise that resolves to the value if found, otherwise `null`.
196
+ */
197
+ get: (key: string) => Promise<string | null>;
198
+ /**
199
+ * Synchronously reads the value associated with a key from the storage.
200
+ *
201
+ * @param key - The key to read the value for.
202
+ * @returns The value if found, otherwise `null`.
203
+ */
204
+ getSync: (key: string) => string | null;
205
+ /**
206
+ * Writes a value to the storage for the given key.
207
+ *
208
+ * @param key - The key to associate the value with.
209
+ * @param value - The value to store.
210
+ */
211
+ set: (key: string, value: string) => Promise<void>;
212
+ /**
213
+ * Synchronously writes a value to the storage for the given key.
214
+ *
215
+ * @param key - The key to associate the value with.
216
+ * @param value - The value to store.
217
+ */
218
+ setSync: (key: string, value: string) => void;
219
+ /**
220
+ * Removes a value from the storage.
221
+ *
222
+ * @param key - The key whose value should be removed.
223
+ */
224
+ remove: (key: string) => Promise<void>;
225
+ /**
226
+ * Synchronously removes a value from the storage.
227
+ *
228
+ * @param key - The key whose value should be removed.
229
+ */
230
+ removeSync: (key: string) => void;
231
+ /**
232
+ * Creates a directory at the specified path.
233
+ *
234
+ * @param dirPath - The path of the directory to create.
235
+ */
236
+ mkdir: (dirPath: string) => Promise<void>;
237
+ /**
238
+ * Synchronously creates a directory at the specified path.
239
+ *
240
+ * @param dirPath - The path of the directory to create.
241
+ */
242
+ mkdirSync: (dirPath: string) => void;
243
+ /**
244
+ * Remove all entries from the storage that match the provided base path.
245
+ *
246
+ * @param base - The base path or prefix to clear entries from.
247
+ */
248
+ clear: (base?: string) => Promise<void>;
249
+ /**
250
+ * Synchronously remove all entries from the storage that match the provided base path.
251
+ *
252
+ * @param base - The base path or prefix to clear entries from.
253
+ */
254
+ clearSync: (base?: string) => void;
255
+ /**
256
+ * Lists all keys under the provided base path.
257
+ *
258
+ * @param base - The base path or prefix to list keys from.
259
+ * @returns A promise resolving to the list of keys.
260
+ */
261
+ list: (base?: string) => Promise<string[]>;
262
+ /**
263
+ * Synchronously lists all keys under the provided base path.
264
+ *
265
+ * @param base - The base path or prefix to list keys from.
266
+ * @returns The list of keys.
267
+ */
268
+ listSync: (base?: string) => string[];
269
+ /**
270
+ * Checks if the given key is a directory.
271
+ *
272
+ * @param key - The key to check.
273
+ * @returns A promise that resolves to `true` if the key is a directory, otherwise `false`.
274
+ */
275
+ isDirectory: (key: string) => Promise<boolean>;
276
+ /**
277
+ * Synchronously checks if the given key is a directory.
278
+ *
279
+ * @param key - The key to check.
280
+ * @returns `true` if the key is a directory, otherwise `false`.
281
+ */
282
+ isDirectorySync: (key: string) => boolean;
283
+ /**
284
+ * Checks if the given key is a file.
285
+ *
286
+ * @param key - The key to check.
287
+ * @returns A promise that resolves to `true` if the key is a file, otherwise `false`.
288
+ */
289
+ isFile: (key: string) => Promise<boolean>;
290
+ /**
291
+ * Synchronously checks if the given key is a file.
292
+ *
293
+ * @param key - The key to check.
294
+ * @returns `true` if the key is a file, otherwise `false`.
295
+ */
296
+ isFileSync: (key: string) => boolean;
297
+ /**
298
+ * Releases any resources held by the storage adapter.
299
+ */
300
+ dispose: () => MaybePromise<void>;
301
+ }
302
+ /**
303
+ * A mapping of file paths to storage adapter names and their corresponding {@link StorageAdapter} instances.
304
+ */
305
+ type StoragePort = Record<string, StorageAdapter>;
306
+ interface VirtualFileMetadata {
307
+ /**
308
+ * The identifier for the file data.
309
+ */
310
+ id: string;
311
+ /**
312
+ * The timestamp of the virtual file.
313
+ */
314
+ timestamp: number;
315
+ /**
316
+ * The type of the file.
317
+ *
318
+ * @remarks
319
+ * This string represents the purpose/function of the file in the virtual file system. A potential list of variants includes:
320
+ * - `builtin`: Indicates that the file is a built-in module provided by the system.
321
+ * - `entry`: Indicates that the file is an entry point for execution.
322
+ * - `normal`: Indicates that the file is a standard file without any special role.
323
+ */
324
+ type: string;
325
+ /**
326
+ * Additional metadata associated with the file.
327
+ */
328
+ properties: Record<string, string>;
329
+ }
330
+ interface VirtualFileData {
331
+ /**
332
+ * The identifier for the file data.
333
+ */
334
+ id?: string;
335
+ /**
336
+ * The contents of the virtual file.
337
+ */
338
+ code: string;
339
+ /**
340
+ * The type of the file.
341
+ *
342
+ * @remarks
343
+ * This string represents the purpose/function of the file in the virtual file system. A potential list of variants includes:
344
+ * - `builtin`: Indicates that the file is a built-in module provided by the system.
345
+ * - `entry`: Indicates that the file is an entry point for execution.
346
+ * - `normal`: Indicates that the file is a standard file without any special role.
347
+ */
348
+ type?: string;
349
+ /**
350
+ * Additional metadata associated with the file.
351
+ */
352
+ properties?: Record<string, string>;
353
+ }
354
+ interface VirtualFile extends Required<VirtualFileData>, VirtualFileMetadata {
355
+ /**
356
+ * An additional name for the file.
357
+ */
358
+ path: string;
359
+ /**
360
+ * The timestamp of the virtual file.
361
+ */
362
+ timestamp: number;
363
+ }
364
+ interface WriteOptions {
365
+ /**
366
+ * Should the file skip formatting before being written?
367
+ *
368
+ * @defaultValue false
369
+ */
370
+ skipFormat?: boolean;
371
+ /**
372
+ * Additional metadata for the file.
373
+ */
374
+ meta?: VirtualFileMetadata;
375
+ }
376
+ interface ResolveOptions$1 extends ResolveOptions {
377
+ /**
378
+ * If true, the module is being resolved as an entry point.
379
+ */
380
+ isEntry?: boolean;
381
+ /**
382
+ * If true, the resolver will skip using the cache when resolving modules.
383
+ */
384
+ skipCache?: boolean;
385
+ /**
386
+ * An array of external modules or patterns to exclude from resolution.
387
+ */
388
+ external?: (string | RegExp)[];
389
+ /**
390
+ * An array of modules or patterns to include in the resolution, even if they are marked as external.
391
+ */
392
+ noExternal?: (string | RegExp)[];
393
+ /**
394
+ * An array of patterns to match when resolving modules.
395
+ */
396
+ skipNodeModulesBundle?: boolean;
397
+ }
398
+ interface VirtualFileSystemInterface {
399
+ /**
400
+ * The underlying file metadata.
401
+ */
402
+ metadata: Readonly<Record<string, VirtualFileMetadata>>;
403
+ /**
404
+ * A map of file paths to their module ids.
405
+ */
406
+ ids: Readonly<Record<string, string>>;
407
+ /**
408
+ * A map of module ids to their file paths.
409
+ */
410
+ paths: Readonly<Record<string, string>>;
411
+ /**
412
+ * Checks if a file exists in the virtual file system (VFS).
413
+ *
414
+ * @param path - The path or id of the file.
415
+ * @returns `true` if the file exists, otherwise `false`.
416
+ */
417
+ exists: (path: string) => Promise<boolean>;
418
+ /**
419
+ * Synchronously Checks if a file exists in the virtual file system (VFS).
420
+ *
421
+ * @param path - The path or id of the file.
422
+ * @returns `true` if the file exists, otherwise `false`.
423
+ */
424
+ existsSync: (path: string) => boolean;
425
+ /**
426
+ * Checks if a file is virtual in the virtual file system (VFS).
427
+ *
428
+ * @param path - The path or id of the file.
429
+ * @returns `true` if the file is virtual, otherwise `false`.
430
+ */
431
+ isVirtual: (path: string) => boolean;
432
+ /**
433
+ * Checks if the given key is a directory.
434
+ *
435
+ * @param key - The key to check.
436
+ * @returns A promise that resolves to `true` if the key is a directory, otherwise `false`.
437
+ */
438
+ isDirectory: (key: string) => Promise<boolean>;
439
+ /**
440
+ * Synchronously checks if the given key is a directory.
441
+ *
442
+ * @param key - The key to check.
443
+ * @returns `true` if the key is a directory, otherwise `false`.
444
+ */
445
+ isDirectorySync: (key: string) => boolean;
446
+ /**
447
+ * Checks if the given key is a file.
448
+ *
449
+ * @param key - The key to check.
450
+ * @returns A promise that resolves to `true` if the key is a file, otherwise `false`.
451
+ */
452
+ isFile: (key: string) => Promise<boolean>;
453
+ /**
454
+ * Synchronously checks if the given key is a file.
455
+ *
456
+ * @param key - The key to check.
457
+ * @returns `true` if the key is a file, otherwise `false`.
458
+ */
459
+ isFileSync: (key: string) => boolean;
460
+ /**
461
+ * Gets the metadata of a file in the virtual file system (VFS).
462
+ *
463
+ * @param path - The path or id of the file.
464
+ * @returns The metadata of the file if it exists, otherwise undefined.
465
+ */
466
+ getMetadata: (path: string) => VirtualFileMetadata | undefined;
467
+ /**
468
+ * Lists files in a given path.
469
+ *
470
+ * @param path - The path to list files from.
471
+ * @returns An array of file names in the specified path.
472
+ */
473
+ listSync: (path: string) => string[];
474
+ /**
475
+ * Lists files in a given path.
476
+ *
477
+ * @param path - The path to list files from.
478
+ * @returns An array of file names in the specified path.
479
+ */
480
+ list: (path: string) => Promise<string[]>;
481
+ /**
482
+ * Removes a file or symbolic link in the virtual file system (VFS).
483
+ *
484
+ * @param path - The path to the file to remove.
485
+ * @returns A promise that resolves when the file is removed.
486
+ */
487
+ removeSync: (path: string) => void;
488
+ /**
489
+ * Asynchronously removes a file or symbolic link in the virtual file system (VFS).
490
+ *
491
+ * @param path - The path to the file to remove.
492
+ * @returns A promise that resolves when the file is removed.
493
+ */
494
+ remove: (path: string) => Promise<void>;
495
+ /**
496
+ * Reads a file from the virtual file system (VFS).
497
+ *
498
+ * @param path - The path or id of the file.
499
+ * @returns The contents of the file if it exists, otherwise undefined.
500
+ */
501
+ read: (path: string) => Promise<string | undefined>;
502
+ /**
503
+ * Reads a file from the virtual file system (VFS).
504
+ *
505
+ * @param path - The path or id of the file.
506
+ */
507
+ readSync: (path: string) => string | undefined;
508
+ /**
509
+ * Writes a file to the virtual file system (VFS).
510
+ *
511
+ * @param path - The path to the file.
512
+ * @param data - The contents of the file.
513
+ * @param options - Options for writing the file.
514
+ * @returns A promise that resolves when the file is written.
515
+ */
516
+ write: (path: string, data: string, options?: WriteOptions) => Promise<void>;
517
+ /**
518
+ * Writes a file to the virtual file system (VFS).
519
+ *
520
+ * @param path - The path to the file.
521
+ * @param data - The contents of the file.
522
+ * @param options - Options for writing the file.
523
+ */
524
+ writeSync: (path: string, data: string, options?: WriteOptions) => void;
525
+ /**
526
+ * Creates a directory at the specified path.
527
+ *
528
+ * @param dirPath - The path of the directory to create.
529
+ */
530
+ mkdir: (dirPath: string) => Promise<void>;
531
+ /**
532
+ * Synchronously creates a directory at the specified path.
533
+ *
534
+ * @param dirPath - The path of the directory to create.
535
+ */
536
+ mkdirSync: (dirPath: string) => void;
537
+ /**
538
+ * Moves a file from one path to another in the virtual file system (VFS).
539
+ *
540
+ * @param srcPath - The source path to move
541
+ * @param destPath - The destination path to move to
542
+ */
543
+ move: (srcPath: string, destPath: string) => Promise<void>;
544
+ /**
545
+ * Synchronously moves a file from one path to another in the virtual file system (VFS).
546
+ *
547
+ * @param srcPath - The source path to move
548
+ * @param destPath - The destination path to move to
549
+ */
550
+ moveSync: (srcPath: string, destPath: string) => void;
551
+ /**
552
+ * Copies a file from one path to another in the virtual file system (VFS).
553
+ *
554
+ * @param srcPath - The source path to copy
555
+ * @param destPath - The destination path to copy to
556
+ */
557
+ copy: (srcPath: string | URL | Omit<AssetGlob, "output">, destPath: string | URL) => Promise<void>;
558
+ /**
559
+ * Synchronously copies a file from one path to another in the virtual file system (VFS).
560
+ *
561
+ * @param srcPath - The source path to copy
562
+ * @param destPath - The destination path to copy to
563
+ */
564
+ copySync: (srcPath: string | URL | Omit<AssetGlob, "output">, destPath: string | URL) => void;
565
+ /**
566
+ * Glob files in the virtual file system (VFS) based on the provided pattern(s).
567
+ *
568
+ * @param pattern - A pattern (or multiple patterns) to use to determine the file paths to return
569
+ * @returns An array of file paths matching the provided pattern(s)
570
+ */
571
+ glob: (patterns: string | Omit<AssetGlob, "output"> | (string | Omit<AssetGlob, "output">)[]) => Promise<string[]>;
572
+ /**
573
+ * Synchronously glob files in the virtual file system (VFS) based on the provided pattern(s).
574
+ *
575
+ * @param pattern - A pattern (or multiple patterns) to use to determine the file paths to return
576
+ * @returns An array of file paths matching the provided pattern(s)
577
+ */
578
+ globSync: (patterns: string | Omit<AssetGlob, "output"> | (string | Omit<AssetGlob, "output">)[]) => string[];
579
+ /**
580
+ * A helper function to resolve modules using the Jiti resolver
581
+ *
582
+ * @remarks
583
+ * This function can be used to resolve modules relative to the project root directory.
584
+ *
585
+ * @example
586
+ * ```ts
587
+ * const resolvedPath = await context.resolve("some-module", "/path/to/importer");
588
+ * ```
589
+ *
590
+ * @param id - The module to resolve.
591
+ * @param importer - An optional path to the importer module.
592
+ * @param options - Additional resolution options.
593
+ * @returns A promise that resolves to the resolved module path.
594
+ */
595
+ resolve: (id: string, importer?: string, options?: ResolveOptions$1) => Promise<string | undefined>;
596
+ /**
597
+ * A synchronous helper function to resolve modules using the Jiti resolver
598
+ *
599
+ * @remarks
600
+ * This function can be used to resolve modules relative to the project root directory.
601
+ *
602
+ * @example
603
+ * ```ts
604
+ * const resolvedPath = context.resolveSync("some-module", "/path/to/importer");
605
+ * ```
606
+ *
607
+ * @param id - The module to resolve.
608
+ * @param importer - An optional path to the importer module.
609
+ * @param options - Additional resolution options.
610
+ * @returns The resolved module path.
611
+ */
612
+ resolveSync: (id: string, importer?: string, options?: ResolveOptions$1) => string | undefined;
613
+ /**
614
+ * Disposes of the virtual file system (VFS), writes any virtual file changes to disk, and releases any associated resources.
615
+ */
616
+ dispose: () => Promise<void>;
617
+ }
618
+ //#endregion
619
+ //#region ../powerlines/src/types/commands.d.ts
620
+ declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
621
+ type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
622
+ //#endregion
623
+ //#region ../powerlines/src/types/resolved.d.ts
624
+ interface ResolvedEntryTypeDefinition extends TypeDefinition {
625
+ /**
626
+ * The user provided entry point in the source code
627
+ */
628
+ input: TypeDefinition;
629
+ /**
630
+ * An optional name to use in the package export during the build process
631
+ */
632
+ output?: string;
633
+ }
634
+ type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "ssr" | "preview"> & Required<Pick<EnvironmentConfig, "consumer" | "ssr">> & {
635
+ /**
636
+ * The name of the environment
637
+ */
638
+ name: string;
639
+ /**
640
+ * Configuration options for the preview server
641
+ */
642
+ preview?: ResolvedPreviewOptions;
643
+ };
644
+ type ResolvedAssetGlob = AssetGlob & Required<Pick<AssetGlob, "input">>;
645
+ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage"> & {
646
+ assets: ResolvedAssetGlob[];
647
+ }> & Pick<OutputConfig, "storage">;
648
+ /**
649
+ * The resolved options for the Powerlines project configuration.
650
+ */
651
+ type ResolvedConfig$1<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework" | "sourceRoot"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework" | "sourceRoot">> & {
652
+ /**
653
+ * The configuration options that were provided inline to the Powerlines CLI.
654
+ */
655
+ inlineConfig: InlineConfig<TUserConfig>;
656
+ /**
657
+ * The original configuration options that were provided by the user to the Powerlines process.
658
+ */
659
+ userConfig: TUserConfig;
660
+ /**
661
+ * A string identifier for the Powerlines command being executed.
662
+ */
663
+ command: NonUndefined<InlineConfig<TUserConfig>["command"]>;
664
+ /**
665
+ * The root directory of the project's source code
666
+ *
667
+ * @defaultValue "\{projectRoot\}/src"
668
+ */
669
+ sourceRoot: NonUndefined<TUserConfig["sourceRoot"]>;
670
+ /**
671
+ * The root directory of the project.
672
+ */
673
+ projectRoot: NonUndefined<TUserConfig["root"]>;
674
+ /**
675
+ * The type of project being built.
676
+ */
677
+ projectType: NonUndefined<TUserConfig["type"]>;
678
+ /**
679
+ * The output configuration options to use for the build process
680
+ */
681
+ output: OutputResolvedConfig;
682
+ /**
683
+ * Configuration provided to build processes
684
+ *
685
+ * @remarks
686
+ * This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
687
+ */
688
+ build: Omit<TUserConfig["build"], "override"> & Required<Pick<Required<TUserConfig["build"]>, "override">>;
689
+ /**
690
+ * The log level to use for the Powerlines processes.
691
+ *
692
+ * @defaultValue "info"
693
+ */
694
+ logLevel: "error" | "warn" | "info" | "debug" | "trace" | null;
695
+ };
696
+ type TsupResolvedConfig = ResolvedConfig$1<TsupUserConfig>;
697
+ //#endregion
698
+ //#region ../powerlines/src/types/plugin.d.ts
699
+ interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> {
700
+ /**
701
+ * The order in which the plugin should be applied.
702
+ */
703
+ order?: "pre" | "post" | null | undefined;
704
+ /**
705
+ * A filter to determine when the hook should be called.
706
+ */
707
+ filter?: Pick<HookFilter, TFilter>;
708
+ /**
709
+ * The hook function to be called.
710
+ */
711
+ handler: THookFunction;
712
+ }
713
+ type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> = THookFunction | PluginHookObject<THookFunction, TFilter>;
714
+ /**
715
+ * A result returned by the plugin from the `generateTypes` hook that describes the declaration types output file.
716
+ */
717
+ interface GenerateTypesResult {
718
+ directives?: string[];
719
+ code: string;
720
+ }
721
+ type DeepPartial$1<T> = { [K in keyof T]?: DeepPartial$1<T[K]> };
722
+ type ConfigResult<TContext extends PluginContext = PluginContext> = DeepPartial$1<TContext["config"]> & Record<string, any>;
723
+ interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext> extends Record<CommandType, (this: TContext) => MaybePromise<void>> {
724
+ /**
725
+ * A function that returns configuration options to be merged with the build context's options.
726
+ *
727
+ * @remarks
728
+ * Modify config before it's resolved. The hook can either mutate {@link Context.config} on the passed-in context directly, or return a partial config object that will be deeply merged into existing config.
729
+ *
730
+ * @warning User plugins are resolved before running this hook so injecting other plugins inside the config hook will have no effect. If you want to add plugins, consider doing so in the {@link Plugin.dependsOn} property instead.
731
+ *
732
+ * @see https://vitejs.dev/guide/api-plugin#config
733
+ *
734
+ * @param this - The build context.
735
+ * @param config - The partial configuration object to be modified.
736
+ * @returns A promise that resolves to a partial configuration object.
737
+ */
738
+ config: (this: UnresolvedContext<TContext["config"]>) => MaybePromise<ConfigResult<TContext>>;
739
+ /**
740
+ * 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.
741
+ *
742
+ * @remarks
743
+ * This hook is called for each environment with a partially resolved environment config that already accounts for the default environment config values set at the root level. If plugins need to modify the config of a given environment, they should do it in this hook instead of the config hook. Leaving the config hook only for modifying the root default environment config.
744
+ *
745
+ * @see https://vitejs.dev/guide/api-plugin#configenvironment
746
+ *
747
+ * @param this - The build context.
748
+ * @param name - The name of the environment being configured.
749
+ * @param environment - The Vite-like environment object containing information about the current build environment.
750
+ * @returns A promise that resolves when the hook is complete.
751
+ */
752
+ configEnvironment: (this: TContext, name: string, environment: EnvironmentConfig) => MaybePromise<Partial<EnvironmentResolvedConfig> | undefined | null>;
753
+ /**
754
+ * A hook that is called when the plugin is resolved.
755
+ *
756
+ * @see https://vitejs.dev/guide/api-plugin#configresolved
757
+ *
758
+ * @param this - The build context.
759
+ * @returns A promise that resolves when the hook is complete.
760
+ */
761
+ configResolved: (this: TContext) => MaybePromise<void>;
762
+ /**
763
+ * A hook that is called to overwrite the generated declaration types file (.d.ts). The generated type definitions should describe the built-in modules/logic added during the `prepare` task.
764
+ *
765
+ * @param this - The build context.
766
+ * @param code - The source code to generate types for.
767
+ * @returns A promise that resolves when the hook is complete.
768
+ */
769
+ generateTypes: (this: TContext, code: string) => MaybePromise<GenerateTypesResult | string | undefined | null>;
770
+ /**
771
+ * A hook that is called at the start of the build process.
772
+ *
773
+ * @param this - The build context and unplugin build context.
774
+ * @returns A promise that resolves when the hook is complete.
775
+ */
776
+ buildStart: (this: BuildPluginContext<TContext["config"]> & TContext) => MaybePromise<void>;
777
+ /**
778
+ * A hook that is called at the end of the build process.
779
+ *
780
+ * @param this - The build context and unplugin build context.
781
+ * @returns A promise that resolves when the hook is complete.
782
+ */
783
+ buildEnd: (this: BuildPluginContext<TContext["config"]> & TContext) => MaybePromise<void>;
784
+ /**
785
+ * A hook that is called to transform the source code.
786
+ *
787
+ * @param this - The build context, unplugin build context, and unplugin context.
788
+ * @param code - The source code to transform.
789
+ * @param id - The identifier of the source code.
790
+ * @returns A promise that resolves when the hook is complete.
791
+ */
792
+ transform: (this: BuildPluginContext<TContext["config"]> & TContext, code: string, id: string) => MaybePromise<TransformResult>;
793
+ /**
794
+ * A hook that is called to load the source code.
795
+ *
796
+ * @param this - The build context, unplugin build context, and unplugin context.
797
+ * @param id - The identifier of the source code.
798
+ * @returns A promise that resolves when the hook is complete.
799
+ */
800
+ load: (this: BuildPluginContext<TContext["config"]> & TContext, id: string) => MaybePromise<TransformResult>;
801
+ /**
802
+ * A hook that is called to resolve the identifier of the source code.
803
+ *
804
+ * @param this - The build context, unplugin build context, and unplugin context.
805
+ * @param id - The identifier of the source code.
806
+ * @param importer - The importer of the source code.
807
+ * @param options - The options for resolving the identifier.
808
+ * @returns A promise that resolves when the hook is complete.
809
+ */
810
+ resolveId: (this: BuildPluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
811
+ isEntry: boolean;
812
+ }) => MaybePromise<string | ExternalIdResult | null | undefined>;
813
+ /**
814
+ * A hook that is called to write the bundle to disk.
815
+ *
816
+ * @param this - The build context.
817
+ * @returns A promise that resolves when the hook is complete.
818
+ */
819
+ writeBundle: (this: TContext) => MaybePromise<void>;
820
+ }
821
+ type BuildPlugin<TContext extends PluginContext = PluginContext, TBuildVariant$1 extends UnpluginBuildVariant = UnpluginBuildVariant, TOptions extends Required<UnpluginOptions>[TBuildVariant$1] = Required<UnpluginOptions>[TBuildVariant$1]> = { [TKey in keyof TOptions]: TOptions[TKey] extends FunctionLike ? (this: ThisParameterType<TOptions[TKey]> & TContext, ...args: Parameters<TOptions[TKey]>) => ReturnType<TOptions[TKey]> | MaybePromise<ReturnType<TOptions[TKey]>> : TOptions[TKey] };
822
+ type PluginHooks<TContext extends PluginContext = PluginContext> = { [TKey in keyof BasePluginHookFunctions<TContext>]: PluginHook<BasePluginHookFunctions<TContext>[TKey]> } & {
823
+ /**
824
+ * A function that returns configuration options to be merged with the build context's options.
825
+ *
826
+ * @remarks
827
+ * Modify config before it's resolved. The hook can either mutate {@link Context.config} on the passed-in context directly, or return a partial config object that will be deeply merged into existing config.
828
+ *
829
+ * @warning User plugins are resolved before running this hook so injecting other plugins inside the config hook will have no effect. If you want to add plugins, consider doing so in the {@link Plugin.dependsOn} property instead.
830
+ *
831
+ * @see https://vitejs.dev/guide/api-plugin#config
832
+ *
833
+ * @param this - The build context.
834
+ * @param config - The partial configuration object to be modified.
835
+ * @returns A promise that resolves to a partial configuration object.
836
+ */
837
+ config: PluginHook<(this: UnresolvedContext<TContext["config"]>) => MaybePromise<ConfigResult<TContext>>> | ConfigResult<TContext>;
838
+ /**
839
+ * A hook that is called to transform the source code.
840
+ *
841
+ * @param this - The build context, unplugin build context, and unplugin context.
842
+ * @param code - The source code to transform.
843
+ * @param id - The identifier of the source code.
844
+ * @returns A promise that resolves when the hook is complete.
845
+ */
846
+ transform: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, code: string, id: string) => MaybePromise<TransformResult>, "code" | "id">;
847
+ /**
848
+ * A hook that is called to load the source code.
849
+ *
850
+ * @param this - The build context, unplugin build context, and unplugin context.
851
+ * @param id - The identifier of the source code.
852
+ * @returns A promise that resolves when the hook is complete.
853
+ */
854
+ load: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, id: string) => MaybePromise<TransformResult>, "id">;
855
+ /**
856
+ * A hook that is called to resolve the identifier of the source code.
857
+ *
858
+ * @param this - The build context, unplugin build context, and unplugin context.
859
+ * @param id - The identifier of the source code.
860
+ * @param importer - The importer of the source code.
861
+ * @param options - The options for resolving the identifier.
862
+ * @returns A promise that resolves when the hook is complete.
863
+ */
864
+ resolveId: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
865
+ isEntry: boolean;
866
+ }) => MaybePromise<string | ExternalIdResult | null | undefined>, "id">;
867
+ };
868
+ type PluginBuildPlugins<TContext extends PluginContext = PluginContext> = { [TBuildVariant in UnpluginBuildVariant]?: BuildPlugin<TContext, TBuildVariant> };
869
+ interface Plugin<in out TContext extends PluginContext<ResolvedConfig$1> = PluginContext<ResolvedConfig$1>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
870
+ /**
871
+ * The name of the plugin, for use in deduplication, error messages and logs.
872
+ */
873
+ name: string;
874
+ /**
875
+ * An API object that can be used for inter-plugin communication.
876
+ *
877
+ * @see https://rollupjs.org/plugin-development/#direct-plugin-communication
878
+ */
879
+ api?: Record<string, any>;
880
+ /**
881
+ * Enforce plugin invocation tier similar to webpack loaders. Hooks ordering is still subject to the `order` property in the hook object.
882
+ *
883
+ * @remarks
884
+ * The Plugin invocation order is as follows:
885
+ * - `enforce: 'pre'` plugins
886
+ * - `order: 'pre'` plugin hooks
887
+ * - any other plugins (normal)
888
+ * - `order: 'post'` plugin hooks
889
+ * - `enforce: 'post'` plugins
890
+ *
891
+ * @see https://vitejs.dev/guide/api-plugin.html#plugin-ordering
892
+ * @see https://rollupjs.org/plugin-development/#build-hooks
893
+ * @see https://webpack.js.org/concepts/loaders/#enforce---pre-and-post
894
+ * @see https://esbuild.github.io/plugins/#concepts
895
+ */
896
+ enforce?: "pre" | "post";
897
+ /**
898
+ * A function to determine if two plugins are the same and can be de-duplicated.
899
+ *
900
+ * @remarks
901
+ * If this is not provided, plugins are de-duplicated by comparing their names.
902
+ *
903
+ * @param other - The other plugin to compare against.
904
+ * @returns `true` if the two plugins are the same, `false` otherwise.
905
+ */
906
+ dedupe?: false | ((other: Plugin<any>) => boolean);
907
+ /**
908
+ * A list of pre-requisite plugins that must be loaded before this plugin can be used.
909
+ */
910
+ dependsOn?: PluginConfig<any>[];
911
+ /**
912
+ * Define environments where this plugin should be active. By default, the plugin is active in all environments.
913
+ *
914
+ * @param environment - The environment to check.
915
+ * @returns `true` if the plugin should be active in the specified environment, `false` otherwise.
916
+ */
917
+ applyToEnvironment?: (environment: EnvironmentResolvedConfig) => MaybePromise<boolean | Plugin<TContext>>;
918
+ }
919
+ //#endregion
920
+ //#region ../powerlines/src/types/tsconfig.d.ts
921
+ type ReflectionMode = "default" | "explicit" | "never";
922
+ type RawReflectionMode = ReflectionMode | "" | boolean | string | string[] | undefined;
923
+ /**
924
+ * Defines the level of reflection to be used during the transpilation process.
925
+ *
926
+ * @remarks
927
+ * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
928
+ * - `minimal` - Only the essential type information is captured.
929
+ * - `normal` - Additional type information is captured, including some contextual data.
930
+ * - `verbose` - All available type information is captured, including detailed contextual data.
931
+ */
932
+ type ReflectionLevel = "minimal" | "normal" | "verbose";
933
+ interface DeepkitOptions {
934
+ /**
935
+ * Either true to activate reflection for all files compiled using this tsconfig,
936
+ * or a list of globs/file paths relative to this tsconfig.json.
937
+ * Globs/file paths can be prefixed with a ! to exclude them.
938
+ */
939
+ reflection?: RawReflectionMode;
940
+ /**
941
+ * Defines the level of reflection to be used during the transpilation process.
942
+ *
943
+ * @remarks
944
+ * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
945
+ * - `minimal` - Only the essential type information is captured.
946
+ * - `normal` - Additional type information is captured, including some contextual data.
947
+ * - `verbose` - All available type information is captured, including detailed contextual data.
948
+ */
949
+ reflectionLevel?: ReflectionLevel;
950
+ }
951
+ type TSCompilerOptions = CompilerOptions & DeepkitOptions;
952
+ /**
953
+ * The TypeScript compiler configuration.
954
+ *
955
+ * @see https://www.typescriptlang.org/docs/handbook/tsconfig-json.html
956
+ */
957
+ interface TSConfig extends Omit<TsConfigJson, "reflection"> {
958
+ /**
959
+ * Either true to activate reflection for all files compiled using this tsconfig,
960
+ * or a list of globs/file paths relative to this tsconfig.json.
961
+ * Globs/file paths can be prefixed with a ! to exclude them.
962
+ */
963
+ reflection?: RawReflectionMode;
964
+ /**
965
+ * Defines the level of reflection to be used during the transpilation process.
966
+ *
967
+ * @remarks
968
+ * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
969
+ * - `minimal` - Only the essential type information is captured.
970
+ * - `normal` - Additional type information is captured, including some contextual data.
971
+ * - `verbose` - All available type information is captured, including detailed contextual data.
972
+ */
973
+ reflectionLevel?: ReflectionLevel;
974
+ /**
975
+ * Instructs the TypeScript compiler how to compile `.ts` files.
976
+ */
977
+ compilerOptions?: TSCompilerOptions;
978
+ }
979
+ type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
980
+ originalTsconfigJson: TsConfigJson;
981
+ tsconfigJson: TSConfig;
982
+ tsconfigFilePath: string;
983
+ };
984
+ //#endregion
985
+ //#region ../powerlines/src/types/context.d.ts
986
+ interface MetaInfo {
987
+ /**
988
+ * The checksum generated from the resolved options
989
+ */
990
+ checksum: string;
991
+ /**
992
+ * The build id
993
+ */
994
+ buildId: string;
995
+ /**
996
+ * The release id
997
+ */
998
+ releaseId: string;
999
+ /**
1000
+ * The build timestamp
1001
+ */
1002
+ timestamp: number;
1003
+ /**
1004
+ * A hash that represents the path to the project root directory
1005
+ */
1006
+ projectRootHash: string;
1007
+ /**
1008
+ * A hash that represents the path to the project root directory
1009
+ */
1010
+ configHash: string;
1011
+ }
1012
+ interface Resolver extends Jiti {
1013
+ plugin: Jiti;
1014
+ }
1015
+ interface TransformResult$1 {
1016
+ code: string;
1017
+ map: SourceMap | null;
1018
+ }
1019
+ interface InitContextOptions {
1020
+ /**
1021
+ * If false, the plugin will be loaded after all other plugins.
1022
+ *
1023
+ * @defaultValue true
1024
+ */
1025
+ isHighPriority: boolean;
1026
+ }
1027
+ interface FetchOptions extends FetchRequestOptions {
1028
+ /**
1029
+ * An indicator specifying that the request should bypass any caching
1030
+ */
1031
+ skipCache?: boolean;
1032
+ }
1033
+ interface ParseOptions extends ParserOptions {
1034
+ /**
1035
+ * When true this allows return statements to be outside functions to e.g. support parsing CommonJS code.
1036
+ */
1037
+ allowReturnOutsideFunction?: boolean;
1038
+ }
1039
+ /**
1040
+ * The unresolved Powerlines context.
1041
+ *
1042
+ * @remarks
1043
+ * This context is used before the user configuration has been fully resolved after the `config`.
1044
+ */
1045
+ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig$1 = ResolvedConfig$1> {
1046
+ /**
1047
+ * The Storm workspace configuration
1048
+ */
1049
+ workspaceConfig: WorkspaceConfig;
1050
+ /**
1051
+ * An object containing the options provided to Powerlines
1052
+ */
1053
+ config: Omit<TResolvedConfig["userConfig"], "build" | "output"> & Required<Pick<TResolvedConfig["userConfig"], "build" | "output">> & {
1054
+ projectRoot: NonUndefined<TResolvedConfig["userConfig"]["root"]>;
1055
+ sourceRoot: NonUndefined<TResolvedConfig["userConfig"]["sourceRoot"]>;
1056
+ output: TResolvedConfig["output"];
1057
+ };
1058
+ /**
1059
+ * A logging function for the Powerlines engine
1060
+ */
1061
+ log: LogFn;
1062
+ /**
1063
+ * A logging function for fatal messages
1064
+ */
1065
+ fatal: (message: string | UnpluginMessage) => void;
1066
+ /**
1067
+ * A logging function for error messages
1068
+ */
1069
+ error: (message: string | UnpluginMessage) => void;
1070
+ /**
1071
+ * A logging function for warning messages
1072
+ */
1073
+ warn: (message: string | UnpluginMessage) => void;
1074
+ /**
1075
+ * A logging function for informational messages
1076
+ */
1077
+ info: (message: string | UnpluginMessage) => void;
1078
+ /**
1079
+ * A logging function for debug messages
1080
+ */
1081
+ debug: (message: string | UnpluginMessage) => void;
1082
+ /**
1083
+ * A logging function for trace messages
1084
+ */
1085
+ trace: (message: string | UnpluginMessage) => void;
1086
+ /**
1087
+ * The metadata information
1088
+ */
1089
+ meta: MetaInfo;
1090
+ /**
1091
+ * The metadata information currently written to disk
1092
+ */
1093
+ persistedMeta?: MetaInfo;
1094
+ /**
1095
+ * The Powerlines artifacts directory
1096
+ */
1097
+ artifactsPath: string;
1098
+ /**
1099
+ * The path to the Powerlines builtin runtime modules directory
1100
+ */
1101
+ builtinsPath: string;
1102
+ /**
1103
+ * The path to the Powerlines entry modules directory
1104
+ */
1105
+ entryPath: string;
1106
+ /**
1107
+ * The path to the Powerlines TypeScript declaration files directory
1108
+ */
1109
+ dtsPath: string;
1110
+ /**
1111
+ * The path to a directory where the reflection data buffers (used by the build processes) are stored
1112
+ */
1113
+ dataPath: string;
1114
+ /**
1115
+ * The path to a directory where the project cache (used by the build processes) is stored
1116
+ */
1117
+ cachePath: string;
1118
+ /**
1119
+ * The Powerlines environment paths
1120
+ */
1121
+ envPaths: EnvPaths;
1122
+ /**
1123
+ * The file system path to the Powerlines package installation
1124
+ */
1125
+ powerlinesPath: string;
1126
+ /**
1127
+ * The relative path to the Powerlines workspace root directory
1128
+ */
1129
+ relativeToWorkspaceRoot: string;
1130
+ /**
1131
+ * The project's `package.json` file content
1132
+ */
1133
+ packageJson: PackageJson & Record<string, any>;
1134
+ /**
1135
+ * The project's `project.json` file content
1136
+ */
1137
+ projectJson?: Record<string, any>;
1138
+ /**
1139
+ * The dependency installations required by the project
1140
+ */
1141
+ dependencies: Record<string, string | Range>;
1142
+ /**
1143
+ * The development dependency installations required by the project
1144
+ */
1145
+ devDependencies: Record<string, string | Range>;
1146
+ /**
1147
+ * The parsed TypeScript configuration from the `tsconfig.json` file
1148
+ */
1149
+ tsconfig: ParsedTypeScriptConfig;
1150
+ /**
1151
+ * The entry points of the source code
1152
+ */
1153
+ entry: ResolvedEntryTypeDefinition[];
1154
+ /**
1155
+ * The virtual file system manager used during the build process to reference generated runtime files
1156
+ */
1157
+ fs: VirtualFileSystemInterface;
1158
+ /**
1159
+ * The Jiti module resolver
1160
+ */
1161
+ resolver: Resolver;
1162
+ /**
1163
+ * The builtin module id that exist in the Powerlines virtual file system
1164
+ */
1165
+ builtins: string[];
1166
+ /**
1167
+ * The {@link Project} instance used for type reflection and module manipulation
1168
+ *
1169
+ * @see https://ts-morph.com/
1170
+ *
1171
+ * @remarks
1172
+ * This instance is created lazily on first access.
1173
+ */
1174
+ program: Project;
1175
+ /**
1176
+ * A function to perform HTTP fetch requests
1177
+ *
1178
+ * @remarks
1179
+ * This function uses a caching layer to avoid duplicate requests during the Powerlines process.
1180
+ *
1181
+ * @example
1182
+ * ```ts
1183
+ * const response = await context.fetch("https://api.example.com/data");
1184
+ * const data = await response.json();
1185
+ * ```
1186
+ *
1187
+ * @see https://github.com/nodejs/undici
1188
+ *
1189
+ * @param input - The URL to fetch.
1190
+ * @param options - The fetch request options.
1191
+ * @returns A promise that resolves to a response returned by the fetch.
1192
+ */
1193
+ fetch: (input: RequestInfo, options?: FetchOptions) => Promise<Response>;
1194
+ /**
1195
+ * Parse code using [Oxc-Parser](https://github.com/oxc/oxc) into an (ESTree-compatible)[https://github.com/estree/estree] AST object.
1196
+ *
1197
+ * @remarks
1198
+ * This function can be used to parse TypeScript code into an AST for further analysis or transformation.
1199
+ *
1200
+ * @example
1201
+ * ```ts
1202
+ * const ast = context.parse("const x: number = 42;");
1203
+ * ```
1204
+ *
1205
+ * @see https://rollupjs.org/plugin-development/#this-parse
1206
+ * @see https://github.com/oxc/oxc
1207
+ *
1208
+ * @param code - The source code to parse.
1209
+ * @param options - The options to pass to the parser.
1210
+ * @returns An (ESTree-compatible)[https://github.com/estree/estree] AST object.
1211
+ */
1212
+ parse: (code: string, options?: ParseOptions) => Promise<ParseResult>;
1213
+ /**
1214
+ * A helper function to resolve modules using the Jiti resolver
1215
+ *
1216
+ * @remarks
1217
+ * This function can be used to resolve modules relative to the project root directory.
1218
+ *
1219
+ * @example
1220
+ * ```ts
1221
+ * const resolvedPath = await context.resolve("some-module", "/path/to/importer");
1222
+ * ```
1223
+ *
1224
+ * @param id - The module to resolve.
1225
+ * @param importer - An optional path to the importer module.
1226
+ * @param options - Additional resolution options.
1227
+ * @returns A promise that resolves to the resolved module path.
1228
+ */
1229
+ resolve: (id: string, importer?: string, options?: ResolveOptions$1) => Promise<ExternalIdResult | undefined>;
1230
+ /**
1231
+ * A helper function to load modules using the Jiti resolver
1232
+ *
1233
+ * @remarks
1234
+ * This function can be used to load modules relative to the project root directory.
1235
+ *
1236
+ * @example
1237
+ * ```ts
1238
+ * const module = await context.load("some-module", "/path/to/importer");
1239
+ * ```
1240
+ *
1241
+ * @param id - The module to load.
1242
+ * @returns A promise that resolves to the loaded module.
1243
+ */
1244
+ load: (id: string) => Promise<TransformResult$1 | undefined>;
1245
+ /**
1246
+ * The Powerlines builtin virtual files
1247
+ */
1248
+ getBuiltins: () => Promise<VirtualFile[]>;
1249
+ /**
1250
+ * Resolves a builtin virtual file and writes it to the VFS if it does not already exist
1251
+ *
1252
+ * @param code - The source code of the builtin file
1253
+ * @param id - The unique identifier of the builtin file
1254
+ * @param path - An optional path to write the builtin file to
1255
+ */
1256
+ emitBuiltin: (code: string, id: string, path?: string) => Promise<void>;
1257
+ /**
1258
+ * Resolves a entry virtual file and writes it to the VFS if it does not already exist
1259
+ *
1260
+ * @param code - The source code of the entry file
1261
+ * @param path - An optional path to write the entry file to
1262
+ */
1263
+ emitEntry: (code: string, path: string) => Promise<void>;
1264
+ /**
1265
+ * A function to update the context fields using a new user configuration options
1266
+ */
1267
+ withUserConfig: (userConfig: UserConfig, options?: InitContextOptions) => Promise<void>;
1268
+ /**
1269
+ * A function to update the context fields using inline configuration options
1270
+ */
1271
+ withInlineConfig: (inlineConfig: InlineConfig, options?: InitContextOptions) => Promise<void>;
1272
+ /**
1273
+ * Create a new logger instance
1274
+ *
1275
+ * @param name - The name to use for the logger instance
1276
+ * @returns A logger function
1277
+ */
1278
+ createLog: (name: string | null) => LogFn;
1279
+ /**
1280
+ * Extend the current logger instance with a new name
1281
+ *
1282
+ * @param name - The name to use for the extended logger instance
1283
+ * @returns A logger function
1284
+ */
1285
+ extendLog: (name: string) => LogFn;
1286
+ /**
1287
+ * Generates a checksum representing the current context state
1288
+ *
1289
+ * @returns A promise that resolves to a string representing the checksum
1290
+ */
1291
+ generateChecksum: () => Promise<string>;
1292
+ }
1293
+ type Context<TResolvedConfig extends ResolvedConfig$1 = ResolvedConfig$1> = Omit<UnresolvedContext<TResolvedConfig>, "config"> & {
1294
+ /**
1295
+ * The fully resolved Powerlines configuration
1296
+ */
1297
+ config: TResolvedConfig;
1298
+ };
1299
+ interface PluginContext<out TResolvedConfig extends ResolvedConfig$1 = ResolvedConfig$1> extends Context<TResolvedConfig>, UnpluginContext {
1300
+ /**
1301
+ * The environment specific resolved configuration
1302
+ */
1303
+ environment: EnvironmentResolvedConfig;
1304
+ /**
1305
+ * An alternative property name for the {@link log} property
1306
+ *
1307
+ * @remarks
1308
+ * This is provided for compatibility with other logging libraries that expect a `logger` property.
1309
+ */
1310
+ logger: LogFn;
1311
+ }
1312
+ type BuildPluginContext<TResolvedConfig extends ResolvedConfig$1 = ResolvedConfig$1> = UnpluginBuildContext & PluginContext<TResolvedConfig>;
1313
+ //#endregion
1314
+ //#region ../powerlines/src/types/config.d.ts
1315
+ type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
1316
+ /**
1317
+ * The {@link StormWorkspaceConfig | configuration} object for an entire Powerlines workspace
1318
+ */
1319
+ type WorkspaceConfig = Partial<StormWorkspaceConfig> & Required<Pick<StormWorkspaceConfig, "workspaceRoot">>;
1320
+ type PluginFactory<in out TContext extends PluginContext = PluginContext, TOptions = any> = (options: TOptions) => MaybePromise<Plugin<TContext>>;
1321
+ /**
1322
+ * A configuration tuple for a Powerlines plugin.
1323
+ */
1324
+ type PluginConfigTuple<TContext extends PluginContext = PluginContext, TOptions = any> = [string | PluginFactory<TContext, TOptions>, TOptions] | [Plugin<TContext>];
1325
+ /**
1326
+ * A configuration object for a Powerlines plugin.
1327
+ */
1328
+ type PluginConfigObject<TContext extends PluginContext = PluginContext, TOptions = any> = {
1329
+ plugin: string | PluginFactory<TContext, TOptions>;
1330
+ options: TOptions;
1331
+ } | {
1332
+ plugin: Plugin<TContext>;
1333
+ options?: never;
1334
+ };
1335
+ /**
1336
+ * A configuration tuple for a Powerlines plugin.
1337
+ */
1338
+ type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> | Promise<Plugin<TContext>> | PluginConfigTuple<TContext> | PluginConfigObject<TContext>;
1339
+ type ProjectType = "application" | "library";
1340
+ interface DeployConfig {
1341
+ /**
1342
+ * The deployment variant being used by the Powerlines engine.
1343
+ *
1344
+ * @example
1345
+ * ```ts
1346
+ * export default defineConfig({
1347
+ * deploy: {
1348
+ * variant: "cloudflare"
1349
+ * }
1350
+ * });
1351
+ *
1352
+ * ```
1353
+ */
1354
+ variant?: string;
1355
+ }
1356
+ interface OutputConfig {
1357
+ /**
1358
+ * The path to output the final compiled files to
1359
+ *
1360
+ * @remarks
1361
+ * If a value is not provided, Powerlines will attempt to:
1362
+ * 1. Use the `outDir` value in the `tsconfig.json` file.
1363
+ * 2. Use the `dist` directory in the project root directory.
1364
+ *
1365
+ * @defaultValue "dist/\{projectRoot\}"
1366
+ */
1367
+ outputPath?: string;
1368
+ /**
1369
+ * The output directory path for the project build.
1370
+ *
1371
+ * @remarks
1372
+ * 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.
1373
+ *
1374
+ * @defaultValue "\{projectRoot\}/dist"
1375
+ */
1376
+ buildPath?: string;
1377
+ /**
1378
+ * The folder where the generated runtime artifacts will be located
1379
+ *
1380
+ * @remarks
1381
+ * This folder will contain all runtime artifacts and builtins generated during the "prepare" phase.
1382
+ *
1383
+ * @defaultValue "\{projectRoot\}/.powerlines"
1384
+ */
1385
+ artifactsPath?: string;
1386
+ /**
1387
+ * The path of the generated runtime declaration file relative to the workspace root.
1388
+ *
1389
+ * @defaultValue "\{projectRoot\}/powerlines.d.ts"
1390
+ */
1391
+ dts?: string | false;
1392
+ /**
1393
+ * A prefix to use for identifying builtin modules
1394
+ *
1395
+ * @remarks
1396
+ * 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"`.
1397
+ *
1398
+ * @defaultValue "powerlines"
1399
+ */
1400
+ builtinPrefix?: string;
1401
+ /**
1402
+ * The module format of the output files
1403
+ *
1404
+ * @remarks
1405
+ * 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.
1406
+ *
1407
+ * @defaultValue "esm"
1408
+ */
1409
+ format?: Format | Format[];
1410
+ /**
1411
+ * A list of assets to copy to the output directory
1412
+ *
1413
+ * @remarks
1414
+ * 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.
1415
+ */
1416
+ assets?: Array<string | AssetGlob>;
1417
+ /**
1418
+ * A string preset or a custom {@link StoragePort} to provide fine-grained control over generated/output file storage.
1419
+ *
1420
+ * @remarks
1421
+ * If a string preset is provided, it must be one of the following values:
1422
+ * - `"virtual"`: Uses the local file system for storage.
1423
+ * - `"fs"`: Uses an in-memory virtual file system for storage.
1424
+ *
1425
+ * If a custom {@link StoragePort} is provided, it will be used for all file storage operations during the build process.
1426
+ *
1427
+ * @defaultValue "virtual"
1428
+ */
1429
+ storage?: StoragePort | StoragePreset;
1430
+ }
1431
+ interface BaseConfig {
1432
+ /**
1433
+ * The entry point(s) for the application
1434
+ */
1435
+ entry?: TypeDefinitionParameter | TypeDefinitionParameter[];
1436
+ /**
1437
+ * Configuration for the output of the build process
1438
+ */
1439
+ output?: OutputConfig;
1440
+ /**
1441
+ * Configuration for cleaning the build artifacts
1442
+ *
1443
+ * @remarks
1444
+ * If set to `false`, the cleaning process will be disabled.
1445
+ */
1446
+ clean?: Record<string, any> | false;
1447
+ /**
1448
+ * Configuration for linting the source code
1449
+ *
1450
+ * @remarks
1451
+ * If set to `false`, linting will be disabled.
1452
+ */
1453
+ lint?: Record<string, any> | false;
1454
+ /**
1455
+ * Configuration for testing the source code
1456
+ *
1457
+ * @remarks
1458
+ * If set to `false`, testing will be disabled.
1459
+ */
1460
+ test?: Record<string, any> | false;
1461
+ /**
1462
+ * Configuration for the transformation of the source code
1463
+ */
1464
+ transform?: Record<string, any>;
1465
+ /**
1466
+ * Configuration provided to build processes
1467
+ *
1468
+ * @remarks
1469
+ * This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
1470
+ */
1471
+ build?: BuildConfig;
1472
+ /**
1473
+ * Configuration for documentation generation
1474
+ *
1475
+ * @remarks
1476
+ * This configuration will be used by the documentation generation plugins during the `docs` command.
1477
+ */
1478
+ docs?: Record<string, any>;
1479
+ /**
1480
+ * Configuration for deploying the source code
1481
+ *
1482
+ * @remarks
1483
+ * If set to `false`, the deployment will be disabled.
1484
+ */
1485
+ deploy?: DeployConfig | false;
1486
+ /**
1487
+ * The path to the tsconfig file to be used by the compiler
1488
+ *
1489
+ * @remarks
1490
+ * 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).
1491
+ *
1492
+ * @defaultValue "\{projectRoot\}/tsconfig.json"
1493
+ */
1494
+ tsconfig?: string;
1495
+ /**
1496
+ * The raw {@link TSConfig} object to be used by the compiler. This object will be merged with the `tsconfig.json` file.
1497
+ *
1498
+ * @see https://www.typescriptlang.org/tsconfig
1499
+ *
1500
+ * @remarks
1501
+ * If populated, this option takes higher priority than `tsconfig`
1502
+ */
1503
+ tsconfigRaw?: TSConfig;
1504
+ }
1505
+ interface EnvironmentConfig extends BaseConfig {
1506
+ /**
1507
+ * Configuration options for the preview server
1508
+ */
1509
+ preview?: PreviewOptions;
1510
+ /**
1511
+ * A flag indicating whether the build is for a Server-Side Rendering environment.
1512
+ */
1513
+ ssr?: boolean;
1514
+ /**
1515
+ * Define if this environment is used for Server-Side Rendering
1516
+ *
1517
+ * @defaultValue "server" (if it isn't the client environment)
1518
+ */
1519
+ consumer?: "client" | "server";
1520
+ }
1521
+ interface CommonUserConfig extends BaseConfig {
1522
+ /**
1523
+ * The name of the project
1524
+ */
1525
+ name?: string;
1526
+ /**
1527
+ * The project display title
1528
+ *
1529
+ * @remarks
1530
+ * This option is used in documentation generation and other places where a human-readable title is needed.
1531
+ */
1532
+ title?: string;
1533
+ /**
1534
+ * A description of the project
1535
+ *
1536
+ * @remarks
1537
+ * If this option is not provided, the build process will try to use the \`description\` value from the `\package.json\` file.
1538
+ */
1539
+ description?: string;
1540
+ /**
1541
+ * The log level to use for the Powerlines processes.
1542
+ *
1543
+ * @defaultValue "info"
1544
+ */
1545
+ logLevel?: LogLevelLabel | null;
1546
+ /**
1547
+ * A custom logger function to use for logging messages
1548
+ */
1549
+ customLogger?: LogFn;
1550
+ /**
1551
+ * 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.
1552
+ *
1553
+ * @defaultValue "production"
1554
+ */
1555
+ mode?: "development" | "test" | "production";
1556
+ /**
1557
+ * The type of project being built
1558
+ *
1559
+ * @defaultValue "application"
1560
+ */
1561
+ type?: ProjectType;
1562
+ /**
1563
+ * The root directory of the project
1564
+ */
1565
+ root: string;
1566
+ /**
1567
+ * The root directory of the project's source code
1568
+ *
1569
+ * @defaultValue "\{root\}/src"
1570
+ */
1571
+ sourceRoot?: string;
1572
+ /**
1573
+ * A path to a custom configuration file to be used instead of the default `storm.json`, `powerlines.config.js`, or `powerlines.config.ts` files.
1574
+ *
1575
+ * @remarks
1576
+ * This option is useful for running Powerlines commands with different configuration files, such as in CI/CD environments or when testing different configurations.
1577
+ */
1578
+ configFile?: string;
1579
+ /**
1580
+ * Should the Powerlines CLI processes skip installing missing packages?
1581
+ *
1582
+ * @remarks
1583
+ * This option is useful for CI/CD environments where the installation of packages is handled by a different process.
1584
+ *
1585
+ * @defaultValue false
1586
+ */
1587
+ skipInstalls?: boolean;
1588
+ /**
1589
+ * Should the compiler processes skip any improvements that make use of cache?
1590
+ *
1591
+ * @defaultValue false
1592
+ */
1593
+ skipCache?: boolean;
1594
+ /**
1595
+ * A list of resolvable paths to plugins used during the build process
1596
+ */
1597
+ plugins?: PluginConfig<PluginContext<any>>[];
1598
+ /**
1599
+ * Environment-specific configurations
1600
+ */
1601
+ environments?: Record<string, EnvironmentConfig>;
1602
+ /**
1603
+ * A string identifier that allows a child framework or tool to identify itself when using Powerlines.
1604
+ *
1605
+ * @remarks
1606
+ * 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.
1607
+ *
1608
+ * @defaultValue "powerlines"
1609
+ */
1610
+ framework?: string;
1611
+ }
1612
+ interface UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant$1 extends string = any> extends Omit<CommonUserConfig, "build"> {
1613
+ /**
1614
+ * Configuration provided to build processes
1615
+ *
1616
+ * @remarks
1617
+ * This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
1618
+ */
1619
+ build: Omit<TBuildConfig, "override"> & {
1620
+ /**
1621
+ * The build variant being used by the Powerlines engine.
1622
+ */
1623
+ variant?: TBuildVariant$1;
1624
+ /**
1625
+ * An optional set of override options to apply to the selected build variant.
1626
+ *
1627
+ * @remarks
1628
+ * 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.
1629
+ */
1630
+ override?: Partial<TBuildResolvedConfig>;
1631
+ };
1632
+ }
1633
+ type TsupUserConfig = UserConfig<TsupBuildConfig, TsupResolvedBuildConfig, "tsup">;
1634
+ type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "deploy" | "clean";
1635
+ /**
1636
+ * The configuration provided while executing Powerlines commands.
1637
+ */
1638
+ type InlineConfig<TUserConfig extends UserConfig = UserConfig> = Partial<TUserConfig> & {
1639
+ /**
1640
+ * A string identifier for the Powerlines command being executed
1641
+ */
1642
+ command: PowerlinesCommand;
1643
+ };
1644
+ //#endregion
1645
+ //#region src/types/plugin.d.ts
1646
+ type TsupPluginOptions = Partial<TsupBuildConfig>;
1647
+ type TsupPluginUserConfig = TsupUserConfig;
1648
+ type TsupPluginResolvedConfig = TsupResolvedConfig;
1649
+ type TsupPluginContext<TResolvedConfig extends TsupPluginResolvedConfig = TsupPluginResolvedConfig> = PluginContext<TResolvedConfig>;
1650
+ declare type __ΩTsupPluginOptions = any[];
1651
+ declare type __ΩTsupPluginUserConfig = any[];
1652
+ declare type __ΩTsupPluginResolvedConfig = any[];
1653
+ declare type __ΩTsupPluginContext = any[];
1654
+ //#endregion
1655
+ export { __ΩTsupPluginContext as a, __ΩTsupPluginUserConfig as c, TsupPluginUserConfig as i, Plugin as l, TsupPluginOptions as n, __ΩTsupPluginOptions as o, TsupPluginResolvedConfig as r, __ΩTsupPluginResolvedConfig as s, TsupPluginContext as t };
1656
+ //# sourceMappingURL=plugin-CD-0vofp.d.mts.map