You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want the option to rename the generated package name in package.json instead of using the same package name from cargo.toml.
Because my cargo package on crates.io has this name that I really like but it is not available on npm anymore.
I don't want to change my package name on crates.io so I have to rename my generated package name to something else.
💻 Basic example
wasm-pack build --package-name my_pkg_on_npm will yield a package.json:
{
"name": "my_pkg_on_npm",
"collaborators": [
"bts<[email protected]>"
],
"description": "It's an awesome package but the name has already taken on npm :(",
"version": "0.1.2",
...
}
The text was updated successfully, but these errors were encountered:
This requires a bit of hackery to make sure wasm-pack emits files
with the right names and references, and to fix the package name
before publishing to npm.
Once rustwasm/wasm-pack#949 is fixed we
can remove the bit of prepublish.js that renames the package.
💡 Feature description
I want the option to rename the generated package name in
package.json
instead of using the same package name from cargo.toml.Because my cargo package on crates.io has this name that I really like but it is not available on npm anymore.
I don't want to change my package name on crates.io so I have to rename my generated package name to something else.
💻 Basic example
wasm-pack build --package-name my_pkg_on_npm
will yield a package.json:The text was updated successfully, but these errors were encountered: