fix: use separate tsconfig for DTS build to avoid vitest dependency

This commit is contained in:
saberzero1 2026-03-22 13:12:01 +01:00
parent b11d8958a9
commit c7d9837fa1
No known key found for this signature in database
2 changed files with 9 additions and 1 deletions

8
tsconfig.build.json Normal file
View file

@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"types": ["node"]
},
"include": ["src", "types"],
"exclude": ["dist", "node_modules", "test"]
}

View file

@ -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,