bunkit-cli 1.2.0 → 1.2.1

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 +8 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -32092,14 +32092,18 @@ async function enhancedInitCommand(options = {}) {
32092
32092
  break;
32093
32093
  case "full":
32094
32094
  case "monorepo-nextjs":
32095
+ case "nextjs-monorepo":
32095
32096
  await buildFullPreset(projectPath, context);
32096
32097
  break;
32097
32098
  case "monorepo-bun":
32099
+ case "bun-monorepo":
32098
32100
  await buildMonorepoBunPreset(projectPath, context);
32099
32101
  break;
32100
32102
  case "enterprise-monorepo":
32101
32103
  await buildEnterprisePreset(projectPath, context);
32102
32104
  break;
32105
+ default:
32106
+ throw new Error(`Unknown preset: ${preset}. Valid presets are: minimal, nextjs, hono-api, bun-api, bun-fullstack, nextjs-monorepo, bun-monorepo, enterprise-monorepo`);
32103
32107
  }
32104
32108
  if (database && database !== "none") {
32105
32109
  const dbName = database === "postgres-drizzle" ? "PostgreSQL + Drizzle ORM" : database === "supabase" ? "Supabase (Client Only)" : database === "supabase-drizzle" ? "Supabase + Drizzle ORM" : database === "sqlite-drizzle" ? "SQLite + Drizzle ORM" : database;
@@ -32118,7 +32122,8 @@ async function enhancedInitCommand(options = {}) {
32118
32122
  s.message(`${source_default.cyan("\u2699\uFE0F")} Adding GitHub Actions CI/CD workflow...`);
32119
32123
  }
32120
32124
  s.stop(`${source_default.green("\u2705")} Project structure created successfully!`);
32121
- if (shouldInstall && preset !== "full") {
32125
+ const isMonorepoPreset = normalizedPreset === "nextjs-monorepo" || normalizedPreset === "bun-monorepo" || normalizedPreset === "enterprise-monorepo";
32126
+ if (shouldInstall && !isMonorepoPreset) {
32122
32127
  const additionalDeps = {};
32123
32128
  if (database && database !== "none") {
32124
32129
  Object.assign(additionalDeps, getDatabaseDependencies(database));
@@ -32140,10 +32145,10 @@ async function enhancedInitCommand(options = {}) {
32140
32145
  } else {
32141
32146
  await installDependencies(projectPath);
32142
32147
  }
32143
- } else if (shouldInstall && (normalizedPreset === "nextjs-monorepo" || normalizedPreset === "enterprise-monorepo")) {
32148
+ } else if (shouldInstall && isMonorepoPreset) {
32144
32149
  await installDependencies(projectPath);
32145
32150
  }
32146
- if (shouldInstall && uiLibrary === "shadcn" && (normalizedPreset === "nextjs" || normalizedPreset === "bun-fullstack" || normalizedPreset === "nextjs-monorepo" || normalizedPreset === "bun-monorepo" || normalizedPreset === "enterprise-monorepo")) {
32151
+ if (shouldInstall && uiLibrary === "shadcn" && (normalizedPreset === "nextjs" || normalizedPreset === "bun-fullstack" || isMonorepoPreset)) {
32147
32152
  const componentSpinner = Y2();
32148
32153
  componentSpinner.start(`${source_default.cyan("\uD83E\uDDE9")} Installing default shadcn/ui components (button, card)...`);
32149
32154
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bunkit-cli",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Beautiful CLI for creating production-ready Bun projects",
5
5
  "type": "module",
6
6
  "bin": {