Skip to content

Commit

Permalink
fix: esbuild and bad generate init
Browse files Browse the repository at this point in the history
  • Loading branch information
dalechyn committed Jan 29, 2025
1 parent 3b0d86a commit 3aef780
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 22 deletions.
33 changes: 12 additions & 21 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/cli/commands/Generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ async function writeClientFile({
const formatted = await format(dedent`
import { Client, Transport } from "fhub";
export const fhubClient = Client.create(Transport.grpcNode({ baseUrl: '${rpcUrl}', httpVersion: '2' }))
export const fhubClient = Client.create(Transport.grpcNode({ baseUrl: '${rpcUrl}' }))
`)
await fs.writeFile(outPath, formatted)
}
1 change: 1 addition & 0 deletions src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"bundle-require": "^5.0.0",
"cac": "^6.7.14",
"dedent": "^1.5.3",
"esbuild": "^0.24.2",
"find-up": "^7.0.0",
"fs-extra": "^11.2.0",
"ora": "^8.1.1",
Expand Down

0 comments on commit 3aef780

Please sign in to comment.