about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-04-01 20:09:48 +0200
committerAlan Pearce2024-04-01 20:09:48 +0200
commit734fbe8444db4454953663dd263a5778f8742eeb (patch)
tree1d6464dc834ec6a8a36805cf916a9afc92e4cc10
parentf9b4f8dc9b3e918d577bf61763e3b9cf1f0a7891 (diff)
downloadwebsite-734fbe8444db4454953663dd263a5778f8742eeb.tar.lz
website-734fbe8444db4454953663dd263a5778f8742eeb.tar.zst
website-734fbe8444db4454953663dd263a5778f8742eeb.zip
Enable bun watch mode via `bun dev`
-rw-r--r--package.json1
-rw-r--r--src/app.ts2
2 files changed, 3 insertions, 0 deletions
diff --git a/package.json b/package.json
index 3da8024..caa387a 100644
--- a/package.json
+++ b/package.json
@@ -3,6 +3,7 @@
   "module": "src/index.ts",
   "scripts": {
     "start": "bun run .",
+    "dev": "bun run --watch src/app.ts",
     "build": "bun run bin/build.ts"
   },
   "devDependencies": {
diff --git a/src/app.ts b/src/app.ts
index f41d6f2..cdabb3a 100644
--- a/src/app.ts
+++ b/src/app.ts
@@ -265,3 +265,5 @@ export const server = {
     }
   },
 } satisfies Serve;
+
+export default server;