read-package-json
Advanced tools
Comparing version 0.0.12 to 0.1.0
{ | ||
"name": "read-package-json", | ||
"version": "0.0.12", | ||
"version": "0.1.0", | ||
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)", | ||
@@ -5,0 +5,0 @@ "description": "The thing npm uses to read package.json files with semantics and defaults and validation", |
@@ -343,4 +343,11 @@ // vim: set softtabstop=16 shiftwidth=16: | ||
scriptTypoWarn(file, data) | ||
noreadmeWarn(file, data) | ||
} | ||
function noreadmeWarn (file, data) { | ||
if (data.readme) return; | ||
warn(file, data, "No README.md file found!") | ||
data.readme = "ERROR: No README.md file found!" | ||
} | ||
function checkTypo (file, data, d) { | ||
@@ -347,0 +354,0 @@ if (!data.hasOwnProperty(d)) return; |
27743
531