@powerlines/plugin-env 0.15.20 → 0.15.22

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.
@@ -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>>;
@@ -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 __stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
11
+ let powerlines_lib_constants_environments = require("powerlines/lib/constants/environments");
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, __stryke_type_checks_is_set_string.isSetString)(context.workspaceConfig.organization) ? context.workspaceConfig.organization : context.workspaceConfig.organization?.name,
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.workspaceConfig.mode,
93
- DEBUG: context.workspaceConfig.mode === "development",
94
- STACKTRACE: context.workspaceConfig.mode === "development",
95
- ENVIRONMENT: context.environment
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_lib_constants_environments.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;
@@ -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" | "trace" | null;
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" | undefined;
27
+ MODE: "test" | "development" | "production";
28
+ TEST: boolean;
29
29
  DEBUG: boolean;
30
30
  STACKTRACE: boolean;
31
- ENVIRONMENT: EnvironmentResolvedConfig;
31
+ ENVIRONMENT: string;
32
32
  };
33
33
  declare function loadEnv<TEnv extends DotenvParseOutput = DotenvParseOutput>(context: EnvPluginContext, options: EnvPluginOptions): Promise<TEnv>;
34
34
  //#endregion
@@ -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" | "trace" | null;
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" | undefined;
27
+ MODE: "test" | "development" | "production";
28
+ TEST: boolean;
30
29
  DEBUG: boolean;
31
30
  STACKTRACE: boolean;
32
- ENVIRONMENT: EnvironmentResolvedConfig;
31
+ ENVIRONMENT: string;
33
32
  };
34
33
  declare function loadEnv<TEnv extends DotenvParseOutput = DotenvParseOutput>(context: EnvPluginContext, options: EnvPluginOptions): Promise<TEnv>;
35
34
  //#endregion
@@ -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 { isSetString } from "@stryke/type-checks/is-set-string";
10
+ import { DEFAULT_ENVIRONMENT } from "powerlines/lib/constants/environments";
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: isSetString(context.workspaceConfig.organization) ? context.workspaceConfig.organization : context.workspaceConfig.organization?.name,
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.workspaceConfig.mode,
92
- DEBUG: context.workspaceConfig.mode === "development",
93
- STACKTRACE: context.workspaceConfig.mode === "development",
94
- ENVIRONMENT: context.environment
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";
@@ -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
@@ -518,4 +514,4 @@ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedCon
518
514
  type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnpluginBuildContext & PluginContext<TResolvedConfig>;
519
515
  type WithUnpluginBuildContext<TContext extends PluginContext> = UnpluginBuildContext & TContext;
520
516
  //#endregion
521
- export { APIContext, BuildPluginContext, Context, EmitEntryOptions, EmitOptions, EnvironmentContext, EnvironmentContextPlugin, FetchOptions, InitContextOptions, LogLevel, MetaInfo, ParseOptions, PluginContext, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, TransformResult$1 as TransformResult, UnresolvedContext, WithUnpluginBuildContext };
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, LogLevel, MetaInfo, ParseOptions, PluginContext, Resolver, SelectHookResult, SelectHookResultItem, SelectHooksOptions, TransformResult, UnresolvedContext, WithUnpluginBuildContext } from "./context.mjs";
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
@@ -518,4 +514,4 @@ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedCon
518
514
  type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnpluginBuildContext & PluginContext<TResolvedConfig>;
519
515
  type WithUnpluginBuildContext<TContext extends PluginContext> = UnpluginBuildContext & TContext;
520
516
  //#endregion
521
- export { APIContext, BuildPluginContext, Context, EnvironmentContext, LogLevel, PluginContext, SelectHooksOptions, UnresolvedContext, WithUnpluginBuildContext };
517
+ export { APIContext, BuildPluginContext, Context, EnvironmentContext, PluginContext, SelectHooksOptions, UnresolvedContext, WithUnpluginBuildContext };
@@ -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
- () => powerlines_types_context.__ΩLogLevel,
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. This value only applies if `lowestLogLevel` is not provided to the `logs` configuration.",
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@>=?AzB)4C?D)4E?F)4G?H)4I?JP)'J4K?LP)'J4M?N&4O89?P&4Q89?R&4S89?T&4U89?V&4W89?X&4Y89?Z&4[89?\\)4]89?^&4_89?`&4a89?b&4c89?d)4e?f)4g?h&4i?jzk&4l>m?n&4o>p?qPnr,J4s8>t?u)4v?wzx&4y89?z&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?\xA0&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Ñ89?Ò&4Ó89?Ô&4Õ89?Ö&4×89?Ø&4Ù89?Ú&4Û89?Ü&4Ý8zß&4à8zâ&4ã8zå&4æ8zè&4é8zë&4ì89?í&4î89?ï&4ð89?ñ&4ò89?ó&4ô89?õ&4ö89?÷&4ø89?ù&4ú8M?üwýy"
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?€&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?\xA0&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Ñ89?Ò&4Ó89?Ô&4Õ89?Ö&4×89?Ø&4Ù89?Ú&4Û89?Ü&4Ý89?Þ&4ß8zá&4â8zä&4å8zç&4è8zê&4ë8zí&4î89?ï&4ð89?ñ&4ò89?ó&4ô89?õ&4ö89?÷&4ø89?ù&4ú89?û&4ü8M?þwÿy"
231
231
  ];
232
232
  const __ΩSecretsInterface = [
233
233
  "ENCRYPTION_KEY",
@@ -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. This value only applies if `lowestLogLevel` is not provided to the `logs` configuration.
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?: LogLevel | null;
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
  *
@@ -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. This value only applies if `lowestLogLevel` is not provided to the `logs` configuration.
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?: LogLevel | null;
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
  *
@@ -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
- () => __ΩLogLevel,
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. This value only applies if `lowestLogLevel` is not provided to the `logs` configuration.",
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@>=?AzB)4C?D)4E?F)4G?H)4I?JP)'J4K?LP)'J4M?N&4O89?P&4Q89?R&4S89?T&4U89?V&4W89?X&4Y89?Z&4[89?\\)4]89?^&4_89?`&4a89?b&4c89?d)4e?f)4g?h&4i?jzk&4l>m?n&4o>p?qPnr,J4s8>t?u)4v?wzx&4y89?z&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?\xA0&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Ñ89?Ò&4Ó89?Ô&4Õ89?Ö&4×89?Ø&4Ù89?Ú&4Û89?Ü&4Ý8zß&4à8zâ&4ã8zå&4æ8zè&4é8zë&4ì89?í&4î89?ï&4ð89?ñ&4ò89?ó&4ô89?õ&4ö89?÷&4ø89?ù&4ú8M?üwýy"
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?€&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?\xA0&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Ñ89?Ò&4Ó89?Ô&4Õ89?Ö&4×89?Ø&4Ù89?Ú&4Û89?Ü&4Ý89?Þ&4ß8zá&4â8zä&4å8zç&4è8zê&4ë8zí&4î89?ï&4ð89?ñ&4ò89?ó&4ô89?õ&4ö89?÷&4ø89?ù&4ú89?û&4ü8M?þ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.20",
3
+ "version": "0.15.22",
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.17",
197
- "@powerlines/plugin-automd": "^0.1.135",
198
- "@powerlines/plugin-babel": "^0.12.144",
199
- "@powerlines/plugin-plugin": "^0.12.87",
196
+ "@powerlines/plugin-alloy": "^0.18.19",
197
+ "@powerlines/plugin-automd": "^0.1.137",
198
+ "@powerlines/plugin-babel": "^0.12.146",
199
+ "@powerlines/plugin-plugin": "^0.12.89",
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.9"
209
+ "powerlines": "^0.37.11"
210
210
  },
211
211
  "devDependencies": {
212
- "@powerlines/deepkit": "^0.5.50",
213
- "@powerlines/plugin-deepkit": "^0.11.11",
212
+ "@powerlines/deepkit": "^0.5.52",
213
+ "@powerlines/plugin-deepkit": "^0.11.13",
214
214
  "@types/node": "^24.10.4",
215
215
  "vite": "8.0.0-beta.2"
216
216
  },
217
217
  "publishConfig": { "access": "public" },
218
- "gitHead": "c8f7d40e33243f2a610de2c53c050f3b2f2dcd31"
218
+ "gitHead": "f3772c353f185b0d76e51bceea500ec8dcd9f041"
219
219
  }