-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Summary
Add Knip with --strict mode to detect unused dependencies, exports, and files in the @btst/stack package.
Motivation
The @btst/stack package has a large dependency tree with many peer dependencies. A strict Knip check would help:
- Identify unused
dependenciesandpeerDependencies - Find dead code and unused exports
- Keep the bundle size minimal
- Catch regressions in CI
Tasks
- Add
knipas a dev dependency inpackages/better-stack - Create
knip.jsonconfig (handle multiple entry points inexports) - Add
"knip": "knip --strict"script topackages/better-stack/package.json - Add to root
lintor create dedicatedpnpm kniptask - Add to CI workflow (
.github/workflows/)
Notes
May need to configure Knip's entry and ignore patterns to handle:
- Multiple plugin entry points (
plugins/*/api,plugins/*/client, etc.) - CSS exports
typesVersionsmappings
Metadata
Metadata
Assignees
Labels
No labels