@powerlines/plugin-env 0.15.19 → 0.15.21
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/plugin.d.mts +1 -1
- package/dist/helpers/load.cjs +8 -7
- package/dist/helpers/load.d.cts +4 -4
- package/dist/helpers/load.d.mts +4 -5
- package/dist/helpers/load.mjs +8 -7
- package/dist/helpers/persistence.cjs +1 -1
- package/dist/helpers/persistence.mjs +1 -1
- package/dist/index.cjs +5 -1
- package/dist/index.mjs +5 -1
- package/dist/packages/powerlines/src/types/context.d.mts +5 -5
- package/dist/packages/powerlines/src/types/index.d.mts +1 -1
- package/dist/powerlines/src/types/context.d.cts +5 -5
- package/dist/types/runtime.cjs +7 -7
- package/dist/types/runtime.d.cts +4 -7
- package/dist/types/runtime.d.mts +4 -7
- package/dist/types/runtime.mjs +7 -7
- package/package.json +9 -9
package/dist/babel/plugin.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DeclareBabelTransformPluginReturn } from "../packages/powerlines/src/types/babel.mjs";
|
|
2
2
|
import { EnvPluginContext, EnvPluginResolvedConfig } from "../types/plugin.mjs";
|
|
3
|
-
import "../packages/powerlines/src/types/index.mjs";
|
|
4
3
|
import "../index.mjs";
|
|
4
|
+
import "../packages/powerlines/src/types/index.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/babel/plugin.d.ts
|
|
7
7
|
declare const envBabelPlugin: DeclareBabelTransformPluginReturn<EnvPluginContext<EnvPluginResolvedConfig>, Record<string, any>>;
|
package/dist/helpers/load.cjs
CHANGED
|
@@ -8,7 +8,7 @@ let powerlines_types_config = require("powerlines/types/config");
|
|
|
8
8
|
let __stryke_env_load_env = require("@stryke/env/load-env");
|
|
9
9
|
let __stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
|
|
10
10
|
let __stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
|
|
11
|
-
let
|
|
11
|
+
let powerlines_internal_helpers_environment = require("powerlines/internal/helpers/environment");
|
|
12
12
|
|
|
13
13
|
//#region src/helpers/load.ts
|
|
14
14
|
function __assignType(fn, args) {
|
|
@@ -85,14 +85,15 @@ function loadEnvFromContext(context, parsed) {
|
|
|
85
85
|
RELEASE_TAG: `${(0, __stryke_string_format_kebab_case.kebabCase)(context.config.name)}@${context.packageJson.version}`,
|
|
86
86
|
DEFAULT_LOCALE: context.workspaceConfig.locale,
|
|
87
87
|
DEFAULT_TIMEZONE: context.workspaceConfig.timezone,
|
|
88
|
-
LOG_LEVEL: context.config.logLevel,
|
|
88
|
+
LOG_LEVEL: context.config.logLevel === "trace" ? "debug" : context.config.logLevel,
|
|
89
89
|
ERROR_URL: context.workspaceConfig.error?.url,
|
|
90
|
-
ORGANIZATION: (0,
|
|
90
|
+
ORGANIZATION: context.config.organization || ((0, __stryke_type_checks_is_set_object.isSetObject)(context.workspaceConfig.organization) ? context.workspaceConfig.organization.name : context.workspaceConfig.organization),
|
|
91
91
|
PLATFORM: context.config.build.platform,
|
|
92
|
-
MODE: context.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
92
|
+
MODE: context.config.mode,
|
|
93
|
+
TEST: context.config.mode === "test",
|
|
94
|
+
DEBUG: context.config.mode === "development",
|
|
95
|
+
STACKTRACE: context.config.mode !== "production",
|
|
96
|
+
ENVIRONMENT: !context.environment.name || context.environment.name === powerlines_internal_helpers_environment.DEFAULT_ENVIRONMENT ? context.config.mode : context.environment.name
|
|
96
97
|
}, (0, __stryke_type_checks_is_set_object.isSetObject)(context?.env?.types?.env) ? context.env.types.env?.getProperties().reduce(__assignType((ret, prop) => {
|
|
97
98
|
ret[prop.name] = parsed[prop.name] ?? prop.getDefaultValue();
|
|
98
99
|
return ret;
|
package/dist/helpers/load.d.cts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { EnvironmentResolvedConfig } from "../powerlines/src/types/resolved.cjs";
|
|
2
1
|
import { EnvPluginContext, EnvPluginOptions } from "../types/plugin.cjs";
|
|
3
2
|
import { DotenvParseOutput } from "@stryke/env/types";
|
|
4
3
|
|
|
@@ -21,14 +20,15 @@ declare function loadEnvFromContext(context: EnvPluginContext, parsed: DotenvPar
|
|
|
21
20
|
RELEASE_TAG: string;
|
|
22
21
|
DEFAULT_LOCALE: string | undefined;
|
|
23
22
|
DEFAULT_TIMEZONE: string | undefined;
|
|
24
|
-
LOG_LEVEL: "error" | "warn" | "info" | "debug" |
|
|
23
|
+
LOG_LEVEL: "error" | "warn" | "info" | "debug" | null;
|
|
25
24
|
ERROR_URL: string | undefined;
|
|
26
25
|
ORGANIZATION: string | undefined;
|
|
27
26
|
PLATFORM: "node" | "browser" | "neutral" | undefined;
|
|
28
|
-
MODE: "test" | "development" | "production"
|
|
27
|
+
MODE: "test" | "development" | "production";
|
|
28
|
+
TEST: boolean;
|
|
29
29
|
DEBUG: boolean;
|
|
30
30
|
STACKTRACE: boolean;
|
|
31
|
-
ENVIRONMENT:
|
|
31
|
+
ENVIRONMENT: string;
|
|
32
32
|
};
|
|
33
33
|
declare function loadEnv<TEnv extends DotenvParseOutput = DotenvParseOutput>(context: EnvPluginContext, options: EnvPluginOptions): Promise<TEnv>;
|
|
34
34
|
//#endregion
|
package/dist/helpers/load.d.mts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { EnvironmentResolvedConfig } from "../packages/powerlines/src/types/resolved.mjs";
|
|
2
1
|
import { EnvPluginContext, EnvPluginOptions } from "../types/plugin.mjs";
|
|
3
|
-
import "../packages/powerlines/src/types/index.mjs";
|
|
4
2
|
import { DotenvParseOutput } from "@stryke/env/types";
|
|
5
3
|
|
|
6
4
|
//#region src/helpers/load.d.ts
|
|
@@ -22,14 +20,15 @@ declare function loadEnvFromContext(context: EnvPluginContext, parsed: DotenvPar
|
|
|
22
20
|
RELEASE_TAG: string;
|
|
23
21
|
DEFAULT_LOCALE: string | undefined;
|
|
24
22
|
DEFAULT_TIMEZONE: string | undefined;
|
|
25
|
-
LOG_LEVEL: "error" | "warn" | "info" | "debug" |
|
|
23
|
+
LOG_LEVEL: "error" | "warn" | "info" | "debug" | null;
|
|
26
24
|
ERROR_URL: string | undefined;
|
|
27
25
|
ORGANIZATION: string | undefined;
|
|
28
26
|
PLATFORM: "node" | "browser" | "neutral" | undefined;
|
|
29
|
-
MODE: "test" | "development" | "production"
|
|
27
|
+
MODE: "test" | "development" | "production";
|
|
28
|
+
TEST: boolean;
|
|
30
29
|
DEBUG: boolean;
|
|
31
30
|
STACKTRACE: boolean;
|
|
32
|
-
ENVIRONMENT:
|
|
31
|
+
ENVIRONMENT: string;
|
|
33
32
|
};
|
|
34
33
|
declare function loadEnv<TEnv extends DotenvParseOutput = DotenvParseOutput>(context: EnvPluginContext, options: EnvPluginOptions): Promise<TEnv>;
|
|
35
34
|
//#endregion
|
package/dist/helpers/load.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { __ΩWorkspaceConfig } from "powerlines/types/config";
|
|
|
7
7
|
import { loadEnv as loadEnv$1, loadEnvFile } from "@stryke/env/load-env";
|
|
8
8
|
import { kebabCase } from "@stryke/string-format/kebab-case";
|
|
9
9
|
import { isSetObject } from "@stryke/type-checks/is-set-object";
|
|
10
|
-
import {
|
|
10
|
+
import { DEFAULT_ENVIRONMENT } from "powerlines/internal/helpers/environment";
|
|
11
11
|
|
|
12
12
|
//#region src/helpers/load.ts
|
|
13
13
|
function __assignType(fn, args) {
|
|
@@ -84,14 +84,15 @@ function loadEnvFromContext(context, parsed) {
|
|
|
84
84
|
RELEASE_TAG: `${kebabCase(context.config.name)}@${context.packageJson.version}`,
|
|
85
85
|
DEFAULT_LOCALE: context.workspaceConfig.locale,
|
|
86
86
|
DEFAULT_TIMEZONE: context.workspaceConfig.timezone,
|
|
87
|
-
LOG_LEVEL: context.config.logLevel,
|
|
87
|
+
LOG_LEVEL: context.config.logLevel === "trace" ? "debug" : context.config.logLevel,
|
|
88
88
|
ERROR_URL: context.workspaceConfig.error?.url,
|
|
89
|
-
ORGANIZATION:
|
|
89
|
+
ORGANIZATION: context.config.organization || (isSetObject(context.workspaceConfig.organization) ? context.workspaceConfig.organization.name : context.workspaceConfig.organization),
|
|
90
90
|
PLATFORM: context.config.build.platform,
|
|
91
|
-
MODE: context.
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
91
|
+
MODE: context.config.mode,
|
|
92
|
+
TEST: context.config.mode === "test",
|
|
93
|
+
DEBUG: context.config.mode === "development",
|
|
94
|
+
STACKTRACE: context.config.mode !== "production",
|
|
95
|
+
ENVIRONMENT: !context.environment.name || context.environment.name === DEFAULT_ENVIRONMENT ? context.config.mode : context.environment.name
|
|
95
96
|
}, isSetObject(context?.env?.types?.env) ? context.env.types.env?.getProperties().reduce(__assignType((ret, prop) => {
|
|
96
97
|
ret[prop.name] = parsed[prop.name] ?? prop.getDefaultValue();
|
|
97
98
|
return ret;
|
|
@@ -2,8 +2,8 @@ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
|
2
2
|
const require_types_plugin = require('../types/plugin.cjs');
|
|
3
3
|
const require_join_paths = require('../node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/join-paths.cjs');
|
|
4
4
|
const require_helpers_reflect = require('./reflect.cjs');
|
|
5
|
-
let powerlines_types_context = require("powerlines/types/context");
|
|
6
5
|
let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
6
|
+
let powerlines_types_context = require("powerlines/types/context");
|
|
7
7
|
let __powerlines_deepkit_capnp = require("@powerlines/deepkit/capnp");
|
|
8
8
|
let __powerlines_deepkit_resolve_reflections = require("@powerlines/deepkit/resolve-reflections");
|
|
9
9
|
let __powerlines_deepkit_schemas_reflection = require("@powerlines/deepkit/schemas/reflection");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __ΩEnvPluginContext, __ΩEnvPluginResolvedConfig, __ΩEnvType } from "../types/plugin.mjs";
|
|
2
2
|
import { o } from "../node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/join-paths.mjs";
|
|
3
3
|
import { createEnvReflection } from "./reflect.mjs";
|
|
4
|
-
import { __ΩContext, __ΩUnresolvedContext } from "powerlines/types/context";
|
|
5
4
|
import { ReflectionClass, ReflectionKind, deserializeType, resolveClassType } from "@powerlines/deepkit/vendor/type";
|
|
5
|
+
import { __ΩContext, __ΩUnresolvedContext } from "powerlines/types/context";
|
|
6
6
|
import { convertFromCapnp, convertToCapnp } from "@powerlines/deepkit/capnp";
|
|
7
7
|
import { getReflectionsPath } from "@powerlines/deepkit/resolve-reflections";
|
|
8
8
|
import { SerializedTypes } from "@powerlines/deepkit/schemas/reflection";
|
package/dist/index.cjs
CHANGED
|
@@ -70,7 +70,11 @@ const plugin = (options = {}) => {
|
|
|
70
70
|
const formattedPrefix = (0, __stryke_string_format_constant_case.constantCase)(prefix);
|
|
71
71
|
if (!ret.includes(formattedPrefix)) ret.push(formattedPrefix);
|
|
72
72
|
return ret;
|
|
73
|
-
}, [
|
|
73
|
+
}, [
|
|
74
|
+
...__stryke_env_types.ENV_PREFIXES,
|
|
75
|
+
"POWERLINES_",
|
|
76
|
+
this.config.framework && this.config.framework !== "powerlines" && `${(0, __stryke_string_format_constant_case.constantCase)(this.config.framework)}_`
|
|
77
|
+
].filter(Boolean));
|
|
74
78
|
config.env.prefix = require_to_array.e(config.env.prefix).reduce((ret, prefix) => {
|
|
75
79
|
if (!ret.includes(prefix.replace(/_$/g, ""))) ret.push(prefix.replace(/_$/g, ""));
|
|
76
80
|
return ret;
|
package/dist/index.mjs
CHANGED
|
@@ -65,7 +65,11 @@ const plugin = (options = {}) => {
|
|
|
65
65
|
const formattedPrefix = constantCase(prefix);
|
|
66
66
|
if (!ret.includes(formattedPrefix)) ret.push(formattedPrefix);
|
|
67
67
|
return ret;
|
|
68
|
-
}, [
|
|
68
|
+
}, [
|
|
69
|
+
...ENV_PREFIXES,
|
|
70
|
+
"POWERLINES_",
|
|
71
|
+
this.config.framework && this.config.framework !== "powerlines" && `${constantCase(this.config.framework)}_`
|
|
72
|
+
].filter(Boolean));
|
|
69
73
|
config.env.prefix = e(config.env.prefix).reduce((ret, prefix) => {
|
|
70
74
|
if (!ret.includes(prefix.replace(/_$/g, ""))) ret.push(prefix.replace(/_$/g, ""));
|
|
71
75
|
return ret;
|
|
@@ -18,10 +18,6 @@ import { RequestInfo, Response } from "undici";
|
|
|
18
18
|
|
|
19
19
|
//#region ../powerlines/src/types/context.d.ts
|
|
20
20
|
|
|
21
|
-
/**
|
|
22
|
-
* The severity level of a log message.
|
|
23
|
-
*/
|
|
24
|
-
type LogLevel = "debug" | "info" | "warning" | "error" | "fatal";
|
|
25
21
|
interface MetaInfo {
|
|
26
22
|
/**
|
|
27
23
|
* The checksum generated from the resolved options
|
|
@@ -88,6 +84,10 @@ interface ParseOptions extends ParserOptions {
|
|
|
88
84
|
allowReturnOutsideFunction?: boolean;
|
|
89
85
|
}
|
|
90
86
|
interface EmitOptions extends WriteOptions {
|
|
87
|
+
/**
|
|
88
|
+
* The file extension to use when emitting the file
|
|
89
|
+
*/
|
|
90
|
+
extension?: string;
|
|
91
91
|
/**
|
|
92
92
|
* If true, will emit the file using {@link UnpluginBuildContext.emitFile | the bundler's emit function}.
|
|
93
93
|
*/
|
|
@@ -514,4 +514,4 @@ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
514
514
|
type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnpluginBuildContext & PluginContext<TResolvedConfig>;
|
|
515
515
|
type WithUnpluginBuildContext<TContext extends PluginContext> = UnpluginBuildContext & TContext;
|
|
516
516
|
//#endregion
|
|
517
|
-
export { APIContext, BuildPluginContext, Context, EmitEntryOptions, EmitOptions, EnvironmentContext, EnvironmentContextPlugin, FetchOptions, InitContextOptions,
|
|
517
|
+
export { APIContext, BuildPluginContext, Context, EmitEntryOptions, EmitOptions, EnvironmentContext, EnvironmentContextPlugin, FetchOptions, InitContextOptions, MetaInfo, ParseOptions, PluginContext, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, TransformResult$1 as TransformResult, UnresolvedContext, WithUnpluginBuildContext };
|
|
@@ -5,7 +5,7 @@ import { DeepkitOptions, ParsedTypeScriptConfig, RawReflectionMode, ReflectionLe
|
|
|
5
5
|
import { BabelUserConfig, BaseConfig, BuildInlineConfig, CleanInlineConfig, CommonUserConfig, DeployConfig, DeployInlineConfig, DocsInlineConfig, ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LintInlineConfig, LogFn, NewInlineConfig, OutputConfig, PluginConfig, PluginConfigObject, PluginConfigTuple, PluginFactory, PowerlinesCommand, PrepareInlineConfig, ProjectType, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig, ViteUserConfig, WebpackUserConfig, WorkspaceConfig } from "./config.mjs";
|
|
6
6
|
import { HookFields, HookListOrders, HooksList, InferHookFunction, InferHookParameters, InferHookReturnType, InferHooksListItem, PluginHooksList, PluginHooksListItem, UnpluginHookFunctions, UnpluginHookList, UnpluginHookVariant, UnpluginHookVariantField, UnpluginHooksListItem } from "./hooks.mjs";
|
|
7
7
|
import { BabelResolvedConfig, ESBuildResolvedConfig, EnvironmentResolvedConfig, FarmResolvedConfig, InferResolvedConfig, OutputResolvedConfig, ResolvedAssetGlob, ResolvedConfig, ResolvedEntryTypeDefinition, RolldownResolvedConfig, RollupResolvedConfig, RspackResolvedConfig, TsdownResolvedConfig, TsupResolvedConfig, UnbuildResolvedConfig, ViteResolvedConfig, WebpackResolvedConfig } from "./resolved.mjs";
|
|
8
|
-
import { APIContext, BuildPluginContext, Context, EmitEntryOptions, EmitOptions, EnvironmentContext, EnvironmentContextPlugin, FetchOptions, InitContextOptions,
|
|
8
|
+
import { APIContext, BuildPluginContext, Context, EmitEntryOptions, EmitOptions, EnvironmentContext, EnvironmentContextPlugin, FetchOptions, InitContextOptions, MetaInfo, ParseOptions, PluginContext, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, TransformResult, UnresolvedContext, WithUnpluginBuildContext } from "./context.mjs";
|
|
9
9
|
import { CommandType, SUPPORTED_COMMANDS } from "./commands.mjs";
|
|
10
10
|
import { API } from "./api.mjs";
|
|
11
11
|
import { InferUnpluginOptions, UnpluginOptions } from "./unplugin.mjs";
|
|
@@ -18,10 +18,6 @@ import { RequestInfo, Response } from "undici";
|
|
|
18
18
|
|
|
19
19
|
//#region ../powerlines/src/types/context.d.ts
|
|
20
20
|
|
|
21
|
-
/**
|
|
22
|
-
* The severity level of a log message.
|
|
23
|
-
*/
|
|
24
|
-
type LogLevel = "debug" | "info" | "warning" | "error" | "fatal";
|
|
25
21
|
interface MetaInfo {
|
|
26
22
|
/**
|
|
27
23
|
* The checksum generated from the resolved options
|
|
@@ -88,6 +84,10 @@ interface ParseOptions extends ParserOptions {
|
|
|
88
84
|
allowReturnOutsideFunction?: boolean;
|
|
89
85
|
}
|
|
90
86
|
interface EmitOptions extends WriteOptions {
|
|
87
|
+
/**
|
|
88
|
+
* The file extension to use when emitting the file
|
|
89
|
+
*/
|
|
90
|
+
extension?: string;
|
|
91
91
|
/**
|
|
92
92
|
* If true, will emit the file using {@link UnpluginBuildContext.emitFile | the bundler's emit function}.
|
|
93
93
|
*/
|
|
@@ -514,4 +514,4 @@ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
514
514
|
type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnpluginBuildContext & PluginContext<TResolvedConfig>;
|
|
515
515
|
type WithUnpluginBuildContext<TContext extends PluginContext> = UnpluginBuildContext & TContext;
|
|
516
516
|
//#endregion
|
|
517
|
-
export { APIContext, BuildPluginContext, Context, EnvironmentContext,
|
|
517
|
+
export { APIContext, BuildPluginContext, Context, EnvironmentContext, PluginContext, SelectHooksOptions, UnresolvedContext, WithUnpluginBuildContext };
|
package/dist/types/runtime.cjs
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
let powerlines_types_context = require("powerlines/types/context");
|
|
3
1
|
|
|
4
2
|
//#region src/types/runtime.ts
|
|
5
3
|
const __ΩEnvInterface = [
|
|
@@ -33,10 +31,9 @@ const __ΩEnvInterface = [
|
|
|
33
31
|
"MODE",
|
|
34
32
|
"production",
|
|
35
33
|
"The mode in which the application is running.",
|
|
36
|
-
{ alias: ["NODE_ENV"] },
|
|
34
|
+
{ alias: ["NODE_ENV", "VERCEL_ENV"] },
|
|
37
35
|
"ENVIRONMENT",
|
|
38
36
|
"The environment the application is running in. This value will be populated with the value of `MODE` if not provided.",
|
|
39
|
-
{ alias: ["ENV"] },
|
|
40
37
|
"DEBUG",
|
|
41
38
|
"Indicates if the application is running in debug mode.",
|
|
42
39
|
"TEST",
|
|
@@ -84,10 +81,13 @@ const __ΩEnvInterface = [
|
|
|
84
81
|
"DEFAULT_LOCALE",
|
|
85
82
|
"en_US",
|
|
86
83
|
"The default locale to be used in the application.",
|
|
87
|
-
|
|
84
|
+
"error",
|
|
85
|
+
"warn",
|
|
86
|
+
"info",
|
|
87
|
+
"debug",
|
|
88
88
|
"LOG_LEVEL",
|
|
89
89
|
"info",
|
|
90
|
-
"The default lowest log level to accept. If `null`, the logger will reject all records.
|
|
90
|
+
"The default lowest log level to accept. If `null`, the logger will reject all records.",
|
|
91
91
|
"CI",
|
|
92
92
|
"An indicator that specifies the current runtime is a continuous integration environment.",
|
|
93
93
|
{
|
|
@@ -227,7 +227,7 @@ const __ΩEnvInterface = [
|
|
|
227
227
|
"A variable that specifies the [Devenv](https://devenv.sh/) runtime directory.",
|
|
228
228
|
"The base environment configuration used by Powerlines applications",
|
|
229
229
|
"EnvInterface",
|
|
230
|
-
"P&4!9?\"&4#9>$?%&4&9?'&4(9?)&4*9?+&4,9?-&4.9?/&40?1z2P.3.4.5J46>7?8P.9.:.;J4<>=?>z?&4@>=?
|
|
230
|
+
"P&4!9?\"&4#9>$?%&4&9?'&4(9?)&4*9?+&4,9?-&4.9?/&40?1z2P.3.4.5J46>7?8P.9.:.;J4<>=?>z?&4@>=?A)4B?C)4D?E)4F?G)4H?IP)'J4J?KP)'J4L?M&4N89?O&4P89?Q&4R89?S&4T89?U&4V89?W&4X89?Y&4Z89?[)4\\89?]&4^89?_&4`89?a&4b89?c)4d?e)4f?g&4h?izj&4k>l?m&4n>o?pP.q.r.s.t,J4u8>v?w)4x?yzz&4{89?|&4}89?~&489?&489?&489?&4
89?&489?&489?&489?&489?&489?&489?&489?&489?&489?&489?&489?&489?&489?\xA0&4¡89?¢&4£89?¤&4¥89?¦&4§89?¨&4©89?ª&4«89?¬&489?®&4¯89?°&4±89?²&4³89?´&4µ89?¶&4·89?¸&4¹89?º&4»89?¼&4½89?¾&4¿89?À&4Á89?Â&4Ã89?Ä&4Å89?Æ&4Ç89?È&4É89?Ê&4Ë89?Ì&4Í89?Î&4Ï89?Ð&4Ñ89?Ò&4Ó89?Ô&4Õ89?Ö&4×89?Ø&4Ù89?Ú&4Û89?Ü&4Ý89?Þ&4ß8?àzá&4â8?ãzä&4å8?æzç&4è8?ézê&4ë8?ìzí&4î89?ï&4ð89?ñ&4ò89?ó&4ô89?õ&4ö89?÷&4ø89?ù&4ú89?û&4ü8?ýM?þwÿy"
|
|
231
231
|
];
|
|
232
232
|
const __ΩSecretsInterface = [
|
|
233
233
|
"ENCRYPTION_KEY",
|
package/dist/types/runtime.d.cts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import { LogLevel } from "../powerlines/src/types/context.cjs";
|
|
2
|
-
|
|
3
1
|
//#region src/types/runtime.d.ts
|
|
4
|
-
|
|
5
2
|
/**
|
|
6
3
|
* The base environment configuration used by Powerlines applications
|
|
7
4
|
*
|
|
@@ -90,6 +87,8 @@ interface EnvInterface {
|
|
|
90
87
|
* @defaultValue "production"
|
|
91
88
|
*
|
|
92
89
|
* @alias NODE_ENV
|
|
90
|
+
* @alias ENV
|
|
91
|
+
* @alias VERCEL_ENV
|
|
93
92
|
*
|
|
94
93
|
* @category neutral
|
|
95
94
|
*/
|
|
@@ -99,8 +98,6 @@ interface EnvInterface {
|
|
|
99
98
|
*
|
|
100
99
|
* @defaultValue "production"
|
|
101
100
|
*
|
|
102
|
-
* @alias ENV
|
|
103
|
-
* @alias VERCEL_ENV
|
|
104
101
|
* @category neutral
|
|
105
102
|
*/
|
|
106
103
|
ENVIRONMENT: string;
|
|
@@ -259,13 +256,13 @@ interface EnvInterface {
|
|
|
259
256
|
*/
|
|
260
257
|
DEFAULT_LOCALE: string;
|
|
261
258
|
/**
|
|
262
|
-
* The default lowest log level to accept. If `null`, the logger will reject all records.
|
|
259
|
+
* The default lowest log level to accept. If `null`, the logger will reject all records.
|
|
263
260
|
*
|
|
264
261
|
* @defaultValue "info"
|
|
265
262
|
*
|
|
266
263
|
* @category neutral
|
|
267
264
|
*/
|
|
268
|
-
LOG_LEVEL?:
|
|
265
|
+
LOG_LEVEL?: "error" | "warn" | "info" | "debug" | null;
|
|
269
266
|
/**
|
|
270
267
|
* An indicator that specifies the current runtime is a continuous integration environment.
|
|
271
268
|
*
|
package/dist/types/runtime.d.mts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import { LogLevel } from "../packages/powerlines/src/types/context.mjs";
|
|
2
|
-
|
|
3
1
|
//#region src/types/runtime.d.ts
|
|
4
|
-
|
|
5
2
|
/**
|
|
6
3
|
* The base environment configuration used by Powerlines applications
|
|
7
4
|
*
|
|
@@ -90,6 +87,8 @@ interface EnvInterface {
|
|
|
90
87
|
* @defaultValue "production"
|
|
91
88
|
*
|
|
92
89
|
* @alias NODE_ENV
|
|
90
|
+
* @alias ENV
|
|
91
|
+
* @alias VERCEL_ENV
|
|
93
92
|
*
|
|
94
93
|
* @category neutral
|
|
95
94
|
*/
|
|
@@ -99,8 +98,6 @@ interface EnvInterface {
|
|
|
99
98
|
*
|
|
100
99
|
* @defaultValue "production"
|
|
101
100
|
*
|
|
102
|
-
* @alias ENV
|
|
103
|
-
* @alias VERCEL_ENV
|
|
104
101
|
* @category neutral
|
|
105
102
|
*/
|
|
106
103
|
ENVIRONMENT: string;
|
|
@@ -259,13 +256,13 @@ interface EnvInterface {
|
|
|
259
256
|
*/
|
|
260
257
|
DEFAULT_LOCALE: string;
|
|
261
258
|
/**
|
|
262
|
-
* The default lowest log level to accept. If `null`, the logger will reject all records.
|
|
259
|
+
* The default lowest log level to accept. If `null`, the logger will reject all records.
|
|
263
260
|
*
|
|
264
261
|
* @defaultValue "info"
|
|
265
262
|
*
|
|
266
263
|
* @category neutral
|
|
267
264
|
*/
|
|
268
|
-
LOG_LEVEL?:
|
|
265
|
+
LOG_LEVEL?: "error" | "warn" | "info" | "debug" | null;
|
|
269
266
|
/**
|
|
270
267
|
* An indicator that specifies the current runtime is a continuous integration environment.
|
|
271
268
|
*
|
package/dist/types/runtime.mjs
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { __ΩLogLevel } from "powerlines/types/context";
|
|
2
|
-
|
|
3
1
|
//#region src/types/runtime.ts
|
|
4
2
|
const __ΩEnvInterface = [
|
|
5
3
|
"APP_NAME",
|
|
@@ -32,10 +30,9 @@ const __ΩEnvInterface = [
|
|
|
32
30
|
"MODE",
|
|
33
31
|
"production",
|
|
34
32
|
"The mode in which the application is running.",
|
|
35
|
-
{ alias: ["NODE_ENV"] },
|
|
33
|
+
{ alias: ["NODE_ENV", "VERCEL_ENV"] },
|
|
36
34
|
"ENVIRONMENT",
|
|
37
35
|
"The environment the application is running in. This value will be populated with the value of `MODE` if not provided.",
|
|
38
|
-
{ alias: ["ENV"] },
|
|
39
36
|
"DEBUG",
|
|
40
37
|
"Indicates if the application is running in debug mode.",
|
|
41
38
|
"TEST",
|
|
@@ -83,10 +80,13 @@ const __ΩEnvInterface = [
|
|
|
83
80
|
"DEFAULT_LOCALE",
|
|
84
81
|
"en_US",
|
|
85
82
|
"The default locale to be used in the application.",
|
|
86
|
-
|
|
83
|
+
"error",
|
|
84
|
+
"warn",
|
|
85
|
+
"info",
|
|
86
|
+
"debug",
|
|
87
87
|
"LOG_LEVEL",
|
|
88
88
|
"info",
|
|
89
|
-
"The default lowest log level to accept. If `null`, the logger will reject all records.
|
|
89
|
+
"The default lowest log level to accept. If `null`, the logger will reject all records.",
|
|
90
90
|
"CI",
|
|
91
91
|
"An indicator that specifies the current runtime is a continuous integration environment.",
|
|
92
92
|
{
|
|
@@ -226,7 +226,7 @@ const __ΩEnvInterface = [
|
|
|
226
226
|
"A variable that specifies the [Devenv](https://devenv.sh/) runtime directory.",
|
|
227
227
|
"The base environment configuration used by Powerlines applications",
|
|
228
228
|
"EnvInterface",
|
|
229
|
-
"P&4!9?\"&4#9>$?%&4&9?'&4(9?)&4*9?+&4,9?-&4.9?/&40?1z2P.3.4.5J46>7?8P.9.:.;J4<>=?>z?&4@>=?
|
|
229
|
+
"P&4!9?\"&4#9>$?%&4&9?'&4(9?)&4*9?+&4,9?-&4.9?/&40?1z2P.3.4.5J46>7?8P.9.:.;J4<>=?>z?&4@>=?A)4B?C)4D?E)4F?G)4H?IP)'J4J?KP)'J4L?M&4N89?O&4P89?Q&4R89?S&4T89?U&4V89?W&4X89?Y&4Z89?[)4\\89?]&4^89?_&4`89?a&4b89?c)4d?e)4f?g&4h?izj&4k>l?m&4n>o?pP.q.r.s.t,J4u8>v?w)4x?yzz&4{89?|&4}89?~&489?&489?&489?&4
89?&489?&489?&489?&489?&489?&489?&489?&489?&489?&489?&489?&489?&489?\xA0&4¡89?¢&4£89?¤&4¥89?¦&4§89?¨&4©89?ª&4«89?¬&489?®&4¯89?°&4±89?²&4³89?´&4µ89?¶&4·89?¸&4¹89?º&4»89?¼&4½89?¾&4¿89?À&4Á89?Â&4Ã89?Ä&4Å89?Æ&4Ç89?È&4É89?Ê&4Ë89?Ì&4Í89?Î&4Ï89?Ð&4Ñ89?Ò&4Ó89?Ô&4Õ89?Ö&4×89?Ø&4Ù89?Ú&4Û89?Ü&4Ý89?Þ&4ß8?àzá&4â8?ãzä&4å8?æzç&4è8?ézê&4ë8?ìzí&4î89?ï&4ð89?ñ&4ò89?ó&4ô89?õ&4ö89?÷&4ø89?ù&4ú89?û&4ü8?ýM?þwÿy"
|
|
230
230
|
];
|
|
231
231
|
const __ΩSecretsInterface = [
|
|
232
232
|
"ENCRYPTION_KEY",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-env",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.21",
|
|
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": {
|
|
@@ -193,10 +193,10 @@
|
|
|
193
193
|
"@alloy-js/typescript": "^0.22.0",
|
|
194
194
|
"@babel/core": "^7.28.5",
|
|
195
195
|
"@babel/types": "^7.28.5",
|
|
196
|
-
"@powerlines/plugin-alloy": "^0.18.
|
|
197
|
-
"@powerlines/plugin-automd": "^0.1.
|
|
198
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
199
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
196
|
+
"@powerlines/plugin-alloy": "^0.18.18",
|
|
197
|
+
"@powerlines/plugin-automd": "^0.1.136",
|
|
198
|
+
"@powerlines/plugin-babel": "^0.12.145",
|
|
199
|
+
"@powerlines/plugin-plugin": "^0.12.88",
|
|
200
200
|
"@storm-software/config-tools": "^1.188.75",
|
|
201
201
|
"@stryke/capnp": "^0.12.52",
|
|
202
202
|
"@stryke/env": "^0.20.44",
|
|
@@ -206,14 +206,14 @@
|
|
|
206
206
|
"@stryke/type-checks": "^0.5.15",
|
|
207
207
|
"@stryke/types": "^0.10.29",
|
|
208
208
|
"automd": "^0.4.2",
|
|
209
|
-
"powerlines": "^0.37.
|
|
209
|
+
"powerlines": "^0.37.10"
|
|
210
210
|
},
|
|
211
211
|
"devDependencies": {
|
|
212
|
-
"@powerlines/deepkit": "^0.5.
|
|
213
|
-
"@powerlines/plugin-deepkit": "^0.11.
|
|
212
|
+
"@powerlines/deepkit": "^0.5.51",
|
|
213
|
+
"@powerlines/plugin-deepkit": "^0.11.12",
|
|
214
214
|
"@types/node": "^24.10.4",
|
|
215
215
|
"vite": "8.0.0-beta.2"
|
|
216
216
|
},
|
|
217
217
|
"publishConfig": { "access": "public" },
|
|
218
|
-
"gitHead": "
|
|
218
|
+
"gitHead": "8f22239a7e7be01f8d501942cfa8c24f65a36bb9"
|
|
219
219
|
}
|