From fcbc746317e05b19f43f08e12cb100cb7d642b8f Mon Sep 17 00:00:00 2001 From: suddenlyGiovanni <15946771+suddenlyGiovanni@users.noreply.github.com> Date: Sat, 14 Dec 2024 21:25:20 +0100 Subject: [PATCH] refactor(ui): remove vite-tsconfig-paths dependency Removed the vite-tsconfig-paths plugin and its configurations from Vite. Updated `tsconfig.json` to reflect the new inclusion paths. Cleaned up unnecessary metadata and deprecated warnings from pnpm-lock.yaml. --- packages/ui/package.json | 3 +-- packages/ui/tsconfig.json | 8 +------- packages/ui/vite.config.ts | 2 -- pnpm-lock.yaml | 6 ------ 4 files changed, 2 insertions(+), 17 deletions(-) diff --git a/packages/ui/package.json b/packages/ui/package.json index a418a443..22fbe71e 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -54,8 +54,7 @@ "tailwindcss": "4.0.0-beta.7", "tailwindcss-animate": "1.0.7", "typescript-eslint": "8.18.0", - "vite": "6.0.3", - "vite-tsconfig-paths": "5.1.4" + "vite": "6.0.3" }, "engines": { "node": ">=22.10" diff --git a/packages/ui/tsconfig.json b/packages/ui/tsconfig.json index f90e45a6..58953dae 100644 --- a/packages/ui/tsconfig.json +++ b/packages/ui/tsconfig.json @@ -8,12 +8,6 @@ "useDefineForClassFields": true }, - "include": [ - "tailwind.config.ts", - "vite.config.ts", - "postcss.config.mjs", - "./.storybook/**/*", - "./src/**/*" - ], + "include": ["vite.config.ts", "./.storybook/**/*", "./src/**/*"], "exclude": ["dist", "build", "node_modules", "./~"] } diff --git a/packages/ui/vite.config.ts b/packages/ui/vite.config.ts index ba28128e..d3c21df2 100644 --- a/packages/ui/vite.config.ts +++ b/packages/ui/vite.config.ts @@ -2,7 +2,6 @@ import { resolve } from 'node:path' import tailwindcss from '@tailwindcss/vite' import react from '@vitejs/plugin-react' import { defineConfig } from 'vite' -import tsconfigPaths from 'vite-tsconfig-paths' const ReactCompilerConfig = { /* ... */ @@ -16,7 +15,6 @@ export default defineConfig({ }, build: { target: 'esnext' }, plugins: [ - tsconfigPaths(), react({ babel: { plugins: [['babel-plugin-react-compiler', ReactCompilerConfig]], diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index dda24249..6a403f37 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -341,9 +341,6 @@ importers: vite: specifier: ^6 version: 6.0.3(@types/node@22.10.2)(jiti@2.4.1)(lightningcss@1.28.2) - vite-tsconfig-paths: - specifier: 5.1.4 - version: 5.1.4(typescript@5.7.2)(vite@6.0.3(@types/node@22.10.2)(jiti@2.4.1)(lightningcss@1.28.2)) packages: @@ -499,7 +496,6 @@ packages: '@babel/plugin-proposal-private-methods@7.18.6': resolution: {integrity: sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==} engines: {node: '>=6.9.0'} - deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-methods instead. peerDependencies: '@babel/core': ^7.0.0-0 @@ -3941,7 +3937,6 @@ packages: glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} - deprecated: Glob versions prior to v9 are no longer supported globals@11.12.0: resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==} @@ -4045,7 +4040,6 @@ packages: inflight@1.0.6: resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} - deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. inherits@2.0.4: resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}