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
build(copy-dist): simplify "build" copying
Panagiotis Papadopoulosac3e96291aad
diff --git a/bin/copy-dist.ts b/bin/copy-dist.tsindex c7bd8c8096..45514e9000 100644--- a/bin/copy-dist.ts+++ b/bin/copy-dist.ts@@ -23,11 +23,8 @@ async function copyNodeModuleFileOrFolder(source: string) {}const copy = async () => {- for (const srcFile of fs.readdirSync("build")) {- const destFile = path.join(DEST_DIR, path.basename(srcFile));- log(`Copying source ${srcFile} -> ${destFile}.`);- fs.copySync(path.join("build", srcFile), destFile, { recursive: true });- }+ log(`Copying build into dist folder.`);+ fs.copySync("./build", DEST_DIR);const assetsToCopy = new Set(["./images",