@powerlines/plugin-automd 0.1.10 → 0.1.11

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