Skip to content

fix: registry example dependency drift checks#917

Merged
Yeom-JinHo merged 13 commits intomagicuidesign:mainfrom
Yeom-JinHo:fix/registryDep
Mar 6, 2026
Merged

fix: registry example dependency drift checks#917
Yeom-JinHo merged 13 commits intomagicuidesign:mainfrom
Yeom-JinHo:fix/registryDep

Conversation

@Yeom-JinHo
Copy link
Member

@Yeom-JinHo Yeom-JinHo commented Mar 6, 2026

Description

This PR adds automatic validation and sync for example registryDependencies based 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

  • Added apps/www/scripts/sync-example-registry-dependencies.mts to parse example files and detect missing @magicui/* registry dependencies.
  • Updated the registry build flow to run the sync step first and load the registry only after the source file has been updated.
  • Added registry-deps:check and registry-deps:fix scripts in apps/www, plus a root registry-deps:check alias.
  • Included the registry dependency validation in local check scripts and added a dedicated pnpm registry-deps:check job to CI.
  • Fixed missing example registry dependencies surfaced by the new validation, including the tweet card examples.

Motivation

Example registryDependencies were 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.

@vercel
Copy link

vercel bot commented Mar 6, 2026

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

@Yeom-JinHo Yeom-JinHo self-assigned this Mar 6, 2026
@Yeom-JinHo Yeom-JinHo changed the title Fix/registry dep fix: registry example dependency drift checks Mar 6, 2026
@Yeom-JinHo Yeom-JinHo merged commit 63139e6 into magicuidesign:main Mar 6, 2026
5 of 6 checks passed
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.

1 participant