Skip to content

Commit 73b3141

Browse files
maxholmanclaude
andcommitted
fix: camelCase hono-valibot middleware export names
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 022454a commit 73b3141

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/hono-valibot.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { join } from "node:path";
2+
import camelcase from "camelcase";
23
import type { Project, SourceFile } from "ts-morph";
34
import { VariableDeclarationKind } from "ts-morph";
45

@@ -52,7 +53,7 @@ export function createHonoValibotMiddleware(
5253
declarationKind: VariableDeclarationKind.Const,
5354
declarations: [
5455
{
55-
name: exportName,
56+
name: camelcase(exportName),
5657
initializer: (writer) => {
5758
writer.write("[");
5859
writer.indent(() => {

0 commit comments

Comments
 (0)