@powerlines/plugin-env 0.13.43 → 0.13.44
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.
- package/dist/babel/index.d.cts +2 -3
- package/dist/babel/index.d.ts +2 -3
- package/dist/babel/plugin.d.cts +2 -3
- package/dist/babel/plugin.d.ts +2 -3
- package/dist/components/env.d.cts +3 -3
- package/dist/components/env.d.ts +3 -3
- package/dist/components/index.d.cts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/{fs-Y3B84fcf.d.cts → fs-ECFlqnPg.d.cts} +132 -179
- package/dist/{fs-Y3B84fcf.d.ts → fs-ECFlqnPg.d.ts} +132 -179
- package/dist/helpers/index.d.cts +2 -3
- package/dist/helpers/index.d.ts +2 -3
- package/dist/helpers/load.d.cts +2 -3
- package/dist/helpers/load.d.ts +2 -3
- package/dist/helpers/persistence.cjs +2 -2
- package/dist/helpers/persistence.d.cts +2 -3
- package/dist/helpers/persistence.d.ts +2 -3
- package/dist/helpers/persistence.js +2 -2
- package/dist/helpers/reflect.d.cts +2 -3
- package/dist/helpers/reflect.d.ts +2 -3
- package/dist/helpers/template-helpers.d.cts +2 -3
- package/dist/helpers/template-helpers.d.ts +2 -3
- package/dist/index.d.cts +3 -4
- package/dist/index.d.ts +3 -4
- package/dist/{runtime-DhSbEPND.d.cts → runtime-BSNiU6jN.d.cts} +57 -52
- package/dist/{runtime-CCwYDwEe.d.ts → runtime-hZecACc-.d.ts} +57 -52
- package/dist/types/index.d.cts +2 -3
- package/dist/types/index.d.ts +2 -3
- package/dist/types/plugin.d.cts +2 -3
- package/dist/types/plugin.d.ts +2 -3
- package/dist/types/runtime.d.cts +2 -3
- package/dist/types/runtime.d.ts +2 -3
- package/package.json +14 -14
|
@@ -2,7 +2,7 @@ import { ReflectionClass } from '@deepkit/type';
|
|
|
2
2
|
import { EnvPluginContext, EnvType } from '../types/plugin.cjs';
|
|
3
3
|
import '@alloy-js/core/jsx-runtime';
|
|
4
4
|
import '@stryke/capnp';
|
|
5
|
-
import '../runtime-
|
|
5
|
+
import '../runtime-BSNiU6jN.cjs';
|
|
6
6
|
import '@stryke/env/get-env-paths';
|
|
7
7
|
import '@stryke/types/base';
|
|
8
8
|
import '@stryke/types/package-json';
|
|
@@ -19,9 +19,8 @@ import '@stryke/types/configuration';
|
|
|
19
19
|
import '@stryke/types/file';
|
|
20
20
|
import 'vite';
|
|
21
21
|
import '@babel/helper-plugin-utils';
|
|
22
|
-
import '../fs-
|
|
22
|
+
import '../fs-ECFlqnPg.cjs';
|
|
23
23
|
import '@stryke/fs/resolve';
|
|
24
|
-
import 'node:fs';
|
|
25
24
|
import '@stryke/types/array';
|
|
26
25
|
import '@stryke/types/tsconfig';
|
|
27
26
|
import 'typescript';
|
|
@@ -2,7 +2,7 @@ import { ReflectionClass } from '@deepkit/type';
|
|
|
2
2
|
import { EnvPluginContext, EnvType } from '../types/plugin.js';
|
|
3
3
|
import '@alloy-js/core/jsx-runtime';
|
|
4
4
|
import '@stryke/capnp';
|
|
5
|
-
import '../runtime-
|
|
5
|
+
import '../runtime-hZecACc-.js';
|
|
6
6
|
import '@stryke/env/get-env-paths';
|
|
7
7
|
import '@stryke/types/base';
|
|
8
8
|
import '@stryke/types/package-json';
|
|
@@ -19,9 +19,8 @@ import '@stryke/types/configuration';
|
|
|
19
19
|
import '@stryke/types/file';
|
|
20
20
|
import 'vite';
|
|
21
21
|
import '@babel/helper-plugin-utils';
|
|
22
|
-
import '../fs-
|
|
22
|
+
import '../fs-ECFlqnPg.js';
|
|
23
23
|
import '@stryke/fs/resolve';
|
|
24
|
-
import 'node:fs';
|
|
25
24
|
import '@stryke/types/array';
|
|
26
25
|
import '@stryke/types/tsconfig';
|
|
27
26
|
import 'typescript';
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PluginContext, b as Plugin } from './runtime-
|
|
2
|
-
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from './runtime-
|
|
1
|
+
import { P as PluginContext, b as Plugin } from './runtime-BSNiU6jN.cjs';
|
|
2
|
+
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from './runtime-BSNiU6jN.cjs';
|
|
3
3
|
import { Children } from '@alloy-js/core/jsx-runtime';
|
|
4
4
|
import { PrintTreeOptions } from '@alloy-js/core';
|
|
5
5
|
import { EnvPluginContext, EnvPluginResolvedConfig } from './types/plugin.cjs';
|
|
@@ -27,9 +27,8 @@ import '@stryke/types/configuration';
|
|
|
27
27
|
import '@stryke/types/file';
|
|
28
28
|
import 'vite';
|
|
29
29
|
import '@babel/helper-plugin-utils';
|
|
30
|
-
import './fs-
|
|
30
|
+
import './fs-ECFlqnPg.cjs';
|
|
31
31
|
import '@stryke/fs/resolve';
|
|
32
|
-
import 'node:fs';
|
|
33
32
|
import '@stryke/types/array';
|
|
34
33
|
import '@stryke/types/tsconfig';
|
|
35
34
|
import 'typescript';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PluginContext, b as Plugin } from './runtime-
|
|
2
|
-
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from './runtime-
|
|
1
|
+
import { P as PluginContext, b as Plugin } from './runtime-hZecACc-.js';
|
|
2
|
+
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from './runtime-hZecACc-.js';
|
|
3
3
|
import { Children } from '@alloy-js/core/jsx-runtime';
|
|
4
4
|
import { PrintTreeOptions } from '@alloy-js/core';
|
|
5
5
|
import { EnvPluginContext, EnvPluginResolvedConfig } from './types/plugin.js';
|
|
@@ -27,9 +27,8 @@ import '@stryke/types/configuration';
|
|
|
27
27
|
import '@stryke/types/file';
|
|
28
28
|
import 'vite';
|
|
29
29
|
import '@babel/helper-plugin-utils';
|
|
30
|
-
import './fs-
|
|
30
|
+
import './fs-ECFlqnPg.js';
|
|
31
31
|
import '@stryke/fs/resolve';
|
|
32
|
-
import 'node:fs';
|
|
33
32
|
import '@stryke/types/array';
|
|
34
33
|
import '@stryke/types/tsconfig';
|
|
35
34
|
import 'typescript';
|
|
@@ -14,7 +14,7 @@ import { TypeDefinition, TypeDefinitionParameter } from '@stryke/types/configura
|
|
|
14
14
|
import { AssetGlob } from '@stryke/types/file';
|
|
15
15
|
import { ResolvedPreviewOptions, PreviewOptions } from 'vite';
|
|
16
16
|
import { BabelAPI } from '@babel/helper-plugin-utils';
|
|
17
|
-
import {
|
|
17
|
+
import { S as StoragePort, a as StoragePreset, V as VirtualFileSystemInterface, R as ResolveOptions, b as VirtualFile } from './fs-ECFlqnPg.cjs';
|
|
18
18
|
import { ArrayValues } from '@stryke/types/array';
|
|
19
19
|
import { TsConfigJson, CompilerOptions } from '@stryke/types/tsconfig';
|
|
20
20
|
import ts from 'typescript';
|
|
@@ -188,7 +188,7 @@ interface ResolvedEntryTypeDefinition extends TypeDefinition {
|
|
|
188
188
|
output?: string;
|
|
189
189
|
}
|
|
190
190
|
type BabelResolvedConfig = Omit<BabelUserConfig, "plugins" | "presets"> & Required<Pick<BabelUserConfig, "plugins" | "presets">>;
|
|
191
|
-
type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "
|
|
191
|
+
type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "ssr" | "preview"> & Required<Pick<EnvironmentConfig, "consumer" | "ssr">> & {
|
|
192
192
|
/**
|
|
193
193
|
* The name of the environment
|
|
194
194
|
*/
|
|
@@ -199,9 +199,9 @@ type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "mode" | "
|
|
|
199
199
|
preview?: ResolvedPreviewOptions;
|
|
200
200
|
};
|
|
201
201
|
type ResolvedAssetGlob = AssetGlob & Required<Pick<AssetGlob, "input">>;
|
|
202
|
-
type OutputResolvedConfig = Required<Omit<OutputConfig, "assets"> & {
|
|
202
|
+
type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage"> & {
|
|
203
203
|
assets: ResolvedAssetGlob[];
|
|
204
|
-
}>;
|
|
204
|
+
}> & Pick<OutputConfig, "storage">;
|
|
205
205
|
/**
|
|
206
206
|
* The resolved options for the Powerlines project configuration.
|
|
207
207
|
*/
|
|
@@ -599,13 +599,16 @@ interface OutputConfig {
|
|
|
599
599
|
*
|
|
600
600
|
* @defaultValue "\{projectRoot\}/dist"
|
|
601
601
|
*/
|
|
602
|
-
|
|
602
|
+
buildPath?: string;
|
|
603
603
|
/**
|
|
604
|
-
* The
|
|
604
|
+
* The folder where the generated runtime artifacts will be located
|
|
605
605
|
*
|
|
606
|
-
* @
|
|
606
|
+
* @remarks
|
|
607
|
+
* This folder will contain all runtime artifacts and builtins generated during the "prepare" phase.
|
|
608
|
+
*
|
|
609
|
+
* @defaultValue "\{projectRoot\}/.powerlines"
|
|
607
610
|
*/
|
|
608
|
-
|
|
611
|
+
artifactsPath?: string;
|
|
609
612
|
/**
|
|
610
613
|
* The path of the generated runtime declaration file relative to the workspace root.
|
|
611
614
|
*
|
|
@@ -621,15 +624,6 @@ interface OutputConfig {
|
|
|
621
624
|
* @defaultValue "powerlines"
|
|
622
625
|
*/
|
|
623
626
|
builtinPrefix?: string;
|
|
624
|
-
/**
|
|
625
|
-
* The folder where the generated runtime artifacts will be located
|
|
626
|
-
*
|
|
627
|
-
* @remarks
|
|
628
|
-
* This folder will contain all runtime artifacts and builtins generated during the "prepare" phase.
|
|
629
|
-
*
|
|
630
|
-
* @defaultValue "\{projectRoot\}/.powerlines"
|
|
631
|
-
*/
|
|
632
|
-
artifactsFolder?: string;
|
|
633
627
|
/**
|
|
634
628
|
* The module format of the output files
|
|
635
629
|
*
|
|
@@ -646,42 +640,21 @@ interface OutputConfig {
|
|
|
646
640
|
* The assets can be specified as a string (path to the asset) or as an object with a `glob` property (to match multiple files). The paths are relative to the project root directory.
|
|
647
641
|
*/
|
|
648
642
|
assets?: Array<string | AssetGlob>;
|
|
649
|
-
}
|
|
650
|
-
interface BaseConfig {
|
|
651
643
|
/**
|
|
652
|
-
*
|
|
653
|
-
*/
|
|
654
|
-
name?: string;
|
|
655
|
-
/**
|
|
656
|
-
* The project display title
|
|
644
|
+
* A string preset or a custom {@link StoragePort} to provide fine-grained control over generated/output file storage.
|
|
657
645
|
*
|
|
658
646
|
* @remarks
|
|
659
|
-
*
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
/**
|
|
663
|
-
* A description of the project
|
|
647
|
+
* If a string preset is provided, it must be one of the following values:
|
|
648
|
+
* - `"virtual"`: Uses the local file system for storage.
|
|
649
|
+
* - `"fs"`: Uses an in-memory virtual file system for storage.
|
|
664
650
|
*
|
|
665
|
-
* @
|
|
666
|
-
* If this option is not provided, the build process will try to use the \`description\` value from the `\package.json\` file.
|
|
667
|
-
*/
|
|
668
|
-
description?: string;
|
|
669
|
-
/**
|
|
670
|
-
* The log level to use for the Powerlines processes.
|
|
651
|
+
* If a custom {@link StoragePort} is provided, it will be used for all file storage operations during the build process.
|
|
671
652
|
*
|
|
672
|
-
* @defaultValue "
|
|
673
|
-
*/
|
|
674
|
-
logLevel?: LogLevelLabel | null;
|
|
675
|
-
/**
|
|
676
|
-
* A custom logger function to use for logging messages
|
|
677
|
-
*/
|
|
678
|
-
customLogger?: LogFn;
|
|
679
|
-
/**
|
|
680
|
-
* Explicitly set a mode to run in. This mode will be used at various points throughout the Powerlines processes, such as when compiling the source code.
|
|
681
|
-
*
|
|
682
|
-
* @defaultValue "production"
|
|
653
|
+
* @defaultValue "virtual"
|
|
683
654
|
*/
|
|
684
|
-
|
|
655
|
+
storage?: StoragePort | StoragePreset;
|
|
656
|
+
}
|
|
657
|
+
interface BaseConfig {
|
|
685
658
|
/**
|
|
686
659
|
* The entry point(s) for the application
|
|
687
660
|
*/
|
|
@@ -765,6 +738,40 @@ interface EnvironmentConfig extends BaseConfig {
|
|
|
765
738
|
consumer?: "client" | "server";
|
|
766
739
|
}
|
|
767
740
|
interface CommonUserConfig extends BaseConfig {
|
|
741
|
+
/**
|
|
742
|
+
* The name of the project
|
|
743
|
+
*/
|
|
744
|
+
name?: string;
|
|
745
|
+
/**
|
|
746
|
+
* The project display title
|
|
747
|
+
*
|
|
748
|
+
* @remarks
|
|
749
|
+
* This option is used in documentation generation and other places where a human-readable title is needed.
|
|
750
|
+
*/
|
|
751
|
+
title?: string;
|
|
752
|
+
/**
|
|
753
|
+
* A description of the project
|
|
754
|
+
*
|
|
755
|
+
* @remarks
|
|
756
|
+
* If this option is not provided, the build process will try to use the \`description\` value from the `\package.json\` file.
|
|
757
|
+
*/
|
|
758
|
+
description?: string;
|
|
759
|
+
/**
|
|
760
|
+
* The log level to use for the Powerlines processes.
|
|
761
|
+
*
|
|
762
|
+
* @defaultValue "info"
|
|
763
|
+
*/
|
|
764
|
+
logLevel?: LogLevelLabel | null;
|
|
765
|
+
/**
|
|
766
|
+
* A custom logger function to use for logging messages
|
|
767
|
+
*/
|
|
768
|
+
customLogger?: LogFn;
|
|
769
|
+
/**
|
|
770
|
+
* Explicitly set a mode to run in. This mode will be used at various points throughout the Powerlines processes, such as when compiling the source code.
|
|
771
|
+
*
|
|
772
|
+
* @defaultValue "production"
|
|
773
|
+
*/
|
|
774
|
+
mode?: "development" | "test" | "production";
|
|
768
775
|
/**
|
|
769
776
|
* The type of project being built
|
|
770
777
|
*
|
|
@@ -815,7 +822,7 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
815
822
|
* A string identifier that allows a child framework or tool to identify itself when using Powerlines.
|
|
816
823
|
*
|
|
817
824
|
* @remarks
|
|
818
|
-
* If no values are provided for {@link OutputConfig.dts | output.dts}, {@link OutputConfig.builtinPrefix | output.builtinPrefix}, or {@link OutputConfig.
|
|
825
|
+
* If no values are provided for {@link OutputConfig.dts | output.dts}, {@link OutputConfig.builtinPrefix | output.builtinPrefix}, or {@link OutputConfig.artifactsPath | output.artifactsFolder}, this value will be used as the default.
|
|
819
826
|
*
|
|
820
827
|
* @defaultValue "powerlines"
|
|
821
828
|
*/
|
|
@@ -1082,17 +1089,15 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1082
1089
|
* @param code - The source code of the builtin file
|
|
1083
1090
|
* @param id - The unique identifier of the builtin file
|
|
1084
1091
|
* @param path - An optional path to write the builtin file to
|
|
1085
|
-
* @param options - Options for writing the file
|
|
1086
1092
|
*/
|
|
1087
|
-
emitBuiltin: (code: string, id: string, path?: string
|
|
1093
|
+
emitBuiltin: (code: string, id: string, path?: string) => Promise<void>;
|
|
1088
1094
|
/**
|
|
1089
1095
|
* Resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
1090
1096
|
*
|
|
1091
1097
|
* @param code - The source code of the entry file
|
|
1092
1098
|
* @param path - An optional path to write the entry file to
|
|
1093
|
-
* @param options - Options for writing the file
|
|
1094
1099
|
*/
|
|
1095
|
-
emitEntry: (code: string, path: string
|
|
1100
|
+
emitEntry: (code: string, path: string) => Promise<void>;
|
|
1096
1101
|
/**
|
|
1097
1102
|
* A function to update the context fields using a new user configuration options
|
|
1098
1103
|
*/
|
|
@@ -14,7 +14,7 @@ import { TypeDefinition, TypeDefinitionParameter } from '@stryke/types/configura
|
|
|
14
14
|
import { AssetGlob } from '@stryke/types/file';
|
|
15
15
|
import { ResolvedPreviewOptions, PreviewOptions } from 'vite';
|
|
16
16
|
import { BabelAPI } from '@babel/helper-plugin-utils';
|
|
17
|
-
import {
|
|
17
|
+
import { S as StoragePort, a as StoragePreset, V as VirtualFileSystemInterface, R as ResolveOptions, b as VirtualFile } from './fs-ECFlqnPg.js';
|
|
18
18
|
import { ArrayValues } from '@stryke/types/array';
|
|
19
19
|
import { TsConfigJson, CompilerOptions } from '@stryke/types/tsconfig';
|
|
20
20
|
import ts from 'typescript';
|
|
@@ -188,7 +188,7 @@ interface ResolvedEntryTypeDefinition extends TypeDefinition {
|
|
|
188
188
|
output?: string;
|
|
189
189
|
}
|
|
190
190
|
type BabelResolvedConfig = Omit<BabelUserConfig, "plugins" | "presets"> & Required<Pick<BabelUserConfig, "plugins" | "presets">>;
|
|
191
|
-
type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "
|
|
191
|
+
type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "ssr" | "preview"> & Required<Pick<EnvironmentConfig, "consumer" | "ssr">> & {
|
|
192
192
|
/**
|
|
193
193
|
* The name of the environment
|
|
194
194
|
*/
|
|
@@ -199,9 +199,9 @@ type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "mode" | "
|
|
|
199
199
|
preview?: ResolvedPreviewOptions;
|
|
200
200
|
};
|
|
201
201
|
type ResolvedAssetGlob = AssetGlob & Required<Pick<AssetGlob, "input">>;
|
|
202
|
-
type OutputResolvedConfig = Required<Omit<OutputConfig, "assets"> & {
|
|
202
|
+
type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage"> & {
|
|
203
203
|
assets: ResolvedAssetGlob[];
|
|
204
|
-
}>;
|
|
204
|
+
}> & Pick<OutputConfig, "storage">;
|
|
205
205
|
/**
|
|
206
206
|
* The resolved options for the Powerlines project configuration.
|
|
207
207
|
*/
|
|
@@ -599,13 +599,16 @@ interface OutputConfig {
|
|
|
599
599
|
*
|
|
600
600
|
* @defaultValue "\{projectRoot\}/dist"
|
|
601
601
|
*/
|
|
602
|
-
|
|
602
|
+
buildPath?: string;
|
|
603
603
|
/**
|
|
604
|
-
* The
|
|
604
|
+
* The folder where the generated runtime artifacts will be located
|
|
605
605
|
*
|
|
606
|
-
* @
|
|
606
|
+
* @remarks
|
|
607
|
+
* This folder will contain all runtime artifacts and builtins generated during the "prepare" phase.
|
|
608
|
+
*
|
|
609
|
+
* @defaultValue "\{projectRoot\}/.powerlines"
|
|
607
610
|
*/
|
|
608
|
-
|
|
611
|
+
artifactsPath?: string;
|
|
609
612
|
/**
|
|
610
613
|
* The path of the generated runtime declaration file relative to the workspace root.
|
|
611
614
|
*
|
|
@@ -621,15 +624,6 @@ interface OutputConfig {
|
|
|
621
624
|
* @defaultValue "powerlines"
|
|
622
625
|
*/
|
|
623
626
|
builtinPrefix?: string;
|
|
624
|
-
/**
|
|
625
|
-
* The folder where the generated runtime artifacts will be located
|
|
626
|
-
*
|
|
627
|
-
* @remarks
|
|
628
|
-
* This folder will contain all runtime artifacts and builtins generated during the "prepare" phase.
|
|
629
|
-
*
|
|
630
|
-
* @defaultValue "\{projectRoot\}/.powerlines"
|
|
631
|
-
*/
|
|
632
|
-
artifactsFolder?: string;
|
|
633
627
|
/**
|
|
634
628
|
* The module format of the output files
|
|
635
629
|
*
|
|
@@ -646,42 +640,21 @@ interface OutputConfig {
|
|
|
646
640
|
* The assets can be specified as a string (path to the asset) or as an object with a `glob` property (to match multiple files). The paths are relative to the project root directory.
|
|
647
641
|
*/
|
|
648
642
|
assets?: Array<string | AssetGlob>;
|
|
649
|
-
}
|
|
650
|
-
interface BaseConfig {
|
|
651
643
|
/**
|
|
652
|
-
*
|
|
653
|
-
*/
|
|
654
|
-
name?: string;
|
|
655
|
-
/**
|
|
656
|
-
* The project display title
|
|
644
|
+
* A string preset or a custom {@link StoragePort} to provide fine-grained control over generated/output file storage.
|
|
657
645
|
*
|
|
658
646
|
* @remarks
|
|
659
|
-
*
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
/**
|
|
663
|
-
* A description of the project
|
|
647
|
+
* If a string preset is provided, it must be one of the following values:
|
|
648
|
+
* - `"virtual"`: Uses the local file system for storage.
|
|
649
|
+
* - `"fs"`: Uses an in-memory virtual file system for storage.
|
|
664
650
|
*
|
|
665
|
-
* @
|
|
666
|
-
* If this option is not provided, the build process will try to use the \`description\` value from the `\package.json\` file.
|
|
667
|
-
*/
|
|
668
|
-
description?: string;
|
|
669
|
-
/**
|
|
670
|
-
* The log level to use for the Powerlines processes.
|
|
651
|
+
* If a custom {@link StoragePort} is provided, it will be used for all file storage operations during the build process.
|
|
671
652
|
*
|
|
672
|
-
* @defaultValue "
|
|
673
|
-
*/
|
|
674
|
-
logLevel?: LogLevelLabel | null;
|
|
675
|
-
/**
|
|
676
|
-
* A custom logger function to use for logging messages
|
|
677
|
-
*/
|
|
678
|
-
customLogger?: LogFn;
|
|
679
|
-
/**
|
|
680
|
-
* Explicitly set a mode to run in. This mode will be used at various points throughout the Powerlines processes, such as when compiling the source code.
|
|
681
|
-
*
|
|
682
|
-
* @defaultValue "production"
|
|
653
|
+
* @defaultValue "virtual"
|
|
683
654
|
*/
|
|
684
|
-
|
|
655
|
+
storage?: StoragePort | StoragePreset;
|
|
656
|
+
}
|
|
657
|
+
interface BaseConfig {
|
|
685
658
|
/**
|
|
686
659
|
* The entry point(s) for the application
|
|
687
660
|
*/
|
|
@@ -765,6 +738,40 @@ interface EnvironmentConfig extends BaseConfig {
|
|
|
765
738
|
consumer?: "client" | "server";
|
|
766
739
|
}
|
|
767
740
|
interface CommonUserConfig extends BaseConfig {
|
|
741
|
+
/**
|
|
742
|
+
* The name of the project
|
|
743
|
+
*/
|
|
744
|
+
name?: string;
|
|
745
|
+
/**
|
|
746
|
+
* The project display title
|
|
747
|
+
*
|
|
748
|
+
* @remarks
|
|
749
|
+
* This option is used in documentation generation and other places where a human-readable title is needed.
|
|
750
|
+
*/
|
|
751
|
+
title?: string;
|
|
752
|
+
/**
|
|
753
|
+
* A description of the project
|
|
754
|
+
*
|
|
755
|
+
* @remarks
|
|
756
|
+
* If this option is not provided, the build process will try to use the \`description\` value from the `\package.json\` file.
|
|
757
|
+
*/
|
|
758
|
+
description?: string;
|
|
759
|
+
/**
|
|
760
|
+
* The log level to use for the Powerlines processes.
|
|
761
|
+
*
|
|
762
|
+
* @defaultValue "info"
|
|
763
|
+
*/
|
|
764
|
+
logLevel?: LogLevelLabel | null;
|
|
765
|
+
/**
|
|
766
|
+
* A custom logger function to use for logging messages
|
|
767
|
+
*/
|
|
768
|
+
customLogger?: LogFn;
|
|
769
|
+
/**
|
|
770
|
+
* Explicitly set a mode to run in. This mode will be used at various points throughout the Powerlines processes, such as when compiling the source code.
|
|
771
|
+
*
|
|
772
|
+
* @defaultValue "production"
|
|
773
|
+
*/
|
|
774
|
+
mode?: "development" | "test" | "production";
|
|
768
775
|
/**
|
|
769
776
|
* The type of project being built
|
|
770
777
|
*
|
|
@@ -815,7 +822,7 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
815
822
|
* A string identifier that allows a child framework or tool to identify itself when using Powerlines.
|
|
816
823
|
*
|
|
817
824
|
* @remarks
|
|
818
|
-
* If no values are provided for {@link OutputConfig.dts | output.dts}, {@link OutputConfig.builtinPrefix | output.builtinPrefix}, or {@link OutputConfig.
|
|
825
|
+
* If no values are provided for {@link OutputConfig.dts | output.dts}, {@link OutputConfig.builtinPrefix | output.builtinPrefix}, or {@link OutputConfig.artifactsPath | output.artifactsFolder}, this value will be used as the default.
|
|
819
826
|
*
|
|
820
827
|
* @defaultValue "powerlines"
|
|
821
828
|
*/
|
|
@@ -1082,17 +1089,15 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1082
1089
|
* @param code - The source code of the builtin file
|
|
1083
1090
|
* @param id - The unique identifier of the builtin file
|
|
1084
1091
|
* @param path - An optional path to write the builtin file to
|
|
1085
|
-
* @param options - Options for writing the file
|
|
1086
1092
|
*/
|
|
1087
|
-
emitBuiltin: (code: string, id: string, path?: string
|
|
1093
|
+
emitBuiltin: (code: string, id: string, path?: string) => Promise<void>;
|
|
1088
1094
|
/**
|
|
1089
1095
|
* Resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
1090
1096
|
*
|
|
1091
1097
|
* @param code - The source code of the entry file
|
|
1092
1098
|
* @param path - An optional path to write the entry file to
|
|
1093
|
-
* @param options - Options for writing the file
|
|
1094
1099
|
*/
|
|
1095
|
-
emitEntry: (code: string, path: string
|
|
1100
|
+
emitEntry: (code: string, path: string) => Promise<void>;
|
|
1096
1101
|
/**
|
|
1097
1102
|
* A function to update the context fields using a new user configuration options
|
|
1098
1103
|
*/
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType } from './plugin.cjs';
|
|
2
|
-
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from '../runtime-
|
|
2
|
+
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from '../runtime-BSNiU6jN.cjs';
|
|
3
3
|
import '@alloy-js/core/jsx-runtime';
|
|
4
4
|
import '@deepkit/type';
|
|
5
5
|
import '@stryke/capnp';
|
|
@@ -20,9 +20,8 @@ import '@storm-software/config/types';
|
|
|
20
20
|
import '@stryke/types/file';
|
|
21
21
|
import 'vite';
|
|
22
22
|
import '@babel/helper-plugin-utils';
|
|
23
|
-
import '../fs-
|
|
23
|
+
import '../fs-ECFlqnPg.cjs';
|
|
24
24
|
import '@stryke/fs/resolve';
|
|
25
|
-
import 'node:fs';
|
|
26
25
|
import '@stryke/types/array';
|
|
27
26
|
import '@stryke/types/tsconfig';
|
|
28
27
|
import 'typescript';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType } from './plugin.js';
|
|
2
|
-
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from '../runtime-
|
|
2
|
+
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from '../runtime-hZecACc-.js';
|
|
3
3
|
import '@alloy-js/core/jsx-runtime';
|
|
4
4
|
import '@deepkit/type';
|
|
5
5
|
import '@stryke/capnp';
|
|
@@ -20,9 +20,8 @@ import '@storm-software/config/types';
|
|
|
20
20
|
import '@stryke/types/file';
|
|
21
21
|
import 'vite';
|
|
22
22
|
import '@babel/helper-plugin-utils';
|
|
23
|
-
import '../fs-
|
|
23
|
+
import '../fs-ECFlqnPg.js';
|
|
24
24
|
import '@stryke/fs/resolve';
|
|
25
|
-
import 'node:fs';
|
|
26
25
|
import '@stryke/types/array';
|
|
27
26
|
import '@stryke/types/tsconfig';
|
|
28
27
|
import 'typescript';
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Children } from '@alloy-js/core/jsx-runtime';
|
|
2
2
|
import { ReflectionClass } from '@deepkit/type';
|
|
3
3
|
import * as $ from '@stryke/capnp';
|
|
4
|
-
import { B as BabelUserConfig, d as UserConfig, R as ResolvedConfig, e as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-
|
|
4
|
+
import { B as BabelUserConfig, d as UserConfig, R as ResolvedConfig, e as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-BSNiU6jN.cjs';
|
|
5
5
|
import { DotenvParseOutput } from '@stryke/env/types';
|
|
6
6
|
import { DotenvConfiguration, TypeDefinitionParameter, TypeDefinition } from '@stryke/types/configuration';
|
|
7
7
|
import '@stryke/env/get-env-paths';
|
|
@@ -19,9 +19,8 @@ import '@storm-software/config/types';
|
|
|
19
19
|
import '@stryke/types/file';
|
|
20
20
|
import 'vite';
|
|
21
21
|
import '@babel/helper-plugin-utils';
|
|
22
|
-
import '../fs-
|
|
22
|
+
import '../fs-ECFlqnPg.cjs';
|
|
23
23
|
import '@stryke/fs/resolve';
|
|
24
|
-
import 'node:fs';
|
|
25
24
|
import '@stryke/types/array';
|
|
26
25
|
import '@stryke/types/tsconfig';
|
|
27
26
|
import 'typescript';
|
package/dist/types/plugin.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Children } from '@alloy-js/core/jsx-runtime';
|
|
2
2
|
import { ReflectionClass } from '@deepkit/type';
|
|
3
3
|
import * as $ from '@stryke/capnp';
|
|
4
|
-
import { B as BabelUserConfig, d as UserConfig, R as ResolvedConfig, e as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-
|
|
4
|
+
import { B as BabelUserConfig, d as UserConfig, R as ResolvedConfig, e as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-hZecACc-.js';
|
|
5
5
|
import { DotenvParseOutput } from '@stryke/env/types';
|
|
6
6
|
import { DotenvConfiguration, TypeDefinitionParameter, TypeDefinition } from '@stryke/types/configuration';
|
|
7
7
|
import '@stryke/env/get-env-paths';
|
|
@@ -19,9 +19,8 @@ import '@storm-software/config/types';
|
|
|
19
19
|
import '@stryke/types/file';
|
|
20
20
|
import 'vite';
|
|
21
21
|
import '@babel/helper-plugin-utils';
|
|
22
|
-
import '../fs-
|
|
22
|
+
import '../fs-ECFlqnPg.js';
|
|
23
23
|
import '@stryke/fs/resolve';
|
|
24
|
-
import 'node:fs';
|
|
25
24
|
import '@stryke/types/array';
|
|
26
25
|
import '@stryke/types/tsconfig';
|
|
27
26
|
import 'typescript';
|
package/dist/types/runtime.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from '../runtime-
|
|
1
|
+
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from '../runtime-BSNiU6jN.cjs';
|
|
2
2
|
import '@stryke/env/get-env-paths';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/package-json';
|
|
@@ -15,9 +15,8 @@ import '@stryke/types/configuration';
|
|
|
15
15
|
import '@stryke/types/file';
|
|
16
16
|
import 'vite';
|
|
17
17
|
import '@babel/helper-plugin-utils';
|
|
18
|
-
import '../fs-
|
|
18
|
+
import '../fs-ECFlqnPg.cjs';
|
|
19
19
|
import '@stryke/fs/resolve';
|
|
20
|
-
import 'node:fs';
|
|
21
20
|
import '@stryke/types/array';
|
|
22
21
|
import '@stryke/types/tsconfig';
|
|
23
22
|
import 'typescript';
|
package/dist/types/runtime.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from '../runtime-
|
|
1
|
+
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from '../runtime-hZecACc-.js';
|
|
2
2
|
import '@stryke/env/get-env-paths';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/package-json';
|
|
@@ -15,9 +15,8 @@ import '@stryke/types/configuration';
|
|
|
15
15
|
import '@stryke/types/file';
|
|
16
16
|
import 'vite';
|
|
17
17
|
import '@babel/helper-plugin-utils';
|
|
18
|
-
import '../fs-
|
|
18
|
+
import '../fs-ECFlqnPg.js';
|
|
19
19
|
import '@stryke/fs/resolve';
|
|
20
|
-
import 'node:fs';
|
|
21
20
|
import '@stryke/types/array';
|
|
22
21
|
import '@stryke/types/tsconfig';
|
|
23
22
|
import 'typescript';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-env",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.44",
|
|
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": {
|
|
@@ -179,23 +179,23 @@
|
|
|
179
179
|
"@alloy-js/typescript": "^0.20.0",
|
|
180
180
|
"@babel/core": "^7.28.5",
|
|
181
181
|
"@babel/types": "^7.28.5",
|
|
182
|
-
"@powerlines/alloy": "^0.11.
|
|
183
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
184
|
-
"@powerlines/plugin-plugin": "^0.11.
|
|
182
|
+
"@powerlines/alloy": "^0.11.47",
|
|
183
|
+
"@powerlines/plugin-babel": "^0.12.47",
|
|
184
|
+
"@powerlines/plugin-plugin": "^0.11.46",
|
|
185
185
|
"@storm-software/config-tools": "^1.188.48",
|
|
186
|
-
"@stryke/capnp": "^0.12.
|
|
187
|
-
"@stryke/env": "^0.20.
|
|
188
|
-
"@stryke/fs": "^0.33.
|
|
189
|
-
"@stryke/json": "^0.9.
|
|
190
|
-
"@stryke/string-format": "^0.12.
|
|
191
|
-
"@stryke/type-checks": "^0.3.
|
|
192
|
-
"@stryke/types": "^0.10.
|
|
193
|
-
"powerlines": "^0.
|
|
186
|
+
"@stryke/capnp": "^0.12.28",
|
|
187
|
+
"@stryke/env": "^0.20.21",
|
|
188
|
+
"@stryke/fs": "^0.33.4",
|
|
189
|
+
"@stryke/json": "^0.9.11",
|
|
190
|
+
"@stryke/string-format": "^0.12.8",
|
|
191
|
+
"@stryke/type-checks": "^0.3.18",
|
|
192
|
+
"@stryke/types": "^0.10.8",
|
|
193
|
+
"powerlines": "^0.25.0"
|
|
194
194
|
},
|
|
195
195
|
"devDependencies": {
|
|
196
196
|
"@alloy-js/babel-preset": "^0.2.1",
|
|
197
197
|
"@babel/preset-typescript": "^7.28.5",
|
|
198
|
-
"@powerlines/nx": "^0.10.
|
|
198
|
+
"@powerlines/nx": "^0.10.38",
|
|
199
199
|
"@storm-software/tsup": "^0.2.46",
|
|
200
200
|
"@types/node": "^24.10.1",
|
|
201
201
|
"tsup": "8.4.0",
|
|
@@ -203,5 +203,5 @@
|
|
|
203
203
|
"vite": "^7.2.4"
|
|
204
204
|
},
|
|
205
205
|
"publishConfig": { "access": "public" },
|
|
206
|
-
"gitHead": "
|
|
206
|
+
"gitHead": "acb1d0727c31f10519b7a59d73d245e6949414d3"
|
|
207
207
|
}
|