@powerlines/plugin-env 0.15.21 → 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.
@@ -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 powerlines_internal_helpers_environment = require("powerlines/internal/helpers/environment");
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) {
@@ -93,7 +93,7 @@ function loadEnvFromContext(context, parsed) {
93
93
  TEST: context.config.mode === "test",
94
94
  DEBUG: context.config.mode === "development",
95
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
+ ENVIRONMENT: !context.environment.name || context.environment.name === powerlines_lib_constants_environments.DEFAULT_ENVIRONMENT ? context.config.mode : context.environment.name
97
97
  }, (0, __stryke_type_checks_is_set_object.isSetObject)(context?.env?.types?.env) ? context.env.types.env?.getProperties().reduce(__assignType((ret, prop) => {
98
98
  ret[prop.name] = parsed[prop.name] ?? prop.getDefaultValue();
99
99
  return ret;
@@ -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 { DEFAULT_ENVIRONMENT } from "powerlines/internal/helpers/environment";
10
+ import { DEFAULT_ENVIRONMENT } from "powerlines/lib/constants/environments";
11
11
 
12
12
  //#region src/helpers/load.ts
13
13
  function __assignType(fn, args) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-env",
3
- "version": "0.15.21",
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.18",
197
- "@powerlines/plugin-automd": "^0.1.136",
198
- "@powerlines/plugin-babel": "^0.12.145",
199
- "@powerlines/plugin-plugin": "^0.12.88",
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.10"
209
+ "powerlines": "^0.37.11"
210
210
  },
211
211
  "devDependencies": {
212
- "@powerlines/deepkit": "^0.5.51",
213
- "@powerlines/plugin-deepkit": "^0.11.12",
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": "8f22239a7e7be01f8d501942cfa8c24f65a36bb9"
218
+ "gitHead": "f3772c353f185b0d76e51bceea500ec8dcd9f041"
219
219
  }