Why DUB do not import local D modules dependencies?

Mike Parker aldacron at gmail.com
Sat Apr 10 06:02:46 UTC 2021


On Saturday, 10 April 2021 at 02:10:48 UTC, Marcone wrote:
> How make dub import local D modules (mymodule.d) dependencies?

Dub doesn't import modules. That's for the compiler. Dub will 
send every module in your source directory tree to the compiler 
and they will be available to import.

If you have files you want to compile outside of the source 
directory tree, you can configure "sourceFiles" or "sourcePaths" 
in your dub.json/sdl. You'll want to also configure "importPaths" 
in that case.


More information about the Digitalmars-d-learn mailing list