mirror of
https://github.com/quartz-community/reader-mode.git
synced 2026-07-22 02:50:23 +00:00
fix: use separate tsconfig for DTS build to avoid vitest dependency
This commit is contained in:
parent
2250ce03e9
commit
66eca04103
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"]
|
||||||
|
}
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue