chore: Debug with --watch

This commit is contained in:
CrescentLeaf
2025-09-07 12:53:08 +08:00
parent d587b32a0a
commit 427393a747
2 changed files with 3 additions and 2 deletions

4
.vscode/launch.json vendored
View File

@@ -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",
},

View File

@@ -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": {