diff --git a/package.json b/package.json index 368c27a..9525918 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/tsup.config.ts b/tsup.config.ts new file mode 100644 index 0000000..9e113af --- /dev/null +++ b/tsup.config.ts @@ -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, +});