From 8b8ef097f3f0b41a428f9885889a77bf14985818 Mon Sep 17 00:00:00 2001 From: Elliot Hesp Date: Thu, 8 Jan 2026 11:35:58 +0000 Subject: [PATCH] fix(shadcn): add registry.json to root of registry directory output --- packages/shadcn/build.ts | 4 ++++ packages/shadcn/registry-spec.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/shadcn/build.ts b/packages/shadcn/build.ts index 8edef679..0aad5e04 100644 --- a/packages/shadcn/build.ts +++ b/packages/shadcn/build.ts @@ -52,6 +52,10 @@ if (fs.existsSync(publicRDir)) { try { try { execSync(`./node_modules/.bin/shadcn build -o ${outDir}`, { stdio: "inherit" }); + + // Copy the generated registry.json file to the output directory + const outRegistryJson = path.join(outDir, "registry.json"); + fs.copyFileSync("registry.json", outRegistryJson); } catch (error) { console.error("shadcn build failed:", error); process.exit(1); diff --git a/packages/shadcn/registry-spec.json b/packages/shadcn/registry-spec.json index 3e7155d5..2619c503 100644 --- a/packages/shadcn/registry-spec.json +++ b/packages/shadcn/registry-spec.json @@ -1,6 +1,6 @@ { "$schema": "https://ui.shadcn.com/schema/registry.json", - "name": "firebase-ui", + "name": "firebase", "homepage": "{{ DOMAIN }}", "items": [ {