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' ); }