@super-repo/envx 0.3.1-b.0 → 0.3.1-b.1
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/auto.js +1 -1
- package/dist/chunks/{commands-CM1kuJZT.js → commands-CR4KPDCI.js} +8 -2
- package/dist/chunks/{commands-CM1kuJZT.js.map → commands-CR4KPDCI.js.map} +1 -1
- package/dist/chunks/{src-B_rA7_sV.js → src-BM4EdT3z.js} +2 -2
- package/dist/chunks/{src-B_rA7_sV.js.map → src-BM4EdT3z.js.map} +1 -1
- package/dist/chunks/{src-BeMTu_ms.js → src-Ln2uXfYC.js} +0 -0
- package/dist/chunks/src-Ln2uXfYC.js.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/commands/index.js +1 -1
- package/dist/commands/template.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/docs/template.md +26 -0
- package/package.json +2 -2
- package/dist/chunks/src-BeMTu_ms.js.map +0 -1
package/dist/auto.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-Ln2uXfYC.js";
|
|
2
2
|
import * as fs from "fs";
|
|
3
3
|
import * as path from "path";
|
|
4
4
|
import yargs from "yargs";
|
|
@@ -1350,6 +1350,10 @@ var templateCommand = {
|
|
|
1350
1350
|
type: "boolean",
|
|
1351
1351
|
default: false,
|
|
1352
1352
|
describe: "Compare the rendered template against the on-disk file; exit 1 on drift. Use this in CI."
|
|
1353
|
+
}).option("env-keys-file", {
|
|
1354
|
+
alias: "fk",
|
|
1355
|
+
type: "string",
|
|
1356
|
+
describe: "Path to the .env.keys file (default: cwd-first then workspace-root walk-up). Pass when --ai is set and your env files live in a subdir like vault/ while .env.keys is at the workspace root."
|
|
1353
1357
|
}).option("ai", {
|
|
1354
1358
|
type: "boolean",
|
|
1355
1359
|
default: false,
|
|
@@ -1385,6 +1389,7 @@ var templateCommand = {
|
|
|
1385
1389
|
}
|
|
1386
1390
|
let aiValues = /* @__PURE__ */ new Map();
|
|
1387
1391
|
if (useAi) {
|
|
1392
|
+
const envKeysFileArg = argv["env-keys-file"] ?? cfg.envKeysFile;
|
|
1388
1393
|
try {
|
|
1389
1394
|
loadEnv({
|
|
1390
1395
|
envFiles: argv["env"],
|
|
@@ -1393,6 +1398,7 @@ var templateCommand = {
|
|
|
1393
1398
|
envPath: argv["env-path"],
|
|
1394
1399
|
override: argv["override"],
|
|
1395
1400
|
quiet: true,
|
|
1401
|
+
...envKeysFileArg !== void 0 ? { envKeysFile: envKeysFileArg } : {},
|
|
1396
1402
|
...cfg.autoDetect !== void 0 ? { autoDetect: cfg.autoDetect } : {},
|
|
1397
1403
|
...cfg.nodeEnvMap !== void 0 ? { nodeEnvMap: cfg.nodeEnvMap } : {},
|
|
1398
1404
|
...cfg.workspaceRoot !== void 0 ? { workspaceRoot: cfg.workspaceRoot } : {},
|
|
@@ -1875,4 +1881,4 @@ function createCli(argvInput) {
|
|
|
1875
1881
|
//#endregion
|
|
1876
1882
|
export { createCli as t };
|
|
1877
1883
|
|
|
1878
|
-
//# sourceMappingURL=commands-
|
|
1884
|
+
//# sourceMappingURL=commands-CR4KPDCI.js.map
|