diff --git a/source/dub/package_.d b/source/dub/package_.d index 3efcb64..4814497 100644 --- a/source/dub/package_.d +++ b/source/dub/package_.d @@ -247,7 +247,11 @@ /// Returns all sources as absolute paths. @property const(Path[]) sources() const { Path[] allSources; - foreach(d; dirEntries((m_path ~ Path("source")).toNativeString(), "*.d", SpanMode.depth)) + autp sourcePath = Path("source"); + auto customSourcePath = "sourcePath" in m_meta; + if(customSourcePath) + sourcePath = customSourcePath.get!string(); + foreach(d; dirEntries((m_path ~ sourcePath).toNativeString(), "*.d", SpanMode.depth)) allSources ~= Path(d.name); return allSources; }