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 8967584..b50bd0a 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -7,7 +7,7 @@ export default defineConfig({ "components/index": "src/components/index.ts", }, format: ["esm"], - dts: true, + dts: { tsconfig: "tsconfig.build.json" }, sourcemap: true, clean: true, treeshake: true,