From 7df6099ed903976f0c4996b88d22c22df543beb8 Mon Sep 17 00:00:00 2001 From: "italiano@oplabs.co" Date: Mon, 2 Dec 2024 20:59:26 -0500 Subject: [PATCH] no envvar --- packages/toml-parser/package.json | 2 +- scripts/release.sh | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/toml-parser/package.json b/packages/toml-parser/package.json index 6890f5e..54cdf26 100644 --- a/packages/toml-parser/package.json +++ b/packages/toml-parser/package.json @@ -6,7 +6,7 @@ "typings": "./index.d.ts", "scripts": { "build": "napi build --release --platform", - "build:bindings": "napi build --release --platform --target $CLI_BUILD_ARCH --use-cross", + "build:bindings": "napi build --release --platform --use-cross", "test": "cargo test", "lint": "cargo fmt --check", "lint:fix": "cargo fmt && cargo fmt --check", diff --git a/scripts/release.sh b/scripts/release.sh index e343851..8a8444a 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -19,7 +19,7 @@ build_darwin() { for arch in "${darwin_archs[@]}"; do rustup target add $arch echo "Building for macos architecture: $arch" - CLI_BUILD_ARCH=$arch pnpm nx run-many --target=build:bindings --skip-nx-cache + pnpm nx run-many --target=build:bindings --skip-nx-cache -- --target $arch done } @@ -27,7 +27,7 @@ build_linux() { for arch in "${linux_archs[@]}"; do rustup target add $arch echo "Building for linux architecture: $arch" - CLI_BUILD_ARCH=$arch pnpm nx run-many --target=build:bindings --skip-nx-cache + pnpm nx run-many --target=build:bindings --skip-nx-cache -- --target $arch done } @@ -35,8 +35,7 @@ build_windows() { for arch in "${windows_archs[@]}"; do rustup target add $arch echo "Building for windows architecture: $arch" - export CLI_BUILD_ARCH=$arch - pnpm nx run-many --target=build:bindings --skip-nx-cache + pnpm nx run-many --target=build:bindings --skip-nx-cache -- --target $arch done }