organize code

This commit is contained in:
Aman Varshney
2025-02-20 19:14:28 +05:30
parent 9032a598d0
commit f804a9efda
16 changed files with 451 additions and 282 deletions

17
apps/cli/src/constants.ts Normal file
View File

@@ -0,0 +1,17 @@
import path from "node:path";
import { fileURLToPath } from "node:url";
import type { ProjectConfig } from "./types";
const __filename = fileURLToPath(import.meta.url);
const distPath = path.dirname(__filename);
export const PKG_ROOT = path.join(distPath, "../");
export const DEFAULT_CONFIG: ProjectConfig = {
projectName: "my-better-t-app",
database: "sqlite",
orm: "drizzle",
auth: true,
features: [],
git: true,
packageManager: "npm",
};