create-kofi-stack 2.1.24 → 2.1.26

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 +11 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -525,15 +525,15 @@ async function generateProject(config, options = {}) {
525
525
  } catch {
526
526
  spinner.warn("Failed to initialize shadcn. Run manually in apps/web: pnpm dlx shadcn@latest init");
527
527
  }
528
- if (config.marketingSite === "nextjs") {
528
+ if (config.marketingSite === "nextjs" || config.marketingSite === "payload") {
529
529
  const marketingDir = path2.join(config.targetDir, "apps/marketing");
530
- spinner.start("Initializing shadcn/ui in apps/marketing...");
530
+ spinner.start("Initializing shadcn/ui theme in apps/marketing...");
531
531
  try {
532
532
  await execa("pnpm", ["dlx", "shadcn@latest", "init", "--yes", "--force", "--preset", presetUrl], {
533
533
  cwd: marketingDir,
534
534
  stdio: "pipe"
535
535
  });
536
- spinner.succeed("shadcn/ui initialized in marketing app");
536
+ spinner.succeed("shadcn/ui theme initialized in marketing app");
537
537
  const marketingTsconfigPath = path2.join(marketingDir, "tsconfig.json");
538
538
  if (await fs.pathExists(marketingTsconfigPath)) {
539
539
  const tsconfig = await fs.readJson(marketingTsconfigPath);
@@ -544,7 +544,7 @@ async function generateProject(config, options = {}) {
544
544
  await fs.writeJson(marketingTsconfigPath, tsconfig, { spaces: 2 });
545
545
  }
546
546
  } catch {
547
- spinner.warn("Failed to initialize shadcn in marketing app. Run manually: pnpm dlx shadcn@latest init");
547
+ spinner.warn("Failed to initialize shadcn theme in marketing app. Run manually: pnpm dlx shadcn@latest init");
548
548
  }
549
549
  }
550
550
  }
@@ -666,6 +666,13 @@ async function setupResend(config, backendEnvPath) {
666
666
  RESEND_API_KEY: apiKey,
667
667
  RESEND_FROM_EMAIL: fromEmail
668
668
  });
669
+ if (config.marketingSite === "payload") {
670
+ const marketingEnvPath = path2.join(config.targetDir, "apps/marketing/.env.local");
671
+ await updateEnvWithSecrets(marketingEnvPath, {
672
+ RESEND_API_KEY: apiKey,
673
+ RESEND_FROM_EMAIL: fromEmail
674
+ });
675
+ }
669
676
  p2.log.success("Resend configured successfully!");
670
677
  }
671
678
  async function setupPayload(config) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-kofi-stack",
3
- "version": "2.1.24",
3
+ "version": "2.1.26",
4
4
  "description": "Scaffold opinionated full-stack projects with Next.js, Convex, Better-Auth, and more",
5
5
  "type": "module",
6
6
  "bin": {