Auto merge of #17368 - Veykril:dist-fix, r=Veykril

fix: Fix generated markers not being patchable in package.json

I think the newlines are tripping up CI, so I hope clearing the property to leave an empty object won't make VSCode made here.
This commit is contained in:
bors 2024-06-08 10:56:55 +00:00
commit 6a171952f7
2 changed files with 3 additions and 5 deletions

View file

@ -4,6 +4,7 @@ tq = "test -- -q"
qt = "tq"
lint = "clippy --all-targets -- --cap-lints warn"
codegen = "run --package xtask --bin xtask -- codegen"
dist = "run --package xtask --bin xtask -- dist"
[target.x86_64-pc-windows-msvc]
linker = "rust-lld"

View file

@ -70,11 +70,8 @@ fn dist_client(
&format!(r#""version": "{version}""#),
)
.replace(r#""releaseTag": null"#, &format!(r#""releaseTag": "{release_tag}""#))
.replace(
" {\n \"title\": \"$generated-start\"\n },\n",
"",
)
.replace(" { \"title\": \"$generated-end\" }\n", "")
.replace(r#""title": "$generated-start""#, "")
.replace(r#""title": "$generated-end""#, "")
.replace(r#""enabledApiProposals": [],"#, r#""#);
patch.commit(sh)?;