fix ts references when backend is none or convex

This commit is contained in:
Aman Varshney
2025-05-12 13:36:05 +05:30
parent 7227696dec
commit 484095157d
10 changed files with 24 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
{
"extends": "./.svelte-kit/tsconfig.json",
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"moduleResolution": "bundler"
},
{{#unless (or (eq backend "convex") (eq backend "none"))}}
"references": [{
"path": "../server"
}]
{{/unless}}
// Path aliases are handled by https://svelte.dev/docs/kit/configuration#alias
// except $lib which is handled by https://svelte.dev/docs/kit/configuration#files
//
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
// from the referenced tsconfig.json - TypeScript does not merge them in
}