@@ -69,7 +69,6 @@ const OptionsSchema = v.strictObject({
6969} ) ;
7070type Options = v . InferOutput < typeof OptionsSchema > ;
7171type ProjectPath = v . InferOutput < typeof ProjectPathSchema > ;
72- const defaultPath = './' ;
7372
7473export const create = new Command ( 'create' )
7574 . description ( 'scaffolds a new SvelteKit project' )
@@ -147,8 +146,9 @@ async function createProject(cwd: ProjectPath, options: Options) {
147146 const { directory, template, language } = await p . group (
148147 {
149148 directory : ( ) => {
149+ const defaultPath = './' ;
150150 if ( cwd ) {
151- return Promise . resolve ( path . resolve ( cwd ) ) ;
151+ return Promise . resolve ( cwd ) ;
152152 }
153153 return p . text ( {
154154 message : 'Where would you like your project to be created?' ,
@@ -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 , [ cwd ?? defaultPath ] ) ;
310+ common . logArgs ( packageManager , 'create' , argsFormatted , [ directory ] ) ;
311311
312312 await addPnpmBuildDependencies ( projectPath , packageManager , [ 'esbuild' ] ) ;
313313 if ( packageManager ) await installDependencies ( packageManager , projectPath ) ;
0 commit comments