Persist Package Newline After Dependency Parse

This commit is contained in:
Christopher Allford 2023-12-05 14:24:32 -08:00
parent d244662669
commit 7e9d55d344
1 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,8 @@ function updatePackageFile( packagePath, packageFile ) {
fs.writeFileSync( fs.writeFileSync(
path.join( packagePath, 'package.json' ), 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' 'utf8'
); );
} }