@@ -69,6 +69,7 @@ const OptionsSchema = v.strictObject({
6969} ) ;
7070type Options = v . InferOutput < typeof OptionsSchema > ;
7171type ProjectPath = v . InferOutput < typeof ProjectPathSchema > ;
72+ const defaultPath = './' ;
7273
7374export const create = new Command ( 'create' )
7475 . description ( 'scaffolds a new SvelteKit project' )
@@ -149,7 +150,6 @@ async function createProject(cwd: ProjectPath, options: Options) {
149150 if ( cwd ) {
150151 return Promise . resolve ( path . resolve ( cwd ) ) ;
151152 }
152- const defaultPath = './' ;
153153 return p . text ( {
154154 message : 'Where would you like your project to be created?' ,
155155 placeholder : ` (hit Enter to use '${ defaultPath } ')` ,
@@ -307,7 +307,7 @@ async function createProject(cwd: ProjectPath, options: Options) {
307307
308308 if ( argsFormattedAddons . length > 0 ) argsFormatted . push ( '--add' , ...argsFormattedAddons ) ;
309309
310- common . logArgs ( packageManager , 'create' , argsFormatted , [ directory ] ) ;
310+ common . logArgs ( packageManager , 'create' , argsFormatted , [ cwd ?? defaultPath ] ) ;
311311
312312 await addPnpmBuildDependencies ( projectPath , packageManager , [ 'esbuild' ] ) ;
313313 if ( packageManager ) await installDependencies ( packageManager , projectPath ) ;
0 commit comments