Skip to content

fix: allow npm binary upgrades#1439

Merged
drager merged 1 commit intodrager:masterfrom
net:patch-1
Oct 29, 2024
Merged

fix: allow npm binary upgrades#1439
drager merged 1 commit intodrager:masterfrom
net:patch-1

Conversation

@net
Copy link
Contributor

@net net commented Oct 14, 2024

The version of the NPM binary-install package that wasm-pack uses stores binaries at an unversioned path in the binary-install package's directory.

This silently prevents version upgrades, as when upgrading to a different version of wasm-pack, binary-install believes the wasm-pack binary is already installed, and keeps using the old one. For example, upgrading the NPM wasm-pack package from 0.12.1 to 0.13.0 will continue using the 0.12.1 binary, and so has no effect (likely without the user noticing).

This moves the install directory to node_modules/wasm-pack/binary/, which should fix the issue.

Copy link
Owner

@drager drager left a comment

Choose a reason for hiding this comment

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

Thanks!

@drager drager merged commit f177dd3 into drager:master Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants