chore(deps): remove dependency vite-tsconfig-paths
- fix vitest.config.js and tsconfig path translation myself
This commit is contained in:
parent
8d70ac96f8
commit
427f4182a5
3 changed files with 6 additions and 32 deletions
|
|
@ -40,7 +40,6 @@
|
|||
"tailwindcss": "^3.2.4",
|
||||
"typescript": "^4.9.3",
|
||||
"vite": "^4.0.2",
|
||||
"vite-tsconfig-paths": "^4.0.3",
|
||||
"vitest": "^0.25.8"
|
||||
},
|
||||
"engines": {
|
||||
|
|
|
|||
29
pnpm-lock.yaml
generated
29
pnpm-lock.yaml
generated
|
|
@ -27,7 +27,6 @@ specifiers:
|
|||
tailwindcss: ^3.2.4
|
||||
typescript: ^4.9.3
|
||||
vite: ^4.0.2
|
||||
vite-tsconfig-paths: ^4.0.3
|
||||
vitest: ^0.25.8
|
||||
|
||||
dependencies:
|
||||
|
|
@ -59,7 +58,6 @@ devDependencies:
|
|||
tailwindcss: 3.2.4_postcss@8.4.19
|
||||
typescript: 4.9.3
|
||||
vite: 4.0.2_@types+node@18.11.12
|
||||
vite-tsconfig-paths: 4.0.3_dblhdeqtshg5ipboc6morcuhpe
|
||||
vitest: 0.25.8_jsdom@20.0.3
|
||||
|
||||
packages:
|
||||
|
|
@ -4291,19 +4289,6 @@ packages:
|
|||
resolution: {integrity: sha512-AqTiAOLcj85xS7vQ8QkAV41hPDIJ71XJB4RCUrzo/1GM2CQwhkJGaf9Hgr7BOugMRpgGUrqRg/DrBDl4H40+8g==}
|
||||
dev: false
|
||||
|
||||
/tsconfck/2.0.1_typescript@4.9.3:
|
||||
resolution: {integrity: sha512-/ipap2eecmVBmBlsQLBRbUmUNFwNJV/z2E+X0FPtHNjPwroMZQ7m39RMaCywlCulBheYXgMdUlWDd9rzxwMA0Q==}
|
||||
engines: {node: ^14.13.1 || ^16 || >=18, pnpm: ^7.0.1}
|
||||
hasBin: true
|
||||
peerDependencies:
|
||||
typescript: ^4.3.5
|
||||
peerDependenciesMeta:
|
||||
typescript:
|
||||
optional: true
|
||||
dependencies:
|
||||
typescript: 4.9.3
|
||||
dev: true
|
||||
|
||||
/tsconfig-paths/3.14.1:
|
||||
resolution: {integrity: sha512-fxDhWnFSLt3VuTwtvJt5fpwxBHg5AdKWMsgcPOOIilyjymcYVZoCQF8fvFRezCNfblEXmi+PcM1eYHeOAgXCOQ==}
|
||||
dependencies:
|
||||
|
|
@ -4489,20 +4474,6 @@ packages:
|
|||
vfile-message: 3.1.3
|
||||
dev: false
|
||||
|
||||
/vite-tsconfig-paths/4.0.3_dblhdeqtshg5ipboc6morcuhpe:
|
||||
resolution: {integrity: sha512-gRO2Q/tOkV+9kMht5tz90+IaEKvW2zCnvwJV3tp2ruPNZOTM5rF+yXorJT4ggmAMYEaJ3nyXjx5P5jY5FwiZ+A==}
|
||||
peerDependencies:
|
||||
vite: '>2.0.0-0'
|
||||
dependencies:
|
||||
debug: 4.3.4
|
||||
globrex: 0.1.2
|
||||
tsconfck: 2.0.1_typescript@4.9.3
|
||||
vite: 4.0.2_@types+node@18.11.12
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
- typescript
|
||||
dev: true
|
||||
|
||||
/vite/3.2.5_@types+node@18.11.12:
|
||||
resolution: {integrity: sha512-4mVEpXpSOgrssFZAOmGIr85wPHKvaDAcXqxVxVRZhljkJOMZi1ibLibzjLHzJvcok8BMguLc7g1W6W/GqZbLdQ==}
|
||||
engines: {node: ^14.18.0 || >=16.0.0}
|
||||
|
|
|
|||
|
|
@ -2,15 +2,19 @@
|
|||
|
||||
import { defineConfig } from 'vitest/config'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import tsconfigPaths from 'vite-tsconfig-paths'
|
||||
import { resolve } from 'path'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
react(),
|
||||
tsconfigPaths(),
|
||||
],
|
||||
test: {
|
||||
environment: 'jsdom',
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': resolve(__dirname, '.')
|
||||
}
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Reference in a new issue