Repository navigation
chore: delete orphan lib modules - #6451
Conversation
Remove self-contained trees with no production importers outside their own directories: metaaligner, deployment/multi-region, business-strategy, polyfills, esm-compat, auth-legacy shim, and duplicate root logging.ts. Clean up vitest buckets, eslint/oxlint ignores, large-file and naming baselines, and stale auth comments referencing removed paths.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
px Advisor ReviewRisk: unknown No summary available No findings. |
Lighthouse CI ResultsRoutes audited: Thresholds: Performance ≥90 | Accessibility ≥90 | Best Practices ≥85 Reports
|
px Advisor ReviewRisk: unknown No summary available No findings. |
Lighthouse CI ResultsRoutes audited: Thresholds: Performance ≥90 | Accessibility ≥90 | Best Practices ≥85 Reports
|
px Advisor ReviewRisk: unknown No summary available No findings. |
Lighthouse CI ResultsRoutes audited: Thresholds: Performance ≥90 | Accessibility ≥90 | Best Practices ≥85 Reports
|
Lighthouse CI ResultsRoutes audited: Thresholds: Performance ≥90 | Accessibility ≥90 | Best Practices ≥85 Reports
|
px Advisor ReviewRisk: unknown No summary available No findings. |
Summary
Pure subtraction: remove self-contained
apps/web/src/lib/trees that have no production importers outside their own directory (re-verified with ripgrep for path strings,@/lib/*, relative imports, configs, and test runners).Deleted (importer check)
lib/metaaligner/**(~63 files)scripts/testing/local-test-runner.mjsvitest bucket +large-file-baseline.json+.gitignoreentry.lib/deployment/multi-region/**(~18 files)eslint.config.jsrule override,large-file-baseline.json, and backup script path excludes (unchanged).lib/business-strategy/**(24 files)apps/business-strategy-cms. Only.oxlintrc.jsonignore entries.lib/polyfills/**(19 files)client-polyfills.js, Viteresolve.aliasnode shims, andpublic/polyfills/. Onlynaming-baseline.jsonpin.lib/esm-compat/**(2 files)astro.config.mjsaliases).lib/auth-legacy.tsimportsites; only stale comments in auth modules (updated).lib/logging.ts(root file)lib/logging/directory.@/lib/loggingis used in production; after deletion it resolves tolib/logging/index.ts(TS bundler resolution prefers the directory index once the sibling.tsfile is gone).Co-located tests under
metaaligner/**were removed with their trees.Kept (and why)
lib/arrays.ts,lib/async.tslib/utils.ts(export * from './async'/'./arrays'). Production code imports@/lib/utils(e.g.cn). Audit note about “comments only” was incorrect.lib/deployment/productionManager.tstypes/deployment.tslib/; still re-exported fromastro-components.d.ts.lib/ai,lib/fhe,lib/ehr-native,lib/security, middlewareConfig / hygiene
local-test-runner.mjslib-servicesbucketbusiness-strategyoxlint ignore patternslarge-file-baseline.json(135 → 123 entries) andnaming-baseline.jsonpolyfills pin.gitignoremetaaligner explainability entryVerification
pnpm lint— pass (Node 24.20.0)pnpm build— passpnpm test:unit— same two pre-existing failures as staging (no new failures):apps/web/src/lib/graphql/__tests__/graphql.test.ts(graphql-yoga /@graphql-tools/utilsexport)apps/web/src/lib/api-versioning/__tests__/versioning.test.ts(6-month sunset month flake)Stats
git diff --shortstat)