diff --git a/bun.lockb b/bun.lockb index 5c49b3d..1c616bc 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 1151671..c9cfa9f 100644 --- a/package.json +++ b/package.json @@ -5,9 +5,8 @@ "scripts": { "db:deploy": "bun db:generate && drizzle-kit migrate", "db:generate": "drizzle-kit generate:sqlite", - "dev": "bun studio & tsc-watch -w --onSuccess \"node dist/index.js\"", - "build": "tsc", - "start": "node dist/index.js", + "dev": "concurrently \"bun studio\" \"bun --watch src/index.ts\"", + "start": "bun src/index.ts", "studio": "drizzle-kit studio" }, "dependencies": { @@ -22,9 +21,7 @@ }, "devDependencies": { "concurrently": "^8.2.2", - "drizzle-kit": "^0.22.7", - "tsc-watch": "^6.2.0", - "typescript": "^5.4.5" + "drizzle-kit": "^0.22.7" }, "type": "module" } diff --git a/src/index.ts b/src/index.ts index cd7a5dc..10fc8a6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -170,13 +170,10 @@ app.post('/web/feedback', async (c) => { }) const port = Number(process.env.PORT || 3000) -serve({ - fetch: app.fetch, +export default { port, -}).on('listening', async () => { - console.log(`Hono is listening on port ${port}`) - console.log(`Github login as ${(await octokit.rest.users.getAuthenticated()).data.login}`) -}) + fetch: app.fetch +} process.stdin.on('data', async (data) => { if (data.toString().trim() === 'test thing') {