mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-30 08:04:18 +00:00
(11/n) shadcn: filter out deprecated from --all (#6617)
* fix(shadcn): filter out deprecated from --all * chore: changeset
This commit is contained in:
5
.changeset/proud-snails-switch.md
Normal file
5
.changeset/proud-snails-switch.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"shadcn": patch
|
||||
---
|
||||
|
||||
filter out deprecated from --all
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user