create-kofi-stack 2.1.8 → 2.1.10

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 +9 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -495,6 +495,15 @@ async function generateProject(config, options = {}) {
495
495
  stdio: "pipe"
496
496
  });
497
497
  spinner.succeed("shadcn/ui initialized");
498
+ const tsconfigPath = path2.join(shadcnDir, "tsconfig.json");
499
+ if (await fs.pathExists(tsconfigPath)) {
500
+ const tsconfig = await fs.readJson(tsconfigPath);
501
+ tsconfig.compilerOptions = tsconfig.compilerOptions || {};
502
+ tsconfig.compilerOptions.paths = {
503
+ "@/*": ["./src/*"]
504
+ };
505
+ await fs.writeJson(tsconfigPath, tsconfig, { spaces: 2 });
506
+ }
498
507
  } catch {
499
508
  spinner.warn("Failed to initialize shadcn. Run manually in apps/web: pnpm dlx shadcn@latest init");
500
509
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-kofi-stack",
3
- "version": "2.1.8",
3
+ "version": "2.1.10",
4
4
  "description": "Scaffold opinionated full-stack projects with Next.js, Convex, Better-Auth, and more",
5
5
  "type": "module",
6
6
  "bin": {