Skip to content
This repository was archived by the owner on Nov 5, 2018. It is now read-only.

Commit

Permalink
Webpack support
Browse files Browse the repository at this point in the history
Specify `.json` extension when requiring `package.json` as suggested by @abhishiv.

Closes #289
  • Loading branch information
Johannes J. Schmidt committed Aug 3, 2015
1 parent 03e784b commit c38e92d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nano.js
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ module.exports = exports = nano = function dbScope(cfg) {
*
* thanks for visiting! come again!
*/
nano.version = require('../package').version;
nano.version = require('../package.json').version;
nano.path = __dirname;

function urlResolveFix(couchUrl, dbName) {
Expand Down

0 comments on commit c38e92d

Please sign in to comment.