Squash merge beta into main

This commit is contained in:
Aman Varshney
2025-04-19 17:30:59 +05:30
parent 724d32b913
commit 0de49d4e45
27 changed files with 113 additions and 130 deletions

View File

@@ -4,10 +4,10 @@ import { DEFAULT_CONFIG } from "../constants";
import type { ProjectAddons, ProjectFrontend } from "../types";
export async function getAddonsChoice(
Addons?: ProjectAddons[],
addons?: ProjectAddons[],
frontends?: ProjectFrontend[],
): Promise<ProjectAddons[]> {
if (Addons !== undefined) return Addons;
if (addons !== undefined) return addons;
const hasCompatibleWebFrontend =
frontends?.includes("react-router") ||
@@ -50,7 +50,7 @@ export async function getAddonsChoice(
];
const options = hasCompatibleWebFrontend
? [...webAddonOptions, ...addonOptions]
? [...addonOptions, ...webAddonOptions]
: addonOptions;
const initialValues = DEFAULT_CONFIG.addons.filter(

View File

@@ -22,11 +22,6 @@ export async function getApiChoice(
label: "oRPC",
hint: "End-to-end type-safe APIs that adhere to OpenAPI standards",
},
{
value: "none" as const,
label: "None",
hint: "No API integration (skip API setup)",
},
];
if (includesNative) {

View File

@@ -1,7 +1,6 @@
import { cancel, confirm, isCancel, log } from "@clack/prompts";
import { cancel, confirm, isCancel } from "@clack/prompts";
import pc from "picocolors";
import { DEFAULT_CONFIG } from "../constants";
import type { ProjectFrontend } from "../types";
export async function getAuthChoice(
auth: boolean | undefined,

View File

@@ -19,7 +19,7 @@ export async function getDatabaseChoice(
{
value: "sqlite",
label: "SQLite",
hint: "lightweight, server-less, embedded relational database management system",
hint: "lightweight, server-less, embedded relational database",
},
{
value: "postgres",

View File

@@ -2,6 +2,7 @@ import { cancel, isCancel, multiselect } from "@clack/prompts";
import pc from "picocolors";
import { DEFAULT_CONFIG } from "../constants";
import type {
ProjectApi,
ProjectBackend,
ProjectDatabase,
ProjectExamples,