diff --git a/.changeset/nine-steaks-rule.md b/.changeset/nine-steaks-rule.md new file mode 100644 index 0000000000..08b9c10721 --- /dev/null +++ b/.changeset/nine-steaks-rule.md @@ -0,0 +1,5 @@ +--- +"shadcn": minor +--- + +add Next.js 16 support for init command diff --git a/packages/shadcn/src/commands/init.ts b/packages/shadcn/src/commands/init.ts index eed354146b..2832c3297b 100644 --- a/packages/shadcn/src/commands/init.ts +++ b/packages/shadcn/src/commands/init.ts @@ -80,7 +80,8 @@ export const initOptionsSchema = z.object({ return true }, { - message: "Invalid template. Please use 'next' or 'next-monorepo'.", + message: + "Invalid template. Please use 'next', 'next-16' or 'next-monorepo'.", } ), baseColor: z @@ -109,7 +110,7 @@ export const init = new Command() .argument("[components...]", "names, url or local path to component") .option( "-t, --template