Description
Allow the schema filename to be something other than .env.schema — via an env var, a package.json field, or a config key.
Motivation
Coding agents are commonly sandboxed with a deny rule on .env* so they can't read secret-bearing dotenv files. That rule catches .env.schema too, even though it's committed and holds no values — so the agent can't read or edit the one file it's most useful for it to maintain.
Proposed Solution
No preference on mechanism.
Alternatives
Naming the real file .env-schema and symlinking .env.schema to it. Works, but the symlink has to be explained to everyone who sees it.
--path .env-schema also appears to work, but only applies to that one call site — anything else running varlock load sees no schema.
Description
Allow the schema filename to be something other than
.env.schema— via an env var, apackage.jsonfield, or a config key.Motivation
Coding agents are commonly sandboxed with a deny rule on
.env*so they can't read secret-bearing dotenv files. That rule catches.env.schematoo, even though it's committed and holds no values — so the agent can't read or edit the one file it's most useful for it to maintain.Proposed Solution
No preference on mechanism.
Alternatives
Naming the real file
.env-schemaand symlinking.env.schemato it. Works, but the symlink has to be explained to everyone who sees it.--path .env-schemaalso appears to work, but only applies to that one call site — anything else runningvarlock loadsees no schema.