www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - What's the difference between sourcePaths and importPaths in DUB?

reply WhatMeWorry <kheaser gmail.com> writes:
The documentation doesn't go into much detail:

sourcePaths	"<path1>" ["<path2>" [...]]	Allows to customize the 
path where to look for source files (any folder "source" or "src" 
is automatically used as a source path if no sourcePaths setting 
is specified) - note that you usually also need to define 
"importPaths" as "sourcePaths" don't influence those
Nov 18 2019
parent GoaLitiuM <goalitium dforums.mail.kapsi.fi> writes:
On Monday, 18 November 2019 at 21:44:06 UTC, WhatMeWorry wrote:
 The documentation doesn't go into much detail:

 sourcePaths	"<path1>" ["<path2>" [...]]	Allows to customize the 
 path where to look for source files (any folder "source" or 
 "src" is automatically used as a source path if no sourcePaths 
 setting is specified) - note that you usually also need to 
 define "importPaths" as "sourcePaths" don't influence those
sourcePaths are used when the package is compiled, importPaths are used for looking up imports so other packages which depends on the package knows where to look for them.
Nov 18 2019