diff options
author | Noah Benham <noahbenham@users.noreply.github.com> | 2018-08-03 19:10:39 +0300 |
---|---|---|
committer | Kat Marchán <kzm@zkat.tech> | 2018-08-03 19:10:39 +0300 |
commit | e2b0f092193c08c00f12a6168ad2bd9d6e16f8ce (patch) | |
tree | 39304bf6d59884a499f80d1a052b814eb289861f | |
parent | 84bfd23e7d6434d30595594723a6e1976e84b022 (diff) |
docs: Improved repository examples (#36)
PR-URL: https://github.com/npm/cli/pull/36
Credit: @noahbenham
Reviewed-By: @zkat
-rw-r--r-- | doc/files/package.json.md | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/files/package.json.md b/doc/files/package.json.md index 09948d777..dd6492af0 100644 --- a/doc/files/package.json.md +++ b/doc/files/package.json.md @@ -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 |