add comment

This commit is contained in:
silverwind 2020-10-04 16:55:16 +02:00
parent 3ee3c7d976
commit 50d8771de9
Signed by: silverwind
GPG Key ID: 2E62B41C93869443

@ -380,6 +380,8 @@ function getInfoUrl({repository, homepage}, registry, name) {
if (infoUrl && repository.directory && info.treepath) {
// https://github.com/babel/babel/tree/HEAD/packages/babel-cli
// HEAD seems to always go to the default branch on GitHub but ideally
// package.json should have a field for source branch
infoUrl = `${infoUrl}/${info.treepath}/HEAD/${repository.directory}`;
}