Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

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
@achingbrain achingbrain deleted the fix/move-wrtc-to-optional-deps branch June 1, 2021 19:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant