From 6f6f96bd2786ff4bd57065115c92be8eb9123a71 Mon Sep 17 00:00:00 2001 From: praboth-mbp Date: Fri, 30 Jan 2026 22:42:37 +0530 Subject: [PATCH 1/2] fix: add automated shadcn init to properly configure CSS - Run 'shadcn init' automatically after dependencies are installed - Ensures components.json and CSS variables are properly set up - Applies to both 'shadcn' and 'both' UI options - Uses --yes and --defaults flags for consistent configuration - Fixes issue where CSS wasn't applied when creating projects with shadcn --- src/scaffold.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/scaffold.ts b/src/scaffold.ts index 4484210..ef87c52 100644 --- a/src/scaffold.ts +++ b/src/scaffold.ts @@ -246,6 +246,23 @@ export const scaffoldProject = async ( ); playwrightSpinner.succeed("Playwright browsers installed"); } + + if (config.ui === "shadcn" || config.ui === "both") { + const shadcnSpinner = ora("Initializing Shadcn UI...").start(); + const dlx = getDlxCommand(pm); + await runCommand( + dlx.command, + [ + ...dlx.args, + "shadcn@latest", + "init", + "--yes", + "--defaults", + ], + projectPath + ); + shadcnSpinner.succeed("Shadcn UI initialized"); + } } catch (error) { spinner.fail("Installation failed"); console.log(chalk.red("\nError:"), error); From 240535f881c2e3a7834687c71e1d39d986af6acb Mon Sep 17 00:00:00 2001 From: praboth charith Date: Fri, 30 Jan 2026 22:56:05 +0530 Subject: [PATCH 2/2] Bump version from 2.1.4 to 2.1.5 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2445e9b..42d6324 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nxt-gen-cli", - "version": "2.1.4", + "version": "2.1.5", "description": "The ultimate Next.js scaffold CLI generator. Customize your stack with Prisma, React Query, Shadcn, HeroUI, and more in seconds.", "main": "dist/index.js", "type": "module",