Restructuring code from modules to package

This is maybe a question, maybe an answer, but doesn’t something like

module Main
    include("./module1/Module1.jl")
    include("./module2/Module2.jl")
    using .Module1, .Module2
    ...
end

just works if Main is in src and module1 and module2 are subdirs of src ?

But in Julia this is more of a headeach. Modules are more useful to separate a set of structures and functions all that define a more or less closed set of functionalities.

You probably find the answer to the second question here:

though I think it is unlikely that this will be a good alternative to that of simply flattening the package, unless your package is already really big.