Skip to content

Commit

Permalink
fix(lib): keep newline at the end of package.json
Browse files Browse the repository at this point in the history
fixes #159
  • Loading branch information
LinusU committed Mar 17, 2016
1 parent 9c22353 commit c514f56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commitizen/adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function addPathToAdapterConfig(sh, cliPath, repoPath, adapterNpmName) {
if(_.get(packageJsonContent,'config.commitizen.path') !== adapterNpmName) {
newPackageJsonContent = _.merge(packageJsonContent, commitizenAdapterConfig);
}
fs.writeFileSync(packageJsonPath, JSON.stringify(newPackageJsonContent, null, indent));
fs.writeFileSync(packageJsonPath, JSON.stringify(newPackageJsonContent, null, indent) + '\n');
}

/**
Expand Down

0 comments on commit c514f56

Please sign in to comment.