@@ -463,7 +463,7 @@ export async function createApp(
463
463
await environment . execute (
464
464
addOn . command . command ,
465
465
addOn . command . args || [ ] ,
466
- targetDir ,
466
+ resolve ( targetDir ) ,
467
467
)
468
468
}
469
469
@@ -488,7 +488,7 @@ export async function createApp(
488
488
await environment . execute (
489
489
'npx' ,
490
490
[ 'shadcn@canary' , 'add' , ...shadcnComponents ] ,
491
- targetDir ,
491
+ resolve ( targetDir ) ,
492
492
)
493
493
s ?. stop ( `Installed additional shadcn components` )
494
494
}
@@ -658,7 +658,11 @@ export async function createApp(
658
658
659
659
// Install dependencies
660
660
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
+ )
662
666
s ?. stop ( `Installed dependencies` )
663
667
664
668
if ( warnings . length > 0 ) {
@@ -675,14 +679,14 @@ export async function createApp(
675
679
await environment . execute (
676
680
options . packageManager ,
677
681
[ 'run' , 'check' , '--fix' ] ,
678
- targetDir ,
682
+ resolve ( targetDir ) ,
679
683
)
680
684
break
681
685
default :
682
686
await environment . execute (
683
687
options . packageManager ,
684
688
[ 'run' , 'check' , '--' , '--fix' ] ,
685
- targetDir ,
689
+ resolve ( targetDir ) ,
686
690
)
687
691
break
688
692
}
@@ -691,7 +695,7 @@ export async function createApp(
691
695
692
696
if ( options . git ) {
693
697
s ?. start ( `Initializing git repository...` )
694
- await environment . execute ( 'git' , [ 'init' ] , targetDir )
698
+ await environment . execute ( 'git' , [ 'init' ] , resolve ( targetDir ) )
695
699
s ?. stop ( `Initialized git repository` )
696
700
}
697
701
0 commit comments