From f2914a49c0e4071aaec93dff1392290789c599cb Mon Sep 17 00:00:00 2001 From: zumbiepig <121742281+zumbiepig@users.noreply.github.com> Date: Fri, 6 Sep 2024 21:00:00 -0700 Subject: [PATCH] . literally --- build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.ts b/build.ts index a5c062b..78ed172 100644 --- a/build.ts +++ b/build.ts @@ -91,7 +91,7 @@ if (!isDev) { console.log(chalk.cyan('Copying other files...\n')); copyFiles.forEach((file) => { - const outputPath = file.replace(new RegExp(`^${srcDir}`), publicDir); + const outputPath = file.replace(new RegExp(`^${srcDir}`), publicDir).replace(/\.js$/, '.js'); mkdirSync(dirname(outputPath), { recursive: true }); writeFileSync(outputPath, readFileSync(file)); });