From 427393a747b6c8fe2247f435e28a7881133e286d Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Sun, 7 Sep 2025 12:53:08 +0800 Subject: [PATCH] chore: Debug with --watch --- .vscode/launch.json | 4 ++-- deno.jsonc | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index dea161f..08d7324 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,8 +5,8 @@ "version": "0.2.0", "configurations": [ { - "command": "deno task server", - "name": "Run server", + "command": "deno task debug", + "name": "Run debug", "request": "launch", "type": "node-terminal", }, diff --git a/deno.jsonc b/deno.jsonc index ad70cbb..7de7103 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -1,6 +1,7 @@ { "tasks": { "server": "deno task build && deno run --allow-read --allow-write --allow-env --allow-net --allow-sys ./server/main.ts", + "debug": "deno task build && deno run --watch --allow-read --allow-write --allow-env --allow-net --allow-sys ./server/main.ts", "build": "cd ./client && deno task build" }, "imports": {