close
The Wayback Machine - https://web.archive.org/web/20230325183105/https://github.com/ipfs/js-ipfs/pull/3705
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

fix: move wrtc to optional deps #3705

Merged
merged 4 commits into from Jun 1, 2021
Merged

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented Jun 1, 2021

npm7 has started installing peer deps by default, which means if you
are running a future tech node.js version you may end up compiling
native addons that may fail. These addons should be opt-in so move
them to optional deps which means if they fail to install, the whole
installation does not fail.

Also adds @mapbox/node-pre-gyp as a dependency so we can attempt to
compile modules that have native addons where no prebuilt binary is
available instead of requiring users to install it globally which is
required due to a misconfiguration in the webrtc module.

npm7 has started installing peer deps by default, which means if you
are running a future tech node.js version you may end up compiling
native addons that may fail.  These addons should be opt-in so move
them to optional deps which means if they fail to install, the whole
installation does not fail.
@achingbrain
Copy link
Member Author

We may be able to remove the @mapbox/node-pre-gyp dep if node-webrtc/node-webrtc#694 ever gets merged.

@achingbrain achingbrain requested a review from lidel June 1, 2021 13:13
@achingbrain achingbrain merged commit 7cf404c into master Jun 1, 2021
22 checks passed
@achingbrain achingbrain deleted the fix/move-wrtc-to-optional-deps branch June 1, 2021 19:55
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.

None yet

1 participant