New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deno.json match subdirectory #57
Comments
the client folder you mentioned should be already matched by |
Specifying |
Could you run with the |
Running: [denon] v2.0.2 |
And what happens after you change a file? (the large debug log might help if you want to send it) |
When I change a file in . it works but when I change it in client/* dir nothing happens. |
Could you run |
This still seem to be unresolved in 2.20, does anyone else have this issue? Thx |
I believe this is a Deno.watchFs recursive issue |
This is a Deno.watchFs on Ubuntu 20.04 on WSL2 issue only, it works on Windows and Linux. |
Thanks for this heads up! We will include a disclaimer on our installation docs. |
This is probably a WSL2 issue which MS may fix one day and it will start working, never know. |
I am facing the same problem on windows 10, {
"$schema": "https://deno.land/x/denon/schema.json",
"watch": true,
"scripts": {
"start": {
"cmd": "deno run ./src/server.ts",
"desc": "run my app.ts file",
"allow": [
"run",
"net"
],
"tsconfig": "tsconfig.json"
}
},
"watcher": {
"interval": 350,
"exts": ["js", "jsx", "ts", "tsx", "json"],
"match": ["*.*"],
"skip": ["*/.git/*"],
"legacy": false
}
} running debug
structure project https://cdn.discordapp.com/attachments/713793300527841411/753659750461472868/unknown.png |
Solved:
|
That is because the glob you are using for match is wrong: |
Confirmed. Thanks 🙏
|
Describe the bug
Specifying directory in match section of deno.json does not seem to have an effect.
To Reproduce
Add:
"match": [
".",
"./client/*"
],
to deno.json
start denon using:
denon run --allow-read --allow-net server.ts
Change any files in the ./client/ directory but deno does not re-start.
Expected behavior
deno should restart when a file in ./client/ directory is changed.
Configuration or Project
{ "$schema": "https://deno.land/x/denon/schema.json", "scripts": { "start": { "cmd": "server.ts", "desc": "Run the main server.", "allow": [ "env", "net", "write" ], "unstable": true } }, "watcher": { "interval": 350, "exts": [ "jsx", "tsx", "ts", "js", "json", "html" ], "match": [ "*.*", "./client/*" ], "skip": [ "*/.git/*" ], "legacy": false } }
Setup
The text was updated successfully, but these errors were encountered: