Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"dev": "tsx watch src/index.ts",
"debug": "tsx --inspect src/index.ts",
"debug:watch": "tsx --inspect watch src/index.ts",
"build": "npx tsc",
"start": "npx tsx src/index.ts",
"build": "tsup",
"start": "node dist/index.js",
"start:prod": "node --loader tsx/esm src/index.ts",
"clean": "rm -rf dist",
"format": "prettier --write .",
Expand Down
12 changes: 12 additions & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { defineConfig } from "tsup";

export default defineConfig({
entry: ["src/index.ts"],
format: ["esm"],
target: "es2022",
outDir: "dist",
platform: "node",
clean: true,
sourcemap: false,
dts: false,
});