diff options
-rw-r--r-- | lib/utils/read-json.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/utils/read-json.js b/lib/utils/read-json.js index 5c304d8fd..019f3fc65 100644 --- a/lib/utils/read-json.js +++ b/lib/utils/read-json.js @@ -6,6 +6,7 @@ var fs = require("./graceful-fs") , semver = require("./semver") , path = require("path") , log = require("./log") + , npm = require("../../npm") , cache = {} , timers = {} function readJson (jsonFile, opts, cb) { @@ -136,6 +137,8 @@ function processObject (opts, cb) { return function (er, json) { json._id = json.name+"@"+json.version json = testEngine(json) json = parsePeople(json) + json._npmVersion = npm.version + json._nodeVersion = process.version if (opts.file) { log.verbose(opts.file, "caching") cache[opts.file] = json |