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,5 @@
---
"create-better-t-stack": patch
---
remove references from tsconfig when backend is none or convex

View File

@@ -15,7 +15,9 @@
"expo-env.d.ts",
"nativewind-env.d.ts"
],
{{#unless (or (eq backend "convex") (eq backend "none"))}}
"references": [{
"path": "../server"
}]
{{/unless}}
}

View File

@@ -9,7 +9,9 @@
}
},
"include": ["**/*.ts", "**/*.tsx", ".expo/types/**/*.ts", "expo-env.d.ts"],
{{#unless (or (eq backend "convex") (eq backend "none"))}}
"references": [{
"path": "../server"
}]
{{/unless}}
}

View File

@@ -1,7 +1,9 @@
{
// https://nuxt.com/docs/guide/concepts/typescript
"extends": "./.nuxt/tsconfig.json",
{{#unless (or (eq backend "convex") (eq backend "none"))}}
"references": [{
"path": "../server"
}]
{{/unless}}
}

View File

@@ -25,7 +25,9 @@
},
"include": ["./next-env.d.ts", "./**/*.ts", "./**/*.tsx", "./.next/types/**/*.ts"],
"exclude": ["./node_modules"],
{{#unless (or (eq backend "convex") (eq backend "none"))}}
"references": [{
"path": "../server"
}]
{{/unless}}
}

View File

@@ -24,7 +24,9 @@
"skipLibCheck": true,
"strict": true
},
{{#unless (or (eq backend "convex") (eq backend "none"))}}
"references": [{
"path": "../server"
}]
{{/unless}}
}

View File

@@ -15,7 +15,9 @@
"@/*": ["./src/*"]
}
},
{{#unless (or (eq backend "convex") (eq backend "none"))}}
"references": [{
"path": "../server"
}]
{{/unless}}
}

View File

@@ -25,7 +25,9 @@
"@/*": ["./src/*"]
}
},
{{#unless (or (eq backend "convex") (eq backend "none"))}}
"references": [{
"path": "../server"
}]
{{/unless}}
}

View File

@@ -26,7 +26,9 @@
"@/*": ["./src/*"]
}
},
{{#unless (or (eq backend "convex") (eq backend "none"))}}
"references": [{
"path": "../server"
}]
{{/unless}}
}

View File

@@ -11,9 +11,11 @@
"strict": true,
"moduleResolution": "bundler"
},
"references": [{
{{#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
//