From a83f4ece7ac53678f8e0e1e3378043cca233b493 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Tue, 6 Jan 2026 13:20:31 -0800 Subject: [PATCH] fix: add tsc to test script and fix type errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- package.json | 2 +- src/dev/server.tsx | 14 ++++++-------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index f85d19d..6fac4ff 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ }, "scripts": { "dev": "bun --hot src/dev/server.tsx", - "test": "bun test" + "test": "tsc --noEmit && bun test" }, "dependencies": { "hono": "^4" diff --git a/src/dev/server.tsx b/src/dev/server.tsx index ef2390e..173f591 100644 --- a/src/dev/server.tsx +++ b/src/dev/server.tsx @@ -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", + }, }