Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorNoah Benham <noahbenham@users.noreply.github.com>2018-08-03 19:10:39 +0300
committerKat Marchán <kzm@zkat.tech>2018-08-03 19:10:39 +0300
commite2b0f092193c08c00f12a6168ad2bd9d6e16f8ce (patch)
tree39304bf6d59884a499f80d1a052b814eb289861f /doc
parent84bfd23e7d6434d30595594723a6e1976e84b022 (diff)
docs: Improved repository examples (#36)
PR-URL: https://github.com/npm/cli/pull/36 Credit: @noahbenham Reviewed-By: @zkat
Diffstat (limited to 'doc')
-rw-r--r--doc/files/package.json.md16
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