11656: Fix package.json key replacement r=lnicola a=lnicola

CC #11653

bors r+

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
This commit is contained in:
bors[bot] 2022-03-08 06:34:49 +00:00 committed by GitHub
commit 0f5df8e177
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@ fn dist_client(version: &str, release_tag: &str, target: &Target) -> Result<()>
.replace(r#""releaseTag": null"#, &format!(r#""releaseTag": "{}""#, release_tag))
.replace(r#""$generated-start": {},"#, "")
.replace(",\n \"$generated-end\": {}", "")
.replace(r#""enabledApiProposals": true,"#, r#""#);
.replace(r#""enabledApiProposals": [],"#, r#""#);
patch.commit()?;
Ok(())