diff --git a/apps/www/public/r/styles/default/index.json b/apps/www/public/r/styles/default/index.json index 8de00cf03e..d13e4c8203 100644 --- a/apps/www/public/r/styles/default/index.json +++ b/apps/www/public/r/styles/default/index.json @@ -4,8 +4,7 @@ "dependencies": [ "tailwindcss-animate", "class-variance-authority", - "lucide-react", - "" + "lucide-react" ], "registryDependencies": [ "utils" diff --git a/apps/www/scripts/build-registry.mts b/apps/www/scripts/build-registry.mts index f8903061f2..e12bb23d28 100644 --- a/apps/www/scripts/build-registry.mts +++ b/apps/www/scripts/build-registry.mts @@ -426,16 +426,21 @@ async function buildStylesIndex() { for (const style of styles) { const targetPath = path.join(REGISTRY_PATH, "styles", style.name) + const dependencies = [ + "tailwindcss-animate", + "class-variance-authority", + "lucide-react", + ] + + // TODO: Remove this when we migrate to lucide-react. + if (style.name === "new-york") { + dependencies.push("@radix-ui/react-icons") + } + const payload: RegistryEntry = { name: style.name, type: "registry:style", - dependencies: [ - "tailwindcss-animate", - "class-variance-authority", - "lucide-react", - // TODO: Remove this when we migrate to lucide-react. - style.name === "new-york" ? "@radix-ui/react-icons" : "", - ], + dependencies, registryDependencies: ["utils"], tailwind: { config: {