Skip to content

Commit

Permalink
docs: Improved repository examples (#36)
Browse files Browse the repository at this point in the history
PR-URL: #36
Credit: @noahbenham
Reviewed-By: @zkat
  • Loading branch information
noahbenham authored and zkat committed Aug 3, 2018
1 parent 84bfd23 commit e2b0f09
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions doc/files/package.json.md
Expand Up @@ -366,15 +366,15 @@ command will be able to find you.

Do it like this:

"repository" :
{ "type" : "git"
, "url" : "https://github.com/npm/cli.git"
}
"repository": {
"type" : "git",
"url" : "https://github.com/npm/cli.git"
}

"repository" :
{ "type" : "svn"
, "url" : "https://v8.googlecode.com/svn/trunk/"
}
"repository": {
"type" : "svn",
"url" : "https://v8.googlecode.com/svn/trunk/"
}

The URL should be a publicly available (perhaps read-only) url that can be handed
directly to a VCS program without any modification. It should not be a url to an
Expand Down

0 comments on commit e2b0f09

Please sign in to comment.