Skip to content

Commit 8c5c289

Browse files
committed
fix: dash-cased exports to camelCase
1 parent c3fe157 commit 8c5c289

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/gold-cougars-smell.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@abstract-money/cli": patch
3+
---
4+
5+
Transforms the dash-cased contract names to camel case to fix the export.

packages/cli/src/plugins/react.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ export function react(): ReactResult {
358358

359359
content.push(
360360
dedent`
361-
export const ${contract.name} = {
361+
export const ${camelCase(contract.name)} = {
362362
queries: {
363363
${[...queryHooks.entries()]
364364
.map(([hookName, hook]) => `${hookName}: ${hook},`)

0 commit comments

Comments
 (0)