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 2250ce03e9
commit 66eca04103
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

@ -49,7 +49,7 @@ export default defineConfig({
"components/index": "src/components/index.ts", "components/index": "src/components/index.ts",
}, },
format: ["esm"], format: ["esm"],
dts: true, dts: { tsconfig: "tsconfig.build.json" },
sourcemap: true, sourcemap: true,
clean: true, clean: true,
treeshake: true, treeshake: true,