From 022dc7b28460ebd8e309a30020423f85a7c3781d Mon Sep 17 00:00:00 2001 From: Radiquum Date: Sun, 7 Sep 2025 15:54:13 +0500 Subject: [PATCH] feat/api-prox: improve deno support --- api-prox/deno.json | 13 +++++++++++++ api-prox/deno.lock | 27 +++++++++++++++++++++++++++ api-prox/main.ts | 3 +++ api-prox/package.json | 1 - 4 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 api-prox/deno.json create mode 100644 api-prox/deno.lock create mode 100644 api-prox/main.ts diff --git a/api-prox/deno.json b/api-prox/deno.json new file mode 100644 index 0000000..6805515 --- /dev/null +++ b/api-prox/deno.json @@ -0,0 +1,13 @@ +{ + "imports": { + "hono": "jsr:@hono/hono@^4.9.6" + }, + "tasks": { + "deno-start": "deno run --sloppy-imports --allow-net main.ts", + "deno-dev": "deno run --sloppy-imports --unstable-hmr --allow-net main.ts" + }, + "compilerOptions": { + "jsx": "precompile", + "jsxImportSource": "hono/jsx" + } +} \ No newline at end of file diff --git a/api-prox/deno.lock b/api-prox/deno.lock new file mode 100644 index 0000000..0726da4 --- /dev/null +++ b/api-prox/deno.lock @@ -0,0 +1,27 @@ +{ + "version": "5", + "specifiers": { + "jsr:@hono/hono@^4.9.6": "4.9.6" + }, + "jsr": { + "@hono/hono@4.9.6": { + "integrity": "b85abb0013d167a290b1808d1d4d542dee269df31d4f47122023259fdd7e184b" + } + }, + "workspace": { + "dependencies": [ + "jsr:@hono/hono@^4.9.6" + ], + "packageJson": { + "dependencies": [ + "npm:@types/bun@latest", + "npm:@types/deno@latest", + "npm:@types/node@latest", + "npm:hono@^4.9.6", + "npm:typescript@^5.9.2", + "npm:vercel@^47.0.5", + "npm:wrangler@^4.4.0" + ] + } + } +} diff --git a/api-prox/main.ts b/api-prox/main.ts new file mode 100644 index 0000000..f988467 --- /dev/null +++ b/api-prox/main.ts @@ -0,0 +1,3 @@ +import app from "./src/index.ts"; + +Deno.serve(app.fetch); \ No newline at end of file diff --git a/api-prox/package.json b/api-prox/package.json index f7a4b08..ef81b6f 100644 --- a/api-prox/package.json +++ b/api-prox/package.json @@ -3,7 +3,6 @@ "type": "module", "scripts": { "bun-dev": "bun run --hot src/index.ts", - "deno-dev": "deno serve --sloppy-imports --unstable-hmr src/index.ts", "vc-dev": "vercel dev", "vc-deploy": "vercel deploy", "cf-dev": "wrangler dev",