diff --git a/lib/nconf.js b/lib/nconf.js index be81056..35271b3 100644 --- a/lib/nconf.js +++ b/lib/nconf.js @@ -12,9 +12,9 @@ var fs = require('fs'), nconf = module.exports = new Provider(); // -// Expose the version from the package.json using `pkginfo`. +// Expose the version from the package.json // -require('pkginfo')(module, 'version'); +nconf.version = require('../package.json').version; // // Setup all stores as lazy-loaded getters. @@ -37,3 +37,4 @@ nconf.loadFiles = common.loadFiles; nconf.loadFilesSync = common.loadFilesSync; nconf.formats = require('./nconf/formats'); nconf.Provider = Provider; + diff --git a/package.json b/package.json index 8e89307..eb4cfae 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,7 @@ "dependencies": { "async": "0.2.9", "ini": "1.x.x", - "optimist": "0.3.x", - "pkginfo": "0.2.x" + "optimist": "0.3.x" }, "devDependencies": { "vows": "0.7.x"