@@ -90,9 +90,9 @@ async function gatherConfig(
9090 message : "Which database would you like to use?" ,
9191 options : [
9292 {
93- value : "libsql " ,
94- label : "libSQL " ,
95- hint : "Turso's embedded SQLite database (recommended)" ,
93+ value : "sqlite " ,
94+ label : "SQLite " ,
95+ hint : "by Turso (recommended)" ,
9696 } ,
9797 {
9898 value : "postgres" ,
@@ -232,7 +232,8 @@ async function main() {
232232 . version ( getVersion ( ) )
233233 . argument ( "[project-directory]" , "Project name/directory" )
234234 . option ( "-y, --yes" , "Use default configuration" )
235- . option ( "--database <type>" , "Database type (libsql or postgres)" )
235+ . option ( "--sqlite" , "Use SQLite database" )
236+ . option ( "--postgres" , "Use PostgreSQL database" )
236237 . option ( "--auth" , "Include authentication" )
237238 . option ( "--no-auth" , "Exclude authentication" )
238239 . option ( "--docker" , "Include Docker setup" )
@@ -251,7 +252,11 @@ async function main() {
251252
252253 const flagConfig : Partial < ProjectConfig > = {
253254 projectName : projectDirectory || undefined ,
254- database : options . database as ProjectDatabase | undefined ,
255+ database : options . sqlite
256+ ? "sqlite"
257+ : options . postgres
258+ ? "postgres"
259+ : undefined ,
255260 auth : "auth" in options ? options . auth : undefined ,
256261 packageManager : options . npm
257262 ? "npm"
0 commit comments