🔧(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:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user