feat/api-prox: add bun and deno dev scripts

This commit is contained in:
Kentai Radiquum 2025-09-06 21:23:14 +05:00
parent 9fe2ba4aa7
commit 39215c608c
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
2 changed files with 9 additions and 4 deletions

View file

@ -2,6 +2,8 @@
"name": "anixart-serverless-api-proxy", "name": "anixart-serverless-api-proxy",
"type": "module", "type": "module",
"scripts": { "scripts": {
"deno-dev": "deno serve --unstable-hmr src/index.ts",
"bun-dev": "bun run --hot src/index.ts",
"vc-dev": "vercel dev", "vc-dev": "vercel dev",
"cf-dev": "wrangler dev", "cf-dev": "wrangler dev",
"cf-deploy": "wrangler deploy --minify", "cf-deploy": "wrangler deploy --minify",
@ -11,6 +13,9 @@
"hono": "^4.9.6" "hono": "^4.9.6"
}, },
"devDependencies": { "devDependencies": {
"@types/bun": "latest",
"@types/node": "latest",
"@types/deno": "latest",
"typescript": "^5.9.2", "typescript": "^5.9.2",
"vercel": "^47.0.5", "vercel": "^47.0.5",
"wrangler": "^4.4.0" "wrangler": "^4.4.0"

View file

@ -1,13 +1,13 @@
import { Hono } from "hono"; import { Hono } from "hono";
import { logger } from "hono/logger"; import { logger } from "hono/logger";
import { InfoLogger, RouteLogger } from "./utils/logger.js"; import { InfoLogger, RouteLogger } from "./utils/logger.ts";
import { import {
asciiHTML, asciiHTML,
getRunningEnvironment, getRunningEnvironment,
separatorHTML, separatorHTML,
} from "./utils/info.js"; } from "./utils/info.ts";
import { ANIXART_HEADERS, appVersion, BASE_URLS } from "./config.js"; import { ANIXART_HEADERS, appVersion, BASE_URLS } from "./config.ts";
import { tryCatchAPI } from "./utils/tryCatch.js"; import { tryCatchAPI } from "./utils/tryCatch.ts";
import { hookList, runHooks } from "./hooks/index.ts"; import { hookList, runHooks } from "./hooks/index.ts";
const app = new Hono({ strict: false }); const app = new Hono({ strict: false });