mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-09 06:55:07 +00:00
* feat: add support for package imports * fix * test(cli): surface add command failures * test(cli): remove stale pnpm pin from fixture * fix(cli): reject invalid package import targets * fix(cli): address package import review feedback * feat(shadcn): alias placeholders in target * docs: update docs for alias and examples * chore: remove lockfile drift * chore: clean up * fix(shadcn): route target aliases by workspace * docs(registry): document target subdirectories
20 lines
686 B
JSON
20 lines
686 B
JSON
{
|
|
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
"name": "example-target-alias-child",
|
|
"type": "registry:component",
|
|
"files": [
|
|
{
|
|
"path": "registry/example-target-alias-child/ui/dependency-button.tsx",
|
|
"type": "registry:ui",
|
|
"content": "export function DependencyButton() {\n return <button>Dependency Button</button>\n}\n",
|
|
"target": "@ui/dependency-button.tsx"
|
|
},
|
|
{
|
|
"path": "registry/example-target-alias-child/lib/dependency-helper.ts",
|
|
"type": "registry:lib",
|
|
"content": "export function dependencyHelper() {\n return \"dependency-helper\"\n}\n",
|
|
"target": "@lib/dependency-helper.ts"
|
|
}
|
|
]
|
|
}
|