resolveSearchRoots
resolveSearchRoots(
directory?,projectDir?):Promise<string[]>
Defined in: resolveSiteFiles.ts:41
Resolve the root directories a site/network lookup should search under.
When --directory is given, it’s the sole root. Otherwise every package directory declared in
sfdx-project.json is searched — a project can (and often does) spread sites/networks
across more than one package directory.
Parameters
Section titled “Parameters”directory?
Section titled “directory?”string
The --directory flag value, if given.
projectDir?
Section titled “projectDir?”string = ...
Directory to read sfdx-project.json from. Defaults to the current working
directory, matching readSfdxProject.
Returns
Section titled “Returns”Promise<string[]>
Absolute root directories to search.