forked from vikunja/vikunja
fix(ts): align with create-vue setup
This commit is contained in:
parent
f36115871c
commit
bf28a0c795
@ -7,6 +7,5 @@
|
||||
"target": "ES2015",
|
||||
"lib": ["ESNext", "dom"],
|
||||
"types": ["cypress"],
|
||||
"ignoreDeprecations": "5.0"
|
||||
}
|
||||
}
|
||||
|
@ -4,6 +4,7 @@
|
||||
"exclude": ["src/**/__tests__/*"],
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
||||
"baseUrl": ".",
|
||||
"lib": ["ESNext", "DOM", "WebWorker"],
|
||||
|
||||
@ -18,6 +19,5 @@
|
||||
// https://github.com/ikenfin/vite-plugin-sentry#typescript
|
||||
"vite-plugin-sentry/client"
|
||||
],
|
||||
"ignoreDeprecations": "5.0"
|
||||
}
|
||||
}
|
@ -6,6 +6,11 @@
|
||||
"include": ["vite.config.*", "vitest.config.*", "cypress.config.*"],
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"noEmit": true,
|
||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.config.tsbuildinfo",
|
||||
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "Bundler",
|
||||
"types": ["node"]
|
||||
}
|
||||
}
|
@ -10,5 +10,8 @@
|
||||
{
|
||||
"path": "./tsconfig.vitest.json"
|
||||
}
|
||||
]
|
||||
],
|
||||
"compilerOptions": {
|
||||
"module": "NodeNext"
|
||||
}
|
||||
}
|
||||
|
@ -3,6 +3,8 @@
|
||||
"exclude": [],
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.vitest.tsbuildinfo",
|
||||
|
||||
"lib": [],
|
||||
"types": ["node"]
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
/// <reference types="vitest" />
|
||||
import {defineConfig, type PluginOption, loadEnv} from 'vite'
|
||||
import {configDefaults} from 'vitest/config'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import legacyFn from '@vitejs/plugin-legacy'
|
||||
import {URL, fileURLToPath} from 'node:url'
|
||||
@ -87,6 +88,7 @@ export default defineConfig(({mode}) => {
|
||||
// https://vitest.dev/config/
|
||||
test: {
|
||||
environment: 'happy-dom',
|
||||
exclude: [...configDefaults.exclude, 'e2e/**'],
|
||||
'vitest.commandLine': 'pnpm test:unit',
|
||||
},
|
||||
css: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user