Skip to content

Commit

Permalink
script to support ERC components
Browse files Browse the repository at this point in the history
  • Loading branch information
ponderingdemocritus committed Dec 18, 2023
1 parent bcc0ec6 commit b098a36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/dojo-starter
6 changes: 5 additions & 1 deletion packages/core/bin/generateComponents.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ manifest.models.forEach((model) => {

let result = model.name.split("::").pop().split("_");
let modelName = result
.map((part) => part.charAt(0).toUpperCase() + part.slice(1))
.map((part) => {
return part === part.toLowerCase() && part.length > 2
? part.charAt(0).toUpperCase() + part.slice(1)
: part.toUpperCase();
})
.join("");

try {
Expand Down

0 comments on commit b098a36

Please sign in to comment.