Save package.json with a trailing newline