Skip to content

readDependencyRepositories

readDependencyRepositories(project, source?): DependencyRepositories

Defined in: simply-package-core/src/schemas/sfdx-project/dependencyRepositories.ts:122

Read and validate a project’s plugins.simply.packages map, and return the repository of each entry that has one.

SfdxProject

The parsed project manifest.

string = 'sfdx-project.json'

What to call the project in error messages, e.g. its file path.

DependencyRepositories

The repositories by package key, or an empty object if the project maps none.

InvalidRepositoryConfigError if the map or an entry has the wrong shape, or CredentialsInUrlError if a repository’s url contains credentials. Both name the offending key.