Skip to content
Source
Sign inSign up
TanStack/devtools

fix: remove the intent bin that shadows @tanstack/intent #542

MergedAlemTuzlakmerged 1 commit intomain fromrefs/pull/542/headmerged by AlemTuzlak View on GitHub

AlemTuzlakcommented

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, and devtools-event-client. Each bin imports @tanstack/intent/intent-library.
  • @tanstack/intent removed that subpath and the bin-based discovery (TanStack/intent#143). Because both packages declare an intent bin, npm can link either one.
  • This PR deletes the 6 bin/intent.js files (5 packages and the private root), the bin fields, the bin entries in files, and the knip ignore for them.
  • The 5 packages get the tanstack-intent keyword. intent setup adds this keyword, and intent validate warns 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 --strict for devtools, devtools-vite, and devtools-event-client: all good.
  • I read the @tanstack/intent@0.5.0 source: discovery uses the tanstack-intent keyword, and the package exports only . and ./core.
  • I did not run the full pnpm test:pr.

Manual test

  1. Use the repro in #525: a project with @tanstack/intent and @tanstack/devtools.
  2. Before this fix: npm ci can link our bin, and npx intent help fails with ERR_PACKAGE_PATH_NOT_EXPORTED.
  3. After this fix (with a build from this branch): node_modules/.bin/intent is the @tanstack/intent CLI, and npx @tanstack/intent list shows 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. 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.md
      • bin/intent.js
      • knip.json
      • package.json
      • packages/devtools-utils/bin/intent.js
      • packages/devtools-utils/package.json
      • packages/devtools-vite/bin/intent.js
      • packages/devtools-vite/package.json
      • packages/devtools-webmcp/bin/intent.js
      • packages/devtools-webmcp/package.json
      • packages/devtools/bin/intent.js
      • packages/devtools/package.json
      • packages/event-bus-client/bin/intent.js
      • packages/event-bus-client/package.json
      • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

      Autopilot is currently an internal CodeRabbit preview.


      Thanks 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
      Comment `@coderabbitai help` to get the list of available commands.
    2. nx-cloud[bot](GitHub profile, opens in a new tab)commented

      View your CI Pipeline Execution ↗ for commit 841d43c937260477b6a3d0ec2f058e28f4e796b3

      CommandStatusDurationResult
      nx affected --targets=test:eslint,test:sherif,t...✅ Succeeded5mView ↗
      nx run-many --target=test:e2e --parallel=1 --pr...✅ Succeeded1m 9sView ↗
      nx run-many --targets=build --exclude=examples/...✅ Succeeded51sView ↗

      ☁️ Nx Cloud last updated this comment at 2026-10-02 13:26:33 UTC

    3. More templates

      @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@542

      commit: 841d43c

    4. Also hitting this on a fresh bunx @tanstack/cli@latest create scaffold (bun 1.4.2, @tanstack/devtools 0.15.0, @tanstack/intent 0.5.6): the scaffold's intent install step fails, and the bunx ... intent commands written to AGENTS.md fail with ERR_PACKAGE_PATH_NOT_EXPORTED. This matches what router did in TanStack/router#7333. Would be great to get this reviewed and released 🙏

    5. AlemTuzlak merged this9c58288

    6. AlemTuzlak closed this

Sign in to join this conversation.