tsconfig: fix env types by not overriding include
Let .svelte-kit/tsconfig.json handle includes so ambient.d.ts with $env types is properly included. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
39b1ed9f64
commit
b32963b9a6
1 changed files with 3 additions and 2 deletions
|
|
@ -26,7 +26,8 @@
|
||||||
|
|
||||||
// Avoid "paths" here—SvelteKit manages them via svelte.config.js -> kit.alias
|
// Avoid "paths" here—SvelteKit manages them via svelte.config.js -> kit.alias
|
||||||
// Adding "paths" would override $app/* & $lib/* from the generated config.
|
// Adding "paths" would override $app/* & $lib/* from the generated config.
|
||||||
},
|
}
|
||||||
|
|
||||||
"include": ["src/**/*.svelte", "src/**/*.ts", "src/**/*.d.ts"]
|
// Note: Don't override "include" here - let .svelte-kit/tsconfig.json handle it
|
||||||
|
// so that ambient.d.ts (which contains $env types) is properly included
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue