Skip to content

Commit

Permalink
better load json
Browse files Browse the repository at this point in the history
  • Loading branch information
ernscht committed Mar 13, 2016
1 parent a2a6c2c commit f259f88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = generators.Base.extend({
// Calling the super constructor
generators.Base.apply(this, arguments);

this.pkg = JSON.parse(this.readFileAsString(path.join(__dirname, '../package.json')));
this.pkg = JSON.parse(fs.readFileSync(path.join(__dirname, '../package.json'),'utf8'));

this.passedInOptions = {
name: this.options.name,
Expand Down

0 comments on commit f259f88

Please sign in to comment.