Skip to content

Commit 17629fb

Browse files
committed
fixup!
1 parent acd9eef commit 17629fb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/generators/legacy-html/utils/safeCopy.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ export async function safeCopy(srcDir, targetDir) {
2828
stat(targetPath),
2929
]).catch(() => []);
3030

31-
const shouldWrite = !tStat;
32-
sStat.value.size !== tStat.value.size ||
31+
const shouldWrite =
32+
!tStat ||
33+
sStat.value.size !== tStat.value.size ||
3334
sStat.value.mtimeMs > tStat.value.mtimeMs;
3435

3536
if (!shouldWrite) {

0 commit comments

Comments
 (0)