Skip to content

chore(deps): prune stale knip config entries - #8165

Open
EvilGenius13 wants to merge 1 commit into
mainfrom
jf/knip-config-prune
Open

chore(deps): prune stale knip config entries#8165
EvilGenius13 wants to merge 1 commit into
mainfrom
jf/knip-config-prune

Conversation

@EvilGenius13

@EvilGenius13 EvilGenius13 commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

What

Prunes 14 stale entries from the inline knip config in root package.json.

Why

pnpm knip was emitting 16 configuration hints flagging its own config as stale. All 14 targeted entries were verified obsolete:

  • 8 ignoreDependencies were suppressing nothing — each dep is now genuinely used (direct imports, generated GraphQL client files, or @testing-library/react peer deps). Since knip's dependencies rule is error, a truly-unused dep would have failed the run; it stays green.
  • 5 entry patterns were dead: 3 match zero files (docs-shopify.dev/**/*.ts, docs/api/cli-kit/**/*.js, plugin-cloudflare commands/hooks) and 2 duplicate knip's built-in defaults (vite.config.ts, graphql.config.ts).
  • 1 ignore (packages/e2e/scripts/**) nested inside the already-ignored packages/e2e workspace.

- Remove 8 obsolete `ignoreDependencies` entries now genuinely used (direct imports, generated GraphQL clients, or @testing-library/react peer deps) across app, cli-kit, store, organizations, ui-extensions-server-kit, ui-extensions-test-utils.
- Remove 5 dead/redundant `entry` patterns: non-matching globs (docs-shopify.dev/**/*.ts, docs/api/cli-kit/**/*.js, plugin-cloudflare commands/hooks) and knip built-in defaults (vite.config.ts, graphql.config.ts).
- Remove 1 redundant `ignore` (packages/e2e/scripts/** — packages/e2e is already in ignoreWorkspaces).
- No behavior change: knip still exits 0 with zero findings; config hints drop 16 -> 2 (remaining 2 are pre-existing ./assets/** packaging refs, untouched).
@github-actions github-actions Bot added the no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users. label Jul 23, 2026
@EvilGenius13
EvilGenius13 marked this pull request as ready for review July 27, 2026 16:38
@EvilGenius13
EvilGenius13 requested a review from a team as a code owner July 27, 2026 16:38
Copilot AI review requested due to automatic review settings July 27, 2026 16:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Ready to approve

The removed entry patterns were verified to match no files (and the remaining edits are low-risk config pruning consistent with the stated goal of eliminating stale knip hints).

Note: this review does not count toward required approvals for merging.

Pull request overview

Prunes stale entries from the root package.json inline knip configuration to eliminate knip configuration hints about obsolete entry, ignore, and ignoreDependencies settings.

Changes:

  • Removes root entry globs that match no files and drops explicit entries for config files that are handled elsewhere.
  • Removes an ignore entry for packages/e2e/scripts/** (already covered by ignoreWorkspaces: ["packages/e2e"]).
  • Removes several workspace-level ignoreDependencies entries that are no longer needed.
File summaries
File Description
package.json Cleans up the inline knip config by removing stale entry/ignore globs and unnecessary ignoreDependencies entries.

Review details

  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Low

Note

Your feedback helps us improve the quality of this feature.
Please use 👍 or 👎 to tell us whether this assessment is correct.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants