Skip to content

Commit a9a313f

Browse files
committed
only lowerFirst in hbs
1 parent f052ad4 commit a9a313f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/utils/postProcessService.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export const postProcessService = (service: Service): Service => {
99
clone.imports.push(...operation.imports);
1010
});
1111
clone.imports = postProcessServiceImports(clone);
12-
clone.name = clone.name ? `${clone.name.charAt(0).toLowerCase()}${clone.name.slice(1)}` : clone.name;
1312

1413
return clone;
1514
};

src/utils/writeCustomTemplate/clientServices.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ export const writeClientServicesCustomTemplate = async (
3535
Handlebars.registerHelper('capitalize', str => {
3636
return str.charAt(0).toUpperCase() + str.slice(1);
3737
});
38+
Handlebars.registerHelper('lowercaseFirst', str => {
39+
return str.charAt(0).toLowerCase() + str.slice(1);
40+
});
3841

3942
const serviceTemplate = Handlebars.compile(await readFile(templatePath, 'utf8'));
4043

0 commit comments

Comments
 (0)