Skip to content

Commit

Permalink
fix: build node wasm not bundled up (#226)
Browse files Browse the repository at this point in the history
Signed-off-by: Allain Magyar <[email protected]>
  • Loading branch information
amagyar-iohk authored May 31, 2024
1 parent e80549c commit 48e78e3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
20 changes: 9 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions rollup/rollup.node.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
],
}),
Expand Down

1 comment on commit 48e78e3

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines Statements Branches Functions
Coverage: 72%
72.31% (2152/2976) 61.05% (1019/1669) 78.71% (588/747)

JUnit

Tests Skipped Failures Errors Time
445 6 💤 0 ❌ 0 🔥 1m 4s ⏱️

Please sign in to comment.