Files
shadcn-ui/packages/tests/fixtures/registry/example-target-alias-parent.json
shadcn 309d95017f feat(shadcn): alias placeholders in target (#10528)
* 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
2026-05-05 14:55:47 +04:00

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"
}
]
}