add comment
This commit is contained in:
parent
3ee3c7d976
commit
50d8771de9
@ -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}`;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user