mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
Rename database environment variables for consistency
This commit is contained in:
@@ -19,17 +19,17 @@ export async function getDatabaseChoice(
|
||||
{
|
||||
value: "sqlite",
|
||||
label: "SQLite",
|
||||
hint: "by Turso",
|
||||
hint: "lightweight, server-less, embedded relational database management system",
|
||||
},
|
||||
{
|
||||
value: "postgres",
|
||||
label: "PostgreSQL",
|
||||
hint: "Traditional relational database",
|
||||
hint: "powerful, open source object-relational database system",
|
||||
},
|
||||
{
|
||||
value: "mongodb",
|
||||
label: "MongoDB",
|
||||
hint: "NoSQL document-oriented database",
|
||||
hint: "open-source NoSQL database that stores data in JSON-like documents called BSON",
|
||||
},
|
||||
],
|
||||
initialValue: DEFAULT_CONFIG.database,
|
||||
|
||||
@@ -22,7 +22,7 @@ export async function getORMChoice(
|
||||
{
|
||||
value: "drizzle",
|
||||
label: "Drizzle",
|
||||
hint: "Type-safe, lightweight ORM",
|
||||
hint: "lightweight and performant TypeScript ORM",
|
||||
},
|
||||
{
|
||||
value: "prisma",
|
||||
|
||||
@@ -21,10 +21,7 @@ function validateDirectoryName(name: string): string | undefined {
|
||||
if (name.startsWith(".") || name.startsWith("-")) {
|
||||
return "Project name cannot start with a dot or dash";
|
||||
}
|
||||
if (
|
||||
name.toLowerCase() === "node_modules" ||
|
||||
name.toLowerCase() === "favicon.ico"
|
||||
) {
|
||||
if (name.toLowerCase() === "node_modules") {
|
||||
return "Project name is reserved";
|
||||
}
|
||||
return undefined;
|
||||
|
||||
Reference in New Issue
Block a user