Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(rnsdk): exclude adding metro dep if already available

Calin-Teodor796a2217aa3e
diff --git a/react-native-sdk/update_dependencies.js b/react-native-sdk/update_dependencies.js
index 970ceff0d9..d30616c1f5 100644
--- a/react-native-sdk/update_dependencies.js
+++ b/react-native-sdk/update_dependencies.js
@@ -21,6 +21,11 @@ function updateDependencies() {
for (const key in RNSDKpackageJSON.peerDependencies) {
if (!packageJSON.dependencies.hasOwnProperty(key)) {
+
+ if (packageJSON.devDependencies.hasOwnProperty('@react-native/metro-config')) {
+ continue;
+ }
+
packageJSON.dependencies[key] = RNSDKpackageJSON.peerDependencies[key];
updated = true;
}