*Add tsup

This commit is contained in:
Derrick Hammer 2022-07-20 01:58:34 -04:00
parent 615b3fcc0c
commit 0325d4488f
2 changed files with 13 additions and 0 deletions

View File

@ -3,6 +3,9 @@
"type": "module",
"version": "0.1.0",
"main": "dist/index.js",
"scripts": {
"build": "tsup"
},
"devDependencies": {
"@types/ws": "^8.5.3",
"esbuild": "^0.14.48",

10
tsup.config.ts Normal file
View File

@ -0,0 +1,10 @@
import { defineConfig } from "tsup";
export default defineConfig({
entry: ["src/index.ts"],
splitting: false,
sourcemap: true,
clean: true,
format: "esm",
bundle: true,
});