Repository navigation
chore(deps): remove unused example dependencies - #401
Merged
Merged
Conversation
- Drop @clack/prompts, @tanstack/ai and @tanstack/ai-openai from the examples workspace. No file in examples/, tests/ or mocks/ imports them; knip only stayed quiet because they were in ignoreDependencies. - Drop their catalog entries and minimumReleaseAgeExclude entries. - Drop the stale test:node entry from knip ignoreBinaries, which knip itself reports as an unneeded configuration hint. The lockfile only loses packages; no remaining package changes version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Guillaume Lebedel <10488548+glebedel@users.noreply.github.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
commit: |
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.
Summary
The examples workspace declared
@clack/prompts,@tanstack/aiand@tanstack/ai-openai, but nothing imports them: they sat in knip'signoreDependencies, so knip never flagged them. This removes them with their catalog andminimumReleaseAgeExcludeentries, and dropstest:nodefrom knip'signoreBinaries, which knip itself reports as unused onmain("Remove from ignoreBinaries"): no script or workflow in the repo calls it.examples/package.json,pnpm-workspace.yaml,knip.config.ts: the entries above.@typescript/native-previewstays inignoreDependencieson purpose, since perf(deps-dev): use native TypeScript for Vitest checks #388 changes that line.pnpm-lock.yaml: removals only (@clack/*,@tanstack/*,partial-json,sisteransi). Diffing thename@versionkeys before and after shows no package changing version and no new resolution or tarball source. The other changed lines are(supports-color@7.2.0)peer suffixes, a resolution side effect of the removal; that version was already locked onmain.strictDepBuilds,allowBuilds,blockExoticSubdeps,trustPolicy,minimumReleaseAge) are unchanged; the release-age exclude list only gets shorter.Note: #399 bumps
@tanstack/aiand@tanstack/ai-openai; whichever merges second needs those two bumps dropped.Proof at dcfa680
pnpm install --frozen-lockfile: clean.examples/node_moduleshas no@tanstackor@clacklink.pnpm vitest run --project examples: 6 files, 10 passed, so every example still runs without the packages.pnpm lint: pass. Knip'stest:node"Remove from ignoreBinaries" hint, present onmain, is gone; only the existing@typescript/native-previewhint remains.pnpm buildthenpnpm vitest run: 47 files, 1323 passed, 4 skipped, no type errors.Gates
.claude/rules/*incl.pnpm-usagesupply-chain settings.release-pleasenot applied/forge:forge@modelcontextprotocol/sdk, qs, path-to-regexp, proxy-addr, body-parser) are at the same versions before and after, so this PR neither adds nor fixes them/security-review/code-reviewtest:noderemoval looked unrelated): declined, knip flags the entry as unused onmainand lint passes herePost-merge validation
Dev-only change; nothing ships in
@stackone/ai. The signal is the next CI run onmainpassing install, lint and the examples tests.Requested by guillaume@stackone.com in Slack (repo audit thread).
🤖 Generated with Claude Code