make backend optional

This commit is contained in:
Aman Varshney
2025-05-07 08:31:54 +05:30
parent af1e8efbdc
commit d09a284ce7
11 changed files with 116 additions and 25 deletions

View File

@@ -1,4 +1,4 @@
import { cancel, isCancel, log, multiselect } from "@clack/prompts";
import { cancel, isCancel, multiselect } from "@clack/prompts";
import pc from "picocolors";
import { DEFAULT_CONFIG } from "../constants";
import type {
@@ -20,6 +20,10 @@ export async function getExamplesChoice(
return ["todo"];
}
if (backend === "none") {
return [];
}
if (database === "none") return [];
const onlyNative =