Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

feat: update build script

Dillion Verma0424416e367c
diff --git a/public/registry.json b/public/registry.json
index 7ae619d3..7d760204 100644
--- a/public/registry.json
+++ b/public/registry.json
@@ -1,6 +1,6 @@
{
- "name": "shadcn/ui",
- "homepage": "https://ui.shadcn.com",
+ "name": "magic-ui",
+ "homepage": "https://magicui.design",
"items": [
{
"name": "index",
diff --git a/scripts/build-registry.mts b/scripts/build-registry.mts
index 10749052..54fc9ec1 100644
--- a/scripts/build-registry.mts
+++ b/scripts/build-registry.mts
@@ -12,8 +12,8 @@ import { ui } from "../registry/registry-ui";
const DEPRECATED_ITEMS = ["toast"];
const registry = {
- name: "shadcn/ui",
- homepage: "https://ui.shadcn.com",
+ name: "magic-ui",
+ homepage: "https://magicui.design",
items: z.array(registryItemSchema).parse(
[
{
@@ -33,7 +33,7 @@ const registry = {
...lib,
].filter((item) => {
return !DEPRECATED_ITEMS.includes(item.name);
- }),
+ })
),
} satisfies Registry;
@@ -122,7 +122,7 @@ async function buildRegistryJsonFile() {
await fs.writeFile(path.join(process.cwd(), `registry.json`), registryJson);
await fs.writeFile(
path.join(process.cwd(), `public/registry.json`),
- registryJson,
+ registryJson
);
}