cli: organize file structure

This commit is contained in:
Aman Varshney
2025-05-26 00:13:08 +05:30
parent b9c9690e61
commit 1e9c6b2210
40 changed files with 900 additions and 928 deletions

View File

@@ -1,12 +1,12 @@
import { cancel, isCancel, select } from "@clack/prompts";
import pc from "picocolors";
import { DEFAULT_CONFIG } from "../constants";
import type { ProjectBackend, ProjectRuntime } from "../types";
import type { Backend, Runtime } from "../types";
export async function getRuntimeChoice(
runtime?: ProjectRuntime,
backend?: ProjectBackend,
): Promise<ProjectRuntime> {
runtime?: Runtime,
backend?: Backend,
): Promise<Runtime> {
if (backend === "convex" || backend === "none") {
return "none";
}
@@ -17,7 +17,7 @@ export async function getRuntimeChoice(
return "node";
}
const response = await select<ProjectRuntime>({
const response = await select<Runtime>({
message: "Select runtime",
options: [
{