From edd8e824764bc66d28ed40d004dce10b4bf17bde Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 12 Nov 2023 02:19:46 -0500 Subject: fix: format WIES properly --- build.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'build.ts') diff --git a/build.ts b/build.ts index faa049b..272eed9 100644 --- a/build.ts +++ b/build.ts @@ -21,10 +21,12 @@ await checkAndCreate(distDir); await checkAndCreate(contentDir); await checkAndCreate(join(contentDir, "teawie")); -const wies = (await readdir(teawieArchiveDir)).filter((wie) => { - const fileExt = wie.split(".").pop(); - return !["ini", "txt"].includes(fileExt ?? ""); -}); +const wies = (await readdir(teawieArchiveDir)) + .filter((wie) => { + const fileExt = wie.split(".").pop(); + return !["ini", "txt"].includes(fileExt ?? ""); + }) + .map((wie) => wie.replace(" ", "%20")); for (const f of wies) { await copyFile(join(teawieArchiveDir, f), join(contentDir, "teawie", f), constants.COPYFILE_FICLONE); -- cgit v1.2.3