zod-envkit 1.3.5 → 1.4.0
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/CHANGELOG.md +7 -0
- package/dist/cli/index.cjs +5 -0
- package/dist/cli/index.js +5 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [1.4.0](https://github.com/nxtxe/zod-envkit/compare/v1.3.5...v1.4.0) (2026-05-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **cli:** add --production flag scaffold for check command ([01f3a02](https://github.com/nxtxe/zod-envkit/commit/01f3a02cfba0b991e3403968848818d73e570e0b))
|
|
7
|
+
|
|
1
8
|
## [1.3.5](https://github.com/nxtxe/zod-envkit/compare/v1.3.4...v1.3.5) (2026-05-04)
|
|
2
9
|
|
|
3
10
|
|
package/dist/cli/index.cjs
CHANGED
|
@@ -636,6 +636,9 @@ async function loadSchemaFile(filePath, lang) {
|
|
|
636
636
|
// src/cli/commands/check.ts
|
|
637
637
|
function registerCheck(program2, getLang2) {
|
|
638
638
|
program2.command("check").description("Exit with code 1 if env is invalid (loads dotenv)").option("-c, --config <file>", "Path to env meta json", "env.meta.json").option("--dotenv <list>", "Comma-separated dotenv files (default: .env)", ".env").option("--strict", "Fail if unknown env vars are present (dotenv-only)").option(
|
|
639
|
+
"--production",
|
|
640
|
+
"Production guard: stricter deploy/CI checks (unknown dotenv keys, empty required, placeholders)"
|
|
641
|
+
).option(
|
|
639
642
|
"--schema <file>",
|
|
640
643
|
"Path to JS file exporting Zod object; run schema\u2194meta consistency check"
|
|
641
644
|
).option(
|
|
@@ -644,6 +647,8 @@ function registerCheck(program2, getLang2) {
|
|
|
644
647
|
"strict"
|
|
645
648
|
).action(async (opts) => {
|
|
646
649
|
const lang = getLang2();
|
|
650
|
+
const production = Boolean(opts.production);
|
|
651
|
+
void production;
|
|
647
652
|
const loaded = loadDotEnv(opts.dotenv);
|
|
648
653
|
const { meta } = loadMeta(lang, opts.config);
|
|
649
654
|
const sections = [];
|
package/dist/cli/index.js
CHANGED
|
@@ -415,6 +415,9 @@ async function loadSchemaFile(filePath, lang) {
|
|
|
415
415
|
// src/cli/commands/check.ts
|
|
416
416
|
function registerCheck(program2, getLang2) {
|
|
417
417
|
program2.command("check").description("Exit with code 1 if env is invalid (loads dotenv)").option("-c, --config <file>", "Path to env meta json", "env.meta.json").option("--dotenv <list>", "Comma-separated dotenv files (default: .env)", ".env").option("--strict", "Fail if unknown env vars are present (dotenv-only)").option(
|
|
418
|
+
"--production",
|
|
419
|
+
"Production guard: stricter deploy/CI checks (unknown dotenv keys, empty required, placeholders)"
|
|
420
|
+
).option(
|
|
418
421
|
"--schema <file>",
|
|
419
422
|
"Path to JS file exporting Zod object; run schema\u2194meta consistency check"
|
|
420
423
|
).option(
|
|
@@ -423,6 +426,8 @@ function registerCheck(program2, getLang2) {
|
|
|
423
426
|
"strict"
|
|
424
427
|
).action(async (opts) => {
|
|
425
428
|
const lang = getLang2();
|
|
429
|
+
const production = Boolean(opts.production);
|
|
430
|
+
void production;
|
|
426
431
|
const loaded = loadDotEnv(opts.dotenv);
|
|
427
432
|
const { meta } = loadMeta(lang, opts.config);
|
|
428
433
|
const sections = [];
|