演示目录只保留可重建的源码。运行密钥、数据卷、依赖和带口令的本地配置不进入仓库。 Co-authored-by: Cursor <cursoragent@cursor.com>
29 lines
611 B
TypeScript
29 lines
611 B
TypeScript
import { defineConfig } from 'vite-plus'
|
|
|
|
export default defineConfig({
|
|
pack: {
|
|
deps: { resolveDepSubpath: true },
|
|
entry: ['src/index.ts'],
|
|
format: ['esm'],
|
|
fixedExtension: false,
|
|
platform: 'node',
|
|
dts: true,
|
|
clean: true,
|
|
sourcemap: true,
|
|
// splitting: false,
|
|
treeshake: true,
|
|
outDir: 'dist',
|
|
target: false,
|
|
},
|
|
test: {
|
|
environment: 'node',
|
|
include: ['**/*.test.ts'],
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'text-summary'],
|
|
include: ['src/**/*.ts'],
|
|
exclude: ['src/**/*.test.*', 'src/**/*.spec.*'],
|
|
},
|
|
},
|
|
})
|