mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
fix zod v4
This commit is contained in:
@@ -24,6 +24,11 @@ export async function setupExamples(config: ProjectConfig): Promise<void> {
|
||||
|
||||
const hasNuxt = frontend.includes("nuxt");
|
||||
const hasSvelte = frontend.includes("svelte");
|
||||
const hasReact =
|
||||
frontend.includes("react-router") ||
|
||||
frontend.includes("tanstack-router") ||
|
||||
frontend.includes("next") ||
|
||||
frontend.includes("tanstack-start");
|
||||
|
||||
if (clientDirExists) {
|
||||
const dependencies: AvailableDependencies[] = ["ai"];
|
||||
@@ -31,7 +36,8 @@ export async function setupExamples(config: ProjectConfig): Promise<void> {
|
||||
dependencies.push("@ai-sdk/vue");
|
||||
} else if (hasSvelte) {
|
||||
dependencies.push("@ai-sdk/svelte");
|
||||
} else {
|
||||
} else if (hasReact) {
|
||||
dependencies.push("@ai-sdk/react");
|
||||
}
|
||||
await addPackageDependency({
|
||||
dependencies,
|
||||
|
||||
Reference in New Issue
Block a user