Skip to content

Commit

Permalink
add extension for JSON require call
Browse files Browse the repository at this point in the history
fixes #836, #769
  • Loading branch information
fb55 committed Apr 9, 2016
1 parent d0551dc commit 7b59afb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ exports = module.exports = require('./lib/cheerio');
Export the version
*/

exports.version = require('./package').version;
exports.version = require('./package.json').version;

2 comments on commit 7b59afb

@ItsCosmo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be published to npm?

@levithomason
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, please. This is currently breaking our test runner. Would be superb to have this published.

Please sign in to comment.