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 {