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:
parent
fc44f61993
commit
a83f4ece7a
|
|
@ -9,7 +9,7 @@
|
|||
},
|
||||
"scripts": {
|
||||
"dev": "bun --hot src/dev/server.tsx",
|
||||
"test": "bun test"
|
||||
"test": "tsc --noEmit && bun test"
|
||||
},
|
||||
"dependencies": {
|
||||
"hono": "^4"
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user