Enable bun watch mode via `bun dev`
Alan Pearce alan@alanpearce.eu
Mon, 01 Apr 2024 20:09:48 +0200
2 files changed, 3 insertions(+), 0 deletions(-)
jump to
M package.json → package.json
@@ -3,6 +3,7 @@ "name": "homestead", "module": "src/index.ts", "scripts": { "start": "bun run .", + "dev": "bun run --watch src/app.ts", "build": "bun run bin/build.ts" }, "devDependencies": {
M src/app.ts → src/app.ts
@@ -265,3 +265,5 @@ console.log(request.method, status, pathname, newpath ? newpath : ""); } }, } satisfies Serve; + +export default server;