diff options
Diffstat (limited to 'lib/utils/read-json.js')
-rw-r--r-- | lib/utils/read-json.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/utils/read-json.js b/lib/utils/read-json.js index ac978e8cc..d8a195e88 100644 --- a/lib/utils/read-json.js +++ b/lib/utils/read-json.js @@ -181,6 +181,20 @@ function typoWarn (json) { } }) + // bugs typos + var bugsTypos = { "web": "url" + , "name": "url" + } + + if (typeof json.bugs === "object") { + Object.keys(bugsTypos).forEach(function (d) { + if (json.bugs.hasOwnProperty(d)) { + log.warn( "package.json: bugs['" + d + "'] should probably be " + + "bugs['" + bugsTypos[d] + "']", json._id) + } + }) + } + // script typos var scriptTypos = { "server": "start" } if (json.scripts) Object.keys(scriptTypos).forEach(function (d) { |