Publishing to npm
First, make sure you have an npm account.
Second, make sure you are logged into your account locally, by running thiscommand:
Publishing
Take a moment to check out the contents of wasm-game-of-life/pkg
now, this iswhat we are publishing to npm in the next step!
When you're ready, run wasm-pack publish
to upload the package to npm:
…except other folks have also done this tutorial, and therefore the name is taken on npm, and that last command probably didn'twork.
Open up wasm-game-of-life/Cargo.toml
and add your username to the end of thename
to disambiguate the package in a unique way:
This time it should work!