Skip to content

Commit aa4c446

Browse files
committed
Fix uses of camel case
1 parent 347af11 commit aa4c446

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/host/app/components/operator-mode/create-file-modal.gts

+1
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,7 @@ export class ${className} extends ${exportName}Parent {
591591
.split('/')
592592
.pop()!
593593
.replace(/\.[^.]+$/, ''),
594+
{ pascalCase: true },
594595
);
595596
// check for parent/className declaration collision
596597
parent = parent === className ? `${parent}Parent` : parent;

packages/runtime-common/module-syntax.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import {
1919
} from './remove-field-plugin';
2020
import { ImportUtil } from 'babel-import-util';
2121
import camelCase from 'camelcase';
22-
import upperFirst from 'lodash/upperFirst';
2322
import isEqual from 'lodash/isEqual';
2423
import { parseTemplates } from '@cardstack/ember-template-imports/lib/parse-templates';
2524
import {
@@ -473,7 +472,7 @@ function suggestedCardName(
473472
if (name === 'default') {
474473
name = ref.module.split('/').pop()!;
475474
}
476-
return upperFirst(camelCase(`${name} ${type}`));
475+
return camelCase(`${name} ${type}`, { pascalCase: true });
477476
}
478477

479478
function insertFieldBeforePath(

0 commit comments

Comments
 (0)