Beautiful map components. 100% Free, Zero config, one command setup.
TypeScript
fix: rename registry output path from /maps to /r to follow shadcn convention
Anmoldeep Singh52bdd03e290c
diff --git a/package.json b/package.jsonindex c031000..8aa095b 100644--- a/package.json+++ b/package.json@@ -7,7 +7,7 @@"build": "next build","start": "next start","lint": "eslint",- "registry:build": "npx shadcn build -o ./public/maps"+ "registry:build": "npx shadcn build -o ./public/r"},"dependencies": {"@radix-ui/react-dialog": "^1.1.15",diff --git a/public/maps/map.json b/public/r/map.jsonsimilarity index 100%rename from public/maps/map.jsonrename to public/r/map.jsondiff --git a/public/maps/registry.json b/public/r/registry.jsonsimilarity index 100%rename from public/maps/registry.jsonrename to public/r/registry.jsondiff --git a/src/app/(home)/_components/hero.tsx b/src/app/(home)/_components/hero.tsxindex 0b924ee..8017458 100644--- a/src/app/(home)/_components/hero.tsx+++ b/src/app/(home)/_components/hero.tsx@@ -6,7 +6,7 @@ import Link from "next/link";import { useState } from "react";const siteUrl = process.env.NEXT_PUBLIC_SITE_URL ?? "site-url-here";-const installCommand = `npx shadcn@latest add ${siteUrl}/maps/map.json`;+const installCommand = `npx shadcn@latest add ${siteUrl}/r/map.json`;function CopyButton({ text }: { text: string }) {const [copied, setCopied] = useState(false);diff --git a/src/app/docs/installation/page.tsx b/src/app/docs/installation/page.tsxindex 57cd472..bc41147 100644--- a/src/app/docs/installation/page.tsx+++ b/src/app/docs/installation/page.tsx@@ -12,7 +12,7 @@ import { Map, MapControls } from "@/registry/map";const siteUrl = process.env.NEXT_PUBLIC_SITE_URL ?? "site-url-here";-const installCode = `npx shadcn@latest add ${siteUrl}/maps/map.json`;+const installCode = `npx shadcn@latest add ${siteUrl}/r/map.json`;const usageCode = `import { Map, MapControls } from "@/components/ui/map";import { Card } from "@/components/ui/card";