From 635973dde2aa6c3c6bb5c6c9572f067588accbc5 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)); });