Skip to content

Commit

Permalink
Increase scan depth for Chakra CLI on non-color tokens (chakra-ui#5472)
Browse files Browse the repository at this point in the history
* feat: increase scan depth for chakra cli (chakra-ui#5457)

* chore: add changelog (chakra-ui#5457)
  • Loading branch information
lukasbach authored Jan 28, 2022
1 parent 97fc1c4 commit 5bfb298
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/six-bags-bake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@chakra-ui/cli": minor
---

Increased scan depth for tokens in cli tooling
2 changes: 1 addition & 1 deletion tooling/cli/src/command/tokens/extract-property-paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function printUnionMap(
/**
* Extract recursively all property paths with a max depth
*/
export function extractPropertyPaths(target: unknown, maxDepth = 1) {
export function extractPropertyPaths(target: unknown, maxDepth = 3) {
if ((!isObject(target) && !Array.isArray(target)) || !maxDepth) {
return []
}
Expand Down

0 comments on commit 5bfb298

Please sign in to comment.