Skip to content

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

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