Skip to content

clonePackageDependencies

clonePackageDependencies(options): Promise<DependencyCloneResult[]>

Defined in: simply-package-core/src/packageDependenciesClone.ts:308

Clone the source repositories of a project’s package dependencies, as given by each package’s repository in plugins.simply.packages. See docs/design/0052-package-dependencies-clone.md.

Repositories are deduplicated by URL. A repository reached at two refs is cloned once, at the ref found first (nearest the root), with a warning. Two different repositories with the same name get the group-prefixed folder name. One failed clone doesn’t stop the run; it’s reported as a Failed row.

ClonePackageDependenciesOptions

See ClonePackageDependenciesOptions.

Promise<DependencyCloneResult[]>

One row per dependency, in the order visited.

GitNotFoundError if git can’t be run (not checked with dryRun); InvalidRepositoryConfigError or CredentialsInUrlError for a bad entry in the root project.