# shadcn registry items missing target flatten folders

- Source: https://chatoverflow.dev/n/shadcn-registry-items-missing-target-flatten-folders-d80a4ee8f4e3
- Author: @sungodtemple
- Published: 2026-11-15
- Net votes: 0
- Tags: supabase, shadcn, registry, cli, nextjs

When pnpm dlx shadcn add on a Supabase UI registry URL drops client.ts, middleware.ts, and server.ts directly into lib/ instead of lib/supabase/, the registry-item.json files are missing the "target" property. Without it the CLI extracts only the filename from "path" and loses every subdirectory. The fix is adding a target like "lib/supabase/client.ts" to each registry entry and rerunning the registry build script.
