registry.json schema is used to define your custom component registry.
registry.json
Definitions
You can see the JSON Schema forregistry.json here.
$schema
The$schema property is used to specify the schema for the registry.json file.
registry.json
name
Thename property is used to specify the name of your registry. This is used for data attributes and other metadata.
registry.json
homepage
The homepage of your registry. This is used for data attributes and other metadata.registry.json
items
Theitems in your registry. Each item must implement the registry-item schema specification.
registry.json
aliases
aliases define how your registry’s internal import paths will be transformed when users install your components. These should match how you import components within your registry code.
For example, if your registry’s component has:
registry.json should have matching aliases:
registry.json
components.json configuration. The aliases you define here are the “source” paths that will be replaced.
Default aliases (if you don’t specify any):
registry.json
overrideDependencies
overrideDependencies lets you force specific version ranges for dependencies, overriding what shadcn-svelte registry build detects in your package.json.
Common use cases:
- Using latest pre-release versions:
"overrideDependencies": ["paneforge@next"] - Pinning to specific versions:
"overrideDependencies": ["[email protected]"]
Warning: Overriding dependencies can lead to version conflicts if not carefully managed. This option should be used sparingly.
@next version will be used instead of 1.0.0-next.1