I have no idea why.
I also have no idea if it's the server or the uploader CLI.
But the wasm files I publish are different from the files I get when I install my own package.
I don't know what is being changed, but I know it makes my wasm module not work anymore.
The diff doesn't seem to display any pattern discernible to a naked eye:
how to reproduce:
- clone https://github.com/nbd-wtf/nostr-gadgets
- call
cd redstore && ../node_modules/.bin/wasm-pack build --target web --out-dir pkg --release
sha256sum redstore/pkg/gadgets_redstore_bg.wasm
- publish to jsr
- install it from jsr
sha256sum node_modules/@nostr/gadgets/redstore/pkg/gadgets_redstore_bg.wasm
I have no idea why.
I also have no idea if it's the server or the uploader CLI.
But the wasm files I publish are different from the files I get when I install my own package.
I don't know what is being changed, but I know it makes my wasm module not work anymore.
The diff doesn't seem to display any pattern discernible to a naked eye:
how to reproduce:
cd redstore && ../node_modules/.bin/wasm-pack build --target web --out-dir pkg --releasesha256sum redstore/pkg/gadgets_redstore_bg.wasmsha256sum node_modules/@nostr/gadgets/redstore/pkg/gadgets_redstore_bg.wasm