mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
feat(cli): add prisma create-db setup (#419)
This commit is contained in:
@@ -7,7 +7,7 @@ export async function getAuthChoice(
|
||||
auth: boolean | undefined,
|
||||
hasDatabase: boolean,
|
||||
backend?: Backend,
|
||||
): Promise<boolean> {
|
||||
) {
|
||||
if (backend === "convex") {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user