in src/package.ts [151:171]
function getRepositoryUrl(manifest: Manifest, gitHost?: GitHost | null): string | undefined {
if (gitHost) {
return gitHost.https();
}
let url: string | undefined = undefined;
if (manifest.repository) {
if (typeof manifest.repository === 'string') {
url = manifest.repository;
} else if (
typeof manifest.repository === 'object' &&
manifest.repository.url &&
typeof manifest.repository.url === 'string'
) {
url = manifest.repository.url;
}
}
return url;
}