chore: execute stuff using bun

This commit is contained in:
2024-06-25 23:37:49 +02:00
parent c291053939
commit 6c27bb6cbe
3 changed files with 6 additions and 12 deletions

BIN
bun.lockb

Binary file not shown.

View File

@@ -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"
}

View File

@@ -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') {