@powerlines/plugin-openapi 0.2.14 → 0.2.16

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.
@@ -17,9 +17,7 @@ import { UnpluginMessage, UnpluginContext, UnpluginBuildContext, TransformResult
17
17
  import { TsConfigJson, CompilerOptions } from '@stryke/types/tsconfig';
18
18
  import ts from 'typescript';
19
19
  import { PrimitiveJsonValue } from '@stryke/json/types';
20
- import { Volume } from 'memfs';
21
20
  import { PathLike, StatSyncOptions, Stats, RmDirOptions, RmOptions, Mode, MakeDirectoryOptions as MakeDirectoryOptions$1, PathOrFileDescriptor, WriteFileOptions as WriteFileOptions$1 } from 'node:fs';
22
- import { IUnionFs } from 'unionfs';
23
21
  import { ArrayValues } from '@stryke/types/array';
24
22
 
25
23
  type UnpluginBuildVariant = "rollup" | "webpack" | "rspack" | "vite" | "esbuild" | "farm" | "unloader" | "rolldown";
@@ -30,6 +28,20 @@ interface BuildConfig {
30
28
  * @defaultValue "neutral"
31
29
  */
32
30
  platform?: "node" | "browser" | "neutral";
31
+ /**
32
+ * Array of strings indicating the polyfills to include for the build.
33
+ *
34
+ * @remarks
35
+ * 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).
36
+ *
37
+ * @example
38
+ * ```ts
39
+ * {
40
+ * polyfill: ['{projectRoot}/custom-polyfill.ts']
41
+ * }
42
+ * ```
43
+ */
44
+ polyfill?: string[];
33
45
  /**
34
46
  * 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.
35
47
  *
@@ -115,7 +127,10 @@ interface BuildConfig {
115
127
  *
116
128
  * @see https://github.com/rollup/plugins/tree/master/packages/alias
117
129
  */
118
- alias?: Record<string, string>;
130
+ alias?: Record<string, string> | Array<{
131
+ find: string | RegExp;
132
+ replacement: string;
133
+ }>;
119
134
  /**
120
135
  * A list of modules that should not be bundled, even if they are external dependencies.
121
136
  *
@@ -205,11 +220,8 @@ type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
205
220
  tsconfigFilePath: string;
206
221
  };
207
222
 
208
- declare const __VFS_INIT__ = "__VFS_INIT__";
209
- declare const __VFS_REVERT__ = "__VFS_REVERT__";
210
- declare const __VFS_CACHE__ = "__VFS_CACHE__";
211
- declare const __VFS_VIRTUAL__ = "__VFS_VIRTUAL__";
212
- declare const __VFS_UNIFIED__ = "__VFS_UNIFIED__";
223
+ declare const __VFS_PATCH__: unique symbol;
224
+ declare const __VFS_REVERT__: unique symbol;
213
225
  type OutputModeType = "fs" | "virtual";
214
226
  interface VirtualFile {
215
227
  /**
@@ -249,7 +261,24 @@ interface VirtualFile {
249
261
  */
250
262
  code: string | NodeJS.ArrayBufferView;
251
263
  }
252
- type VirtualFileSystemMetadata = Pick<VirtualFile, "id" | "details" | "variant" | "mode">;
264
+ interface VirtualFileMetadata {
265
+ /**
266
+ * The identifier for the file data.
267
+ */
268
+ id: string;
269
+ /**
270
+ * The variant of the file.
271
+ */
272
+ variant: string;
273
+ /**
274
+ * The output mode of the file.
275
+ */
276
+ mode: string;
277
+ /**
278
+ * Additional metadata associated with the file.
279
+ */
280
+ properties: Record<string, string>;
281
+ }
253
282
  interface ResolveFSOptions {
254
283
  mode?: OutputModeType;
255
284
  }
@@ -278,12 +307,18 @@ interface ResolvePathOptions extends ResolveFSOptions {
278
307
  type?: "file" | "directory";
279
308
  }
280
309
  interface VirtualFileSystemInterface {
281
- [__VFS_INIT__]: () => void;
310
+ /**
311
+ * Patches the File System to include the virtual file system (VFS) contents.
312
+ */
313
+ [__VFS_PATCH__]: () => void;
314
+ /**
315
+ * Reverts the virtual file system (VFS) to its previous state.
316
+ */
282
317
  [__VFS_REVERT__]: () => void;
283
318
  /**
284
319
  * The underlying file metadata.
285
320
  */
286
- meta: Record<string, VirtualFileSystemMetadata | undefined>;
321
+ metadata: Record<string, VirtualFileMetadata | undefined>;
287
322
  /**
288
323
  * A map of module ids to their file paths.
289
324
  */
@@ -303,7 +338,7 @@ interface VirtualFileSystemInterface {
303
338
  * @param options - Optional parameters for resolving the path.
304
339
  * @returns Whether the path or id corresponds to a file written to the file system **(actually exists on disk)**.
305
340
  */
306
- isFs: (pathOrId: string, options?: ResolvePathOptions) => boolean;
341
+ isPhysical: (pathOrId: string, options?: ResolvePathOptions) => boolean;
307
342
  /**
308
343
  * Checks if a file exists in the virtual file system (VFS).
309
344
  *
@@ -318,15 +353,6 @@ interface VirtualFileSystemInterface {
318
353
  * @returns `true` if the directory exists, otherwise `false`.
319
354
  */
320
355
  isDirectory: (path: string) => boolean;
321
- /**
322
- * Check if a path exists within one of the directories specified in the tsconfig.json's `path` field.
323
- *
324
- * @see https://www.typescriptlang.org/tsconfig#paths
325
- *
326
- * @param pathOrId - The path or id to check.
327
- * @returns Whether the path or id corresponds to a virtual file.
328
- */
329
- isTsconfigPath: (pathOrId: string) => boolean;
330
356
  /**
331
357
  * Checks if a file exists in the virtual file system (VFS).
332
358
  *
@@ -340,7 +366,7 @@ interface VirtualFileSystemInterface {
340
366
  * @param pathOrId - The path or id of the file.
341
367
  * @returns The metadata of the file if it exists, otherwise undefined.
342
368
  */
343
- getMetadata: (pathOrId: PathLike) => VirtualFileSystemMetadata | undefined;
369
+ getMetadata: (pathOrId: PathLike) => VirtualFileMetadata | undefined;
344
370
  /**
345
371
  * Gets the stats of a file in the virtual file system (VFS).
346
372
  *
@@ -548,23 +574,12 @@ interface VirtualFileSystemInterface {
548
574
  */
549
575
  resolve: (pathOrId: string, options?: ResolvePathOptions) => string | false;
550
576
  /**
551
- * Resolves a path based on TypeScript's `tsconfig.json` paths.
552
- *
553
- * @see https://www.typescriptlang.org/tsconfig#paths
577
+ * Formats a path to match the virtual file system (VFS) structure.
554
578
  *
555
- * @param path - The path to check.
556
- * @returns The resolved file path if it exists, otherwise undefined.
579
+ * @param path - The path to format.
580
+ * @returns The formatted path.
557
581
  */
558
- resolveTsconfigPath: (path: string) => string | false;
559
- /**
560
- * Resolves a package name based on TypeScript's `tsconfig.json` paths.
561
- *
562
- * @see https://www.typescriptlang.org/tsconfig#paths
563
- *
564
- * @param path - The path to check.
565
- * @returns The resolved package name if it exists, otherwise undefined.
566
- */
567
- resolveTsconfigPathPackage: (path: string) => string | false;
582
+ formatPath: (path: string) => string;
568
583
  /**
569
584
  * Resolves a path or id to a file path in the virtual file system.
570
585
  *
@@ -573,23 +588,9 @@ interface VirtualFileSystemInterface {
573
588
  */
574
589
  realpathSync: (pathOrId: string) => string;
575
590
  /**
576
- * Retrieves a partial metadata mapping of all files in the virtual file system (VFS).
577
- *
578
- * @returns A record mapping file paths to their partial metadata.
579
- */
580
- getPartialMeta: () => Record<string, Partial<VirtualFileSystemMetadata>>;
581
- /**
582
- * A map of cached file paths to their underlying file content.
583
- */
584
- [__VFS_CACHE__]: Map<string, string>;
585
- /**
586
- * A reference to the underlying virtual file system.
591
+ * Disposes of the virtual file system (VFS), writes any virtual file changes to disk, and releases any associated resources.
587
592
  */
588
- [__VFS_VIRTUAL__]: Volume;
589
- /**
590
- * A reference to the underlying unified file system.
591
- */
592
- [__VFS_UNIFIED__]: IUnionFs;
593
+ dispose: () => Promise<void>;
593
594
  }
594
595
 
595
596
  type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
@@ -751,6 +752,13 @@ interface BaseConfig {
751
752
  * This configuration will be used by the documentation generation plugins during the `docs` command.
752
753
  */
753
754
  docs?: Record<string, any>;
755
+ /**
756
+ * Configuration for deploying the source code
757
+ *
758
+ * @remarks
759
+ * If set to `false`, the deployment will be disabled.
760
+ */
761
+ deploy?: Record<string, any> | false;
754
762
  /**
755
763
  * The path to the tsconfig file to be used by the compiler
756
764
  *
@@ -864,7 +872,7 @@ type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedCo
864
872
  override?: Partial<TBuildResolvedConfig>;
865
873
  };
866
874
  };
867
- type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "release" | "clean";
875
+ type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "deploy" | "clean";
868
876
  /**
869
877
  * The configuration provided while executing Powerlines commands.
870
878
  */
@@ -902,7 +910,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets"> & {
902
910
  /**
903
911
  * The resolved options for the Powerlines project configuration.
904
912
  */
905
- type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "variant" | "type" | "output" | "logLevel" | "framework"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "framework">> & {
913
+ type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework">> & {
906
914
  /**
907
915
  * The configuration options that were provided inline to the Powerlines CLI.
908
916
  */
@@ -973,14 +981,6 @@ interface MetaInfo {
973
981
  * A hash that represents the path to the project root directory
974
982
  */
975
983
  configHash: string;
976
- /**
977
- * A mapping of runtime ids to their corresponding file paths
978
- */
979
- builtinIdMap: Record<string, string>;
980
- /**
981
- * A mapping of virtual file paths to their corresponding file contents
982
- */
983
- virtualFiles: Record<string, string | null>;
984
984
  }
985
985
  interface Resolver extends Jiti {
986
986
  plugin: Jiti;
@@ -1188,7 +1188,7 @@ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedCon
1188
1188
  }
1189
1189
  type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = PluginContext<TResolvedConfig> & Omit<UnpluginBuildContext, "parse">;
1190
1190
 
1191
- declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "release", "finalize"];
1191
+ declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
1192
1192
  type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
1193
1193
 
1194
1194
  interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> {
@@ -17,9 +17,7 @@ import { UnpluginMessage, UnpluginContext, UnpluginBuildContext, TransformResult
17
17
  import { TsConfigJson, CompilerOptions } from '@stryke/types/tsconfig';
18
18
  import ts from 'typescript';
19
19
  import { PrimitiveJsonValue } from '@stryke/json/types';
20
- import { Volume } from 'memfs';
21
20
  import { PathLike, StatSyncOptions, Stats, RmDirOptions, RmOptions, Mode, MakeDirectoryOptions as MakeDirectoryOptions$1, PathOrFileDescriptor, WriteFileOptions as WriteFileOptions$1 } from 'node:fs';
22
- import { IUnionFs } from 'unionfs';
23
21
  import { ArrayValues } from '@stryke/types/array';
24
22
 
25
23
  type UnpluginBuildVariant = "rollup" | "webpack" | "rspack" | "vite" | "esbuild" | "farm" | "unloader" | "rolldown";
@@ -30,6 +28,20 @@ interface BuildConfig {
30
28
  * @defaultValue "neutral"
31
29
  */
32
30
  platform?: "node" | "browser" | "neutral";
31
+ /**
32
+ * Array of strings indicating the polyfills to include for the build.
33
+ *
34
+ * @remarks
35
+ * 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).
36
+ *
37
+ * @example
38
+ * ```ts
39
+ * {
40
+ * polyfill: ['{projectRoot}/custom-polyfill.ts']
41
+ * }
42
+ * ```
43
+ */
44
+ polyfill?: string[];
33
45
  /**
34
46
  * 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.
35
47
  *
@@ -115,7 +127,10 @@ interface BuildConfig {
115
127
  *
116
128
  * @see https://github.com/rollup/plugins/tree/master/packages/alias
117
129
  */
118
- alias?: Record<string, string>;
130
+ alias?: Record<string, string> | Array<{
131
+ find: string | RegExp;
132
+ replacement: string;
133
+ }>;
119
134
  /**
120
135
  * A list of modules that should not be bundled, even if they are external dependencies.
121
136
  *
@@ -205,11 +220,8 @@ type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
205
220
  tsconfigFilePath: string;
206
221
  };
207
222
 
208
- declare const __VFS_INIT__ = "__VFS_INIT__";
209
- declare const __VFS_REVERT__ = "__VFS_REVERT__";
210
- declare const __VFS_CACHE__ = "__VFS_CACHE__";
211
- declare const __VFS_VIRTUAL__ = "__VFS_VIRTUAL__";
212
- declare const __VFS_UNIFIED__ = "__VFS_UNIFIED__";
223
+ declare const __VFS_PATCH__: unique symbol;
224
+ declare const __VFS_REVERT__: unique symbol;
213
225
  type OutputModeType = "fs" | "virtual";
214
226
  interface VirtualFile {
215
227
  /**
@@ -249,7 +261,24 @@ interface VirtualFile {
249
261
  */
250
262
  code: string | NodeJS.ArrayBufferView;
251
263
  }
252
- type VirtualFileSystemMetadata = Pick<VirtualFile, "id" | "details" | "variant" | "mode">;
264
+ interface VirtualFileMetadata {
265
+ /**
266
+ * The identifier for the file data.
267
+ */
268
+ id: string;
269
+ /**
270
+ * The variant of the file.
271
+ */
272
+ variant: string;
273
+ /**
274
+ * The output mode of the file.
275
+ */
276
+ mode: string;
277
+ /**
278
+ * Additional metadata associated with the file.
279
+ */
280
+ properties: Record<string, string>;
281
+ }
253
282
  interface ResolveFSOptions {
254
283
  mode?: OutputModeType;
255
284
  }
@@ -278,12 +307,18 @@ interface ResolvePathOptions extends ResolveFSOptions {
278
307
  type?: "file" | "directory";
279
308
  }
280
309
  interface VirtualFileSystemInterface {
281
- [__VFS_INIT__]: () => void;
310
+ /**
311
+ * Patches the File System to include the virtual file system (VFS) contents.
312
+ */
313
+ [__VFS_PATCH__]: () => void;
314
+ /**
315
+ * Reverts the virtual file system (VFS) to its previous state.
316
+ */
282
317
  [__VFS_REVERT__]: () => void;
283
318
  /**
284
319
  * The underlying file metadata.
285
320
  */
286
- meta: Record<string, VirtualFileSystemMetadata | undefined>;
321
+ metadata: Record<string, VirtualFileMetadata | undefined>;
287
322
  /**
288
323
  * A map of module ids to their file paths.
289
324
  */
@@ -303,7 +338,7 @@ interface VirtualFileSystemInterface {
303
338
  * @param options - Optional parameters for resolving the path.
304
339
  * @returns Whether the path or id corresponds to a file written to the file system **(actually exists on disk)**.
305
340
  */
306
- isFs: (pathOrId: string, options?: ResolvePathOptions) => boolean;
341
+ isPhysical: (pathOrId: string, options?: ResolvePathOptions) => boolean;
307
342
  /**
308
343
  * Checks if a file exists in the virtual file system (VFS).
309
344
  *
@@ -318,15 +353,6 @@ interface VirtualFileSystemInterface {
318
353
  * @returns `true` if the directory exists, otherwise `false`.
319
354
  */
320
355
  isDirectory: (path: string) => boolean;
321
- /**
322
- * Check if a path exists within one of the directories specified in the tsconfig.json's `path` field.
323
- *
324
- * @see https://www.typescriptlang.org/tsconfig#paths
325
- *
326
- * @param pathOrId - The path or id to check.
327
- * @returns Whether the path or id corresponds to a virtual file.
328
- */
329
- isTsconfigPath: (pathOrId: string) => boolean;
330
356
  /**
331
357
  * Checks if a file exists in the virtual file system (VFS).
332
358
  *
@@ -340,7 +366,7 @@ interface VirtualFileSystemInterface {
340
366
  * @param pathOrId - The path or id of the file.
341
367
  * @returns The metadata of the file if it exists, otherwise undefined.
342
368
  */
343
- getMetadata: (pathOrId: PathLike) => VirtualFileSystemMetadata | undefined;
369
+ getMetadata: (pathOrId: PathLike) => VirtualFileMetadata | undefined;
344
370
  /**
345
371
  * Gets the stats of a file in the virtual file system (VFS).
346
372
  *
@@ -548,23 +574,12 @@ interface VirtualFileSystemInterface {
548
574
  */
549
575
  resolve: (pathOrId: string, options?: ResolvePathOptions) => string | false;
550
576
  /**
551
- * Resolves a path based on TypeScript's `tsconfig.json` paths.
552
- *
553
- * @see https://www.typescriptlang.org/tsconfig#paths
577
+ * Formats a path to match the virtual file system (VFS) structure.
554
578
  *
555
- * @param path - The path to check.
556
- * @returns The resolved file path if it exists, otherwise undefined.
579
+ * @param path - The path to format.
580
+ * @returns The formatted path.
557
581
  */
558
- resolveTsconfigPath: (path: string) => string | false;
559
- /**
560
- * Resolves a package name based on TypeScript's `tsconfig.json` paths.
561
- *
562
- * @see https://www.typescriptlang.org/tsconfig#paths
563
- *
564
- * @param path - The path to check.
565
- * @returns The resolved package name if it exists, otherwise undefined.
566
- */
567
- resolveTsconfigPathPackage: (path: string) => string | false;
582
+ formatPath: (path: string) => string;
568
583
  /**
569
584
  * Resolves a path or id to a file path in the virtual file system.
570
585
  *
@@ -573,23 +588,9 @@ interface VirtualFileSystemInterface {
573
588
  */
574
589
  realpathSync: (pathOrId: string) => string;
575
590
  /**
576
- * Retrieves a partial metadata mapping of all files in the virtual file system (VFS).
577
- *
578
- * @returns A record mapping file paths to their partial metadata.
579
- */
580
- getPartialMeta: () => Record<string, Partial<VirtualFileSystemMetadata>>;
581
- /**
582
- * A map of cached file paths to their underlying file content.
583
- */
584
- [__VFS_CACHE__]: Map<string, string>;
585
- /**
586
- * A reference to the underlying virtual file system.
591
+ * Disposes of the virtual file system (VFS), writes any virtual file changes to disk, and releases any associated resources.
587
592
  */
588
- [__VFS_VIRTUAL__]: Volume;
589
- /**
590
- * A reference to the underlying unified file system.
591
- */
592
- [__VFS_UNIFIED__]: IUnionFs;
593
+ dispose: () => Promise<void>;
593
594
  }
594
595
 
595
596
  type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
@@ -751,6 +752,13 @@ interface BaseConfig {
751
752
  * This configuration will be used by the documentation generation plugins during the `docs` command.
752
753
  */
753
754
  docs?: Record<string, any>;
755
+ /**
756
+ * Configuration for deploying the source code
757
+ *
758
+ * @remarks
759
+ * If set to `false`, the deployment will be disabled.
760
+ */
761
+ deploy?: Record<string, any> | false;
754
762
  /**
755
763
  * The path to the tsconfig file to be used by the compiler
756
764
  *
@@ -864,7 +872,7 @@ type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedCo
864
872
  override?: Partial<TBuildResolvedConfig>;
865
873
  };
866
874
  };
867
- type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "release" | "clean";
875
+ type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "deploy" | "clean";
868
876
  /**
869
877
  * The configuration provided while executing Powerlines commands.
870
878
  */
@@ -902,7 +910,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets"> & {
902
910
  /**
903
911
  * The resolved options for the Powerlines project configuration.
904
912
  */
905
- type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "variant" | "type" | "output" | "logLevel" | "framework"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "framework">> & {
913
+ type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework">> & {
906
914
  /**
907
915
  * The configuration options that were provided inline to the Powerlines CLI.
908
916
  */
@@ -973,14 +981,6 @@ interface MetaInfo {
973
981
  * A hash that represents the path to the project root directory
974
982
  */
975
983
  configHash: string;
976
- /**
977
- * A mapping of runtime ids to their corresponding file paths
978
- */
979
- builtinIdMap: Record<string, string>;
980
- /**
981
- * A mapping of virtual file paths to their corresponding file contents
982
- */
983
- virtualFiles: Record<string, string | null>;
984
984
  }
985
985
  interface Resolver extends Jiti {
986
986
  plugin: Jiti;
@@ -1188,7 +1188,7 @@ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedCon
1188
1188
  }
1189
1189
  type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = PluginContext<TResolvedConfig> & Omit<UnpluginBuildContext, "parse">;
1190
1190
 
1191
- declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "release", "finalize"];
1191
+ declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
1192
1192
  type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
1193
1193
 
1194
1194
  interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> {
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, P as Plugin } from './index-Cy4Y6qcC.cjs';
2
- export { c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from './index-Cy4Y6qcC.cjs';
1
+ import { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, P as Plugin } from './index-0Zlieqle.cjs';
2
+ export { c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from './index-0Zlieqle.cjs';
3
3
  import 'node:buffer';
4
4
  import 'node:stream';
5
5
  import 'openapi-typescript';
@@ -19,9 +19,7 @@ import 'unplugin';
19
19
  import '@stryke/types/tsconfig';
20
20
  import 'typescript';
21
21
  import '@stryke/json/types';
22
- import 'memfs';
23
22
  import 'node:fs';
24
- import 'unionfs';
25
23
  import '@stryke/types/array';
26
24
 
27
25
  /**
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, P as Plugin } from './index-Cy4Y6qcC.js';
2
- export { c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from './index-Cy4Y6qcC.js';
1
+ import { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, P as Plugin } from './index-0Zlieqle.js';
2
+ export { c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from './index-0Zlieqle.js';
3
3
  import 'node:buffer';
4
4
  import 'node:stream';
5
5
  import 'openapi-typescript';
@@ -19,9 +19,7 @@ import 'unplugin';
19
19
  import '@stryke/types/tsconfig';
20
20
  import 'typescript';
21
21
  import '@stryke/json/types';
22
- import 'memfs';
23
22
  import 'node:fs';
24
- import 'unionfs';
25
23
  import '@stryke/types/array';
26
24
 
27
25
  /**
@@ -1,4 +1,4 @@
1
- export { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from '../index-Cy4Y6qcC.cjs';
1
+ export { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from '../index-0Zlieqle.cjs';
2
2
  import 'node:buffer';
3
3
  import 'node:stream';
4
4
  import 'openapi-typescript';
@@ -18,7 +18,5 @@ import 'unplugin';
18
18
  import '@stryke/types/tsconfig';
19
19
  import 'typescript';
20
20
  import '@stryke/json/types';
21
- import 'memfs';
22
21
  import 'node:fs';
23
- import 'unionfs';
24
22
  import '@stryke/types/array';
@@ -1,4 +1,4 @@
1
- export { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from '../index-Cy4Y6qcC.js';
1
+ export { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from '../index-0Zlieqle.js';
2
2
  import 'node:buffer';
3
3
  import 'node:stream';
4
4
  import 'openapi-typescript';
@@ -18,7 +18,5 @@ import 'unplugin';
18
18
  import '@stryke/types/tsconfig';
19
19
  import 'typescript';
20
20
  import '@stryke/json/types';
21
- import 'memfs';
22
21
  import 'node:fs';
23
- import 'unionfs';
24
22
  import '@stryke/types/array';
@@ -1,7 +1,7 @@
1
1
  import 'node:buffer';
2
2
  import 'node:stream';
3
3
  import 'openapi-typescript';
4
- export { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from '../index-Cy4Y6qcC.cjs';
4
+ export { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from '../index-0Zlieqle.cjs';
5
5
  import '@storm-software/build-tools/types';
6
6
  import '@storm-software/config-tools/types';
7
7
  import '@storm-software/config/types';
@@ -18,7 +18,5 @@ import 'unplugin';
18
18
  import '@stryke/types/tsconfig';
19
19
  import 'typescript';
20
20
  import '@stryke/json/types';
21
- import 'memfs';
22
21
  import 'node:fs';
23
- import 'unionfs';
24
22
  import '@stryke/types/array';
@@ -1,7 +1,7 @@
1
1
  import 'node:buffer';
2
2
  import 'node:stream';
3
3
  import 'openapi-typescript';
4
- export { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from '../index-Cy4Y6qcC.js';
4
+ export { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from '../index-0Zlieqle.js';
5
5
  import '@storm-software/build-tools/types';
6
6
  import '@storm-software/config-tools/types';
7
7
  import '@storm-software/config/types';
@@ -18,7 +18,5 @@ import 'unplugin';
18
18
  import '@stryke/types/tsconfig';
19
19
  import 'typescript';
20
20
  import '@stryke/json/types';
21
- import 'memfs';
22
21
  import 'node:fs';
23
- import 'unionfs';
24
22
  import '@stryke/types/array';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-openapi",
3
- "version": "0.2.14",
3
+ "version": "0.2.16",
4
4
  "type": "module",
5
5
  "description": "A Powerlines plugin to generate project code from OpenAPI specifications.",
6
6
  "repository": {
@@ -111,13 +111,13 @@
111
111
  "defu": "^6.1.4",
112
112
  "jiti": "^2.6.1",
113
113
  "openapi-typescript": "^7.10.1",
114
- "powerlines": "^0.20.0"
114
+ "powerlines": "^0.22.0"
115
115
  },
116
116
  "devDependencies": {
117
- "@powerlines/nx": "^0.10.10",
118
- "@powerlines/plugin-plugin": "^0.11.18",
117
+ "@powerlines/nx": "^0.10.12",
118
+ "@powerlines/plugin-plugin": "^0.11.20",
119
119
  "@types/node": "^22.19.1"
120
120
  },
121
121
  "publishConfig": { "access": "public" },
122
- "gitHead": "e33924ab31dbf508b8983523edbaecffeebbee4f"
122
+ "gitHead": "30a4cf4f1c707fe159b55f65f1e87b14d679614d"
123
123
  }