Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(build): flaky copy of the artifact
Elian Doran2d3a1e90231f
diff --git a/forge.config.cjs b/forge.config.cjsindex e044194500..dff7ac8064 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);}}}