fix: add tsc to test script and fix type errors

- Add tsc --noEmit to test script
- Switch server to Bun's native serve format for HTMLBundle compatibility

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Corey Johnson 2026-01-06 13:20:31 -08:00
parent fc44f61993
commit a83f4ece7a
2 changed files with 7 additions and 9 deletions

View File

@ -9,7 +9,7 @@
},
"scripts": {
"dev": "bun --hot src/dev/server.tsx",
"test": "bun test"
"test": "tsc --noEmit && bun test"
},
"dependencies": {
"hono": "^4"

View File

@ -1,14 +1,12 @@
#!/usr/bin/env bun
import { Hono } from "hono"
import { serveStatic } from "hono/bun"
import index from "./index.html"
const app = new Hono()
app.use("/public/*", serveStatic({ root: "./" }))
app.get("/", (c) => c.html(index))
export default {
port: 3000,
fetch: app.fetch,
routes: {
"/": index,
},
static: {
"/public": "./public",
},
}