From f645f74ab8bb0d824571f25a92be47efdd611078 Mon Sep 17 00:00:00 2001 From: xstoicunicornx Date: Mon, 7 Sep 2026 17:50:42 -0500 Subject: [PATCH 1/3] Build JS bindings with release build --- payjoin-ffi/javascript/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/payjoin-ffi/javascript/package.json b/payjoin-ffi/javascript/package.json index d59a973d4..56563c1fa 100644 --- a/payjoin-ffi/javascript/package.json +++ b/payjoin-ffi/javascript/package.json @@ -4,9 +4,9 @@ "releaseTag": "0.2.0+payjoin-1.0.0", "description": "JavaScript/WASM bindings for rust-payjoin (EXPERIMENTAL)", "scripts": { - "ubrn:nodejs": "ubrn build web --config ubrn.nodejs.config.yaml --and-generate", + "ubrn:nodejs": "ubrn build web --release --and-generate --config ubrn.nodejs.config.yaml", "copy-wasm:nodejs": "cp -r src/nodejs/generated/wasm-bindgen dist/nodejs/generated/", - "ubrn:web": "ubrn build web --config ubrn.web.config.yaml --and-generate", + "ubrn:web": "ubrn build web --release --and-generate --config ubrn.web.config.yaml", "copy-wasm:web": "cp -r src/web/generated/wasm-bindgen dist/web/generated/", "ubrn": "npm run ubrn:nodejs && npm run ubrn:web", "compile": "tsc", From 58cb17adab03477d34b4e060a98dcbac675264ba Mon Sep 17 00:00:00 2001 From: xstoicunicornx Date: Mon, 7 Sep 2026 17:51:43 -0500 Subject: [PATCH 2/3] Remove redundant command from JS bindings build --- payjoin-ffi/javascript/CONTRIBUTING.md | 1 - 1 file changed, 1 deletion(-) diff --git a/payjoin-ffi/javascript/CONTRIBUTING.md b/payjoin-ffi/javascript/CONTRIBUTING.md index 5bda0cafe..d0afa83cb 100644 --- a/payjoin-ffi/javascript/CONTRIBUTING.md +++ b/payjoin-ffi/javascript/CONTRIBUTING.md @@ -14,7 +14,6 @@ cd rust-payjoin/payjoin-ffi/javascript # Clean out stale dependencies npm run clean npm run clean:test-utils -rm -rf node_modules # Install system dependencies cargo install wasm-bindgen-cli From 4b70dd09e5d49f59e53abfbcae1af81bb2b0b46c Mon Sep 17 00:00:00 2001 From: xstoicunicornx Date: Tue, 8 Sep 2026 14:49:55 -0500 Subject: [PATCH 3/3] Add commands for JS bindings debug build --- payjoin-ffi/javascript/package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/payjoin-ffi/javascript/package.json b/payjoin-ffi/javascript/package.json index 56563c1fa..c14930214 100644 --- a/payjoin-ffi/javascript/package.json +++ b/payjoin-ffi/javascript/package.json @@ -5,13 +5,17 @@ "description": "JavaScript/WASM bindings for rust-payjoin (EXPERIMENTAL)", "scripts": { "ubrn:nodejs": "ubrn build web --release --and-generate --config ubrn.nodejs.config.yaml", + "ubrn-debug:nodejs": "ubrn build web --and-generate --config ubrn.nodejs.config.yaml", "copy-wasm:nodejs": "cp -r src/nodejs/generated/wasm-bindgen dist/nodejs/generated/", "ubrn:web": "ubrn build web --release --and-generate --config ubrn.web.config.yaml", + "ubrn-debug:web": "ubrn build web --and-generate --config ubrn.web.config.yaml", "copy-wasm:web": "cp -r src/web/generated/wasm-bindgen dist/web/generated/", "ubrn": "npm run ubrn:nodejs && npm run ubrn:web", + "ubrn-debug": "npm run ubrn-debug:nodejs && npm run ubrn-debug:web", "compile": "tsc", "copy-wasm": "npm run copy-wasm:nodejs && npm run copy-wasm:web", "build": "npm run ubrn && npm run compile && npm run copy-wasm", + "build-debug": "npm run ubrn-debug && npm run compile && npm run copy-wasm", "build:test-utils": "cd test-utils && npm install && npx @napi-rs/cli build", "clean": "rm -rf rust_modules dist src/**/*.js src/*/generated/", "clean:test-utils": "rm -rf test-utils/target test-utils/index.d.ts test-utils/*.node",