create-kofi-stack 2.1.18 → 2.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +24 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -490,11 +490,11 @@ async function generateProject(config, options = {}) {
490
490
  if (config.structure === "monorepo") {
491
491
  spinner.start("Initializing shadcn/ui in apps/web...");
492
492
  try {
493
- await execa("pnpm", ["dlx", "shadcn@latest", "init", "--defaults", "--force"], {
493
+ await execa("pnpm", ["dlx", "shadcn@latest", "init", "--yes", "--force", "--preset", presetUrl], {
494
494
  cwd: shadcnDir,
495
495
  stdio: "pipe"
496
496
  });
497
- spinner.succeed("shadcn/ui initialized");
497
+ spinner.succeed("shadcn/ui initialized with custom theme");
498
498
  const tsconfigPath = path2.join(shadcnDir, "tsconfig.json");
499
499
  if (await fs.pathExists(tsconfigPath)) {
500
500
  const tsconfig = await fs.readJson(tsconfigPath);
@@ -507,6 +507,28 @@ async function generateProject(config, options = {}) {
507
507
  } catch {
508
508
  spinner.warn("Failed to initialize shadcn. Run manually in apps/web: pnpm dlx shadcn@latest init");
509
509
  }
510
+ if (config.marketingSite === "nextjs") {
511
+ const marketingDir = path2.join(config.targetDir, "apps/marketing");
512
+ spinner.start("Initializing shadcn/ui in apps/marketing...");
513
+ try {
514
+ await execa("pnpm", ["dlx", "shadcn@latest", "init", "--yes", "--force", "--preset", presetUrl], {
515
+ cwd: marketingDir,
516
+ stdio: "pipe"
517
+ });
518
+ spinner.succeed("shadcn/ui initialized in marketing app");
519
+ const marketingTsconfigPath = path2.join(marketingDir, "tsconfig.json");
520
+ if (await fs.pathExists(marketingTsconfigPath)) {
521
+ const tsconfig = await fs.readJson(marketingTsconfigPath);
522
+ tsconfig.compilerOptions = tsconfig.compilerOptions || {};
523
+ tsconfig.compilerOptions.paths = {
524
+ "@/*": ["./src/*"]
525
+ };
526
+ await fs.writeJson(marketingTsconfigPath, tsconfig, { spaces: 2 });
527
+ }
528
+ } catch {
529
+ spinner.warn("Failed to initialize shadcn in marketing app. Run manually: pnpm dlx shadcn@latest init");
530
+ }
531
+ }
510
532
  }
511
533
  spinner.start("Installing shadcn/ui components...");
512
534
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-kofi-stack",
3
- "version": "2.1.18",
3
+ "version": "2.1.20",
4
4
  "description": "Scaffold opinionated full-stack projects with Next.js, Convex, Better-Auth, and more",
5
5
  "type": "module",
6
6
  "bin": {
@@ -16,7 +16,7 @@
16
16
  "typecheck": "tsc --noEmit"
17
17
  },
18
18
  "dependencies": {
19
- "kofi-stack-template-generator": "^2.1.16",
19
+ "kofi-stack-template-generator": "^2.1.18",
20
20
  "kofi-stack-types": "^2.1.0",
21
21
  "@clack/prompts": "^0.7.0",
22
22
  "commander": "^12.0.0",