From 4108f7f35314f63e168648e4d1ca88d71946f132 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 24 Mar 2025 19:04:38 +0200 Subject: [PATCH] chore(forge): ignore certain artifacts --- forge.config.cjs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/forge.config.cjs b/forge.config.cjs index 71973e29e..6032eec04 100644 --- a/forge.config.cjs +++ b/forge.config.cjs @@ -142,7 +142,13 @@ module.exports = { fs.mkdirp(outputDir); for (const makeResult of makeResults) { for (const artifactPath of makeResult.artifacts) { - const outputPath = path.join(outputDir, path.basename(artifactPath)); + // Ignore certain artifacts. + const fileName = path.basename(artifactPath); + if (fileName === "RELEASES" || path.extname(fileName) === ".nupkg") { + continue; + } + + const outputPath = path.join(outputDir, fileName); console.log(`[Artifact] ${artifactPath} -> ${outputPath}`); fs.copyFile(artifactPath, outputPath); }