We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b42ad8 commit a346793Copy full SHA for a346793
1 file changed
src/command/render/project.ts
@@ -513,7 +513,7 @@ export async function renderProject(
513
// because src and target are in different file systems.
514
// In that case, try to recursively copy from src
515
copyTo(srcDir, targetDir);
516
- safeRemoveDirSync(targetDir, context.dir);
+ safeRemoveDirSync(srcDir, context.dir);
517
}
518
519
};
@@ -632,13 +632,11 @@ export async function renderProject(
632
const sortedOperations = uniqOps.sort((a, b) => {
633
if (a.src === b.src) {
634
return 0;
635
- } else {
636
- if (isSubdir(a.src, b.src)) {
637
- return -1;
638
639
- return a.src.localeCompare(b.src);
640
- }
641
+ if (isSubdir(a.src, b.src)) {
+ return -1;
+ }
+ return a.src.localeCompare(b.src);
642
});
643
644
// Before file move
0 commit comments