*Add tsup
This commit is contained in:
parent
615b3fcc0c
commit
0325d4488f
|
@ -3,6 +3,9 @@
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
"scripts": {
|
||||||
|
"build": "tsup"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/ws": "^8.5.3",
|
"@types/ws": "^8.5.3",
|
||||||
"esbuild": "^0.14.48",
|
"esbuild": "^0.14.48",
|
||||||
|
|
|
@ -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,
|
||||||
|
});
|
Loading…
Reference in New Issue