Skip to content

Commit

Permalink
Read files as UTF8
Browse files Browse the repository at this point in the history
  • Loading branch information
aredridel committed Jul 25, 2017
1 parent 43b6488 commit ffe75dc
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 @@ -161,7 +161,7 @@ const metapackage = archPackages.then(buildMetapackage(version + (pre != null ?
const script = `require('node-bin-setup')("${pkg.version}", require);`;

return P.all([
fs.readFileAsync(path.resolve(__dirname, 'node-bin-README.md')).then(function(readme) {
fs.readFileAsync(path.resolve(__dirname, 'node-bin-README.md'), 'utf8').then(function(readme) {
return fs.writeFileAsync(path.resolve(pkg.name, 'README.md'), readme.replace(/\$\{packagename\}/g, pkg.name))
}),
fs.writeFileAsync(path.resolve(pkg.name, 'package.json'), JSON.stringify(pkg, null, 2)),
Expand Down

0 comments on commit ffe75dc

Please sign in to comment.