From fece28b409fa81d27b25d8f6418578159c619c37 Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Wed, 14 Aug 2024 16:15:28 -0400 Subject: [PATCH] Don't overwrite when a file has already been staged to dist --- src/build/run.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build/run.mjs b/src/build/run.mjs index e93258224b..6d06bdc774 100755 --- a/src/build/run.mjs +++ b/src/build/run.mjs @@ -58,7 +58,7 @@ function stageStaticContent(srcDir, destDir) { fs.ensureDir(path.dirname(destPath)) .then(() => { // Copy the file to the new destination - fs.copy(file, destPath).catch((err) => console.error(`Error copying file ${file}:`, err)); + fs.copy(file, destPath, { overwrite: false}).catch((err) => console.error(`Error copying file ${file}:`, err)); }) .catch((err) => console.error(`Error creating directory for ${destPath}:`, err)); });