There is a callback that you implement for your modules called
__mix_recompile__? Which you can implement with your own logic to detect
how files and directories change. You can See how embed_templates does it
for examples. :)
On Thu, Oct 19, 2023 at 11:01 'Alexander Steppke' via elixir-lang-core
We have a need to trigger recompilation of a module when any file inside a
directory is added or removed since we add the list of files at compilation
time as a module attribute which is used in guard statements.
Something like
```
defmodule Example do
@files File.ls!("some-path")
end
```
I