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.
- package/bin/gencow.mjs +10 -3
- 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
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
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 ───────────────────────────────────────
|