Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add flag to mark package.json as private #1478

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

andrewhamon
Copy link

@andrewhamon andrewhamon commented Feb 26, 2025

This PR adds a --private flag to the build command, which is used to add a private field to the generated package.json.

This helps ensure that a package isn't accidentally published to npm.

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! 😄 ✨✨

This PR adds a `--private` flag to the build command, which is used to
add a `private` field to the generated package.json.

This helps ensure that a package isn't accidentally published to npm.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant