Skip to content

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.

string

The --directory flag value, if given.

string = ...

Directory to read sfdx-project.json from. Defaults to the current working directory, matching readSfdxProject.

Promise<string[]>

Absolute root directories to search.