mirror of
https://github.com/sern-handler/automata
synced 2026-06-05 17:06:48 +00:00
chore: execute stuff using bun
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user