mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-23 20:55:47 +00:00
* Fix init command for default style The empty dependency string was tripping up package managers. * fix(www): registry dependencies for default --------- Co-authored-by: shadcn <m@shadcn.com>
This commit is contained in:
committed by
GitHub
parent
faa7a67fb3
commit
4e4118f3cf
@@ -4,8 +4,7 @@
|
||||
"dependencies": [
|
||||
"tailwindcss-animate",
|
||||
"class-variance-authority",
|
||||
"lucide-react",
|
||||
""
|
||||
"lucide-react"
|
||||
],
|
||||
"registryDependencies": [
|
||||
"utils"
|
||||
|
||||
@@ -426,16 +426,21 @@ async function buildStylesIndex() {
|
||||
for (const style of styles) {
|
||||
const targetPath = path.join(REGISTRY_PATH, "styles", style.name)
|
||||
|
||||
const dependencies = [
|
||||
"tailwindcss-animate",
|
||||
"class-variance-authority",
|
||||
"lucide-react",
|
||||
]
|
||||
|
||||
// TODO: Remove this when we migrate to lucide-react.
|
||||
if (style.name === "new-york") {
|
||||
dependencies.push("@radix-ui/react-icons")
|
||||
}
|
||||
|
||||
const payload: RegistryEntry = {
|
||||
name: style.name,
|
||||
type: "registry:style",
|
||||
dependencies: [
|
||||
"tailwindcss-animate",
|
||||
"class-variance-authority",
|
||||
"lucide-react",
|
||||
// TODO: Remove this when we migrate to lucide-react.
|
||||
style.name === "new-york" ? "@radix-ui/react-icons" : "",
|
||||
],
|
||||
dependencies,
|
||||
registryDependencies: ["utils"],
|
||||
tailwind: {
|
||||
config: {
|
||||
|
||||
Reference in New Issue
Block a user