Skip to main content
Glama
reuvenaor

Shadcn Registry manager

by reuvenaor
migrate.ts911 B
import { z } from "zod" // Standalone schema, not inherited or reused by others export const migrations = [ { name: "icons", description: "migrate your ui components to a different icon library.", }, { name: "radix", description: "migrate to radix-ui.", }, ] as const export const migrateOptionsSchema = z.object({ cwd: z.string().optional().describe("The working directory. Defaults to the current directory."), list: z.boolean().describe("List available migrations."), yes: z.boolean().describe("Skip all prompts and use default values."), migration: z .string() .refine( (value) => value && migrations.some((migration) => migration.name === value), { message: "You must specify a valid migration. Run `shadcn migrate --list` to see available migrations.", } ) .optional() .describe("The migration to run."), })

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/reuvenaor/shadcn-registry-manager'

If you have feedback or need assistance with the MCP directory API, please join our Discord server