mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-28 15:14:12 +00:00
feat(shadcn): use canary for create-next-app
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
@@ -457,7 +457,7 @@ function updateThemePlugin(cssVars: z.infer<typeof registryItemCssVarsSchema>) {
|
||||
}
|
||||
themeNode?.append(cssVarNode)
|
||||
}
|
||||
break
|
||||
continue
|
||||
}
|
||||
|
||||
let prop =
|
||||
|
||||
Reference in New Issue
Block a user