🔧(react) format correctly sub folders components

Without this commit, the design tokens would contain the folders
"/" in their names, which is not compliant with most of generators
output we implement.
This commit is contained in:
Nathan Vasse
2023-04-14 16:36:30 +02:00
committed by NathanVss
parent f0a1dd2f5b
commit 74abf9b8a7

View File

@@ -24,6 +24,7 @@ files.forEach((file) => {
throw new Error("Tokens file does not export tokens " + file);
}
componentName = componentName.replace("/", "-");
components[componentName] = res.tokens(defaultTokens);
});