From 734fbe8444db4454953663dd263a5778f8742eeb Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 1 Apr 2024 20:09:48 +0200 Subject: Enable bun watch mode via `bun dev` --- package.json | 1 + src/app.ts | 2 ++ 2 files changed, 3 insertions(+) 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; -- cgit 1.4.1