chore(deps): prune stale knip config entries - #8165
Open
EvilGenius13 wants to merge 1 commit into
Open
Conversation
- 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).
EvilGenius13
marked this pull request as ready for review
July 27, 2026 16:38
Contributor
There was a problem hiding this comment.
✅ 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
entryglobs that match no files and drops explicit entries for config files that are handled elsewhere. - Removes an
ignoreentry forpackages/e2e/scripts/**(already covered byignoreWorkspaces: ["packages/e2e"]). - Removes several workspace-level
ignoreDependenciesentries 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Prunes 14 stale entries from the inline
knipconfig in rootpackage.json.Why
pnpm knipwas emitting 16 configuration hints flagging its own config as stale. All 14 targeted entries were verified obsolete:ignoreDependencieswere suppressing nothing — each dep is now genuinely used (direct imports, generated GraphQL client files, or@testing-library/reactpeer deps). Since knip'sdependenciesrule iserror, a truly-unused dep would have failed the run; it stays green.entrypatterns were dead: 3 match zero files (docs-shopify.dev/**/*.ts,docs/api/cli-kit/**/*.js, plugin-cloudflarecommands/hooks) and 2 duplicate knip's built-in defaults (vite.config.ts,graphql.config.ts).ignore(packages/e2e/scripts/**) nested inside the already-ignoredpackages/e2eworkspace.