mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
fix ts references when backend is none or convex
This commit is contained in:
5
.changeset/eleven-heads-open.md
Normal file
5
.changeset/eleven-heads-open.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"create-better-t-stack": patch
|
||||
---
|
||||
|
||||
remove references from tsconfig when backend is none or convex
|
||||
@@ -15,7 +15,9 @@
|
||||
"expo-env.d.ts",
|
||||
"nativewind-env.d.ts"
|
||||
],
|
||||
{{#unless (or (eq backend "convex") (eq backend "none"))}}
|
||||
"references": [{
|
||||
"path": "../server"
|
||||
}]
|
||||
{{/unless}}
|
||||
}
|
||||
@@ -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}}
|
||||
}
|
||||
@@ -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}}
|
||||
}
|
||||
@@ -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}}
|
||||
}
|
||||
@@ -24,7 +24,9 @@
|
||||
"skipLibCheck": true,
|
||||
"strict": true
|
||||
},
|
||||
{{#unless (or (eq backend "convex") (eq backend "none"))}}
|
||||
"references": [{
|
||||
"path": "../server"
|
||||
}]
|
||||
{{/unless}}
|
||||
}
|
||||
@@ -15,7 +15,9 @@
|
||||
"@/*": ["./src/*"]
|
||||
}
|
||||
},
|
||||
{{#unless (or (eq backend "convex") (eq backend "none"))}}
|
||||
"references": [{
|
||||
"path": "../server"
|
||||
}]
|
||||
{{/unless}}
|
||||
}
|
||||
@@ -25,7 +25,9 @@
|
||||
"@/*": ["./src/*"]
|
||||
}
|
||||
},
|
||||
{{#unless (or (eq backend "convex") (eq backend "none"))}}
|
||||
"references": [{
|
||||
"path": "../server"
|
||||
}]
|
||||
{{/unless}}
|
||||
}
|
||||
@@ -26,7 +26,9 @@
|
||||
"@/*": ["./src/*"]
|
||||
}
|
||||
},
|
||||
{{#unless (or (eq backend "convex") (eq backend "none"))}}
|
||||
"references": [{
|
||||
"path": "../server"
|
||||
}]
|
||||
{{/unless}}
|
||||
}
|
||||
@@ -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
|
||||
//
|
||||
Reference in New Issue
Block a user