feat(shadcn): use canary for create-next-app

This commit is contained in:
shadcn
2025-02-14 00:21:42 +04:00
parent 592ef33658
commit f37425bdb0
2 changed files with 6 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ export async function createProject(
let projectType: "next" | "monorepo" = "next"
let projectName: string = "my-app"
let nextVersion = "15.1.0"
let nextVersion = "canary"
const isRemoteComponent =
options.components?.length === 1 &&
@@ -159,7 +159,10 @@ async function createNextProject(
`--use-${options.packageManager}`,
]
if (options.version.startsWith("15")) {
if (
options.version.startsWith("15") ||
options.version.startsWith("canary")
) {
args.push("--turbopack")
}

View File

@@ -457,7 +457,7 @@ function updateThemePlugin(cssVars: z.infer<typeof registryItemCssVarsSchema>) {
}
themeNode?.append(cssVarNode)
}
break
continue
}
let prop =