Add newline to generated package.json files
This commit adds a newline to the end of the package.json files
generated by Pulumi codegen, such that they can be installed in place
without modification.
@@ -1796,7 +1796,7 @@ func genNPMPackageMetadata(pkg *schema.Package, info NodePackageInfo) string {
// Now write out the serialized form.
npmjson, err := json.MarshalIndent(npminfo, "", " ")
contract.Assert(err == nil)
- return string(npmjson)
+ return string(npmjson) + "\n"
}
func genTypeScriptProjectFile(info NodePackageInfo, files fs) string {
