Skip to content

Commit

Permalink
make build-wasm work also with patched wasm-pack
Browse files Browse the repository at this point in the history
The build-wasm script was failing if you had wasm-pack built with the patch in
rustwasm/wasm-pack#1061 because the "module" attribute
would not be there --- so fix that by just hardcoding the filename.
  • Loading branch information
gthb committed Sep 24, 2021
1 parent a6fe243 commit 5ad374b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"scripts": {
"build-wasm": "wasm-pack build hi-wasm ; jq '. + {type: \"module\", main: .module} | del(.module)' hi-wasm/pkg/package.json | sponge hi-wasm/pkg/package.json",
"build-wasm": "wasm-pack build hi-wasm ; jq '. + {type: \"module\", main: \"hi_wasm.js\"} | del(.module)' hi-wasm/pkg/package.json | sponge hi-wasm/pkg/package.json",
"dev": "next dev",
"build": "next build",
"start": "next start",
Expand Down

0 comments on commit 5ad374b

Please sign in to comment.