-
Notifications
You must be signed in to change notification settings - Fork 64
/
vite.config.mts
38 lines (37 loc) · 1.01 KB
/
vite.config.mts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { resolve } from 'node:path';
import { defineConfig } from 'vitest/config';
import TeamCityReporter from 'vitest-teamcity-reporter';
export default defineConfig({
build: {
lib: {
entry: {
index: resolve(__dirname, 'src/index.ts'),
oas30: resolve(__dirname, 'src/oas30.ts'),
oas31: resolve(__dirname, 'src/oas31.ts')
},
name: 'OpenApi3TS'
},
rollupOptions: {
external: ['yaml'],
output: {
globals: {
yaml: 'yaml'
}
}
},
sourcemap: true
},
test: {
environment: 'node',
include: ['src/**/*.spec.ts'],
watch: false,
globals: true,
testTimeout: 5000,
isolate: false,
passWithNoTests: true,
reporters: ['verbose', new TeamCityReporter.default()],
coverage: {
reporter: ['text', 'json', 'html', 'lcov']
}
}
});