Skip to content

Commit

Permalink
chore: execute stuff using bun
Browse files Browse the repository at this point in the history
  • Loading branch information
SrIzan10 committed Jun 25, 2024
1 parent c291053 commit 6c27bb6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
Binary file modified bun.lockb
Binary file not shown.
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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"
}
9 changes: 3 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 6c27bb6

Please sign in to comment.