A discord bot for teal.fm
discord tealfm music

add web

besaid.zone c108300b e479023e

verified
+1 -1
apps/bot/package.json
··· 4 4 "private": true, 5 5 "type": "module", 6 6 "scripts": { 7 - "dev": "tsx main.ts", 7 + "dev": "tsx --watch main.ts", 8 8 "deploy-commands": "tsx deploy-commands.ts", 9 9 "build": "tsc", 10 10 "typecheck": "tsc --noEmit"
+13
apps/web/index.ts
··· 1 + import { Hono } from "hono"; 2 + import {serve, type HttpBindings} from "@hono/node-server" 3 + 4 + const app = new Hono<{Bindings: HttpBindings}>(); 5 + 6 + app.get("/", (c) => { 7 + return c.text("yo!!"); 8 + }); 9 + 10 + serve({ 11 + fetch: app.fetch, 12 + port: 8002 13 + })
+22
apps/web/package.json
··· 1 + { 2 + "name": "web", 3 + "version": "0.0.1", 4 + "private": true, 5 + "type": "module", 6 + "scripts": { 7 + "dev": "tsx --watch index.ts", 8 + "start": "tsx index.ts", 9 + "typecheck": "tsc --noEmit" 10 + }, 11 + "dependencies": { 12 + "@hono/node-server": "^1.19.7", 13 + "@tealfmbot/common": "workspace:*", 14 + "@tealfmbot/tsconfig": "workspace:*", 15 + "hono": "^4.11.3" 16 + }, 17 + "devDependencies": { 18 + "@types/node": "^25.0.3", 19 + "tsx": "^4.21.0", 20 + "typescript": "^5.9.3" 21 + } 22 + }
+13
apps/web/tsconfig.json
··· 1 + { 2 + "extends": "@tealfmbot/tsconfig/tsconfig.node.json", 3 + "compilerOptions": { 4 + "outDir": "./dist", 5 + "target": "ESNext", 6 + "module": "ESNext", 7 + "moduleResolution": "bundler", 8 + "lib": [ 9 + "ESNext" 10 + ], 11 + }, 12 + "exclude": ["node_modules"] 13 + }
+2 -1
package.json
··· 14 14 "scripts": { 15 15 "bot": "pnpm --filter bot dev", 16 16 "tap": "pnpm --filter tapper dev", 17 - "dev": "pnpm --filter './apps/**' dev", 17 + "web": "pnpm --filter web dev", 18 + "dev:all": "pnpm --filter './apps/**' dev", 18 19 "typecheck": "pnpm --filter './apps/**' typecheck", 19 20 "lint": "oxlint", 20 21 "format": "oxfmt"
+42 -1
pnpm-lock.yaml
··· 65 65 specifier: ^5.9.3 66 66 version: 5.9.3 67 67 68 + apps/web: 69 + dependencies: 70 + '@hono/node-server': 71 + specifier: ^1.19.7 72 + version: 1.19.7(hono@4.11.3) 73 + '@tealfmbot/common': 74 + specifier: workspace:* 75 + version: link:../../packages/common 76 + '@tealfmbot/tsconfig': 77 + specifier: workspace:* 78 + version: link:../../packages/tsconfig 79 + hono: 80 + specifier: ^4.11.3 81 + version: 4.11.3 82 + devDependencies: 83 + '@types/node': 84 + specifier: ^25.0.3 85 + version: 25.0.3 86 + tsx: 87 + specifier: ^4.21.0 88 + version: 4.21.0 89 + typescript: 90 + specifier: ^5.9.3 91 + version: 5.9.3 92 + 68 93 packages/common: 69 94 dependencies: 70 95 pino: ··· 337 362 engines: {node: '>=18'} 338 363 cpu: [x64] 339 364 os: [win32] 365 + 366 + '@hono/node-server@1.19.7': 367 + resolution: {integrity: sha512-vUcD0uauS7EU2caukW8z5lJKtoGMokxNbJtBiwHgpqxEXokaHCBkQUmCHhjFB1VUTWdqj25QoMkMKzgjq+uhrw==} 368 + engines: {node: '>=18.14.1'} 369 + peerDependencies: 370 + hono: ^4 340 371 341 372 '@oxfmt/darwin-arm64@0.20.0': 342 373 resolution: {integrity: sha512-bjR5dqvrd9gxKYfYR0ljUu3/T3+TuDVWcwA7d+tsfmx9lqidlw3zhgBTblnjF1mrd1zkPMoc5zzq86GeSEt1cA==} ··· 631 662 help-me@5.0.0: 632 663 resolution: {integrity: sha512-7xgomUX6ADmcYzFik0HzAxh/73YlKR9bmFzf51CZwR+b6YtzU2m0u49hQCqV6SvlqIqsaxovfwdvbnsw3b/zpg==} 633 664 665 + hono@4.11.3: 666 + resolution: {integrity: sha512-PmQi306+M/ct/m5s66Hrg+adPnkD5jiO6IjA7WhWw0gSBSo1EcRegwuI1deZ+wd5pzCGynCcn2DprnE4/yEV4w==} 667 + engines: {node: '>=16.9.0'} 668 + 634 669 ieee754@1.2.1: 635 670 resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} 636 671 ··· 1280 1315 '@esbuild/win32-x64@0.27.2': 1281 1316 optional: true 1282 1317 1318 + '@hono/node-server@1.19.7(hono@4.11.3)': 1319 + dependencies: 1320 + hono: 4.11.3 1321 + 1283 1322 '@oxfmt/darwin-arm64@0.20.0': 1284 1323 optional: true 1285 1324 ··· 1349 1388 1350 1389 '@types/pg@8.16.0': 1351 1390 dependencies: 1352 - '@types/node': 22.19.3 1391 + '@types/node': 25.0.3 1353 1392 pg-protocol: 1.10.3 1354 1393 pg-types: 2.2.0 1355 1394 ··· 1558 1597 function-bind: 1.1.2 1559 1598 1560 1599 help-me@5.0.0: {} 1600 + 1601 + hono@4.11.3: {} 1561 1602 1562 1603 ieee754@1.2.1: {} 1563 1604