From 2d3a1e90231fc8adbe163e774dfb9b23d4f6fac1 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 30 Mar 2025 17:34:45 +0300 Subject: [PATCH] fix(build): flaky copy of the artifact --- forge.config.cjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forge.config.cjs b/forge.config.cjs index e04419450..dff7ac806 100644 --- a/forge.config.cjs +++ b/forge.config.cjs @@ -156,7 +156,7 @@ module.exports = { hooks: { postMake(_, makeResults) { const outputDir = path.join(__dirname, "..", "upload"); - fs.mkdirp(outputDir); + fs.mkdirpSync(outputDir); for (const makeResult of makeResults) { for (const artifactPath of makeResult.artifacts) { // Ignore certain artifacts. @@ -174,7 +174,7 @@ module.exports = { const outputPath = path.join(outputDir, fileName); console.log(`[Artifact] ${artifactPath} -> ${outputPath}`); - fs.copyFile(artifactPath, outputPath); + fs.copyFileSync(artifactPath, outputPath); } } }