Skip to content

Commit eaa717c

Browse files
avivkelleraduh95
andauthored
Update safeCopy.mjs
Co-authored-by: Antoine du Hamel <[email protected]>
1 parent 17629fb commit eaa717c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ export async function safeCopy(srcDir, targetDir) {
3030

3131
const shouldWrite =
3232
!tStat ||
33-
sStat.value.size !== tStat.value.size ||
34-
sStat.value.mtimeMs > tStat.value.mtimeMs;
33+
sStat.size !== tStat.size ||
34+
sStat.mtimeMs > tStat.mtimeMs;
3535

3636
if (!shouldWrite) {
3737
continue;

0 commit comments

Comments
 (0)