Skip to content

Conversation

@AlexanderKaran
Copy link
Contributor

Closes #1289

Detects database drivers (pg, mysql2, sqlite3, etc.) from knexfile.js client configurations, preventing false positives when these packages are listed as dependencies but only dynamically imported by Knex.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 24, 2025

Open in StackBlitz

npm i https://pkg.pr.new/knip@1418

commit: 5f945cb

Copy link
Member

@webpro webpro left a comment

Choose a reason for hiding this comment

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

This is great! We just need to provide more clarity about things that don't go into plugins: regular AST traversal to resolve imports is done by core already.

@AlexanderKaran AlexanderKaran marked this pull request as ready for review January 1, 2026 05:53
@webpro webpro merged commit af0ebaa into webpro-nl:main Jan 1, 2026
29 checks passed
@webpro
Copy link
Member

webpro commented Jan 1, 2026

Thank you! You're on a streak 🔥

@webpro
Copy link
Member

webpro commented Jan 2, 2026

🚀 This pull request is included in v5.79.0. See Release 5.79.0 for release notes.

Using Knip in a commercial project? Please consider becoming a sponsor.

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.

💡 Knex Plugin

2 participants