File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -513,7 +513,7 @@ export async function renderProject(
513
513
// because src and target are in different file systems.
514
514
// In that case, try to recursively copy from src
515
515
copyTo ( srcDir , targetDir ) ;
516
- safeRemoveDirSync ( targetDir , context . dir ) ;
516
+ safeRemoveDirSync ( srcDir , context . dir ) ;
517
517
}
518
518
}
519
519
} ;
@@ -632,13 +632,11 @@ export async function renderProject(
632
632
const sortedOperations = uniqOps . sort ( ( a , b ) => {
633
633
if ( a . src === b . src ) {
634
634
return 0 ;
635
- } else {
636
- if ( isSubdir ( a . src , b . src ) ) {
637
- return - 1 ;
638
- } else {
639
- return a . src . localeCompare ( b . src ) ;
640
- }
641
635
}
636
+ if ( isSubdir ( a . src , b . src ) ) {
637
+ return - 1 ;
638
+ }
639
+ return a . src . localeCompare ( b . src ) ;
642
640
} ) ;
643
641
644
642
// Before file move
You can’t perform that action at this time.
0 commit comments