@super-repo/envx 0.2.3-b.4 → 0.2.3-b.5
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/README.md +6 -3
- package/dist/chunks/{commands-D3eQPQO6.js → commands-Cg8YMJHj.js} +2 -2
- package/dist/chunks/{commands-D3eQPQO6.js.map → commands-Cg8YMJHj.js.map} +1 -1
- package/dist/chunks/{src-D0n2wHDg.js → src-jaqb5pGP.js} +0 -0
- package/dist/chunks/{src-D0n2wHDg.js.map → src-jaqb5pGP.js.map} +1 -1
- package/dist/cli.js +1 -1
- package/dist/commands/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -517,7 +517,9 @@ Final value of process.env.SOME_KEY is the FIRST hit, top-down:
|
|
|
517
517
|
|
|
518
518
|
```ts
|
|
519
519
|
// envx.config.ts
|
|
520
|
-
|
|
520
|
+
import { defineConfig } from "@super-repo/envx";
|
|
521
|
+
|
|
522
|
+
export default defineConfig({
|
|
521
523
|
// ── env-file selection ─────────────────────────────────
|
|
522
524
|
envFiles: [".env", ".env.local"], // bypass auto-detect; explicit list
|
|
523
525
|
envPath: "vault", // workspace-relative subdir (cwd-first, ws-root fallback)
|
|
@@ -583,10 +585,10 @@ export default {
|
|
|
583
585
|
|
|
584
586
|
// ── advanced ───────────────────────────────────────────
|
|
585
587
|
workspaceRoot: "/abs/path/to/repo", // escape hatch — skip findWorkspaceRoot() walk-up
|
|
586
|
-
}
|
|
588
|
+
})
|
|
587
589
|
```
|
|
588
590
|
|
|
589
|
-
All fields are optional. Anything you omit falls through to the built-in default for that field.
|
|
591
|
+
All fields are optional. Anything you omit falls through to the built-in default for that field. `defineConfig` is an identity helper — at runtime it just returns the object, but it gives editors full autocomplete and type-checking for `DotenvxConfig`. A plain `export default { … }` works too.
|
|
590
592
|
|
|
591
593
|
> **Note:** `schema`, `profiles`, and `resolvers` are TS/JS-only — JSON configs can't carry callable functions. A `package.json#envx.config` reference must point at a `.ts` / `.mts` / `.js` / `.mjs` / `.cjs` file to use them.
|
|
592
594
|
|
|
@@ -668,6 +670,7 @@ import {
|
|
|
668
670
|
expandEnvSrc,
|
|
669
671
|
|
|
670
672
|
// Config + path resolution
|
|
673
|
+
defineConfig,
|
|
671
674
|
loadDotenvxConfig,
|
|
672
675
|
findWorkspaceRoot,
|
|
673
676
|
resolveCwdOrWorkspace,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as isEncrypted, C as parseEnv, D as decryptValueAsymmetric, S as log, T as toRecord, _ as resolveCwdOrWorkspace, a as auditFiles, b as expandEnvSrc, c as encryptFiles, f as DEFAULT_NODE_ENV_MAP, g as loadEnv, h as listEnvFiles, l as defaultKeysPath, m as findWorkspaceRoot, o as rotateFiles, p as detectEnvironment, r as loadDotenvxConfig, s as decryptFiles, t as writeProcessed, u as readKeysFile, v as resolveEnvPaths, x as expandRecord, y as validateCmdVariable } from "./src-jaqb5pGP.js";
|
|
2
2
|
import * as fs from "fs";
|
|
3
3
|
import * as path from "path";
|
|
4
4
|
import yargs from "yargs";
|
|
@@ -1499,4 +1499,4 @@ function createCli(argvInput) {
|
|
|
1499
1499
|
//#endregion
|
|
1500
1500
|
export { createCli as t };
|
|
1501
1501
|
|
|
1502
|
-
//# sourceMappingURL=commands-
|
|
1502
|
+
//# sourceMappingURL=commands-Cg8YMJHj.js.map
|