From f201d58b69c93c8bfb09f19025e801a7ef518b3e Mon Sep 17 00:00:00 2001 From: John <72810050+Notplayingallday383@users.noreply.github.com> Date: Tue, 7 May 2024 11:14:10 -0400 Subject: [PATCH] womp womp --- build.ts | 17 +++++++++++++++-- package.json | 1 - 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/build.ts b/build.ts index ae6265c..5ca958d 100644 --- a/build.ts +++ b/build.ts @@ -1,3 +1,16 @@ import esbuild from "esbuild" - -// TODO \ No newline at end of file +import { copyFile, mkdir, readFile } from 'node:fs/promises'; +await rimraf('dist'); +await mkdir('dist'); +await copyFile('src/config.js', 'dist/config.js'); +await build({ + platform: 'browser', + sourcemap: true, + minify: !isDevelopment, + entryPoints: { + 'bundle': './src/bundle.js', + }, + bundle: true, + logLevel: 'info', + outdir: 'dist/', +}); \ No newline at end of file diff --git a/package.json b/package.json index 9c5a474..296ac2c 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,6 @@ "author": "z1g Project", "type": "module", "scripts": { - "test": "", "build": "tsx build.ts", "publish": "" },