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

This commit is contained in:
Lukas Wirth 2024-06-08 12:44:16 +02:00
parent 7c5d496ef8
commit 0c795a7226
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)?;