fix(tswatch): restart backend on bundle changes and watch shared types

- Add ts_bundled/**/* and ts_interfaces/**/* to backend watcher
- Remove no-op triggerReload (requires tswatch dev server)
This commit is contained in:
2026-02-27 12:09:26 +00:00
parent 06eae3b443
commit 623ec4907c

View File

@@ -20,14 +20,13 @@
"bundler": "esbuild", "bundler": "esbuild",
"production": true, "production": true,
"watchPatterns": ["./ts_web/**/*", "./html/**/*"], "watchPatterns": ["./ts_web/**/*", "./html/**/*"],
"triggerReload": true,
"includeFiles": [{"from": "./html/index.html", "to": "index.html"}] "includeFiles": [{"from": "./html/index.html", "to": "index.html"}]
} }
], ],
"watchers": [ "watchers": [
{ {
"name": "backend", "name": "backend",
"watch": "./ts/**/*", "watch": ["./ts/**/*", "./ts_interfaces/**/*", "./ts_bundled/**/*"],
"command": "deno run --allow-all mod.ts server", "command": "deno run --allow-all mod.ts server",
"restart": true, "restart": true,
"debounce": 500, "debounce": 500,