From 7e9d55d344f68301b0337fad3d3b8ee15002e262 Mon Sep 17 00:00:00 2001 From: Christopher Allford <6451942+ObliviousHarmony@users.noreply.github.com> Date: Tue, 5 Dec 2023 14:24:32 -0800 Subject: [PATCH] Persist Package Newline After Dependency Parse --- .pnpmfile.cjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.pnpmfile.cjs b/.pnpmfile.cjs index 3e16c0d3540..6bafa1bc4f3 100644 --- a/.pnpmfile.cjs +++ b/.pnpmfile.cjs @@ -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' ); }