summaryrefslogtreecommitdiff
path: root/build.ts
diff options
context:
space:
mode:
authorseth <[email protected]>2023-11-12 02:19:46 -0500
committerseth <[email protected]>2023-11-12 02:19:56 -0500
commitedd8e824764bc66d28ed40d004dce10b4bf17bde (patch)
tree69db77c07e6749f917b2b5ce3243f01c51e8f337 /build.ts
parentd65b6b2feb9c164da55ab7cfe377389be669888d (diff)
fix: format WIES properly
Diffstat (limited to 'build.ts')
-rw-r--r--build.ts10
1 files changed, 6 insertions, 4 deletions
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);