I am not sure when this behavior started. It def exists in node 5.6.0 with npm 3.7.5.
When doing "npm init" the default format for the "repository" url starts with git+
Example, edited for brevity. Showing only what is set by the "git repository" question.
$ npm init
git repository: https://github.com/cnnlabs/something.git
About to write to /Users/jyoung/dev/test/package.json:
{
"repository": {
"type": "git",
"url": "git+https://github.com/cnnlabs/something.git"
},
"bugs": {
"url": "https://github.com/cnnlabs/something/issues"
},
"homepage": "https://github.com/cnnlabs/something#readme"
}
ESDoc pulls the repository.url for the href of the "Repository" link, which is invalid since it starts with git+.
It would be more appropriate to pull the homepage property.
I am not sure when this behavior started. It def exists in node 5.6.0 with npm 3.7.5.
When doing "npm init" the default format for the "repository" url starts with
git+Example, edited for brevity. Showing only what is set by the "git repository" question.
$ npm init git repository: https://github.com/cnnlabs/something.git About to write to /Users/jyoung/dev/test/package.json: { "repository": { "type": "git", "url": "git+https://github.com/cnnlabs/something.git" }, "bugs": { "url": "https://github.com/cnnlabs/something/issues" }, "homepage": "https://github.com/cnnlabs/something#readme" }ESDoc pulls the
repository.urlfor the href of the "Repository" link, which is invalid since it starts withgit+.It would be more appropriate to pull the
homepageproperty.