add auth, drizzle, prisma setup logic with template

This commit is contained in:
Aman Varshney
2025-03-04 09:33:31 +05:30
parent 54d63823bb
commit 792885b9c4
68 changed files with 2692 additions and 921 deletions

View File

@@ -1,15 +1,15 @@
import { cancel, isCancel, select } from "@clack/prompts";
import pc from "picocolors";
import type { ProjectORM } from "../types";
import type { ProjectOrm } from "../types";
export async function getORMChoice(
orm: ProjectORM | undefined,
orm: ProjectOrm | undefined,
hasDatabase: boolean,
): Promise<ProjectORM> {
): Promise<ProjectOrm> {
if (!hasDatabase) return "none";
if (orm !== undefined) return orm;
const response = await select<ProjectORM>({
const response = await select<ProjectOrm>({
message: "Which ORM would you like to use?",
options: [
{