fix: remove the intent bin that shadows @tanstack/intent #542
Installing @tanstack/devtools next to @tanstack/intent can make node_modules/.bin/intent point to our bin, and intent then fails with ERR_PACKAGE_PATH_NOT_EXPORTED. This PR removes the intent bin from all packages. It adds the tanstack-intent keyword, which current @tanstack/intent uses to find package skills.
🎯 Changes#
- 5 published packages declared
"bin": { "intent": "./bin/intent.js" }:devtools,devtools-utils,devtools-vite,devtools-webmcp, anddevtools-event-client. Each bin imports@tanstack/intent/intent-library. @tanstack/intentremoved that subpath and the bin-based discovery (TanStack/intent#143). Because both packages declare anintentbin, npm can link either one.- This PR deletes the 6
bin/intent.jsfiles (5 packages and the private root), thebinfields, thebinentries infiles, and the knip ignore for them. - The 5 packages get the
tanstack-intentkeyword.intent setupadds this keyword, andintent validatewarns when it is missing.
✅ Checklist#
- I have followed the steps in the Contributing guide.
- I have tested code changes locally with
pnpm test:pr, or these tests do not apply to this pull request. - I fully understand the code in this pull request, including any code generated with AI assistance.
🚀 Release Impact#
- This change affects published code, and I have generated a changeset.
- This change is docs/CI/dev-only (no release).
Testing#
Commands run
publint --strictfordevtools,devtools-vite, anddevtools-event-client: all good.- I read the
@tanstack/intent@0.5.0source: discovery uses thetanstack-intentkeyword, and the package exports only.and./core. - I did not run the full
pnpm test:pr.
Manual test
- Use the repro in #525: a project with
@tanstack/intentand@tanstack/devtools. - Before this fix:
npm cican link our bin, andnpx intent helpfails withERR_PACKAGE_PATH_NOT_EXPORTED. - After this fix (with a build from this branch):
node_modules/.bin/intentis the@tanstack/intentCLI, andnpx @tanstack/intent listshows the devtools skills.
How this PR makes testing easy
No new tests. This is a package metadata change, and publint covers the package shape.
Linked issues#
Fixes #525
Risk / rollback#
Low. A user who ran our intent bin directly loses it, but that bin already failed with current @tanstack/intent. To undo, revert this PR.
Public API change#
Before
npx intent list # can resolve to the bin from @tanstack/devtools, which throws
After
npx @tanstack/intent list # finds the devtools skills by the tanstack-intent keyword
🤖 Generated with Claude Code
- 1
View your CI Pipeline Execution ↗ for commit 841d43c937260477b6a3d0ec2f058e28f4e796b3
Command Status Duration Result nx affected --targets=test:eslint,test:sherif,t...✅ Succeeded 5m View ↗ nx run-many --target=test:e2e --parallel=1 --pr...✅ Succeeded 1m 9s View ↗ nx run-many --targets=build --exclude=examples/...✅ Succeeded 51s View ↗
☁️ Nx Cloud last updated this comment at
2026-10-02 13:26:33UTCMore templates
- @tanstack/devtools-example-angular-a11y-devtools
- @tanstack/devtools-example-angular-basic
- @tanstack/devtools-example-angular-panel
- ssr
- @tanstack/devtools-example-angular-with-devtools
- @tanstack/react-devtools-a11y-example
- @tanstack/devtools-example-react-basic
- start-repro
- @tanstack/devtools-custom-devtools
- tanstack-start-example-counter
- @tanstack/devtools-example-react-https
- start
- start-cloudflare
- start-nitro
- @tanstack/devtools-example-react-time-travel
- @tanstack/solid-devtools-a11y-example
- @tanstack/devtools-example-solid-basic
- @tanstack/devtools-example-devtools-ui
- @tanstack/devtools-example-solid-start
- @tanstack/query-example-vue-basic
- @tanstack/devtools-example-preact-basic
- @tanstack/devtools-custom-devtools-preact
@tanstack/angular-devtools
npm i https://pkg.pr.new/@tanstack/angular-devtools@542@tanstack/devtools
npm i https://pkg.pr.new/@tanstack/devtools@542@tanstack/devtools-a11y
npm i https://pkg.pr.new/@tanstack/devtools-a11y@542@tanstack/devtools-bundler-core
npm i https://pkg.pr.new/@tanstack/devtools-bundler-core@542@tanstack/devtools-client
npm i https://pkg.pr.new/@tanstack/devtools-client@542@tanstack/devtools-rspack
npm i https://pkg.pr.new/@tanstack/devtools-rspack@542@tanstack/devtools-ui
npm i https://pkg.pr.new/@tanstack/devtools-ui@542@tanstack/devtools-utils
npm i https://pkg.pr.new/@tanstack/devtools-utils@542@tanstack/devtools-vite
npm i https://pkg.pr.new/@tanstack/devtools-vite@542@tanstack/devtools-webmcp
npm i https://pkg.pr.new/@tanstack/devtools-webmcp@542@tanstack/devtools-event-bus
npm i https://pkg.pr.new/@tanstack/devtools-event-bus@542@tanstack/devtools-event-client
npm i https://pkg.pr.new/@tanstack/devtools-event-client@542@tanstack/preact-devtools
npm i https://pkg.pr.new/@tanstack/preact-devtools@542@tanstack/react-devtools
npm i https://pkg.pr.new/@tanstack/react-devtools@542@tanstack/solid-devtools
npm i https://pkg.pr.new/@tanstack/solid-devtools@542@tanstack/svelte-devtools
npm i https://pkg.pr.new/@tanstack/svelte-devtools@542@tanstack/vue-devtools
npm i https://pkg.pr.new/@tanstack/vue-devtools@542commit:
841d43cAlso hitting this on a fresh
bunx @tanstack/cli@latest createscaffold (bun 1.4.2,@tanstack/devtools0.15.0,@tanstack/intent0.5.6): the scaffold'sintent installstep fails, and thebunx ... intentcommands written toAGENTS.mdfail withERR_PACKAGE_PATH_NOT_EXPORTED. This matches what router did in TanStack/router#7333. Would be great to get this reviewed and released 🙏AlemTuzlak merged this9c58288
AlemTuzlak closed this
🎉 This PR has been released!
- @tanstack/devtools@0.16.0
- @tanstack/devtools-utils@0.7.2
- @tanstack/devtools-vite@0.8.6
- @tanstack/devtools-webmcp@0.0.3
Thank you for your contribution!
Sign in to join this conversation.
Warning
Review limit reached#
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 41 minutes.
Check out review usage here.
View limit details
Limit details: You’ve used all 4 included reviews currently available.
Learn how review limits work.
Review configuration:
⚙️ Run configuration
Configuration used: Repository: TanStack/devtools/.coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
6363e950-009d-4df3-866f-fad7ad627ef2📥 Commits
Reviewing files that changed from the base of the PR and between afa01fec1751308eb5f60e737e408f2fc34e669a and 841d43c937260477b6a3d0ec2f058e28f4e796b3.
📒 Files selected for processing (14)
.changeset/remove-intent-bin.mdbin/intent.jsknip.jsonpackage.jsonpackages/devtools-utils/bin/intent.jspackages/devtools-utils/package.jsonpackages/devtools-vite/bin/intent.jspackages/devtools-vite/package.jsonpackages/devtools-webmcp/bin/intent.jspackages/devtools-webmcp/package.jsonpackages/devtools/bin/intent.jspackages/devtools/package.jsonpackages/event-bus-client/bin/intent.jspackages/event-bus-client/package.jsonThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share