Skip to content

Clarify that custom entry still adds entry files from package.json - #2206

Merged
webpro merged 1 commit into
webpro-nl:mainfrom
MannXo:docs/2203-entry-override-semantics
Oct 25, 2026
Merged

webpro merged 1 commit into
webpro-nl:mainfrom
MannXo:docs/2203-entry-override-semantics

Conversation

@MannXo

@MannXo MannXo commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

The configuration and entry files pages said custom values "override the default values, they are not merged". That is true for the default entry and project patterns, but entry files from package.json (main, bin, exports and so on) are still added, which is what made the reporter's config look merged.

  • overview/configuration.md: say custom entry and project replace the defaults, and that package.json entry files are always added.
  • explanations/entry-files.md: same clarification, and list all the package.json fields Knip reads (main, module, browser, bin, types, typings, exports, imports), matching getEntrySpecifiersFromManifest.

pnpm run ci and remark on both pages pass.

Fixes #2203

@webpro

webpro commented Oct 25, 2026

Copy link
Copy Markdown
Member

Thanks Parman! 🧑

@webpro
webpro merged commit 4099dde into webpro-nl:main Oct 25, 2026
@webpro

webpro commented Oct 29, 2026

Copy link
Copy Markdown
Member

πŸš€ This pull request is included in v6.44.0. See Release 6.44.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.

πŸ“˜ Documentation says that custom config override the default values, but it does not

2 participants