diff --git a/src/commitizen/adapter.js b/src/commitizen/adapter.js index b2d3d041..7d7eff70 100644 --- a/src/commitizen/adapter.js +++ b/src/commitizen/adapter.js @@ -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'); } /**