-
Notifications
You must be signed in to change notification settings - Fork 472
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.
zackbrown, xmclark, Tpt, felschr, maccesch and 4 more
Metadata
Metadata
Assignees
Labels
No labels