Skip to content

Commit 0c795a7

Browse files
committed
fix: Fix generated markers not being patchable in package.json
1 parent 7c5d496 commit 0c795a7

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.cargo/config.toml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ tq = "test -- -q"
44
qt = "tq"
55
lint = "clippy --all-targets -- --cap-lints warn"
66
codegen = "run --package xtask --bin xtask -- codegen"
7+
dist = "run --package xtask --bin xtask -- dist"
78

89
[target.x86_64-pc-windows-msvc]
910
linker = "rust-lld"

xtask/src/dist.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,8 @@ fn dist_client(
7070
&format!(r#""version": "{version}""#),
7171
)
7272
.replace(r#""releaseTag": null"#, &format!(r#""releaseTag": "{release_tag}""#))
73-
.replace(
74-
" {\n \"title\": \"$generated-start\"\n },\n",
75-
"",
76-
)
77-
.replace(" { \"title\": \"$generated-end\" }\n", "")
73+
.replace(r#""title": "$generated-start""#, "")
74+
.replace(r#""title": "$generated-end""#, "")
7875
.replace(r#""enabledApiProposals": [],"#, r#""#);
7976
patch.commit(sh)?;
8077

0 commit comments

Comments
 (0)