Skip to content

1289 knex plugin#1418

Merged
webpro merged 7 commits into
webpro-nl:mainfrom
AlexanderKaran:1289-knex-plugin
Jan 1, 2026
Merged

1289 knex plugin#1418
webpro merged 7 commits into
webpro-nl:mainfrom
AlexanderKaran:1289-knex-plugin

Conversation

@AlexanderKaran
Copy link
Copy Markdown
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
Copy Markdown

pkg-pr-new Bot commented Dec 24, 2025

Open in StackBlitz

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

commit: 5f945cb

Copy link
Copy Markdown
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.

Comment thread packages/knip/src/plugins/knex/index.ts Outdated
Comment thread packages/knip/src/plugins/knex/index.ts Outdated
Comment thread packages/knip/src/plugins/knex/index.ts
@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
Copy Markdown
Member

webpro commented Jan 1, 2026

Thank you! You're on a streak 🔥

@webpro
Copy link
Copy Markdown
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.

@AlexanderKaran AlexanderKaran deleted the 1289-knex-plugin branch February 1, 2026 08:35
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