gencow 0.1.96 → 0.1.97

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/bin/gencow.mjs +10 -3
  2. package/package.json +1 -1
package/bin/gencow.mjs CHANGED
@@ -1480,9 +1480,16 @@ ${hasPrompt ? `
1480
1480
  const config = loadConfig();
1481
1481
  log(`\n${BOLD}${CYAN}Gencow DB Generate${RESET}\n`);
1482
1482
  info("Generating migration files from schema.ts...");
1483
- runInServer("pnpm db:generate", buildEnv(config));
1484
- success("Migration files generated in migrations/");
1485
- log(` ${DIM}Run 'gencow db:migrate' to apply, or let the server apply on startup${RESET}\n`);
1483
+ if (isMonorepo()) {
1484
+ runInServer("pnpm db:generate", buildEnv(config));
1485
+ } else {
1486
+ // Standalone: npx drizzle-kit generate (프롬프트 패스스루)
1487
+ execSync("npx drizzle-kit generate", {
1488
+ cwd: process.cwd(),
1489
+ stdio: "inherit",
1490
+ });
1491
+ }
1492
+ success("Migration files generated in gencow/migrations/");
1486
1493
  },
1487
1494
 
1488
1495
  // ── db:migrate ───────────────────────────────────────
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gencow",
3
- "version": "0.1.96",
3
+ "version": "0.1.97",
4
4
  "description": "Gencow — AI Backend Engine",
5
5
  "type": "module",
6
6
  "bin": {