Skip to content

Commit 26b8f60

Browse files
committed
removed empty str from arr
1 parent 9a23358 commit 26b8f60

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/ferric/src/cargo.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ type BuildOptions = {
7676

7777
export async function build(options: BuildOptions) {
7878
const { target, configuration } = options;
79-
const modeConfig = configuration.toLowerCase() === "release" ? "--release" : "";
80-
await spawn("cargo", ["build", "--target", target, modeConfig], {
79+
const modeConfig = configuration.toLowerCase() === "release" ? "--release" : "";
80+
const cargoBuildArgs = ["build", "--target", target, modeConfig].filter(item => String(item).length > 0)
81+
await spawn("cargo", cargoBuildArgs, {
8182
outputMode: "buffered",
8283
env: {
8384
...process.env,

0 commit comments

Comments
 (0)