Files
shadcn-ui/packages/tests/fixtures/registry/example-target-alias-child.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

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