Skip to content

Commit 53fe8d3

Browse files
authored
Merge pull request #76 from arminbro/bugfix/75
fix: bugfix #75
2 parents 0829261 + 79089bd commit 53fe8d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/generateComponentUtils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import replace from 'replace';
44
import camelCase from 'lodash/camelCase.js';
55
import kebabCase from 'lodash/kebabCase.js';
66
import snakeCase from 'lodash/snakeCase.js';
7-
import upperFirst from 'lodash/upperCase.js';
7+
import startCase from 'lodash/startCase.js';
88
import fsExtra from 'fs-extra';
99

1010
import componentJsTemplate from '../templates/component/componentJsTemplate.js';
@@ -375,7 +375,7 @@ export function generateComponent(componentName, cmd, cliConfigFile) {
375375
// Will replace the TemplateName in PascalCase
376376
replace({
377377
regex: 'TemplateName',
378-
replacement: upperFirst(camelCase(componentName)),
378+
replacement: startCase(camelCase(componentName)).replace(/ /g, ''),
379379
paths: [componentPath],
380380
recursive: false,
381381
silent: true,

0 commit comments

Comments
 (0)