From 16e5775262cc42a96b3da694c37dc730bc29983d Mon Sep 17 00:00:00 2001 From: saberzero1 Date: Sun, 22 Mar 2026 13:12:01 +0100 Subject: [PATCH] fix: use separate tsconfig for DTS build to avoid vitest dependency --- tsconfig.build.json | 8 ++++++++ tsup.config.ts | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 tsconfig.build.json 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 b0812e6..bdfa8ab 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -50,7 +50,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,