Skip to content

Conversation

ben-fornefeld
Copy link
Member

@ben-fornefeld ben-fornefeld commented Sep 29, 2025

  • Removed unused dependencies from package.json and bun.lock, including fumadocs packages and others.

Note

Adds Knip with CI integration, removes unused dependencies, updates Bun/TypeScript/tooling, and refactors imports to server-only and motion/react.

  • CI/Tooling:
    • Add knip.json and GitHub workflow .github/workflows/dependencies.yml to run Knip; add knip scripts in package.json.
    • Update Tests workflow (names, Bun setup v2, --frozen-lockfile).
  • Dependencies:
    • Remove unused packages (e.g., fumadocs-*, react-svg, remark-*/rehype-katex, postgres, drizzle-kit, testing-library deps, others); add knip; move/adjust pino-pretty; bump typescript and @types/node.
    • Regenerate bun.lock accordingly.
  • Refactors:
    • Replace server-cli-only with server-only in server modules and API routes; mock server-only in tests setup.
    • Switch framer-motion usage to motion/react in client components.
    • Simplify icon component props (remove react-icons type import).

Written by Cursor Bugbot for commit a1f6b25. This will update automatically on new commits. Configure here.

- Removed unused dependencies from package.json and bun.lock, including fumadocs packages and others.
- Updated icon component props to remove unnecessary type imports, simplifying the code.
Copy link

vercel bot commented Sep 29, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
web Ready Ready Preview Comment Oct 1, 2025 4:47pm
web-juliett Ready Ready Preview Comment Oct 1, 2025 4:47pm

Copy link
Member

@jakubno jakubno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. only nit - can you add knip + add it to the CI to keep it a good state in future?

@jakubno jakubno self-assigned this Sep 30, 2025
- Added "knip" as a new dependency in bun.lock and package.json.
- Updated "@napi-rs/wasm-runtime" and "@tybys/wasm-util" to their latest versions.
- Added new optional dependencies for "oxc-resolver" bindings across various platforms.
- Included "knip" commands in package.json for easier usage in development and production environments.
- Ensured consistent formatting in package.json for better readability.
- Upgraded Bun setup action from v1 to v2.
- Changed Bun version from 1.2.20 to 1.2.0.
- Modified dependency installation command to use the frozen lockfile option.
- Added a TODO comment to indicate the need for a proper integration test suite environment.
@ben-fornefeld ben-fornefeld changed the title Chore: Clean-up unused/unecessary deps Chore: Clean-up unused/unecessary deps and add knip integration Sep 30, 2025
- Upgraded "@types/node" from "22.10.10" to "^24.6.0".
- Updated "typescript" from "5.7.3" to "^5.9.2".
- Added "knip" as a new dependency with version "^5.64.1".
- Updated "@napi-rs/wasm-runtime" to "1.0.5" and "@tybys/wasm-util" to "0.10.1".
- Included new optional dependencies for "oxc-resolver" bindings across various platforms.
@ben-fornefeld
Copy link
Member Author

there is a lot more unused code here, thanks @jakubno for pointing at knip! i will go through all of it and filter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants