Skip to content

chore(void): remove dead ENV_FILE_CANDIDATES constant - #242

Merged
Brooooooklyn merged 1 commit into
mainfrom
07-02-chore_void_remove_dead_env_file_candidates_constant
Jul 2, 2026
Merged

Brooooooklyn merged 1 commit into
mainfrom
07-02-chore_void_remove_dead_env_file_candidates_constant

Conversation

@shulaoda

@shulaoda shulaoda commented Jul 1, 2026

Copy link
Copy Markdown
Member

What

This removes the exported ENV_FILE_CANDIDATES constant from packages/void/src/codegen/env-types.ts.

Why

The constant is a stale duplicate. ENV_FILE_CANDIDATES is never referenced anywhere in the monorepo. The env schema file lookup uses paths.envFileCandidates, which project-paths.ts builds from its own ENV_CONFIG_FILES source of truth, and env-types.ts already iterates paths.envFileCandidates in its own function. The top level constant is a leftover copy that even its own file does not use.

Safety

There is no behavior change. The constant had no readers, and removing it orphans no imports because it was a plain array literal. The rest of env-types.ts is untouched.

Verification

There are zero references to ENV_FILE_CANDIDATES across packages including tests. The void package typechecks cleanly with tsgo and passes oxlint. The change removes 13 lines.

@Brooooooklyn
Brooooooklyn merged commit a0b17ac into main Jul 2, 2026
6 checks passed
@Brooooooklyn
Brooooooklyn deleted the 07-02-chore_void_remove_dead_env_file_candidates_constant branch July 2, 2026 02:04
cpojer pushed a commit that referenced this pull request Sep 11, 2026
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants