feat(cli): add prisma create-db setup (#419)

This commit is contained in:
Aman Varshney
2025-07-23 23:35:28 +05:30
committed by GitHub
parent 2543c5317b
commit 0c26578e8e
15 changed files with 139 additions and 71 deletions

View File

@@ -7,7 +7,7 @@ export async function getAuthChoice(
auth: boolean | undefined,
hasDatabase: boolean,
backend?: Backend,
): Promise<boolean> {
) {
if (backend === "convex") {
return false;
}

View File

@@ -56,15 +56,11 @@ export async function getDBSetupChoice(
label: "Supabase",
hint: "Local Supabase stack (requires Docker)",
},
...(orm === "prisma"
? [
{
value: "prisma-postgres" as const,
label: "Prisma Postgres",
hint: "Instant Postgres for Global Applications",
},
]
: []),
{
value: "prisma-postgres" as const,
label: "Prisma Postgres",
hint: "Instant Postgres for Global Applications",
},
{
value: "docker" as const,
label: "Docker",

View File

@@ -2,7 +2,7 @@ import { cancel, confirm, isCancel } from "@clack/prompts";
import pc from "picocolors";
import { DEFAULT_CONFIG } from "../constants";
export async function getGitChoice(git?: boolean): Promise<boolean> {
export async function getGitChoice(git?: boolean) {
if (git !== undefined) return git;
const response = await confirm({

View File

@@ -2,7 +2,7 @@ import { cancel, confirm, isCancel } from "@clack/prompts";
import pc from "picocolors";
import { DEFAULT_CONFIG } from "../constants";
export async function getinstallChoice(install?: boolean): Promise<boolean> {
export async function getinstallChoice(install?: boolean) {
if (install !== undefined) return install;
const response = await confirm({