🔥 fix(broken): infallible registry generation, 0 error possible #348
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.
this PR is made to fix -
just via switching as below, there will be no human error, and all errors above are fixed automatically -
Note
if we don't wish to make any changes other then package.json, we can UNDO changes made to file registry.json, no code is added to it anyways, only subtracted
in future if we need to add a new component, all we need to do is (and nothing else, seriously nothing else) -
you can always add additional files and deps (human error prone)
if you wish to be shadcn build compatible, won't make any difference during
smart-registry
generation assmart-registry
is drop-in yet smart replacement toshadcn build
but still a shadcn compatible registry is generated atpublic/r/registry.json
🔥🔥 bonus - smart-registry also yields
style.json
andui.json
(i.e. equivalent toshadcn add -a
), in our case -# add all originui's UI components npx shadcn add https://originui.com/r/ui.json
and voila we have all
registry:ui
components from originui in our existing projectregistry:style
# add all cssVars to the stylesheet npx shadcn add https://originui.com/r/style.json
previews and tests -