This program reloads a deno program automatically when a file in the current working directory is created, deleted or modified.
the following code runs deno --allow-net example.ts
which is located in /some/work/dir/example.ts
on start and whenever a file in the folder /some/work/dir
changes.
/some/work/dir$ deno run --allow-run --allow-read https://deno.land/x/[email protected]/mod.ts --allow-net example.ts
Thanks to samuelgozi who posted the base for this code in this GitHub issue.