diff --git a/tsconfig.build.json b/tsconfig.build.json new file mode 100644 index 0000000..63179b0 --- /dev/null +++ b/tsconfig.build.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "types": ["node"] + }, + "include": ["src", "types"], + "exclude": ["dist", "node_modules", "test"] +} diff --git a/tsup.config.ts b/tsup.config.ts index 600356d..e9131ee 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -10,7 +10,7 @@ export default defineConfig({ jsx: "src/jsx.tsx", }, format: ["esm"], - dts: true, + dts: { tsconfig: "tsconfig.build.json" }, sourcemap: true, clean: true, treeshake: true,