Skip to content

Allow for custom URL for binary downloads via NPM #1497

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

MM-coder
Copy link

As discussed in #605, the ability to be able to specify a custom URL for binary downloads is instrumental when working in certain environments, for example, my company blocks Github even when going through a proxy.

This PR includes three environment variables that allow for over-riding the URL and certain download aspects of the current vendoring script, namely:

  • WASMPACK_CUSTOM_URL (allowing {{author}}, {{name}}, {{version}}, and {{platform}} placeholders)
  • WASMPACK_REPO_AUTHOR to override the default author
  • WASMPACK_REPO_NAME to override the default name

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

# 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.

1 participant