t3code icon indicating copy to clipboard operation
t3code copied to clipboard

Drop seven dependencies that have no importer

Open amnesiaof opened this issue 1 month ago • 0 comments

Seven declared packages have no importer.

Package Declared in Evidence
electron-store apps/desktop/package.json:28 no reference anywhere in the repo
@expo/metro-runtime apps/mobile/package.json:52 its own package.json entry and the pnpm-workspace catalog pin, nothing else
expo-auth-session apps/mobile/package.json:80 same
expo-dev-client apps/mobile/package.json:87 same, and no developmentClient in apps/mobile/app.config.ts
react-native-worklets apps/mobile/package.json:127 same, plus one unrelated comment at .cursor/rules/cursor-cloud.mdc:55
react-native-nitro-modules apps/mobile/package.json:120 package.json, a patch entry at pnpm-workspace.yaml:265, and third-party-licenses.config.json:487. The code imports react-native-nitro-markdown, not this one
drizzle-kit infra/relay/package.json:30 no drizzle.config.ts exists in the repo and no script invokes it. Migrations are committed SQL under infra/relay/migrations/postgres/

react-native-nitro-modules is the least certain of the seven. The patch entry is the only other trace and it may just be a copy-paste in the workspace file.

Removing a dependency also means dropping its pnpm-workspace catalog pin. Nitro-modules additionally needs the patch entry and the third-party-licenses entry removed.

Checked and confirmed live, so nobody removes these by accident:

  • cross-env, used at apps/desktop/vite.config.ts:34
  • expo-asset, expo-build-properties, expo-font and expo-web-browser, all four referenced in the apps/mobile/app.config.ts plugins arrays at lines 316, 416, 318 and 357
  • @clerk/electron-passkeys, used at apps/desktop/src/app/DesktopClerk.ts:83, apps/desktop/src/preload.ts:32 and scripts/verify-preload-bundle.mjs:15,140
  • babel-plugin-react-compiler, pulled in through reactCompilerPreset() at apps/web/vite.config.ts:181

Re-check this list with dependencies installed before landing the removals. knip.jsonc is already in the repo and CI runs knip:check, so that pass should catch anything missed here.

amnesiaof avatar Oct 05 '26 16:10 amnesiaof