Skip to content

fix: emit .ts import extensions in generated env configs - #23

Merged
flipvh merged 1 commit into
mainfrom
fix/generated-config-ts-extensions
Aug 11, 2026
Merged

flipvh merged 1 commit into
mainfrom
fix/generated-config-ts-extensions

Conversation

@flipvh

@flipvh flipvh commented Aug 11, 2026

Copy link
Copy Markdown
Member

Companion to cellajs/cella#1033, which adds explicit .ts extensions to all relative imports in shared/ (Vite 8's future-default 'native' config loader) and enforces them via Biome's useImportExtensions over shared/**.

generateEnvConfigs string-templates the import lines of shared/config/config.<mode>.ts, so without this change a freshly generated fork immediately fails the new lint rule and would break config loading once Vite flips the default loader.

Changes the three templated import strings (config-builder/types, config.default, config.development) to carry .ts, plus the matching test assertions. All 35 tests pass.

Should be released together with (or after) cellajs/cella#1033 landing in a cella release, per the known coupling between this generator and config.* shape changes.

🤖 Generated with Claude Code

cella now requires explicit .ts extensions on relative imports in shared/
(Vite 8 'native' config loader, enforced via Biome useImportExtensions —
cellajs/cella#1033). generateEnvConfigs string-templates the import lines
of shared/config/config.<mode>.ts, so freshly generated forks would fail
the new lint rule and break under the future-default native loader.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@flipvh
flipvh merged commit 86c8603 into main Aug 11, 2026
7 checks passed
@flipvh
flipvh deleted the fix/generated-config-ts-extensions branch August 11, 2026 09:16
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.

1 participant