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 355e6c83df
commit e8c7bbc427
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

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