create-kofi-stack 2.1.60 → 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.
- package/dist/index.js +1 -22
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -542,28 +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
|
-
|
|
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
|
-
}
|
|
545
|
+
p2.log.info("Using themed shadcn/ui configuration from templates");
|
|
567
546
|
}
|
|
568
547
|
spinner.start("Installing shadcn/ui components...");
|
|
569
548
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-kofi-stack",
|
|
3
|
-
"version": "2.1.
|
|
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.
|
|
20
|
-
"kofi-stack-types": "^2.1.
|
|
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",
|