(11/n) shadcn: filter out deprecated from --all (#6617)

* fix(shadcn): filter out deprecated from --all

* chore: changeset
This commit is contained in:
shadcn
2025-02-11 13:28:41 +04:00
committed by GitHub
parent 202131cd7b
commit bd8533bd26
2 changed files with 10 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"shadcn": patch
---
filter out deprecated from --all

View File

@@ -204,7 +204,11 @@ async function promptForRegistryComponents(
}
if (options.all) {
return registryIndex.map((entry) => entry.name)
return registryIndex
.map((entry) => entry.name)
.filter(
(component) => !DEPRECATED_COMPONENTS.some((c) => c.name === component)
)
}
if (options.components?.length) {