From f02190d89ccfad14bfe07f45bd5d37e59230ca84 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 12 Oct 2021 14:04:30 +1100 Subject: [PATCH] build(deps): update dependency vite-tsconfig-paths to v3.3.17 (#2492) * build(deps): update dependency vite-tsconfig-paths to v3.3.17 * fix(web): remove vite resolve alias workaround The resolve alias issue with Vite has been resolved in the `vite-tsconfig-paths` plugin. Co-authored-by: Renovate Bot Co-authored-by: Amir Zarrinkafsh --- web/package.json | 2 +- web/pnpm-lock.yaml | 8 ++++---- web/tsconfig.json | 3 +-- web/vite.config.ts | 10 ---------- 4 files changed, 6 insertions(+), 17 deletions(-) diff --git a/web/package.json b/web/package.json index f6f8a3e9..2d90501a 100644 --- a/web/package.json +++ b/web/package.json @@ -153,6 +153,6 @@ "vite-plugin-eslint": "1.3.0", "vite-plugin-istanbul": "2.2.0", "vite-plugin-svgr": "0.4.0", - "vite-tsconfig-paths": "3.3.15" + "vite-tsconfig-paths": "3.3.17" } } diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml index abec99a3..fde7017d 100644 --- a/web/pnpm-lock.yaml +++ b/web/pnpm-lock.yaml @@ -54,7 +54,7 @@ specifiers: vite-plugin-eslint: 1.3.0 vite-plugin-istanbul: 2.2.0 vite-plugin-svgr: 0.4.0 - vite-tsconfig-paths: 3.3.15 + vite-tsconfig-paths: 3.3.17 dependencies: '@fortawesome/fontawesome-svg-core': 1.2.36 @@ -112,7 +112,7 @@ devDependencies: vite-plugin-eslint: 1.3.0_vite@2.6.7 vite-plugin-istanbul: 2.2.0 vite-plugin-svgr: 0.4.0_vite@2.6.7 - vite-tsconfig-paths: 3.3.15_vite@2.6.7 + vite-tsconfig-paths: 3.3.17_vite@2.6.7 packages: @@ -6597,8 +6597,8 @@ packages: - supports-color dev: true - /vite-tsconfig-paths/3.3.15_vite@2.6.7: - resolution: {integrity: sha512-SFPj6Y5HWB2Vy6eZZSA2VF06Lkg74kkTtMYfs47QJ2z8Fm3qFNggKHWsGDH/gesW56Ly9xmDGr1IBC8o77G+mw==} + /vite-tsconfig-paths/3.3.17_vite@2.6.7: + resolution: {integrity: sha512-wx+rfC53moVLxMBj2EApJZgY6HtvWUFVZ4dBxNGYBxSSqU6UaHdKlcOxrfGDxyTGtYEr9beWCryHn18C4EtZkg==} peerDependencies: vite: '>2.0.0-0' dependencies: diff --git a/web/tsconfig.json b/web/tsconfig.json index 7189d6de..696d414d 100644 --- a/web/tsconfig.json +++ b/web/tsconfig.json @@ -20,7 +20,7 @@ "dom.iterable", "esnext" ], - "types": ["@types/node", "vite/client", "vite-plugin-svgr/client"], + "types": ["vite/client", "vite-plugin-svgr/client"], "allowJs": true, "skipLibCheck": true, "esModuleInterop": true, @@ -43,7 +43,6 @@ ], "exclude": [ "node_modules", - "build", "coverage" ] } diff --git a/web/vite.config.ts b/web/vite.config.ts index 91757360..6e3bcbd0 100644 --- a/web/vite.config.ts +++ b/web/vite.config.ts @@ -1,5 +1,3 @@ -import path from "path"; - import reactRefresh from "@vitejs/plugin-react-refresh"; import { defineConfig, loadEnv } from "vite"; import eslintPlugin from "vite-plugin-eslint"; @@ -59,14 +57,6 @@ export default defineConfig(({ mode }) => { clientPort: env.VITE_HMR_PORT || 3000, }, }, - resolve: { - alias: [ - { - find: "@components", - replacement: path.resolve(__dirname, "src/components"), - }, - ], - }, plugins: [eslintPlugin(), htmlPlugin(), istanbulPlugin, reactRefresh(), svgr(), tsconfigPaths()], }; });