mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-25 05:22:52 +00:00
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:
parent
9ab2ecdc4d
commit
9961cc9b69
1 changed files with 9 additions and 5 deletions
|
|
@ -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";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue