Skip to main content

Introducing Knip

We've added knip for automated dependency management. It helps identify and manage unused dependencies, exports, and files across our codebase. Among many others, this tool performs static analysis to detect:

  • Unused dependencies in packages
  • Unused exports from modules
  • Unused files and entry points

Removing these should reduce bundle size by identifying truly unused code, prevents dependency creep, improves code maintainability by removing dead code paths and automates what was previously a manual cleanup process.

Configuration and related scripts are managed as part of the infrastructure/linters package.

To run checks:

pnpm run knip

To fix auto-fixable issues:

pnpm run knip --fix

For more information, you can read the full documentation.