oak-domain 5.1.28 → 5.1.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -755,6 +755,7 @@ function tryCopyFilesRecursively(fromDir, toDir, rebuild) {
|
|
|
755
755
|
const fromFile = join(fromDir, file);
|
|
756
756
|
const toFile = join(toDir, file);
|
|
757
757
|
const stat = (0, fs_1.statSync)(fromFile);
|
|
758
|
+
let skip = false;
|
|
758
759
|
if (stat.isFile()) {
|
|
759
760
|
if ((0, fs_1.existsSync)(join(toDir, file))) {
|
|
760
761
|
if (rebuild) {
|
|
@@ -762,12 +763,13 @@ function tryCopyFilesRecursively(fromDir, toDir, rebuild) {
|
|
|
762
763
|
}
|
|
763
764
|
else {
|
|
764
765
|
console.log(`忽略文件${toFile}`);
|
|
766
|
+
skip = true;
|
|
765
767
|
}
|
|
766
768
|
}
|
|
767
769
|
else {
|
|
768
770
|
console.log(`拷贝文件${toFile}`);
|
|
769
771
|
}
|
|
770
|
-
(0, fs_extra_1.copySync)(fromFile, toFile, {
|
|
772
|
+
!skip && (0, fs_extra_1.copySync)(fromFile, toFile, {
|
|
771
773
|
overwrite: true,
|
|
772
774
|
});
|
|
773
775
|
}
|