lio
lio2y ago

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
13 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
lio
lio2y ago
I had something similar to that in my scripts but that didn't work https://lio.wtf/i/q1c.png
lio
lio2y ago
or do I not have to pass the ./
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
lio
lio2y ago
ah, that sucks :< just passing --watch=src/generated/ doesn't seem to work yet, damn :<
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
lio
lio2y ago
I do, but if I save my ./index file it still sends a restart signal
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
lio
lio2y ago
ah... so because I import src/generated/routes.ts in src/index.ts and import that in ./index.ts, it still gets reloaded
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
lio
lio2y 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
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
lio
lio2y 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