set_core_version.py: add newline to the end of package.json

This commit is contained in:
link2xt
2023-03-30 20:38:47 +00:00
parent 0073a09da6
commit 4223cac7a5

View File

@@ -56,7 +56,8 @@ def update_package_json(relpath, newversion):
json_data = json.loads(f.read())
json_data["version"] = newversion
with open(p, "w") as f:
f.write(json.dumps(json_data, sort_keys=True, indent=2))
json.dump(json_data, f, sort_keys=True, indent=2)
f.write("\n")
def main():