mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-10 07:04:22 +00:00
fix: Fix generated markers not being patchable in package.json
This commit is contained in:
parent
7c5d496ef8
commit
0c795a7226
2 changed files with 3 additions and 5 deletions
|
@ -4,6 +4,7 @@ tq = "test -- -q"
|
||||||
qt = "tq"
|
qt = "tq"
|
||||||
lint = "clippy --all-targets -- --cap-lints warn"
|
lint = "clippy --all-targets -- --cap-lints warn"
|
||||||
codegen = "run --package xtask --bin xtask -- codegen"
|
codegen = "run --package xtask --bin xtask -- codegen"
|
||||||
|
dist = "run --package xtask --bin xtask -- dist"
|
||||||
|
|
||||||
[target.x86_64-pc-windows-msvc]
|
[target.x86_64-pc-windows-msvc]
|
||||||
linker = "rust-lld"
|
linker = "rust-lld"
|
||||||
|
|
|
@ -70,11 +70,8 @@ fn dist_client(
|
||||||
&format!(r#""version": "{version}""#),
|
&format!(r#""version": "{version}""#),
|
||||||
)
|
)
|
||||||
.replace(r#""releaseTag": null"#, &format!(r#""releaseTag": "{release_tag}""#))
|
.replace(r#""releaseTag": null"#, &format!(r#""releaseTag": "{release_tag}""#))
|
||||||
.replace(
|
.replace(r#""title": "$generated-start""#, "")
|
||||||
" {\n \"title\": \"$generated-start\"\n },\n",
|
.replace(r#""title": "$generated-end""#, "")
|
||||||
"",
|
|
||||||
)
|
|
||||||
.replace(" { \"title\": \"$generated-end\" }\n", "")
|
|
||||||
.replace(r#""enabledApiProposals": [],"#, r#""#);
|
.replace(r#""enabledApiProposals": [],"#, r#""#);
|
||||||
patch.commit(sh)?;
|
patch.commit(sh)?;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue