@powerlines/plugin-id 0.1.0 → 0.3.0

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.
@@ -10,13 +10,13 @@ import '@stryke/env/get-env-paths';
10
10
  import '@stryke/types/package-json';
11
11
  import 'jiti';
12
12
  import '@deepkit/type';
13
+ import 'semver';
13
14
  import 'unplugin';
14
15
  import '@stryke/capnp';
15
16
  import '@stryke/types/base';
16
17
  import '@stryke/types/tsconfig';
17
18
  import 'typescript';
18
- import 'semver';
19
- import '@stryke/types/array';
20
19
  import 'memfs';
21
20
  import 'node:fs';
22
21
  import 'unionfs';
22
+ import '@stryke/types/array';
@@ -10,13 +10,13 @@ import '@stryke/env/get-env-paths';
10
10
  import '@stryke/types/package-json';
11
11
  import 'jiti';
12
12
  import '@deepkit/type';
13
+ import 'semver';
13
14
  import 'unplugin';
14
15
  import '@stryke/capnp';
15
16
  import '@stryke/types/base';
16
17
  import '@stryke/types/tsconfig';
17
18
  import 'typescript';
18
- import 'semver';
19
- import '@stryke/types/array';
20
19
  import 'memfs';
21
20
  import 'node:fs';
22
21
  import 'unionfs';
22
+ import '@stryke/types/array';
@@ -9,16 +9,16 @@ import '@stryke/env/get-env-paths';
9
9
  import '@stryke/types/package-json';
10
10
  import 'jiti';
11
11
  import '@deepkit/type';
12
+ import 'semver';
12
13
  import 'unplugin';
13
14
  import '@stryke/capnp';
14
15
  import '@stryke/types/base';
15
16
  import '@stryke/types/tsconfig';
16
17
  import 'typescript';
17
- import 'semver';
18
- import '@stryke/types/array';
19
18
  import 'memfs';
20
19
  import 'node:fs';
21
20
  import 'unionfs';
21
+ import '@stryke/types/array';
22
22
 
23
23
  /**
24
24
  * Generates the nanoid module content.
@@ -9,16 +9,16 @@ import '@stryke/env/get-env-paths';
9
9
  import '@stryke/types/package-json';
10
10
  import 'jiti';
11
11
  import '@deepkit/type';
12
+ import 'semver';
12
13
  import 'unplugin';
13
14
  import '@stryke/capnp';
14
15
  import '@stryke/types/base';
15
16
  import '@stryke/types/tsconfig';
16
17
  import 'typescript';
17
- import 'semver';
18
- import '@stryke/types/array';
19
18
  import 'memfs';
20
19
  import 'node:fs';
21
20
  import 'unionfs';
21
+ import '@stryke/types/array';
22
22
 
23
23
  /**
24
24
  * Generates the nanoid module content.
@@ -9,13 +9,13 @@ import '@stryke/env/get-env-paths';
9
9
  import '@stryke/types/package-json';
10
10
  import 'jiti';
11
11
  import '@deepkit/type';
12
+ import 'semver';
12
13
  import 'unplugin';
13
14
  import '@stryke/capnp';
14
15
  import '@stryke/types/base';
15
16
  import '@stryke/types/tsconfig';
16
17
  import 'typescript';
17
- import 'semver';
18
- import '@stryke/types/array';
19
18
  import 'memfs';
20
19
  import 'node:fs';
21
20
  import 'unionfs';
21
+ import '@stryke/types/array';
@@ -9,13 +9,13 @@ import '@stryke/env/get-env-paths';
9
9
  import '@stryke/types/package-json';
10
10
  import 'jiti';
11
11
  import '@deepkit/type';
12
+ import 'semver';
12
13
  import 'unplugin';
13
14
  import '@stryke/capnp';
14
15
  import '@stryke/types/base';
15
16
  import '@stryke/types/tsconfig';
16
17
  import 'typescript';
17
- import 'semver';
18
- import '@stryke/types/array';
19
18
  import 'memfs';
20
19
  import 'node:fs';
21
20
  import 'unionfs';
21
+ import '@stryke/types/array';
@@ -8,16 +8,16 @@ import { EnvPaths } from '@stryke/env/get-env-paths';
8
8
  import { PackageJson } from '@stryke/types/package-json';
9
9
  import { Jiti } from 'jiti';
10
10
  import { ReflectionClass } from '@deepkit/type';
11
+ import { Range } from 'semver';
11
12
  import { TransformResult, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginContext, UnpluginBuildContext } from 'unplugin';
12
13
  import * as $ from '@stryke/capnp';
13
14
  import { NonUndefined, MaybePromise, FunctionLike } from '@stryke/types/base';
14
15
  import { TsConfigJson, CompilerOptions } from '@stryke/types/tsconfig';
15
16
  import ts from 'typescript';
16
- import { Range } from 'semver';
17
- import { ArrayValues } from '@stryke/types/array';
18
17
  import { Volume } from 'memfs';
19
18
  import { StatSyncOptions, Stats, PathLike, RmDirOptions, RmOptions, Mode, MakeDirectoryOptions as MakeDirectoryOptions$1, PathOrFileDescriptor, WriteFileOptions as WriteFileOptions$1 } from 'node:fs';
20
19
  import { IUnionFs } from 'unionfs';
20
+ import { ArrayValues } from '@stryke/types/array';
21
21
 
22
22
  declare const ReflectionKind: {
23
23
  readonly NEVER: 0;
@@ -1698,11 +1698,6 @@ type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserCon
1698
1698
  declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "release", "finalize"];
1699
1699
  type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
1700
1700
 
1701
- type PackageDependencyMeta = "dependency" | "devDependency" | {
1702
- version?: string | Range;
1703
- type?: "dependency" | "devDependency";
1704
- };
1705
- type PackageDependencies = Record<string, PackageDependencyMeta>;
1706
1701
  interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> {
1707
1702
  /**
1708
1703
  * The order in which the plugin should be applied.
@@ -2416,13 +2411,6 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
2416
2411
  * The relative path to the Powerlines workspace root directory
2417
2412
  */
2418
2413
  relativeToWorkspaceRoot: string;
2419
- /**
2420
- * The path to the \powerlines package
2421
- *
2422
- * @remarks
2423
- * This is used to determine the path to the Powerlines core package, which contains the runtime files.
2424
- */
2425
- corePackagePath: string;
2426
2414
  /**
2427
2415
  * The Powerlines artifacts directory
2428
2416
  */
@@ -2452,9 +2440,17 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
2452
2440
  */
2453
2441
  envPaths: EnvPaths;
2454
2442
  /**
2455
- * The installations required by the project
2443
+ * The file system path to the Powerlines package installation
2444
+ */
2445
+ powerlinesPath: string;
2446
+ /**
2447
+ * The dependency installations required by the project
2448
+ */
2449
+ dependencies: Record<string, string | Range>;
2450
+ /**
2451
+ * The development dependency installations required by the project
2456
2452
  */
2457
- dependencies: PackageDependencies;
2453
+ devDependencies: Record<string, string | Range>;
2458
2454
  /**
2459
2455
  * The project's `package.json` file content
2460
2456
  */
@@ -2582,14 +2578,14 @@ interface OutputConfig {
2582
2578
  */
2583
2579
  builtinPrefix?: string;
2584
2580
  /**
2585
- * The folder where the generated runtime modules/builtins will be located
2581
+ * The folder where the generated runtime artifacts will be located
2586
2582
  *
2587
2583
  * @remarks
2588
- * This folder will contain all runtime modules and builtins generated during the "prepare" phase.
2584
+ * This folder will contain all runtime artifacts and builtins generated during the "prepare" phase.
2589
2585
  *
2590
2586
  * @defaultValue "\{projectRoot\}/.powerlines"
2591
2587
  */
2592
- runtimeFolder?: string;
2588
+ artifactsFolder?: string;
2593
2589
  /**
2594
2590
  * The module format of the output files
2595
2591
  *
@@ -8,16 +8,16 @@ import { EnvPaths } from '@stryke/env/get-env-paths';
8
8
  import { PackageJson } from '@stryke/types/package-json';
9
9
  import { Jiti } from 'jiti';
10
10
  import { ReflectionClass } from '@deepkit/type';
11
+ import { Range } from 'semver';
11
12
  import { TransformResult, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginContext, UnpluginBuildContext } from 'unplugin';
12
13
  import * as $ from '@stryke/capnp';
13
14
  import { NonUndefined, MaybePromise, FunctionLike } from '@stryke/types/base';
14
15
  import { TsConfigJson, CompilerOptions } from '@stryke/types/tsconfig';
15
16
  import ts from 'typescript';
16
- import { Range } from 'semver';
17
- import { ArrayValues } from '@stryke/types/array';
18
17
  import { Volume } from 'memfs';
19
18
  import { StatSyncOptions, Stats, PathLike, RmDirOptions, RmOptions, Mode, MakeDirectoryOptions as MakeDirectoryOptions$1, PathOrFileDescriptor, WriteFileOptions as WriteFileOptions$1 } from 'node:fs';
20
19
  import { IUnionFs } from 'unionfs';
20
+ import { ArrayValues } from '@stryke/types/array';
21
21
 
22
22
  declare const ReflectionKind: {
23
23
  readonly NEVER: 0;
@@ -1698,11 +1698,6 @@ type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserCon
1698
1698
  declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "release", "finalize"];
1699
1699
  type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
1700
1700
 
1701
- type PackageDependencyMeta = "dependency" | "devDependency" | {
1702
- version?: string | Range;
1703
- type?: "dependency" | "devDependency";
1704
- };
1705
- type PackageDependencies = Record<string, PackageDependencyMeta>;
1706
1701
  interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> {
1707
1702
  /**
1708
1703
  * The order in which the plugin should be applied.
@@ -2416,13 +2411,6 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
2416
2411
  * The relative path to the Powerlines workspace root directory
2417
2412
  */
2418
2413
  relativeToWorkspaceRoot: string;
2419
- /**
2420
- * The path to the \powerlines package
2421
- *
2422
- * @remarks
2423
- * This is used to determine the path to the Powerlines core package, which contains the runtime files.
2424
- */
2425
- corePackagePath: string;
2426
2414
  /**
2427
2415
  * The Powerlines artifacts directory
2428
2416
  */
@@ -2452,9 +2440,17 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
2452
2440
  */
2453
2441
  envPaths: EnvPaths;
2454
2442
  /**
2455
- * The installations required by the project
2443
+ * The file system path to the Powerlines package installation
2444
+ */
2445
+ powerlinesPath: string;
2446
+ /**
2447
+ * The dependency installations required by the project
2448
+ */
2449
+ dependencies: Record<string, string | Range>;
2450
+ /**
2451
+ * The development dependency installations required by the project
2456
2452
  */
2457
- dependencies: PackageDependencies;
2453
+ devDependencies: Record<string, string | Range>;
2458
2454
  /**
2459
2455
  * The project's `package.json` file content
2460
2456
  */
@@ -2582,14 +2578,14 @@ interface OutputConfig {
2582
2578
  */
2583
2579
  builtinPrefix?: string;
2584
2580
  /**
2585
- * The folder where the generated runtime modules/builtins will be located
2581
+ * The folder where the generated runtime artifacts will be located
2586
2582
  *
2587
2583
  * @remarks
2588
- * This folder will contain all runtime modules and builtins generated during the "prepare" phase.
2584
+ * This folder will contain all runtime artifacts and builtins generated during the "prepare" phase.
2589
2585
  *
2590
2586
  * @defaultValue "\{projectRoot\}/.powerlines"
2591
2587
  */
2592
- runtimeFolder?: string;
2588
+ artifactsFolder?: string;
2593
2589
  /**
2594
2590
  * The module format of the output files
2595
2591
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-id",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
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.6",
120
120
  "@stryke/path": "^0.15.5",
121
121
  "defu": "^6.1.4",
122
- "powerlines": "^0.3.0"
122
+ "powerlines": "^0.4.0"
123
123
  },
124
124
  "devDependencies": {
125
- "@powerlines/nx": "^0.3.0",
125
+ "@powerlines/nx": "^0.5.0",
126
126
  "@storm-software/tsup": "^0.2.4",
127
- "@types/node": "^22.18.11"
127
+ "@types/node": "^22.18.12"
128
128
  },
129
129
  "publishConfig": { "access": "public" },
130
- "gitHead": "fe5e201169810dd966ee328fa3dabf57077eea36"
130
+ "gitHead": "56dc46d2a2d16d8b13be33fadb90e0e0c328baee"
131
131
  }