Files
shadcn-ui/apps/www/public/registry.json
shadcn 5f7957ab51 feat(shadcn): add new registry:file type (#6377)
* feat(shadcn): add new registry:file type

* chore: add changeset

* fix: file target
2025-01-16 15:46:33 +04:00

137 lines
2.7 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"registry:lib",
"registry:block",
"registry:component",
"registry:ui",
"registry:hook",
"registry:theme",
"registry:page",
"registry:file"
]
},
"description": {
"type": "string"
},
"title": {
"type": "string"
},
"author": {
"type": "string"
},
"dependencies": {
"type": "array",
"items": {
"type": "string"
}
},
"devDependencies": {
"type": "array",
"items": {
"type": "string"
}
},
"registryDependencies": {
"type": "array",
"items": {
"type": "string"
}
},
"files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"content": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"registry:lib",
"registry:block",
"registry:component",
"registry:ui",
"registry:hook",
"registry:theme",
"registry:page"
]
},
"target": {
"type": "string"
}
},
"required": ["path", "type"]
}
},
"tailwind": {
"type": "object",
"properties": {
"config": {
"type": "object",
"properties": {
"content": {
"type": "array",
"items": {
"type": "string"
}
},
"theme": {
"type": "object",
"additionalProperties": true
},
"plugins": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
},
"cssVars": {
"type": "object",
"properties": {
"light": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"dark": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
},
"meta": {
"type": "object",
"additionalProperties": true
},
"docs": {
"type": "string"
},
"categories": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": ["name", "type"]
}