Skip to content

Commit 90027ee

Browse files
fix: use shell script for conditional zig usage
1 parent 59be1fb commit 90027ee

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"build:native": {
66
"executor": "nx:run-commands",
77
"options": {
8-
"command": "npx @napi-rs/cli build --platform --target {args.target} --release ${USE_ZIG:+--zig}"
8+
"command": "bash scripts/build.sh {args.target}"
99
},
1010
"outputs": [
1111
"{workspaceRoot}/cel-typescript.darwin-arm64.node",

scripts/build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
if [ "$USE_ZIG" = "true" ]; then
4+
npx @napi-rs/cli build --platform --target "$1" --release --zig
5+
else
6+
npx @napi-rs/cli build --platform --target "$1" --release
7+
fi

0 commit comments

Comments
 (0)