deno run --watch

So I'm trying to use deno run --watch but I only want it to reload if certain files have been changed. Is there any way that's possible? I couldn't find anything anywhere
UU
Unknown User579d ago
L
lio579d ago
I had something similar to that in my scripts but that didn't work https://lio.wtf/i/q1c.png
L
lio579d ago
or do I not have to pass the ./
UU
Unknown User579d ago
L
lio579d ago
ah, that sucks :< just passing --watch=src/generated/ doesn't seem to work yet, damn :<
UU
Unknown User579d ago
L
lio579d ago
I do, but if I save my ./index file it still sends a restart signal
UU
Unknown User579d ago
L
lio579d ago
ah... so because I import src/generated/routes.ts in src/index.ts and import that in ./index.ts, it still gets reloaded
UU
Unknown User579d ago
L
lio579d ago
makes sense, but still seems weird to me. Oh well. I shouldn't need to regen my s3 and route files that often anyways, and at that point I can just redeploy
UU
Unknown User579d ago
L
lio579d ago
I wanna call domain.tld/api/func/s3 and just have the server regenerate my s3 file, that has the keys and urls to all the files I have in my s3 bucket, that I then serve on domain.tld/api/s3