From 26125f4f11a3f2f3eea228553bbf4a2f3c875034 Mon Sep 17 00:00:00 2001 From: Andy Burke Date: Wed, 25 Jun 2025 16:53:45 -0700 Subject: [PATCH] feature: add `SERVERUS_TYPESCRIPT_IMPORT_LOGGING` environment variable feature(wip): reload on changes --- deno.json | 2 +- handlers/typescript.ts | 5 +++++ server.ts | 4 ++++ serverus.ts | 13 ++++++++----- tests/04_test_overriding_handlers.test.ts | 1 - 5 files changed, 18 insertions(+), 7 deletions(-) diff --git a/deno.json b/deno.json index 982405a..e5b7b88 100644 --- a/deno.json +++ b/deno.json @@ -1,7 +1,7 @@ { "name": "@andyburke/serverus", "description": "A flexible HTTP server for mixed content. Throw static files, markdown, Typescript and (hopefully, eventually) more into a directory and serverus can serve it up a bit more like old-school CGI.", - "version": "0.1.0", + "version": "0.2.0", "license": "MIT", "exports": { ".": "./serverus.ts", diff --git a/handlers/typescript.ts b/handlers/typescript.ts index 8768ca9..97d7171 100644 --- a/handlers/typescript.ts +++ b/handlers/typescript.ts @@ -74,6 +74,11 @@ export default async function handle_typescript(request: Request): Promise