create-kofi-stack 2.1.59 → 2.1.61

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 +1 -48
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -542,54 +542,7 @@ async function generateProject(config, options = {}) {
542
542
  }
543
543
  const shadcnDir = config.structure === "monorepo" ? path2.join(config.targetDir, "apps/web") : config.targetDir;
544
544
  if (config.structure === "monorepo") {
545
- spinner.start("Initializing shadcn/ui in apps/web...");
546
- try {
547
- await execa("pnpm", ["dlx", "shadcn@latest", "init", "--yes", "--force", "--base-color", baseColor], {
548
- cwd: shadcnDir,
549
- stdio: "pipe"
550
- });
551
- spinner.succeed("shadcn/ui initialized");
552
- const tsconfigPath = path2.join(shadcnDir, "tsconfig.json");
553
- if (await fs.pathExists(tsconfigPath)) {
554
- const tsconfig = await fs.readJson(tsconfigPath);
555
- tsconfig.compilerOptions = tsconfig.compilerOptions || {};
556
- tsconfig.compilerOptions.paths = {
557
- "@/*": ["./src/*"]
558
- };
559
- await fs.writeJson(tsconfigPath, tsconfig, { spaces: 2 });
560
- }
561
- } catch (error) {
562
- spinner.warn("Failed to initialize shadcn. Run manually in apps/web: pnpm dlx shadcn@latest init");
563
- if (error.stderr) {
564
- console.log(pc2.dim(` Error: ${error.stderr}`));
565
- }
566
- }
567
- if (config.marketingSite === "nextjs" || config.marketingSite === "payload") {
568
- const marketingDir = path2.join(config.targetDir, "apps/marketing");
569
- spinner.start("Initializing shadcn/ui in apps/marketing...");
570
- try {
571
- await execa("pnpm", ["dlx", "shadcn@latest", "init", "--yes", "--force", "--base-color", baseColor], {
572
- cwd: marketingDir,
573
- stdio: "pipe"
574
- });
575
- spinner.succeed("shadcn/ui initialized in marketing app");
576
- const marketingTsconfigPath = path2.join(marketingDir, "tsconfig.json");
577
- if (await fs.pathExists(marketingTsconfigPath)) {
578
- const tsconfig = await fs.readJson(marketingTsconfigPath);
579
- tsconfig.compilerOptions = tsconfig.compilerOptions || {};
580
- tsconfig.compilerOptions.paths = {
581
- "@payload-config": ["./src/payload.config.ts"],
582
- "@/*": ["./src/*"]
583
- };
584
- await fs.writeJson(marketingTsconfigPath, tsconfig, { spaces: 2 });
585
- }
586
- } catch (error) {
587
- spinner.warn("Failed to initialize shadcn in marketing app. Run manually: pnpm dlx shadcn@latest init");
588
- if (error.stderr) {
589
- console.log(pc2.dim(` Error: ${error.stderr}`));
590
- }
591
- }
592
- }
545
+ p2.log.info("Using themed shadcn/ui configuration from templates");
593
546
  }
594
547
  spinner.start("Installing shadcn/ui components...");
595
548
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-kofi-stack",
3
- "version": "2.1.59",
3
+ "version": "2.1.61",
4
4
  "description": "Scaffold opinionated full-stack projects with Next.js, Convex, Better-Auth, and more",
5
5
  "type": "module",
6
6
  "bin": {
@@ -16,8 +16,8 @@
16
16
  "typecheck": "tsc --noEmit"
17
17
  },
18
18
  "dependencies": {
19
- "kofi-stack-template-generator": "^2.1.59",
20
- "kofi-stack-types": "^2.1.59",
19
+ "kofi-stack-template-generator": "^2.1.61",
20
+ "kofi-stack-types": "^2.1.61",
21
21
  "@clack/prompts": "^0.7.0",
22
22
  "commander": "^12.0.0",
23
23
  "execa": "^8.0.0",