@zedtech/zedkit-quality
Keep .env complete without overwriting local values
Copy `.env.example` on first run, then append missing keys only — existing values are never overwritten.
alpha
Usage
At a glance
- Who: Teams whose
.env.examplegains keys across pulls and whose local.envmust stay complete. - What: Copy
.env.exampleon first run, then append missing keys only — existing values are never overwritten. - Use when: At the start of
dev/buildso a new example key cannot silently fall back to a default. - Avoid when: When env files are generated another way (direnv, a secret manager, a deploy hook).
- See also: Fail CI when secrets are tracked
Install
pnpm add @zedtech/zedkit-qualityLatest: 1.1.0 (via changesets).
Example
// package.json
{
"scripts": {
"dev": "zedkit-sync-env && next dev"
}
}Wraps: (none)
Share one strict TypeScript base
One strict base (`strict`, exact optionals, unchecked indexed access, unused checks) every tsconfig extends.
Fail CI when build artifacts are tracked
Fail if tracked files match a parameterized artifact list, match `.gitignore` (including ignored-but-tracked, via `--no-index`), or exceed a size cap.