diff --git a/lib/nconf.js b/lib/nconf.js index 47c3eb7..e9b7eb0 100644 --- a/lib/nconf.js +++ b/lib/nconf.js @@ -16,7 +16,7 @@ nconf.use('memory'); // // Expose the version from the package.json using `pkginfo`. // -require('pkginfo')('version'); +require('pkginfo')(module, 'version'); // // ### function path (key) diff --git a/package.json b/package.json index 92f1862..e4b03fe 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "keywords": ["configuration", "key value store", "redis"], "dependencies": { "async": "0.1.x", - "pkginfo": "0.1.x", + "pkginfo": "0.2.x", "redis": "0.6.x" }, "main": "./lib/nconf",