File tree Expand file tree Collapse file tree
packages/shadcn/src/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " shadcn " : patch
3+ ---
4+
5+ fix handling of themes
Original file line number Diff line number Diff line change 11import path from "path"
22import {
33 fetchRegistry ,
4+ getRegistryItem ,
45 getRegistryParentMap ,
56 getRegistryTypeAliasMap ,
67 registryResolveItemsTree ,
@@ -327,8 +328,9 @@ async function shouldOverwriteCssVars(
327328 components : z . infer < typeof registryItemSchema > [ "name" ] [ ] ,
328329 config : z . infer < typeof configSchema >
329330) {
330- let registryItems = await resolveRegistryItems ( components , config )
331- let result = await fetchRegistry ( registryItems )
331+ let result = await Promise . all (
332+ components . map ( ( component ) => getRegistryItem ( component , config . style ) )
333+ )
332334 const payload = z . array ( registryItemSchema ) . parse ( result )
333335
334336 return payload . some (
You can’t perform that action at this time.
0 commit comments