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:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user