@@ -463,7 +463,7 @@ export async function createApp(
463463 await environment . execute (
464464 addOn . command . command ,
465465 addOn . command . args || [ ] ,
466- targetDir ,
466+ resolve ( targetDir ) ,
467467 )
468468 }
469469
@@ -488,7 +488,7 @@ export async function createApp(
488488 await environment . execute (
489489 'npx' ,
490490 [ 'shadcn@canary' , 'add' , ...shadcnComponents ] ,
491- targetDir ,
491+ resolve ( targetDir ) ,
492492 )
493493 s ?. stop ( `Installed additional shadcn components` )
494494 }
@@ -658,7 +658,11 @@ export async function createApp(
658658
659659 // Install dependencies
660660 s ?. start ( `Installing dependencies via ${ options . packageManager } ...` )
661- await environment . execute ( options . packageManager , [ 'install' ] , targetDir )
661+ await environment . execute (
662+ options . packageManager ,
663+ [ 'install' ] ,
664+ resolve ( targetDir ) ,
665+ )
662666 s ?. stop ( `Installed dependencies` )
663667
664668 if ( warnings . length > 0 ) {
@@ -675,14 +679,14 @@ export async function createApp(
675679 await environment . execute (
676680 options . packageManager ,
677681 [ 'run' , 'check' , '--fix' ] ,
678- targetDir ,
682+ resolve ( targetDir ) ,
679683 )
680684 break
681685 default :
682686 await environment . execute (
683687 options . packageManager ,
684688 [ 'run' , 'check' , '--' , '--fix' ] ,
685- targetDir ,
689+ resolve ( targetDir ) ,
686690 )
687691 break
688692 }
@@ -691,7 +695,7 @@ export async function createApp(
691695
692696 if ( options . git ) {
693697 s ?. start ( `Initializing git repository...` )
694- await environment . execute ( 'git' , [ 'init' ] , targetDir )
698+ await environment . execute ( 'git' , [ 'init' ] , resolve ( targetDir ) )
695699 s ?. stop ( `Initialized git repository` )
696700 }
697701
0 commit comments