Conversation
This writes each item to `/public/r/{name}.json` with contents,
in order for the shadcn CLI to resolve those paths when using the
trusted registry URI (`@diceui/{name}`).
|
@franky47 is attempting to deploy a commit to the sadmann7 Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Pull request overview
This PR updates the documentation to use trusted registry URIs for the shadcn CLI, enabling shorter installation commands (e.g., npx shadcn@latest add @diceui/{name} instead of full URLs). The build script now writes registry items to both /public/r/styles/{style}/{name}.json (existing behavior) and /public/r/{name}.json (new root-level files for trusted registry resolution).
Key changes:
- Build script writes each registry item to
/public/r/{name}.jsonfor trusted registry URI support - Documentation files updated from URL-based format to
@diceui/scoped package format - Code style migration to single quotes and no semicolons throughout build script
Reviewed changes
Copilot reviewed 45 out of 45 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| docs/scripts/build-registry.mts | Added logic to write registry items to root path (/public/r/{name}.json) alongside existing styles subdirectory; migrated from double quotes/semicolons to single quotes/no semicolons |
| docs/public/r/.gitignore | Added gitignore to exclude generated JSON files from version control |
| docs/content/docs/utilities/*.mdx | Updated CLI installation commands from URL format to trusted registry format (@diceui/{name}) |
| docs/content/docs/components/*.mdx | Updated CLI installation commands from URL format to trusted registry format (@diceui/{name}); minor whitespace cleanup in marquee.mdx and combobox.mdx |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
For the Horde ⚔️ |
|
thanks a lot. |
This writes each item to
/public/r/{name}.jsonwith contents, in order for the shadcn CLI to resolve those paths when using the trusted registry URI:npx shadcn@latest add @diceui/{name}Note: the trusted registry is declared here: https://ui.shadcn.com/docs/directory?q=diceui
Note: this was a feedback mentioned in @TheOrcDev's live stream where DiceUI was reviewed.