Fix build and watch (hopefully for good this time)

This commit is contained in:
Joseph Garrone
2024-05-20 21:07:59 +02:00
parent ccc5ac6a1f
commit 3c4bbf8aa7
3 changed files with 8 additions and 26 deletions

View File

@ -107,6 +107,10 @@ fs.rmSync(join("dist", "ncc_out"), { recursive: true });
patchDeprecatedBufferApiUsage(join("dist", "vite-plugin", "index.js"));
fs.rmSync(join("dist", "src"), { recursive: true, force: true });
fs.cpSync("src", join("dist", "src"), { recursive: true });
console.log(chalk.green(`✓ built in ${((Date.now() - startTime) / 1000).toFixed(2)}s`));
function run(command: string) {