From fe706b858aa32148cc8f7ea0bad351654a7af31c Mon Sep 17 00:00:00 2001 From: Andy Burke Date: Thu, 19 Jun 2025 16:27:10 -0700 Subject: [PATCH] fix: get compilation working fix: remove unnecessary console.log --- .gitignore | 1 + deno.json | 4 ++-- server.ts | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index f5f49cc..89b28f3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ data/ tests/data +serverus diff --git a/deno.json b/deno.json index 0f7a6e9..8e244d9 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.0.2", + "version": "0.0.3", "license": "MIT", "exports": { ".": "./serverus.ts", @@ -15,7 +15,7 @@ "lint": "deno lint", "fmt": "deno fmt", "test": "DENO_ENV=test DATA_STORAGE_ROOT=./tests/data/$(date --iso-8601=seconds) deno test --allow-env --allow-read --allow-write --allow-net --trace-leaks --fail-fast ./tests/", - "build": "deno compile --allow-env --allow-read --allow-write --allow-net ./serverus.ts", + "build": "deno compile --allow-env --allow-read --allow-write --allow-net --include handlers ./serverus.ts -o serverus", "serverus": "deno --allow-env --allow-read --allow-write --allow-net ./serverus.ts" }, "test": { diff --git a/server.ts b/server.ts index 9a58310..b04b4b6 100644 --- a/server.ts +++ b/server.ts @@ -167,7 +167,6 @@ export class SERVER { Deno.addSignalListener('SIGTERM', this.shutdown_binding); Deno.addSignalListener('SIGINT', this.shutdown_binding); - console.log('listening'); return this; }