]> source.dussan.org Git - svg.js.git/commitdiff
Fixed npm warning about "repositories" property 286/head
authorGianluca Casati <casati_gianluca@yahoo.it>
Wed, 12 Nov 2014 17:40:56 +0000 (18:40 +0100)
committerGianluca Casati <casati_gianluca@yahoo.it>
Wed, 12 Nov 2014 17:40:56 +0000 (18:40 +0100)
After adding *svg.js* as a dependency

```
$ npm install svg.js --save
svg.js@1.0.1 node_modules/svg.js
```

when I update deps I get a warning

```
$ npm install
npm WARN package.json svg.js@1.0.1 'repositories' (plural) Not supported.
npm WARN package.json Please pick one as the 'repository' field
svg.js@1.0.1 node_modules/svg.js
```

package.json

index 6d586f1623da153c285e0f78c85b85e3f14965b7..35f22e0040650abb3a83d074f0f628b8ec0d09ee 100755 (executable)
     , "url":      "http://www.opensource.org/licenses/mit-license.php"
     }
   ]
-, "repositories": [
-    {
-      "type":     "git"
-    , "url":      "https://github.com/wout/svg.js.git"
-    }
-  ]
+, "repository": {
+    "type":     "git"
+  , "url":      "https://github.com/wout/svg.js.git"
+  }
 , "github":       "https://github.com/wout/svg.js"
 }