Closed
Description
💡 Feature description
Currently, the NPM package name generated by wasm-pack
is the (optionally scoped) name of the Rust crate being packed. There is utility in being able to choose the name of the package; for example, I might want to publish multiple packages to the NPM repository using different --target
options.
💻 Basic example
I propose a command line flag, --package-name
, for this purpose, which should work in conjunction with --scope
.
For example:
wasm-pack build examples/js-hello-world --scope test --package-name custom-name
should result in an NPM package named @test/custom-name
.
Metadata
Metadata
Assignees
Labels
No labels