Skip to content

Commit cd7fd52

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 after rebasing onto main c7d3437, from a clean npm ci: lint, typecheck, 925 unit tests, 121 edge tests, build, and 125 Chromium e2e tests pass, with one unrelated flaky retry in search-quality. Coverage 90.45% statements.
1 parent c7d3437 commit cd7fd52

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": {
@@ -65,15 +63,10 @@
6563
"@radix-ui/react-toggle-group": "^1.1.10",
6664
"@radix-ui/react-tooltip": "^1.2.7",
6765
"@sentry/react": "^10.65.0",
68-
"@stripe/stripe-js": "^8.7.0",
6966
"@supabase/supabase-js": "^2.49.1",
7067
"@tanstack/react-query": "^5.83.0",
71-
"@types/jspdf": "^1.3.3",
72-
"@types/react-joyride": "^2.0.2",
7368
"@vercel/analytics": "^2.0.1",
7469
"@vercel/speed-insights": "^2.0.0",
75-
"baseline-browser-mapping": "^2.9.19",
76-
"caniuse-lite": "^1.0.30001766",
7770
"class-variance-authority": "^0.7.1",
7871
"clsx": "^2.1.1",
7972
"cmdk": "^1.1.1",
@@ -84,7 +77,6 @@
8477
"framer-motion": "^12.31.0",
8578
"html-to-image": "^1.11.13",
8679
"i18next": "^23.16.8",
87-
"i18next-browser-languagedetector": "^8.0.4",
8880
"input-otp": "^1.4.2",
8981
"jspdf": "^4.1.0",
9082
"jspdf-autotable": "^5.0.7",

‎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)