Skip to content

Commit

Permalink
fixed build for 0.4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmueller committed Apr 14, 2012
1 parent a7c0e8a commit 97eb62b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
var fs = require('fs');

exports = module.exports = require('./lib/cheerio');

/*
Export the version
*/
exports.version = require(__dirname + '/package.json').version;
exports.version = (function() {
var pkg = fs.readFileSync(__dirname + '/package.json', 'utf8');
return JSON.parse(pkg).version;
})();

0 comments on commit 97eb62b

Please sign in to comment.