@powerlines/plugin-date 0.3.0 → 0.4.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.
@@ -12,16 +12,16 @@ import '@stryke/env/get-env-paths';
12
12
  import '@stryke/types/package-json';
13
13
  import 'jiti';
14
14
  import '@deepkit/type';
15
+ import 'semver';
15
16
  import 'unplugin';
16
17
  import '@stryke/capnp';
17
18
  import '@stryke/types/base';
18
19
  import '@stryke/types/tsconfig';
19
20
  import 'typescript';
20
- import 'semver';
21
- import '@stryke/types/array';
22
21
  import 'memfs';
23
22
  import 'node:fs';
24
23
  import 'unionfs';
24
+ import '@stryke/types/array';
25
25
  import '@stryke/env/types';
26
26
 
27
27
  /**
@@ -12,16 +12,16 @@ import '@stryke/env/get-env-paths';
12
12
  import '@stryke/types/package-json';
13
13
  import 'jiti';
14
14
  import '@deepkit/type';
15
+ import 'semver';
15
16
  import 'unplugin';
16
17
  import '@stryke/capnp';
17
18
  import '@stryke/types/base';
18
19
  import '@stryke/types/tsconfig';
19
20
  import 'typescript';
20
- import 'semver';
21
- import '@stryke/types/array';
22
21
  import 'memfs';
23
22
  import 'node:fs';
24
23
  import 'unionfs';
24
+ import '@stryke/types/array';
25
25
  import '@stryke/env/types';
26
26
 
27
27
  /**
@@ -12,16 +12,16 @@ import '@stryke/env/get-env-paths';
12
12
  import '@stryke/types/package-json';
13
13
  import 'jiti';
14
14
  import '@deepkit/type';
15
+ import 'semver';
15
16
  import 'unplugin';
16
17
  import '@stryke/capnp';
17
18
  import '@stryke/types/base';
18
19
  import '@stryke/types/tsconfig';
19
20
  import 'typescript';
20
- import 'semver';
21
- import '@stryke/types/array';
22
21
  import 'memfs';
23
22
  import 'node:fs';
24
23
  import 'unionfs';
24
+ import '@stryke/types/array';
25
25
  import '@stryke/env/types';
26
26
 
27
27
  /**
@@ -12,16 +12,16 @@ import '@stryke/env/get-env-paths';
12
12
  import '@stryke/types/package-json';
13
13
  import 'jiti';
14
14
  import '@deepkit/type';
15
+ import 'semver';
15
16
  import 'unplugin';
16
17
  import '@stryke/capnp';
17
18
  import '@stryke/types/base';
18
19
  import '@stryke/types/tsconfig';
19
20
  import 'typescript';
20
- import 'semver';
21
- import '@stryke/types/array';
22
21
  import 'memfs';
23
22
  import 'node:fs';
24
23
  import 'unionfs';
24
+ import '@stryke/types/array';
25
25
  import '@stryke/env/types';
26
26
 
27
27
  /**
@@ -16,14 +16,14 @@ import '@stryke/env/get-env-paths';
16
16
  import '@stryke/types/package-json';
17
17
  import 'jiti';
18
18
  import '@deepkit/type';
19
+ import 'semver';
19
20
  import 'unplugin';
20
21
  import '@stryke/capnp';
21
22
  import '@stryke/types/base';
22
23
  import '@stryke/types/tsconfig';
23
24
  import 'typescript';
24
- import 'semver';
25
- import '@stryke/types/array';
26
25
  import 'memfs';
27
26
  import 'node:fs';
28
27
  import 'unionfs';
28
+ import '@stryke/types/array';
29
29
  import '@stryke/env/types';
@@ -16,14 +16,14 @@ import '@stryke/env/get-env-paths';
16
16
  import '@stryke/types/package-json';
17
17
  import 'jiti';
18
18
  import '@deepkit/type';
19
+ import 'semver';
19
20
  import 'unplugin';
20
21
  import '@stryke/capnp';
21
22
  import '@stryke/types/base';
22
23
  import '@stryke/types/tsconfig';
23
24
  import 'typescript';
24
- import 'semver';
25
- import '@stryke/types/array';
26
25
  import 'memfs';
27
26
  import 'node:fs';
28
27
  import 'unionfs';
28
+ import '@stryke/types/array';
29
29
  import '@stryke/env/types';
@@ -12,16 +12,16 @@ import '@stryke/env/get-env-paths';
12
12
  import '@stryke/types/package-json';
13
13
  import 'jiti';
14
14
  import '@deepkit/type';
15
+ import 'semver';
15
16
  import 'unplugin';
16
17
  import '@stryke/capnp';
17
18
  import '@stryke/types/base';
18
19
  import '@stryke/types/tsconfig';
19
20
  import 'typescript';
20
- import 'semver';
21
- import '@stryke/types/array';
22
21
  import 'memfs';
23
22
  import 'node:fs';
24
23
  import 'unionfs';
24
+ import '@stryke/types/array';
25
25
  import '@stryke/env/types';
26
26
 
27
27
  /**
@@ -12,16 +12,16 @@ import '@stryke/env/get-env-paths';
12
12
  import '@stryke/types/package-json';
13
13
  import 'jiti';
14
14
  import '@deepkit/type';
15
+ import 'semver';
15
16
  import 'unplugin';
16
17
  import '@stryke/capnp';
17
18
  import '@stryke/types/base';
18
19
  import '@stryke/types/tsconfig';
19
20
  import 'typescript';
20
- import 'semver';
21
- import '@stryke/types/array';
22
21
  import 'memfs';
23
22
  import 'node:fs';
24
23
  import 'unionfs';
24
+ import '@stryke/types/array';
25
25
  import '@stryke/env/types';
26
26
 
27
27
  /**
@@ -12,16 +12,16 @@ import '@stryke/env/get-env-paths';
12
12
  import '@stryke/types/package-json';
13
13
  import 'jiti';
14
14
  import '@deepkit/type';
15
+ import 'semver';
15
16
  import 'unplugin';
16
17
  import '@stryke/capnp';
17
18
  import '@stryke/types/base';
18
19
  import '@stryke/types/tsconfig';
19
20
  import 'typescript';
20
- import 'semver';
21
- import '@stryke/types/array';
22
21
  import 'memfs';
23
22
  import 'node:fs';
24
23
  import 'unionfs';
24
+ import '@stryke/types/array';
25
25
  import '@stryke/env/types';
26
26
 
27
27
  /**
@@ -12,16 +12,16 @@ import '@stryke/env/get-env-paths';
12
12
  import '@stryke/types/package-json';
13
13
  import 'jiti';
14
14
  import '@deepkit/type';
15
+ import 'semver';
15
16
  import 'unplugin';
16
17
  import '@stryke/capnp';
17
18
  import '@stryke/types/base';
18
19
  import '@stryke/types/tsconfig';
19
20
  import 'typescript';
20
- import 'semver';
21
- import '@stryke/types/array';
22
21
  import 'memfs';
23
22
  import 'node:fs';
24
23
  import 'unionfs';
24
+ import '@stryke/types/array';
25
25
  import '@stryke/env/types';
26
26
 
27
27
  /**
@@ -13,14 +13,14 @@ import '@stryke/env/get-env-paths';
13
13
  import '@stryke/types/package-json';
14
14
  import 'jiti';
15
15
  import '@deepkit/type';
16
+ import 'semver';
16
17
  import 'unplugin';
17
18
  import '@stryke/capnp';
18
19
  import '@stryke/types/base';
19
20
  import '@stryke/types/tsconfig';
20
21
  import 'typescript';
21
- import 'semver';
22
- import '@stryke/types/array';
23
22
  import 'memfs';
24
23
  import 'node:fs';
25
24
  import 'unionfs';
25
+ import '@stryke/types/array';
26
26
  import '@stryke/env/types';
@@ -13,14 +13,14 @@ import '@stryke/env/get-env-paths';
13
13
  import '@stryke/types/package-json';
14
14
  import 'jiti';
15
15
  import '@deepkit/type';
16
+ import 'semver';
16
17
  import 'unplugin';
17
18
  import '@stryke/capnp';
18
19
  import '@stryke/types/base';
19
20
  import '@stryke/types/tsconfig';
20
21
  import 'typescript';
21
- import 'semver';
22
- import '@stryke/types/array';
23
22
  import 'memfs';
24
23
  import 'node:fs';
25
24
  import 'unionfs';
25
+ import '@stryke/types/array';
26
26
  import '@stryke/env/types';
@@ -11,16 +11,16 @@ import { EnvPaths } from '@stryke/env/get-env-paths';
11
11
  import { PackageJson } from '@stryke/types/package-json';
12
12
  import { Jiti } from 'jiti';
13
13
  import { ReflectionClass } from '@deepkit/type';
14
+ import { Range } from 'semver';
14
15
  import { TransformResult, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginContext, UnpluginBuildContext } from 'unplugin';
15
16
  import * as $ from '@stryke/capnp';
16
17
  import { NonUndefined, MaybePromise, FunctionLike } from '@stryke/types/base';
17
18
  import { TsConfigJson, CompilerOptions } from '@stryke/types/tsconfig';
18
19
  import ts from 'typescript';
19
- import { Range } from 'semver';
20
- import { ArrayValues } from '@stryke/types/array';
21
20
  import { Volume } from 'memfs';
22
21
  import { StatSyncOptions, Stats, PathLike, RmDirOptions, RmOptions, Mode, MakeDirectoryOptions as MakeDirectoryOptions$1, PathOrFileDescriptor, WriteFileOptions as WriteFileOptions$1 } from 'node:fs';
23
22
  import { IUnionFs } from 'unionfs';
23
+ import { ArrayValues } from '@stryke/types/array';
24
24
  import { DotenvParseOutput } from '@stryke/env/types';
25
25
 
26
26
  declare const ReflectionKind: {
@@ -1703,11 +1703,6 @@ type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserCon
1703
1703
  declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "release", "finalize"];
1704
1704
  type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
1705
1705
 
1706
- type PackageDependencyMeta = "dependency" | "devDependency" | {
1707
- version?: string | Range;
1708
- type?: "dependency" | "devDependency";
1709
- };
1710
- type PackageDependencies = Record<string, PackageDependencyMeta>;
1711
1706
  interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> {
1712
1707
  /**
1713
1708
  * The order in which the plugin should be applied.
@@ -2432,13 +2427,6 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
2432
2427
  * The relative path to the Powerlines workspace root directory
2433
2428
  */
2434
2429
  relativeToWorkspaceRoot: string;
2435
- /**
2436
- * The path to the \powerlines package
2437
- *
2438
- * @remarks
2439
- * This is used to determine the path to the Powerlines core package, which contains the runtime files.
2440
- */
2441
- corePackagePath: string;
2442
2430
  /**
2443
2431
  * The Powerlines artifacts directory
2444
2432
  */
@@ -2468,9 +2456,17 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
2468
2456
  */
2469
2457
  envPaths: EnvPaths;
2470
2458
  /**
2471
- * The installations required by the project
2459
+ * The file system path to the Powerlines package installation
2460
+ */
2461
+ powerlinesPath: string;
2462
+ /**
2463
+ * The dependency installations required by the project
2464
+ */
2465
+ dependencies: Record<string, string | Range>;
2466
+ /**
2467
+ * The development dependency installations required by the project
2472
2468
  */
2473
- dependencies: PackageDependencies;
2469
+ devDependencies: Record<string, string | Range>;
2474
2470
  /**
2475
2471
  * The project's `package.json` file content
2476
2472
  */
@@ -2626,14 +2622,14 @@ interface OutputConfig {
2626
2622
  */
2627
2623
  builtinPrefix?: string;
2628
2624
  /**
2629
- * The folder where the generated runtime modules/builtins will be located
2625
+ * The folder where the generated runtime artifacts will be located
2630
2626
  *
2631
2627
  * @remarks
2632
- * This folder will contain all runtime modules and builtins generated during the "prepare" phase.
2628
+ * This folder will contain all runtime artifacts and builtins generated during the "prepare" phase.
2633
2629
  *
2634
2630
  * @defaultValue "\{projectRoot\}/.powerlines"
2635
2631
  */
2636
- runtimeFolder?: string;
2632
+ artifactsFolder?: string;
2637
2633
  /**
2638
2634
  * The module format of the output files
2639
2635
  *
@@ -11,16 +11,16 @@ import { EnvPaths } from '@stryke/env/get-env-paths';
11
11
  import { PackageJson } from '@stryke/types/package-json';
12
12
  import { Jiti } from 'jiti';
13
13
  import { ReflectionClass } from '@deepkit/type';
14
+ import { Range } from 'semver';
14
15
  import { TransformResult, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginContext, UnpluginBuildContext } from 'unplugin';
15
16
  import * as $ from '@stryke/capnp';
16
17
  import { NonUndefined, MaybePromise, FunctionLike } from '@stryke/types/base';
17
18
  import { TsConfigJson, CompilerOptions } from '@stryke/types/tsconfig';
18
19
  import ts from 'typescript';
19
- import { Range } from 'semver';
20
- import { ArrayValues } from '@stryke/types/array';
21
20
  import { Volume } from 'memfs';
22
21
  import { StatSyncOptions, Stats, PathLike, RmDirOptions, RmOptions, Mode, MakeDirectoryOptions as MakeDirectoryOptions$1, PathOrFileDescriptor, WriteFileOptions as WriteFileOptions$1 } from 'node:fs';
23
22
  import { IUnionFs } from 'unionfs';
23
+ import { ArrayValues } from '@stryke/types/array';
24
24
  import { DotenvParseOutput } from '@stryke/env/types';
25
25
 
26
26
  declare const ReflectionKind: {
@@ -1703,11 +1703,6 @@ type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserCon
1703
1703
  declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "release", "finalize"];
1704
1704
  type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
1705
1705
 
1706
- type PackageDependencyMeta = "dependency" | "devDependency" | {
1707
- version?: string | Range;
1708
- type?: "dependency" | "devDependency";
1709
- };
1710
- type PackageDependencies = Record<string, PackageDependencyMeta>;
1711
1706
  interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> {
1712
1707
  /**
1713
1708
  * The order in which the plugin should be applied.
@@ -2432,13 +2427,6 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
2432
2427
  * The relative path to the Powerlines workspace root directory
2433
2428
  */
2434
2429
  relativeToWorkspaceRoot: string;
2435
- /**
2436
- * The path to the \powerlines package
2437
- *
2438
- * @remarks
2439
- * This is used to determine the path to the Powerlines core package, which contains the runtime files.
2440
- */
2441
- corePackagePath: string;
2442
2430
  /**
2443
2431
  * The Powerlines artifacts directory
2444
2432
  */
@@ -2468,9 +2456,17 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
2468
2456
  */
2469
2457
  envPaths: EnvPaths;
2470
2458
  /**
2471
- * The installations required by the project
2459
+ * The file system path to the Powerlines package installation
2460
+ */
2461
+ powerlinesPath: string;
2462
+ /**
2463
+ * The dependency installations required by the project
2464
+ */
2465
+ dependencies: Record<string, string | Range>;
2466
+ /**
2467
+ * The development dependency installations required by the project
2472
2468
  */
2473
- dependencies: PackageDependencies;
2469
+ devDependencies: Record<string, string | Range>;
2474
2470
  /**
2475
2471
  * The project's `package.json` file content
2476
2472
  */
@@ -2626,14 +2622,14 @@ interface OutputConfig {
2626
2622
  */
2627
2623
  builtinPrefix?: string;
2628
2624
  /**
2629
- * The folder where the generated runtime modules/builtins will be located
2625
+ * The folder where the generated runtime artifacts will be located
2630
2626
  *
2631
2627
  * @remarks
2632
- * This folder will contain all runtime modules and builtins generated during the "prepare" phase.
2628
+ * This folder will contain all runtime artifacts and builtins generated during the "prepare" phase.
2633
2629
  *
2634
2630
  * @defaultValue "\{projectRoot\}/.powerlines"
2635
2631
  */
2636
- runtimeFolder?: string;
2632
+ artifactsFolder?: string;
2637
2633
  /**
2638
2634
  * The module format of the output files
2639
2635
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-date",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin for injecting static .env configuration values to the code so that they're accessible at runtime.",
6
6
  "repository": {
@@ -116,16 +116,16 @@
116
116
  "files": ["dist/**/*"],
117
117
  "keywords": ["powerlines", "storm-software", "powerlines-plugin"],
118
118
  "dependencies": {
119
- "@powerlines/plugin-env": "^0.2.0",
119
+ "@powerlines/plugin-env": "^0.3.0",
120
120
  "@storm-software/config-tools": "^1.188.6",
121
121
  "@stryke/path": "^0.15.5",
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.4.0",
126
126
  "@storm-software/tsup": "^0.2.4",
127
127
  "@types/node": "^22.18.11"
128
128
  },
129
129
  "publishConfig": { "access": "public" },
130
- "gitHead": "fe5e201169810dd966ee328fa3dabf57077eea36"
130
+ "gitHead": "f4d0c8a8f0036ac8de46ac96afd9336a390a7268"
131
131
  }