Skip to content

Build your personal knowledge base with Trilium Notes

build(copy-dist): simplify "copyNodeModuleFileOrFolder" copying

Panagiotis Papadopoulosdbeae62709c8
diff --git a/bin/copy-dist.ts b/bin/copy-dist.ts
index 45514e9000..e5f8b66036 100644
--- a/bin/copy-dist.ts
+++ b/bin/copy-dist.ts
@@ -14,9 +14,7 @@ function log(...args: any[]) {
}
async function copyNodeModuleFileOrFolder(source: string) {
- const adjustedSource = source.substring(13);
- const destination = path.join(DEST_DIR_NODE_MODULES, adjustedSource);
-
+ const destination = path.join(DEST_DIR, source);
log(`Copying ${source} to ${destination}`);
await fs.ensureDir(path.dirname(destination));
await fs.copy(source, destination);