Skip to content

Commit 7dee427

Browse files
committed
chore: prune 6 unused dependencies, 2 dead scripts, and dead config globs
Dependencies with zero imports anywhere in src, e2e, scripts, supabase, or any config file: - @stripe/stripe-js: checkout and portal go through the create-checkout and create-portal Edge Functions and a plain URL redirect (src/lib/stripe.ts). The browser SDK is never loaded. - i18next-browser-languagedetector: src/i18n.ts sets lng and fallbackLng explicitly and SettingsPage calls changeLanguage. No detector is registered. - @types/jspdf and @types/react-joyride: both runtime packages ship their own declarations, so the DefinitelyTyped stubs are redundant. - baseline-browser-mapping and caniuse-lite: incidentally added as direct dependencies. Both remain installed as transitive dependencies of autoprefixer/browserslist, which is the only thing that reads them. @types/file-saver stays: file-saver ships no declarations of its own. Also removes two npm scripts nothing invokes (test:coverage, superseded by `npm test -- --coverage`, and test:e2e:ui), the three Tailwind content globs for ./pages, ./components, and ./app directories that do not exist in this repo, and Vite's optimizeDeps.entries, which restated the only HTML entry. Verified: lint, typecheck, 920 unit tests, 116 edge tests, build, and 124 Chromium e2e tests pass. Coverage unchanged at 90.45% statements.
1 parent b910cb0 commit 7dee427

4 files changed

Lines changed: 3 additions & 51 deletions

File tree

‎package-lock.json‎

Lines changed: 2 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,12 @@
1616
"typecheck": "tsc --noEmit -p tsconfig.app.json",
1717
"preview": "vite preview",
1818
"test": "vitest run",
19-
"test:coverage": "vitest run --coverage",
2019
"test:watch": "vitest",
2120
"test:edge": "deno test --allow-read --allow-env=EXA_API_KEY,SUPABASE_URL,SUPABASE_SERVICE_ROLE_KEY,SPARRING_INTEGRITY_SECRET,OPENAI_API_KEY --allow-net=127.0.0.1 supabase/functions/",
2221
"test:db": "supabase test db",
2322
"test:e2e": "playwright test --project=desktop-chromium --project=mobile-chromium",
2423
"test:e2e:webkit": "playwright test --project=webkit",
2524
"test:e2e:staging": "playwright test --project=staging",
26-
"test:e2e:ui": "playwright test --ui",
2725
"verify": "npm run lint && npm run typecheck && npm test -- --coverage && npm run test:edge && npm run build && CI=1 PORT=18080 PLAYWRIGHT_BASE_URL=http://127.0.0.1:18080 npm run test:e2e"
2826
},
2927
"dependencies": {
@@ -54,15 +52,10 @@
5452
"@radix-ui/react-toast": "^1.2.14",
5553
"@radix-ui/react-tooltip": "^1.2.7",
5654
"@sentry/react": "^10.65.0",
57-
"@stripe/stripe-js": "^8.7.0",
5855
"@supabase/supabase-js": "^2.49.1",
5956
"@tanstack/react-query": "^5.83.0",
60-
"@types/jspdf": "^1.3.3",
61-
"@types/react-joyride": "^2.0.2",
6257
"@vercel/analytics": "^2.0.1",
6358
"@vercel/speed-insights": "^2.0.0",
64-
"baseline-browser-mapping": "^2.9.19",
65-
"caniuse-lite": "^1.0.30001766",
6659
"class-variance-authority": "^0.7.1",
6760
"clsx": "^2.1.1",
6861
"date-fns": "^3.6.0",
@@ -71,7 +64,6 @@
7164
"framer-motion": "^12.31.0",
7265
"html-to-image": "^1.11.13",
7366
"i18next": "^23.16.8",
74-
"i18next-browser-languagedetector": "^8.0.4",
7567
"jspdf": "^4.1.0",
7668
"jspdf-autotable": "^5.0.7",
7769
"lucide-react": "^0.462.0",

‎tailwind.config.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import typography from "@tailwindcss/typography";
44

55
export default {
66
darkMode: ["class"],
7-
content: ["./pages/**/*.{ts,tsx}", "./components/**/*.{ts,tsx}", "./app/**/*.{ts,tsx}", "./src/**/*.{ts,tsx}"],
7+
content: ["./src/**/*.{ts,tsx}"],
88
prefix: "",
99
theme: {
1010
container: {

‎vite.config.ts‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ export default defineConfig(({ mode }) => ({
1313
},
1414
},
1515
plugins: [react()],
16-
optimizeDeps: {
17-
entries: ['index.html'],
18-
},
1916
resolve: {
2017
alias: {
2118
"@": path.resolve(__dirname, "./src"),

0 commit comments

Comments
 (0)