diff --git a/.github/workflows/JS_build_test_publish.yml b/.github/workflows/JS_build_test_publish.yml index 6e50429c..4d3f851d 100644 --- a/.github/workflows/JS_build_test_publish.yml +++ b/.github/workflows/JS_build_test_publish.yml @@ -43,7 +43,8 @@ jobs: - host: macos-latest target: x86_64-apple-darwin build: | - set -eu + set -eux + rustc --version yarn build --target x86_64-apple-darwin yarn build:ts - host: windows-latest @@ -78,7 +79,9 @@ jobs: target: aarch64-unknown-linux-musl docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine build: |- - set -eu + set -eux + rustc --version + rustup update stable rustc --version npm install -g corepack corepack enable diff --git a/js/optify-config/.cargo/config.toml b/js/optify-config/.cargo/config.toml index 06516547..46fd50bb 100644 --- a/js/optify-config/.cargo/config.toml +++ b/js/optify-config/.cargo/config.toml @@ -1,5 +1,12 @@ [target.aarch64-unknown-linux-musl] linker = "aarch64-linux-musl-gcc" rustflags = ["-C", "target-feature=-crt-static"] + [target.x86_64-pc-windows-msvc] -rustflags = ["-C", "target-feature=+crt-static"] \ No newline at end of file +rustflags = ["-C", "target-feature=+crt-static"] + +[target.x86_64-apple-darwin] +rustflags = ["-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup"] + +[target.aarch64-apple-darwin] +rustflags = ["-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup"] \ No newline at end of file diff --git a/js/optify-config/.npmignore b/js/optify-config/.npmignore index ec144db2..40209d36 100644 --- a/js/optify-config/.npmignore +++ b/js/optify-config/.npmignore @@ -1,13 +1,37 @@ +# Rust build artifacts and source target Cargo.lock +Cargo.toml .cargo +build.rs +src/*.rs +rustfmt.toml + +# Development and CI/CD .github -npm +.claude +.vscode +.nvmrc +.yarnrc.yml .eslintrc .prettierignore -rustfmt.toml +renovate.json + +# Package management +npm yarn.lock -*.node .yarn + +# Tests __test__ -renovate.json +tests +jest.config.js + +# TypeScript config +tsconfig.json + +# Native bindings (users will download platform-specific ones) +*.node + +# TypeScript source (use compiled dist/ instead) +src/*.ts diff --git a/js/optify-config/package.json b/js/optify-config/package.json index 42ff444d..b0067ec9 100644 --- a/js/optify-config/package.json +++ b/js/optify-config/package.json @@ -1,6 +1,6 @@ { "name": "@optify/config", - "version": "1.1.3", + "version": "1.1.4", "description": "Simplifies **configuration driven development**: getting the right configuration options for a process or request using pre-loaded configurations from files (JSON, YAML, etc.) to manage options for feature flags, experiments, or flights.", "repository": { "type": "git",