fix: registry example dependency drift checks#917
Merged
Yeom-JinHo merged 13 commits intomagicuidesign:mainfrom Mar 6, 2026
Merged
fix: registry example dependency drift checks#917Yeom-JinHo merged 13 commits intomagicuidesign:mainfrom
Yeom-JinHo merged 13 commits intomagicuidesign:mainfrom
Conversation
|
@Yeom-JinHo is attempting to deploy a commit to the product-studio Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
This PR adds automatic validation and sync for example
registryDependenciesbased on the actual@/registry/magicui/*imports used in example files.It also fixes the registry build order so synced source data is loaded before registry artifacts are generated.
On top of that, it adds local and CI checks to catch dependency drift earlier.
Changes
apps/www/scripts/sync-example-registry-dependencies.mtsto parse example files and detect missing@magicui/*registry dependencies.registry-deps:checkandregistry-deps:fixscripts inapps/www, plus a rootregistry-deps:checkalias.checkscripts and added a dedicatedpnpm registry-deps:checkjob to CI.Motivation
Example
registryDependencieswere maintained manually, so they could drift from the actual components imported by example files.That made the registry metadata less reliable and could let source mismatches slip through until build time.
This change makes the dependency list verifiable, keeps builds consistent, and gives both local and CI feedback before bad metadata lands.
Breaking Changes
None.