www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Why DUB do not import local D modules dependencies?

reply Marcone <marcone email.com> writes:
How make dub import local D modules (mymodule.d) dependencies?
Apr 09
next sibling parent Andre Pany <andre s-e-a-p.de> writes:
On Saturday, 10 April 2021 at 02:10:48 UTC, Marcone wrote:
 How make dub import local D modules (mymodule.d) dependencies?
Could you please provide more details about your scenario, otherwise it is quite hard to understand your question. Kind regards Andre
Apr 09
prev sibling parent Mike Parker <aldacron gmail.com> writes:
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.
Apr 09