From 135101f57ba183971bbdf1fb315380378c653145 Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Mon, 24 Feb 2025 20:27:06 +0100 Subject: [PATCH] build(copy-dist): do not copy build folder into src folder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit stop the build folder from being copied into the dist/src subfolder → there is no sense in doing that → the contents of the build folder are corretly copied previously already (see line 26ff) --- bin/copy-dist.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/copy-dist.ts b/bin/copy-dist.ts index 6dae9b3dc..9eaf2cbc2 100644 --- a/bin/copy-dist.ts +++ b/bin/copy-dist.ts @@ -45,7 +45,7 @@ const copy = async () => { await fs.copy(dir, path.join(DEST_DIR, dir)); } - const srcDirsToCopy = ["./src/public", "./src/views", "./build"]; + const srcDirsToCopy = ["./src/public", "./src/views"]; for (const dir of srcDirsToCopy) { log(`Copying ${dir}`); await fs.copy(dir, path.join(DEST_DIR_SRC, path.basename(dir)));