Skip to content

Commit

Permalink
Persist Package Newline After Dependency Parse
Browse files Browse the repository at this point in the history
  • Loading branch information
ObliviousHarmony committed Dec 9, 2023
1 parent d244662 commit 7e9d55d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .pnpmfile.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ function updatePackageFile( packagePath, packageFile ) {

fs.writeFileSync(
path.join( packagePath, 'package.json' ),
JSON.stringify( packageFile, null, '\t' ),
// Make sure to keep the newline at the end of the file.
JSON.stringify( packageFile, null, '\t' ) + "\n",
'utf8'
);
}
Expand Down

0 comments on commit 7e9d55d

Please sign in to comment.