chore: Update server dev script for RPC option b41ed311
Per [bhvr #21](https://github.com/stevedylandev/bhvr/issues/21) this
patch will now using the following dev script for the server if a user
selects the Hono RPC option:

```json
"dev": "bun --watch run src/index.ts & tsc --watch"
```
Steve · 2025-06-07 09:21 1 file(s) · +11 −2
src/utils/helpers.ts +11 −2
56 56
57 57
		await fs.writeJson(clientPkgPath, clientPkg, { spaces: 2 });
58 58
59 -
		// 2. Server modification for RPC export type
59 +
		// 2. Update server package.json dev script for RPC
60 +
		const serverPkgPath = path.join(projectPath, "server", "package.json");
61 +
		const serverPkg = await fs.readJson(serverPkgPath);
62 +
63 +
		// Update the dev script to include TypeScript compilation
64 +
		serverPkg.scripts.dev = "bun --watch run src/index.ts & tsc --watch";
65 +
66 +
		await fs.writeJson(serverPkgPath, serverPkg, { spaces: 2 });
67 +
68 +
		// 3. Server modification for RPC export type
60 69
		const serverIndexPath = path.join(projectPath, "server", "src", "index.ts");
61 70
		await fs.writeFile(serverIndexPath, honoRpcTemplate, "utf8");
62 71
63 -
		// 3. Update App.tsx based on template selection using switch statement
72 +
		// 4. Update App.tsx based on template selection using switch statement
64 73
		const appTsxPath = path.join(projectPath, "client", "src", "App.tsx");
65 74
66 75
		// Determine template content based on the template type