mirror of
https://github.com/quartz-community/content-page.git
synced 2026-07-22 02:50:24 +00:00
fix: use separate tsconfig for DTS build to avoid vitest dependency
This commit is contained in:
parent
f12e7bec5c
commit
4d37a50181
2 changed files with 9 additions and 1 deletions
8
tsconfig.build.json
Normal file
8
tsconfig.build.json
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"types": ["node"]
|
||||
},
|
||||
"include": ["src", "types"],
|
||||
"exclude": ["dist", "node_modules", "test"]
|
||||
}
|
||||
|
|
@ -7,7 +7,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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue