From 48e78e3e446df5ea10b01ace04315e446aec6126 Mon Sep 17 00:00:00 2001 From: Allain Magyar Date: Fri, 31 May 2024 09:44:13 -0300 Subject: [PATCH] fix: build node wasm not bundled up (#226) Signed-off-by: Allain Magyar --- package-lock.json | 20 +++++++++----------- package.json | 2 +- rollup/rollup.node.mjs | 4 ++-- 3 files changed, 12 insertions(+), 14 deletions(-) diff --git a/package-lock.json b/package-lock.json index 897e5e354..10eb88d2a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,15 @@ { "name": "@atala/prism-wallet-sdk", - "version": "3.1.0", + "version": "3.1.0-3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@atala/prism-wallet-sdk", - "version": "3.1.0", + "version": "3.1.0-3", "license": "Apache-2.0", "dependencies": { - "@atala/apollo": "^1.2.16", + "@atala/apollo": "~1.2.16", "@scure/bip32": "^1.3.0", "@scure/bip39": "^1.1.1", "@stablelib/base64": "^1.0.1", @@ -127,16 +127,14 @@ "extraneous": true }, "externals/generated/anoncreds-wasm-browser": { - "name": "anoncreds", - "version": "0.1.0-dev.18", - "dev": true, - "license": "Apache-2.0" + "name": "anoncreds-wasm", + "version": "0.1.0", + "dev": true }, "externals/generated/anoncreds-wasm-node": { - "name": "anoncreds", - "version": "0.1.0-dev.18", - "dev": true, - "license": "Apache-2.0" + "name": "anoncreds-wasm", + "version": "0.1.0", + "dev": true }, "externals/generated/didcomm-wasm-browser": { "name": "didcomm-js", diff --git a/package.json b/package.json index 430b1e3d2..e8f45dd31 100644 --- a/package.json +++ b/package.json @@ -180,7 +180,7 @@ "outputName": "junit.xml" }, "dependencies": { - "@atala/apollo": "^1.2.16", + "@atala/apollo": "~1.2.16", "@scure/bip32": "^1.3.0", "@scure/bip39": "^1.1.1", "@stablelib/base64": "^1.0.1", diff --git a/rollup/rollup.node.mjs b/rollup/rollup.node.mjs index 3029d5e98..65a63e950 100644 --- a/rollup/rollup.node.mjs +++ b/rollup/rollup.node.mjs @@ -15,12 +15,12 @@ const nodePlugins = [ preventAssignment: true, values: { 'didcomm_js_bg.wasm': "../node-wasm/didcomm.wasm", - 'anoncreds_bg.wasm': "../node-wasm/anoncreds.wasm", + 'anoncreds_wasm_bg.wasm': "../node-wasm/anoncreds.wasm", } }), copy({ targets: [ - { src: "./externals/generated/anoncreds-wasm-node/anoncreds_bg.wasm", dest: "build/node-wasm", rename: "anoncreds.wasm" }, + { src: "./externals/generated/anoncreds-wasm-node/anoncreds_wasm_bg.wasm", dest: "build/node-wasm", rename: "anoncreds.wasm" }, { src: "./externals/generated/didcomm-wasm-node/didcomm_js_bg.wasm", dest: "build/node-wasm", rename: 'didcomm.wasm' }, ], }),