Skip to content

Commit

Permalink
Add trailing newline
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaoumov committed Sep 15, 2024
1 parent 53ea089 commit a345e9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/bump-version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ package_json.version = newVersion;
package_lock_json.version = newVersion;
package_lock_json.packages['']['version'] = newVersion;

writeFileSync('package.json', JSON.stringify(package_json, null, 4).replace(/\n/g, '\r\n'));
writeFileSync('package-lock.json', JSON.stringify(package_lock_json, null, 4).replace(/\n/g, '\r\n'));
writeFileSync('package.json', JSON.stringify(package_json, null, 4) + '\n');
writeFileSync('package-lock.json', JSON.stringify(package_lock_json, null, 4) + '\n');

try {
spawnSync('git', ['add', 'CHANGELOG.md', 'package.json', 'package-lock.json']);
Expand Down

0 comments on commit a345e9e

Please sign in to comment.