From dbc2df0820e7f18f66bdc59d1c98184ea58ed8c1 Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Wed, 26 Feb 2025 21:54:45 +0100 Subject: [PATCH] build(copy-dist): consolidate folder copying the "srcDirsToCopy" block is useless now, we can just use the previous dirsToCopy to achieve the exact same thing --- bin/copy-dist.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/bin/copy-dist.ts b/bin/copy-dist.ts index 5b861ca9e..208825b46 100644 --- a/bin/copy-dist.ts +++ b/bin/copy-dist.ts @@ -49,19 +49,14 @@ const copy = async () => { "db", "src/public/fonts", "src/public/stylesheets", - "src/public/translations" + "src/public/translations", + "src/views/" ]; for (const dir of dirsToCopy) { log(`Copying ${dir}`); await fs.copy(dir, path.join(DEST_DIR, dir)); } - const srcDirsToCopy = ["./src/views"]; - for (const dir of srcDirsToCopy) { - log(`Copying ${dir}`); - await fs.copy(dir, path.join(DEST_DIR_SRC, path.basename(dir))); - } - /** * Directories to be copied relative to the project root into /src/public/app-dist. */