diff --git a/packages/router/package.json b/packages/router/package.json index 16158d3..aaf5ecc 100644 --- a/packages/router/package.json +++ b/packages/router/package.json @@ -32,7 +32,7 @@ ], "scripts": { "dev": "rollup -c --watch", - "build": "vite build --config vite.config.build.ts && vite build --config vite.config.build-umd.ts && tsc --emitDeclarationOnly", + "build": "vite build --config vite.config.build.ts && vite build --config vite.config.build-umd.ts", "changelog": "conventional-changelog -p angular -n './changelog-config.cjs' -i CHANGELOG.md -s" }, "dependencies": { diff --git a/packages/router/vite.config.build-umd.ts b/packages/router/vite.config.build-umd.ts index 10580ea..dabe808 100644 --- a/packages/router/vite.config.build-umd.ts +++ b/packages/router/vite.config.build-umd.ts @@ -1,13 +1,7 @@ import { defineConfig } from 'vite'; -import dts from 'vite-plugin-dts'; // 自动生成 .d.ts 类型声明文件 export default defineConfig({ - plugins: [ - dts({ - outDir: 'lib', - }), - ], build: { lib: { entry: "./src/index.ts",