Skip to content

refactor: clean up knip config by removing phantom dependencies#520

Merged
FL4TLiN3 merged 3 commits intomainfrom
refactor/clean-up-knip-config
Feb 15, 2026
Merged

refactor: clean up knip config by removing phantom dependencies#520
FL4TLiN3 merged 3 commits intomainfrom
refactor/clean-up-knip-config

Conversation

@FL4TLiN3
Copy link
Contributor

@FL4TLiN3 FL4TLiN3 commented Feb 15, 2026

Summary

  • Remove dotenv, ink, react from dependencies in apps/perstack and apps/create-expert. These were never directly imported in app source code — they are transitively resolved and bundled by tsup through @perstack/tui and @perstack/tui-components
  • Add external: ["react-devtools-core"] to CLI tsup configs (optional ink dev dependency that cannot be bundled)
  • Delete dead barrel file packages/tui-components/src/utils/index.ts (EventQueue is imported directly from event-queue.js)
  • Reduce knip ignoreDependencies from 9 entries to 2 (vitest + @perstack/runtime)

Changes

File Change
apps/perstack/package.json Remove dotenv, ink, react from dependencies
apps/create-expert/package.json Remove dotenv, ink, react from dependencies
apps/*/tsup.config.ts Add external: ["react-devtools-core"]
packages/tui-components/src/utils/index.ts Delete (dead barrel file)
knip.json Remove workspace ignoreDependencies and tui-components ignore

Test plan

  • pnpm build — all 22 tasks pass
  • pnpm typecheck — all 22 tasks pass
  • pnpm test — 100 test files, 1093 tests pass
  • pnpm check-deps (knip) — clean, no violations

🤖 Generated with Claude Code

FL4TLiN3 and others added 3 commits February 15, 2026 11:22
Remove dotenv, ink, react from CLI apps' dependencies — these were never
imported in app source code but listed solely for tsup auto-externalization.
Since tsup bundles workspace packages and resolves their transitive deps,
these are bundled through @perstack/tui and @perstack/tui-components
without needing to appear in the apps' package.json.

- Remove dotenv, ink, react from apps/perstack and apps/create-expert deps
- Add external: ["react-devtools-core"] to CLI tsup configs (ink optional dep)
- Delete dead barrel file packages/tui-components/src/utils/index.ts
- Remove tui-components ignore workaround from knip config
- Reduce ignoreDependencies from 9 entries to 2 (vitest + @perstack/runtime)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@FL4TLiN3 FL4TLiN3 merged commit 9cd706a into main Feb 15, 2026
11 checks passed
@FL4TLiN3 FL4TLiN3 mentioned this pull request Feb 15, 2026
@FL4TLiN3 FL4TLiN3 deleted the refactor/clean-up-knip-config branch February 25, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant