@powerlines/plugin-id 0.9.18 → 0.9.20

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