read-package-json
Advanced tools
Comparing version 0.2.2 to 0.3.0
{ | ||
"name": "read-package-json", | ||
"version": "0.2.2", | ||
"version": "0.3.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", |
@@ -34,3 +34,2 @@ // vim: set softtabstop=16 shiftwidth=16: | ||
gypfile, | ||
wscript, | ||
serverjs, | ||
@@ -148,5 +147,6 @@ authors, | ||
var s = data.scripts || {} | ||
if (s.install || s.preinstall) { | ||
if (s.install === "node-gyp rebuild" && !s.preinstall) | ||
data.gypfile = true | ||
if (s.install || s.preinstall) | ||
return cb(null, data); | ||
} | ||
glob("*.gyp", { cwd: dir }, function (er, files) { | ||
@@ -167,21 +167,2 @@ if (er) return cb(er); | ||
function wscript (file, data, cb) { | ||
var dir = path.dirname(file) | ||
var s = data.scripts || {} | ||
if (s.install || s.preinstall) { | ||
return cb(null, data); | ||
} | ||
glob("wscript", { cwd: dir }, function (er, files) { | ||
if (er) return cb(er); | ||
wscript_(file, data, files, cb) | ||
}) | ||
} | ||
function wscript_ (file, data, files, cb) { | ||
if (!files.length || data.gypfile) return cb(null, data); | ||
var s = data.scripts || {} | ||
s.install = "node-waf clean ; node-waf configure build" | ||
data.scripts = s | ||
return cb(null, data); | ||
} | ||
function serverjs (file, data, cb) { | ||
@@ -188,0 +169,0 @@ var dir = path.dirname(file) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35205
724