Skip to content

Conversation

@TruffleClock
Copy link

Fixes #5427

Problem

The diff command can't detect changes in components because it uses deprecated functions (fetchTree, getItemTargetPath) that add the string ui to the path twice.

  • Expected path: src/ui/dialog.tsx
  • Actual path checked: src/ui/ui/dialog.tsx

This causes the command to output "No updates found" even when local files are changed.

Solution

  • Replace fetchTreeresolveRegistryItems
  • Replace getItemTargetPath + path.resolveresolveFilePath

@vercel
Copy link

vercel bot commented Oct 30, 2025

@TruffleClock is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug]: shadcn cli - diff command not working

1 participant