build(copy-dist): do not copy build folder into src folder

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)
This commit is contained in:
Panagiotis Papadopoulos
2025-02-24 20:27:06 +01:00
committed by Panagiotis Papadopoulos
parent 60a2b56636
commit 135101f57b

View File

@@ -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)));