Skip to content

Commit

Permalink
feat: Bundle client code in server package
Browse files Browse the repository at this point in the history
Since the ESM output of the client package cannot currently
run in Node.js in ESM mode, we may need to run end-to-end
tests in Node.js that interact with both the client and server code.

It makes sense to remove server code from the client bundle,
but not so much the other way around where size is less constrained.
  • Loading branch information
franky47 committed Mar 24, 2023
1 parent 170e0e7 commit 3e51728
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"clean:server": "rm -rf packages/server/*",
"clean:client": "rm -rf packages/client/*",
"build": "run-s build:*",
"build:server": "wasm-pack build --out-dir ../../packages/server --scope 47ng --out-name opaque-server --release --target nodejs submodules/opaque-wasm --no-default-features --features server",
"build:server": "wasm-pack build --out-dir ../../packages/server --scope 47ng --out-name opaque-server --release --target nodejs submodules/opaque-wasm",
"build:client": "wasm-pack build --out-dir ../../packages/client --scope 47ng --out-name opaque-client --release --target web submodules/opaque-wasm --no-default-features --features client",
"patch": "./scripts/patch-packages.sh"
},
Expand Down

0 comments on commit 3e51728

Please sign in to comment.