@powerlines/plugin-env 0.16.424 → 0.16.426

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.
Files changed (2) hide show
  1. package/README.md +34 -0
  2. package/package.json +10 -10
package/README.md CHANGED
@@ -75,6 +75,40 @@ values into the code so that they're accessible at runtime.
75
75
 
76
76
  <!-- END doctoc -->
77
77
 
78
+ ## Features
79
+
80
+ - Injects `.env` configuration values into code so they are accessible at runtime
81
+ - Filters by prefix with validation; context exposes `env.config`, `env.secrets`, `env.parsed`, and `env.injected`
82
+ - Renders `env.md` docs, registers the env Babel/vite integrations, and writes active variables at `buildEnd`
83
+ - Helpers for loading, schemas, and source-file env plus env-builtin components (`./components/*`, `./helpers/*`, `./schemas/*`)
84
+
85
+ ## Usage
86
+
87
+ Install the plugin:
88
+
89
+ ```bash
90
+ pnpm add @powerlines/plugin-env
91
+ ```
92
+
93
+ Register it in `powerlines.config.ts`:
94
+
95
+ ```ts
96
+ import { defineConfig } from "powerlines";
97
+ import { plugin as env } from "@powerlines/plugin-env";
98
+
99
+ export default defineConfig({
100
+ plugins: [
101
+ env({
102
+ prefix: "APP_",
103
+ inject: true,
104
+ validate: true
105
+ })
106
+ ]
107
+ });
108
+ ```
109
+
110
+ Run the Powerlines build for your project to activate the plugin.
111
+
78
112
  ## Installing
79
113
 
80
114
  Using [pnpm](http://pnpm.io):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-env",
3
- "version": "0.16.424",
3
+ "version": "0.16.426",
4
4
  "private": false,
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
  "keywords": ["dotenv", "powerlines", "storm-software", "powerlines-plugin"],
@@ -266,12 +266,12 @@
266
266
  "@babel/types": "^8.0.6",
267
267
  "@power-plant/alloy-js": "^0.0.95",
268
268
  "@power-plant/schema": "^0.0.96",
269
- "@powerlines/core": "^0.48.134",
270
- "@powerlines/plugin-alloy": "^0.26.313",
271
- "@powerlines/plugin-automd": "^0.1.677",
272
- "@powerlines/plugin-babel": "^0.13.212",
273
- "@powerlines/plugin-power-plant": "^0.1.72",
274
- "@storm-software/config-tools": "^1.190.151",
269
+ "@powerlines/core": "^0.48.136",
270
+ "@powerlines/plugin-alloy": "^0.26.315",
271
+ "@powerlines/plugin-automd": "^0.1.679",
272
+ "@powerlines/plugin-babel": "^0.13.214",
273
+ "@powerlines/plugin-power-plant": "^0.1.74",
274
+ "@storm-software/config-tools": "^1.190.154",
275
275
  "@stryke/capnp": "^0.12.145",
276
276
  "@stryke/convert": "^0.7.47",
277
277
  "@stryke/env": "^0.20.135",
@@ -285,14 +285,14 @@
285
285
  "automd": "^0.4.3",
286
286
  "c12": "^3.3.4",
287
287
  "defu": "^6.1.7",
288
- "powerlines": "^0.47.215",
288
+ "powerlines": "^0.47.217",
289
289
  "zod": "^4.6.7"
290
290
  },
291
291
  "devDependencies": {
292
- "@powerlines/plugin-plugin": "^0.12.628",
292
+ "@powerlines/plugin-plugin": "^0.12.630",
293
293
  "@types/node": "^25.9.9",
294
294
  "vite": "^8.3.5"
295
295
  },
296
296
  "publishConfig": { "access": "public" },
297
- "gitHead": "810bc635d1503594d09d9f0c8c93ea413745a9df"
297
+ "gitHead": "bb4e1f2b32a8bb9d20559ca7c3df3a2f30a0d14e"
298
298
  }