Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
womp womp
Browse files Browse the repository at this point in the history
  • Loading branch information
Notplayingallday383 authored May 7, 2024
1 parent f5f919d commit f201d58
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
17 changes: 15 additions & 2 deletions build.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
import esbuild from "esbuild"

// TODO
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/',
});
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"author": "z1g Project",
"type": "module",
"scripts": {
"test": "",
"build": "tsx build.ts",
"publish": ""
},
Expand Down

0 comments on commit f201d58

Please sign in to comment.