Skip to content

feat(build): add optional package-name parameter #1486

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stegayet
Copy link

@stegayet stegayet commented Mar 30, 2025

Resolves #1485.

This commit adds optional package-name parameter, which defaults to Rust crate name.

TODO:

  • Check how this change interacts with out-name, which defaults to package name.
  • Proofread documentation

Make sure these boxes are checked! 📦✅

  • You have the latest version of rustfmt installed
$ rustup component add rustfmt
  • You ran cargo fmt on the code base before submitting
  • You reference which issue is being closed in the PR text

✨✨ 😄 Thanks so much for contributing to wasm-pack! 😄 ✨✨

@stegayet stegayet changed the title feat(build): add optional package_name parameter feat(build): add optional package-name parameter Mar 30, 2025
This commit adds optional `package_name` parameter, which defaults to Rust crate name.
@stegayet stegayet force-pushed the feat/add-package-name-optional-parameter branch from bfc08c0 to eda9685 Compare March 30, 2025 15:54
Comment on lines +128 to +130
/// The npm package name to use in package.json, if any.
#[clap(long = "package-name", short = 'p')]
pub package_name: Option<String>,
Copy link
Author

Choose a reason for hiding this comment

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

I don't feel strongly about parameter name, open to suggestions!

@stegayet
Copy link
Author

Setting this PR as ready for review to get feedback

@stegayet stegayet marked this pull request as ready for review March 30, 2025 15:55
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add parameter to override default package name
1 participant