denon: Denon does't doesn't watch

Describe the bug The watcher doesn’t work anymore after updating both deno and denon. Neither in the terminal, where I run denon, are updates visible nor is the cmd executed after changing files. The initial cmd (when I start denon) is executed tho.

To Reproduce

{
  "$schema": "https://deno.land/x/denon/schema.json",
  "scripts": {
    "start": {
      "cmd": "deno run --unstable -A ./bundler.ts ./components.ts ./static/scripts",
      "desc": "Run the bundler."
    }
  },
  "watcher": {
    "interval": 350,
    "exts": ["ts", "html"],
    "match": ["./myWebComponents/**/*.*"],
    "skip": ["*/.git/*"]
  }
}

I have typescript files for example in “./myWebComponents/navbar/navbar.ts”.

Expected behavior Denon should run the script and tell me in terminal that it updates when I change files.

Setup

  • OS: linux, arch
  • Deno version: 1.3.3
  • Denon version: v2.3.3

Additional context I would be happy to add further information if required.

Thanks!

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 9
  • Comments: 19 (6 by maintainers)

Commits related to this issue

Most upvoted comments

I will investigate

+1 mine watches but only for things on the root level, nothing with depth

@eliassjogreen what I said wasn’t true, it’s seems to work for files in the root dir but not in /src

dir root is: denon.json importmap.json tsconfig.json

and then /src with .js files

{
    "$schema": "https://deno.land/x/denon/schema.json",
    "scripts": {
        "start": {
            "cmd": "deno run src/app.js",
            "desc": "run my app.js file",
            "allow": ["net", "read", "env", "write"],
            "importmap": "importmap.json",
            "unstable": true,
            "log": "debug"
        }
    }
}

Debug log is a million lines, don’t know what to look for

Could you guys install and test to make sure my pr worked before I release 2.4.2?

deno install -qAfr --unstable https://raw.githubusercontent.com/denosaurs/denon/main/denon.ts

I’ve tried a lot of settings and nothing in a sub-directory is ever picked up
I’m running Deno 1.4.4

This probably has to do with some regex global expansion updates in deno but for some reason it’s difficult for me to replicate.