diff --git a/tsconfig.json b/tsconfig.json index 40eb71f2..bbc6c9df 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -26,7 +26,8 @@ // Avoid "paths" here—SvelteKit manages them via svelte.config.js -> kit.alias // 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 }