mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-08 14:35:09 +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
23 lines
786 B
JSON
23 lines
786 B
JSON
{
|
|
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
"name": "example-target-alias-parent",
|
|
"type": "registry:component",
|
|
"registryDependencies": [
|
|
"../../fixtures/registry/example-target-alias-child.json"
|
|
],
|
|
"files": [
|
|
{
|
|
"path": "registry/example-target-alias-parent/components/dependency-panel.tsx",
|
|
"type": "registry:component",
|
|
"content": "export function DependencyPanel() {\n return <div>Dependency Panel</div>\n}\n",
|
|
"target": "@components/dependency-panel.tsx"
|
|
},
|
|
{
|
|
"path": "registry/example-target-alias-parent/hooks/use-dependency.ts",
|
|
"type": "registry:hook",
|
|
"content": "export function useDependency() {\n return \"dependency\"\n}\n",
|
|
"target": "@hooks/use-dependency.ts"
|
|
}
|
|
]
|
|
}
|