diff --git a/.changeset/proud-snails-switch.md b/.changeset/proud-snails-switch.md new file mode 100644 index 0000000000..9aa3af62f7 --- /dev/null +++ b/.changeset/proud-snails-switch.md @@ -0,0 +1,5 @@ +--- +"shadcn": patch +--- + +filter out deprecated from --all diff --git a/packages/shadcn/src/commands/add.ts b/packages/shadcn/src/commands/add.ts index 0e46dc63ff..c22f7da799 100644 --- a/packages/shadcn/src/commands/add.ts +++ b/packages/shadcn/src/commands/add.ts @@ -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) {