@powerlines/plugin-env 0.4.0 → 0.5.1
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/package.json +10 -10
- package/dist/babel/index.cjs +0 -1
- package/dist/babel/index.d.cts +0 -28
- package/dist/babel/index.d.ts +0 -28
- package/dist/babel/index.js +0 -1
- package/dist/babel/plugin.cjs +0 -19
- package/dist/babel/plugin.d.cts +0 -31
- package/dist/babel/plugin.d.ts +0 -31
- package/dist/babel/plugin.js +0 -19
- package/dist/chunk-FBBMZ4NC.cjs +0 -7
- package/dist/chunk-UCUR73HG.js +0 -7
- package/dist/components/env.cjs +0 -40
- package/dist/components/env.d.cts +0 -106
- package/dist/components/env.d.ts +0 -106
- package/dist/components/env.js +0 -40
- package/dist/components/index.cjs +0 -1
- package/dist/components/index.d.cts +0 -9
- package/dist/components/index.d.ts +0 -9
- package/dist/components/index.js +0 -1
- package/dist/helpers/index.cjs +0 -1
- package/dist/helpers/index.d.cts +0 -32
- package/dist/helpers/index.d.ts +0 -32
- package/dist/helpers/index.js +0 -1
- package/dist/helpers/load.cjs +0 -7
- package/dist/helpers/load.d.cts +0 -57
- package/dist/helpers/load.d.ts +0 -57
- package/dist/helpers/load.js +0 -7
- package/dist/helpers/persistence.cjs +0 -7
- package/dist/helpers/persistence.d.cts +0 -98
- package/dist/helpers/persistence.d.ts +0 -98
- package/dist/helpers/persistence.js +0 -7
- package/dist/helpers/reflect.cjs +0 -7
- package/dist/helpers/reflect.d.cts +0 -70
- package/dist/helpers/reflect.d.ts +0 -70
- package/dist/helpers/reflect.js +0 -7
- package/dist/helpers/source-file-env.cjs +0 -7
- package/dist/helpers/source-file-env.d.cts +0 -7
- package/dist/helpers/source-file-env.d.ts +0 -7
- package/dist/helpers/source-file-env.js +0 -7
- package/dist/helpers/template-helpers.cjs +0 -7
- package/dist/helpers/template-helpers.d.cts +0 -38
- package/dist/helpers/template-helpers.d.ts +0 -38
- package/dist/helpers/template-helpers.js +0 -7
- package/dist/index.cjs +0 -22
- package/dist/index.d.cts +0 -76
- package/dist/index.d.ts +0 -76
- package/dist/index.js +0 -22
- package/dist/runtime-2DL8LKdD.d.cts +0 -3294
- package/dist/runtime-Cij6nHdf.d.ts +0 -3294
- package/dist/types/index.cjs +0 -1
- package/dist/types/index.d.cts +0 -27
- package/dist/types/index.d.ts +0 -27
- package/dist/types/index.js +0 -1
- package/dist/types/plugin.cjs +0 -1
- package/dist/types/plugin.d.cts +0 -169
- package/dist/types/plugin.d.ts +0 -169
- package/dist/types/plugin.js +0 -0
- package/dist/types/runtime.cjs +0 -1
- package/dist/types/runtime.d.cts +0 -24
- package/dist/types/runtime.d.ts +0 -24
- package/dist/types/runtime.js +0 -0
- package/dist/vfs-COoZkq8D.d.cts +0 -358
- package/dist/vfs-COoZkq8D.d.ts +0 -358
package/dist/types/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var plugin=require('./plugin'),runtime=require('./runtime');Object.keys(plugin).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return plugin[k]}})});Object.keys(runtime).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return runtime[k]}})});
|
package/dist/types/index.d.cts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
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, b as __ΩSecretsInterface } from '../runtime-2DL8LKdD.cjs';
|
|
3
|
-
import '@alloy-js/core/jsx-runtime';
|
|
4
|
-
import '@stryke/env/types';
|
|
5
|
-
import '@stryke/types/configuration';
|
|
6
|
-
import '@stryke/env/get-env-paths';
|
|
7
|
-
import '@stryke/types/package-json';
|
|
8
|
-
import 'jiti';
|
|
9
|
-
import '@deepkit/type';
|
|
10
|
-
import 'semver';
|
|
11
|
-
import 'unplugin';
|
|
12
|
-
import '@stryke/capnp';
|
|
13
|
-
import '@storm-software/config-tools/types';
|
|
14
|
-
import '@stryke/types/base';
|
|
15
|
-
import '@stryke/types/file';
|
|
16
|
-
import 'vite';
|
|
17
|
-
import '@babel/core';
|
|
18
|
-
import '@storm-software/build-tools/types';
|
|
19
|
-
import '@storm-software/config/types';
|
|
20
|
-
import '@babel/helper-plugin-utils';
|
|
21
|
-
import '@stryke/types/array';
|
|
22
|
-
import '@stryke/types/tsconfig';
|
|
23
|
-
import 'typescript';
|
|
24
|
-
import '../vfs-COoZkq8D.cjs';
|
|
25
|
-
import 'memfs';
|
|
26
|
-
import 'node:fs';
|
|
27
|
-
import 'unionfs';
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
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, b as __ΩSecretsInterface } from '../runtime-Cij6nHdf.js';
|
|
3
|
-
import '@alloy-js/core/jsx-runtime';
|
|
4
|
-
import '@stryke/env/types';
|
|
5
|
-
import '@stryke/types/configuration';
|
|
6
|
-
import '@stryke/env/get-env-paths';
|
|
7
|
-
import '@stryke/types/package-json';
|
|
8
|
-
import 'jiti';
|
|
9
|
-
import '@deepkit/type';
|
|
10
|
-
import 'semver';
|
|
11
|
-
import 'unplugin';
|
|
12
|
-
import '@stryke/capnp';
|
|
13
|
-
import '@storm-software/config-tools/types';
|
|
14
|
-
import '@stryke/types/base';
|
|
15
|
-
import '@stryke/types/file';
|
|
16
|
-
import 'vite';
|
|
17
|
-
import '@babel/core';
|
|
18
|
-
import '@storm-software/build-tools/types';
|
|
19
|
-
import '@storm-software/config/types';
|
|
20
|
-
import '@babel/helper-plugin-utils';
|
|
21
|
-
import '@stryke/types/array';
|
|
22
|
-
import '@stryke/types/tsconfig';
|
|
23
|
-
import 'typescript';
|
|
24
|
-
import '../vfs-COoZkq8D.js';
|
|
25
|
-
import 'memfs';
|
|
26
|
-
import 'node:fs';
|
|
27
|
-
import 'unionfs';
|
package/dist/types/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export*from'./plugin';export*from'./runtime';
|
package/dist/types/plugin.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';
|
package/dist/types/plugin.d.cts
DELETED
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import { Children } from '@alloy-js/core/jsx-runtime';
|
|
2
|
-
import { c as BabelUserConfig, U as UserConfig, R as ResolvedConfig, d as BabelResolvedConfig, e as PluginContext, f as Reflection, E as EnvInterface, S as SecretsInterface } from '../runtime-2DL8LKdD.cjs';
|
|
3
|
-
import { DotenvParseOutput } from '@stryke/env/types';
|
|
4
|
-
import { DotenvConfiguration, TypeDefinitionParameter, TypeDefinition } from '@stryke/types/configuration';
|
|
5
|
-
import '@stryke/env/get-env-paths';
|
|
6
|
-
import '@stryke/types/package-json';
|
|
7
|
-
import 'jiti';
|
|
8
|
-
import '@deepkit/type';
|
|
9
|
-
import 'semver';
|
|
10
|
-
import 'unplugin';
|
|
11
|
-
import '@stryke/capnp';
|
|
12
|
-
import '@storm-software/config-tools/types';
|
|
13
|
-
import '@stryke/types/base';
|
|
14
|
-
import '@stryke/types/file';
|
|
15
|
-
import 'vite';
|
|
16
|
-
import '@babel/core';
|
|
17
|
-
import '@storm-software/build-tools/types';
|
|
18
|
-
import '@storm-software/config/types';
|
|
19
|
-
import '@babel/helper-plugin-utils';
|
|
20
|
-
import '@stryke/types/array';
|
|
21
|
-
import '@stryke/types/tsconfig';
|
|
22
|
-
import 'typescript';
|
|
23
|
-
import '../vfs-COoZkq8D.cjs';
|
|
24
|
-
import 'memfs';
|
|
25
|
-
import 'node:fs';
|
|
26
|
-
import 'unionfs';
|
|
27
|
-
|
|
28
|
-
type BabelPluginOptions = Partial<BabelUserConfig>;
|
|
29
|
-
type BabelPluginUserConfig = UserConfig;
|
|
30
|
-
interface BabelPluginResolvedConfig extends ResolvedConfig {
|
|
31
|
-
transform: {
|
|
32
|
-
babel: BabelResolvedConfig;
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
type BabelPluginContext<TResolvedConfig extends BabelPluginResolvedConfig = BabelPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
36
|
-
|
|
37
|
-
type EnvType = "env" | "secrets";
|
|
38
|
-
type EnvPluginOptions = Omit<DotenvConfiguration, "types"> & {
|
|
39
|
-
/**
|
|
40
|
-
* A path to the type definition for the expected env configuration parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `":"` or `"#"` character. For example: `"./src/types/env.ts#ConfigConfiguration"`.
|
|
41
|
-
*/
|
|
42
|
-
types?: TypeDefinitionParameter;
|
|
43
|
-
/**
|
|
44
|
-
* A path to the type definition for the expected env secret parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `":"` or `"#"` character. For example: `"./src/types/env.ts#ConfigSecrets"`.
|
|
45
|
-
*/
|
|
46
|
-
secrets?: TypeDefinitionParameter;
|
|
47
|
-
/**
|
|
48
|
-
* An additional prefix (or list of additional prefixes) to apply to the environment variables
|
|
49
|
-
*
|
|
50
|
-
* @remarks
|
|
51
|
-
* By default, the plugin will use the `POWERLINES_` prefix. This option is useful for avoiding conflicts with other environment variables.
|
|
52
|
-
*/
|
|
53
|
-
prefix?: string | string[];
|
|
54
|
-
/**
|
|
55
|
-
* Should the plugin inject the env variables in the source code with their values?
|
|
56
|
-
*
|
|
57
|
-
* @remarks
|
|
58
|
-
* This option is set to `true` when building an application project.
|
|
59
|
-
*
|
|
60
|
-
* @defaultValue false
|
|
61
|
-
*/
|
|
62
|
-
inject?: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* The default configuration to use when loading environment variables.
|
|
65
|
-
*
|
|
66
|
-
* @remarks
|
|
67
|
-
* This configuration is used as the base configuration when loading environment variables, and will be overridden by any values found in the `.env` file or the process environment.
|
|
68
|
-
*/
|
|
69
|
-
defaultConfig?: Children;
|
|
70
|
-
/**
|
|
71
|
-
* Babel configuration options to use when injecting environment variables into the source code.
|
|
72
|
-
*
|
|
73
|
-
* @remarks
|
|
74
|
-
* This option allows you to customize the Babel transformation process used to inject environment variables into the source code. If not provided, the plugin will use default Babel settings.
|
|
75
|
-
*/
|
|
76
|
-
babel?: BabelPluginOptions;
|
|
77
|
-
};
|
|
78
|
-
type EnvPluginUserConfig = BabelPluginUserConfig & {
|
|
79
|
-
env: EnvPluginOptions;
|
|
80
|
-
};
|
|
81
|
-
type EnvPluginResolvedConfig = BabelPluginResolvedConfig & {
|
|
82
|
-
env: Required<Pick<DotenvConfiguration, "additionalFiles">> & Required<Pick<EnvPluginOptions, "defaultConfig">> & {
|
|
83
|
-
/**
|
|
84
|
-
* The type definition for the expected env variable parameters
|
|
85
|
-
*
|
|
86
|
-
* @remarks
|
|
87
|
-
* This value is parsed from the {@link EnvPluginOptions.types} option.
|
|
88
|
-
*/
|
|
89
|
-
types: TypeDefinition;
|
|
90
|
-
/**
|
|
91
|
-
* The type definition for the expected env secret parameters
|
|
92
|
-
*
|
|
93
|
-
* @remarks
|
|
94
|
-
* This value is parsed from the {@link EnvPluginOptions.secrets} option.
|
|
95
|
-
*/
|
|
96
|
-
secrets: TypeDefinition;
|
|
97
|
-
/**
|
|
98
|
-
* Should the plugin inject the env variables in the source code with their values?
|
|
99
|
-
*
|
|
100
|
-
* @remarks
|
|
101
|
-
* This value is the result of reflecting the {@link EnvPluginOptions.inject} option.
|
|
102
|
-
*/
|
|
103
|
-
inject: EnvPluginOptions["inject"];
|
|
104
|
-
/**
|
|
105
|
-
* The prefix used for environment variables
|
|
106
|
-
*
|
|
107
|
-
* @remarks
|
|
108
|
-
* This value is used to filter environment variables that are loaded from the .env file and the process environment.
|
|
109
|
-
*/
|
|
110
|
-
prefix: string[];
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
interface EnvPluginContext<TResolvedConfig extends EnvPluginResolvedConfig = EnvPluginResolvedConfig> extends BabelPluginContext<TResolvedConfig> {
|
|
114
|
-
env: {
|
|
115
|
-
/**
|
|
116
|
-
* The type definitions reflection for the env variables and secrets
|
|
117
|
-
*
|
|
118
|
-
* @remarks
|
|
119
|
-
* These reflections contains the structure of the expected environment variables and secrets as defined by the type definitions provided in the plugin configuration.
|
|
120
|
-
*/
|
|
121
|
-
types: {
|
|
122
|
-
/**
|
|
123
|
-
* The type definitions for the expected env variables
|
|
124
|
-
*/
|
|
125
|
-
env: Reflection;
|
|
126
|
-
/**
|
|
127
|
-
* The type definitions for the expected env secrets
|
|
128
|
-
*/
|
|
129
|
-
secrets: Reflection;
|
|
130
|
-
};
|
|
131
|
-
/**
|
|
132
|
-
* The current **used** environment variables and secrets reflection
|
|
133
|
-
*
|
|
134
|
-
* @remarks
|
|
135
|
-
* This reflection contains the structure of the current environment variables and secrets as defined during the plugin initialization by extracting the values from the source code.
|
|
136
|
-
*/
|
|
137
|
-
used: {
|
|
138
|
-
/**
|
|
139
|
-
* The current env variables reflection
|
|
140
|
-
*/
|
|
141
|
-
env: Reflection<EnvInterface>;
|
|
142
|
-
/**
|
|
143
|
-
* The current env secrets reflection
|
|
144
|
-
*/
|
|
145
|
-
secrets: Reflection<SecretsInterface>;
|
|
146
|
-
};
|
|
147
|
-
/**
|
|
148
|
-
* The parsed .env configuration object
|
|
149
|
-
*
|
|
150
|
-
* @remarks
|
|
151
|
-
* This value is the result of loading the .env configuration file found in the project root directory and merging it with the values provided at {@link EnvPluginOptions.values}
|
|
152
|
-
*/
|
|
153
|
-
parsed: DotenvParseOutput;
|
|
154
|
-
/**
|
|
155
|
-
* The injected environment variables and secrets reflection
|
|
156
|
-
*
|
|
157
|
-
* @remarks
|
|
158
|
-
* This reflection contains the structure of the injected environment variables and secrets that were injected into the source code during the build process.
|
|
159
|
-
*/
|
|
160
|
-
injected: Reflection;
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
declare type __ΩEnvType = any[];
|
|
164
|
-
declare type __ΩEnvPluginOptions = any[];
|
|
165
|
-
declare type __ΩEnvPluginUserConfig = any[];
|
|
166
|
-
declare type __ΩEnvPluginResolvedConfig = any[];
|
|
167
|
-
declare type __ΩEnvPluginContext = any[];
|
|
168
|
-
|
|
169
|
-
export type { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType };
|
package/dist/types/plugin.d.ts
DELETED
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import { Children } from '@alloy-js/core/jsx-runtime';
|
|
2
|
-
import { c as BabelUserConfig, U as UserConfig, R as ResolvedConfig, d as BabelResolvedConfig, e as PluginContext, f as Reflection, E as EnvInterface, S as SecretsInterface } from '../runtime-Cij6nHdf.js';
|
|
3
|
-
import { DotenvParseOutput } from '@stryke/env/types';
|
|
4
|
-
import { DotenvConfiguration, TypeDefinitionParameter, TypeDefinition } from '@stryke/types/configuration';
|
|
5
|
-
import '@stryke/env/get-env-paths';
|
|
6
|
-
import '@stryke/types/package-json';
|
|
7
|
-
import 'jiti';
|
|
8
|
-
import '@deepkit/type';
|
|
9
|
-
import 'semver';
|
|
10
|
-
import 'unplugin';
|
|
11
|
-
import '@stryke/capnp';
|
|
12
|
-
import '@storm-software/config-tools/types';
|
|
13
|
-
import '@stryke/types/base';
|
|
14
|
-
import '@stryke/types/file';
|
|
15
|
-
import 'vite';
|
|
16
|
-
import '@babel/core';
|
|
17
|
-
import '@storm-software/build-tools/types';
|
|
18
|
-
import '@storm-software/config/types';
|
|
19
|
-
import '@babel/helper-plugin-utils';
|
|
20
|
-
import '@stryke/types/array';
|
|
21
|
-
import '@stryke/types/tsconfig';
|
|
22
|
-
import 'typescript';
|
|
23
|
-
import '../vfs-COoZkq8D.js';
|
|
24
|
-
import 'memfs';
|
|
25
|
-
import 'node:fs';
|
|
26
|
-
import 'unionfs';
|
|
27
|
-
|
|
28
|
-
type BabelPluginOptions = Partial<BabelUserConfig>;
|
|
29
|
-
type BabelPluginUserConfig = UserConfig;
|
|
30
|
-
interface BabelPluginResolvedConfig extends ResolvedConfig {
|
|
31
|
-
transform: {
|
|
32
|
-
babel: BabelResolvedConfig;
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
type BabelPluginContext<TResolvedConfig extends BabelPluginResolvedConfig = BabelPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
36
|
-
|
|
37
|
-
type EnvType = "env" | "secrets";
|
|
38
|
-
type EnvPluginOptions = Omit<DotenvConfiguration, "types"> & {
|
|
39
|
-
/**
|
|
40
|
-
* A path to the type definition for the expected env configuration parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `":"` or `"#"` character. For example: `"./src/types/env.ts#ConfigConfiguration"`.
|
|
41
|
-
*/
|
|
42
|
-
types?: TypeDefinitionParameter;
|
|
43
|
-
/**
|
|
44
|
-
* A path to the type definition for the expected env secret parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `":"` or `"#"` character. For example: `"./src/types/env.ts#ConfigSecrets"`.
|
|
45
|
-
*/
|
|
46
|
-
secrets?: TypeDefinitionParameter;
|
|
47
|
-
/**
|
|
48
|
-
* An additional prefix (or list of additional prefixes) to apply to the environment variables
|
|
49
|
-
*
|
|
50
|
-
* @remarks
|
|
51
|
-
* By default, the plugin will use the `POWERLINES_` prefix. This option is useful for avoiding conflicts with other environment variables.
|
|
52
|
-
*/
|
|
53
|
-
prefix?: string | string[];
|
|
54
|
-
/**
|
|
55
|
-
* Should the plugin inject the env variables in the source code with their values?
|
|
56
|
-
*
|
|
57
|
-
* @remarks
|
|
58
|
-
* This option is set to `true` when building an application project.
|
|
59
|
-
*
|
|
60
|
-
* @defaultValue false
|
|
61
|
-
*/
|
|
62
|
-
inject?: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* The default configuration to use when loading environment variables.
|
|
65
|
-
*
|
|
66
|
-
* @remarks
|
|
67
|
-
* This configuration is used as the base configuration when loading environment variables, and will be overridden by any values found in the `.env` file or the process environment.
|
|
68
|
-
*/
|
|
69
|
-
defaultConfig?: Children;
|
|
70
|
-
/**
|
|
71
|
-
* Babel configuration options to use when injecting environment variables into the source code.
|
|
72
|
-
*
|
|
73
|
-
* @remarks
|
|
74
|
-
* This option allows you to customize the Babel transformation process used to inject environment variables into the source code. If not provided, the plugin will use default Babel settings.
|
|
75
|
-
*/
|
|
76
|
-
babel?: BabelPluginOptions;
|
|
77
|
-
};
|
|
78
|
-
type EnvPluginUserConfig = BabelPluginUserConfig & {
|
|
79
|
-
env: EnvPluginOptions;
|
|
80
|
-
};
|
|
81
|
-
type EnvPluginResolvedConfig = BabelPluginResolvedConfig & {
|
|
82
|
-
env: Required<Pick<DotenvConfiguration, "additionalFiles">> & Required<Pick<EnvPluginOptions, "defaultConfig">> & {
|
|
83
|
-
/**
|
|
84
|
-
* The type definition for the expected env variable parameters
|
|
85
|
-
*
|
|
86
|
-
* @remarks
|
|
87
|
-
* This value is parsed from the {@link EnvPluginOptions.types} option.
|
|
88
|
-
*/
|
|
89
|
-
types: TypeDefinition;
|
|
90
|
-
/**
|
|
91
|
-
* The type definition for the expected env secret parameters
|
|
92
|
-
*
|
|
93
|
-
* @remarks
|
|
94
|
-
* This value is parsed from the {@link EnvPluginOptions.secrets} option.
|
|
95
|
-
*/
|
|
96
|
-
secrets: TypeDefinition;
|
|
97
|
-
/**
|
|
98
|
-
* Should the plugin inject the env variables in the source code with their values?
|
|
99
|
-
*
|
|
100
|
-
* @remarks
|
|
101
|
-
* This value is the result of reflecting the {@link EnvPluginOptions.inject} option.
|
|
102
|
-
*/
|
|
103
|
-
inject: EnvPluginOptions["inject"];
|
|
104
|
-
/**
|
|
105
|
-
* The prefix used for environment variables
|
|
106
|
-
*
|
|
107
|
-
* @remarks
|
|
108
|
-
* This value is used to filter environment variables that are loaded from the .env file and the process environment.
|
|
109
|
-
*/
|
|
110
|
-
prefix: string[];
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
interface EnvPluginContext<TResolvedConfig extends EnvPluginResolvedConfig = EnvPluginResolvedConfig> extends BabelPluginContext<TResolvedConfig> {
|
|
114
|
-
env: {
|
|
115
|
-
/**
|
|
116
|
-
* The type definitions reflection for the env variables and secrets
|
|
117
|
-
*
|
|
118
|
-
* @remarks
|
|
119
|
-
* These reflections contains the structure of the expected environment variables and secrets as defined by the type definitions provided in the plugin configuration.
|
|
120
|
-
*/
|
|
121
|
-
types: {
|
|
122
|
-
/**
|
|
123
|
-
* The type definitions for the expected env variables
|
|
124
|
-
*/
|
|
125
|
-
env: Reflection;
|
|
126
|
-
/**
|
|
127
|
-
* The type definitions for the expected env secrets
|
|
128
|
-
*/
|
|
129
|
-
secrets: Reflection;
|
|
130
|
-
};
|
|
131
|
-
/**
|
|
132
|
-
* The current **used** environment variables and secrets reflection
|
|
133
|
-
*
|
|
134
|
-
* @remarks
|
|
135
|
-
* This reflection contains the structure of the current environment variables and secrets as defined during the plugin initialization by extracting the values from the source code.
|
|
136
|
-
*/
|
|
137
|
-
used: {
|
|
138
|
-
/**
|
|
139
|
-
* The current env variables reflection
|
|
140
|
-
*/
|
|
141
|
-
env: Reflection<EnvInterface>;
|
|
142
|
-
/**
|
|
143
|
-
* The current env secrets reflection
|
|
144
|
-
*/
|
|
145
|
-
secrets: Reflection<SecretsInterface>;
|
|
146
|
-
};
|
|
147
|
-
/**
|
|
148
|
-
* The parsed .env configuration object
|
|
149
|
-
*
|
|
150
|
-
* @remarks
|
|
151
|
-
* This value is the result of loading the .env configuration file found in the project root directory and merging it with the values provided at {@link EnvPluginOptions.values}
|
|
152
|
-
*/
|
|
153
|
-
parsed: DotenvParseOutput;
|
|
154
|
-
/**
|
|
155
|
-
* The injected environment variables and secrets reflection
|
|
156
|
-
*
|
|
157
|
-
* @remarks
|
|
158
|
-
* This reflection contains the structure of the injected environment variables and secrets that were injected into the source code during the build process.
|
|
159
|
-
*/
|
|
160
|
-
injected: Reflection;
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
declare type __ΩEnvType = any[];
|
|
164
|
-
declare type __ΩEnvPluginOptions = any[];
|
|
165
|
-
declare type __ΩEnvPluginUserConfig = any[];
|
|
166
|
-
declare type __ΩEnvPluginResolvedConfig = any[];
|
|
167
|
-
declare type __ΩEnvPluginContext = any[];
|
|
168
|
-
|
|
169
|
-
export type { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType };
|
package/dist/types/plugin.js
DELETED
|
File without changes
|
package/dist/types/runtime.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';
|
package/dist/types/runtime.d.cts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, b as __ΩSecretsInterface } from '../runtime-2DL8LKdD.cjs';
|
|
2
|
-
import '@stryke/env/get-env-paths';
|
|
3
|
-
import '@stryke/types/package-json';
|
|
4
|
-
import 'jiti';
|
|
5
|
-
import '@deepkit/type';
|
|
6
|
-
import 'semver';
|
|
7
|
-
import 'unplugin';
|
|
8
|
-
import '@stryke/capnp';
|
|
9
|
-
import '@storm-software/config-tools/types';
|
|
10
|
-
import '@stryke/types/base';
|
|
11
|
-
import '@stryke/types/configuration';
|
|
12
|
-
import '@stryke/types/file';
|
|
13
|
-
import 'vite';
|
|
14
|
-
import '@babel/core';
|
|
15
|
-
import '@storm-software/build-tools/types';
|
|
16
|
-
import '@storm-software/config/types';
|
|
17
|
-
import '@babel/helper-plugin-utils';
|
|
18
|
-
import '@stryke/types/array';
|
|
19
|
-
import '@stryke/types/tsconfig';
|
|
20
|
-
import 'typescript';
|
|
21
|
-
import '../vfs-COoZkq8D.cjs';
|
|
22
|
-
import 'memfs';
|
|
23
|
-
import 'node:fs';
|
|
24
|
-
import 'unionfs';
|
package/dist/types/runtime.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, b as __ΩSecretsInterface } from '../runtime-Cij6nHdf.js';
|
|
2
|
-
import '@stryke/env/get-env-paths';
|
|
3
|
-
import '@stryke/types/package-json';
|
|
4
|
-
import 'jiti';
|
|
5
|
-
import '@deepkit/type';
|
|
6
|
-
import 'semver';
|
|
7
|
-
import 'unplugin';
|
|
8
|
-
import '@stryke/capnp';
|
|
9
|
-
import '@storm-software/config-tools/types';
|
|
10
|
-
import '@stryke/types/base';
|
|
11
|
-
import '@stryke/types/configuration';
|
|
12
|
-
import '@stryke/types/file';
|
|
13
|
-
import 'vite';
|
|
14
|
-
import '@babel/core';
|
|
15
|
-
import '@storm-software/build-tools/types';
|
|
16
|
-
import '@storm-software/config/types';
|
|
17
|
-
import '@babel/helper-plugin-utils';
|
|
18
|
-
import '@stryke/types/array';
|
|
19
|
-
import '@stryke/types/tsconfig';
|
|
20
|
-
import 'typescript';
|
|
21
|
-
import '../vfs-COoZkq8D.js';
|
|
22
|
-
import 'memfs';
|
|
23
|
-
import 'node:fs';
|
|
24
|
-
import 'unionfs';
|
package/dist/types/runtime.js
DELETED
|
File without changes
|