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