github-flavored-markdown/tsup.config.ts
saberzero1 64498f9b18
fix: move tsconfig from dts object to top-level option
The DtsConfig type in tsup does not have a tsconfig property.
Use top-level tsconfig option instead of dts: { tsconfig: ... }.
2026-03-22 13:25:12 +01:00

17 lines
313 B
TypeScript

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