dev: update build scripts to use correct cargo dev profile (#2157)

The `debug` profile is deprecated and reserved. We should use `dev`
profile instead.
This commit is contained in:
Luyan Zhou 2025-10-11 01:34:53 +08:00 committed by GitHub
parent 9ab2ecdc4d
commit 9961cc9b69
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -160,12 +160,16 @@ export async function buildTinymistVscodeSystem() {
}
export async function buildLspBinary(kind) {
await spawnAsync(`lsp:${kind}`, `cargo build -p tinymist-cli --color=always --profile=${kind}`, {
env: {
...process.env,
FORCE_COLOR: "1",
await spawnAsync(
`lsp:${kind}`,
`cargo build -p tinymist-cli --color=always --profile=${kind === "debug" ? "dev" : "release"}`,
{
env: {
...process.env,
FORCE_COLOR: "1",
},
},
});
);
const binName = process.platform === "win32" ? "tinymist.exe" : "tinymist";