Skip to content

Skip config and resolve arguments without a value - #2315

Merged
webpro merged 1 commit into
webpro-nl:mainfrom
bytedoe:plugin-args-without-value
Nov 7, 2026
Merged

webpro merged 1 commit into
webpro-nl:mainfrom
bytedoe:plugin-args-without-value

Conversation

@bytedoe

@bytedoe bytedoe commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Fixes #2314.

@pkg-pr-new

pkg-pr-new Bot commented Nov 6, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/knip@2315
npm i https://pkg.pr.new/@knip/language-server@2315
npm i https://pkg.pr.new/@knip/mcp@2315

commit: b5cc2d2

@webpro webpro left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks! A --config or --resolve without a value no longer drops the imports of the file it appears in. Noting for later: the bare --config filter in the Rollup plugin is now redundant.

@webpro
webpro merged commit 71c16dc into webpro-nl:main Nov 7, 2026
32 checks passed
everton-dgn added a commit to everton-dgn/knip that referenced this pull request Nov 7, 2026
…e-20261104

Resolve the conflict in src/binaries/plugins.ts by moving the string and
config argument handling from webpro-nl#2315 into the shared parse helper, so
getWrappedCommand and resolve parse with the same options. resolve keeps
its own config list for configFilePaths, since webpro-nl#2315 removed the later
declaration it relied on.
@webpro

webpro commented Nov 10, 2026

Copy link
Copy Markdown
Member

🚀 This pull request is included in v6.45.0. See Release 6.45.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.

6.44: dangling --config in a spawnSync() call crashes script parsing silently and drops the file's imports (lingui plugin)

2 participants