From cc86750dfb15bb33491bd881fec48d58bdf3651a Mon Sep 17 00:00:00 2001 From: shadcn Date: Fri, 27 Feb 2026 09:30:06 +0400 Subject: [PATCH] fix: bugs --- packages/shadcn/src/commands/init.ts | 3 ++- packages/shadcn/src/utils/updaters/update-fonts.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/shadcn/src/commands/init.ts b/packages/shadcn/src/commands/init.ts index 28e6e2e002..dc16731b5c 100644 --- a/packages/shadcn/src/commands/init.ts +++ b/packages/shadcn/src/commands/init.ts @@ -305,9 +305,10 @@ export const init = new Command() } } - // Prompt for monorepo if the template supports it. + // Prompt for monorepo if the template supports it (new projects only). if ( options.monorepo === undefined && + !hasPackageJson && options.template && templates[options.template as keyof typeof templates]?.monorepo ) { diff --git a/packages/shadcn/src/utils/updaters/update-fonts.ts b/packages/shadcn/src/utils/updaters/update-fonts.ts index 24a1057d64..a8df0aed9d 100644 --- a/packages/shadcn/src/utils/updaters/update-fonts.ts +++ b/packages/shadcn/src/utils/updaters/update-fonts.ts @@ -118,7 +118,7 @@ async function updateNextFonts( } } -async function findLayoutFile( +export async function findLayoutFile( config: Config, projectInfo: ProjectInfo ): Promise {