Multiple Module Packages and Project Environment

I’ve seen a few other posts on this one, but they don’t seem to quite address the question I have. I have a project I’m working on, and there are several logically distinct modules associated with it, MyModuleA.jl, MyModuleB.jl, etc. I would like to be able to create a single project environment that would give me access to all of them. If I follow this suggested directory structure,https://docs.julialang.org/en/v1/manual/code-loading/#Package-directories-1, where I have a MyProject/MyModuleA.jl/src and a MyProject/MyModuleB.jl/src, it will work, but I seem to need to update my LOAD_PATH to include MyProject so that it sees all of these modules.

If it that’s the only solution, I’m ok with that, but I was wondering if there were some way to have a single Project.toml file that would handle all of this for me. I would eventually like to be able to share/distribute this work so that everything can be handled with a pkg> add MyProject.

If it’s helpful, I’ve migrated to 1.6.

I will register both A and B to the Pkg. Or, I will create a TopModuleC, and include(MyModuleA.jl) and using .MyModuleA. The same to MyModuleB.

Ideally dependencies like this are handled by a registry, but you can run your own too: