Add runtime selection feature between Bun and Node.js

This commit is contained in:
Aman Varshney
2025-03-26 01:40:39 +05:30
parent 45cd2fc113
commit 88afd53a4d
22 changed files with 10432 additions and 224 deletions

View File

@@ -12,10 +12,13 @@ export const DEFAULT_CONFIG: ProjectConfig = {
orm: "drizzle",
auth: true,
addons: [],
examples: [],
git: true,
packageManager: "npm",
noInstall: false,
examples: ["todo"],
turso: false,
backendFramework: "hono",
runtime: "bun",
};
export const dependencyVersionMap = {
@@ -39,6 +42,12 @@ export const dependencyVersionMap = {
husky: "^9.1.7",
"lint-staged": "^15.5.0",
"@hono/node-server": "^1.14.0",
tsx: "^4.19.2",
"@types/node": "^22.13.11",
"@types/bun": "^1.2.6",
} as const;
export type AvailableDependencies = keyof typeof dependencyVersionMap;