Skip to content

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

react-native-sdk(chore/overrides): update prepare_sdk script to take care of overrides (#14449)

Calinteodore1055ebf9b74
diff --git a/react-native-sdk/prepare_sdk.js b/react-native-sdk/prepare_sdk.js
index 5122771553..4b5c4bc0e7 100644
--- a/react-native-sdk/prepare_sdk.js
+++ b/react-native-sdk/prepare_sdk.js
@@ -79,6 +79,13 @@ function mergeDependencyVersions() {
}
}
+ // Updates SDK overrides dependencies.
+ for (const key in packageJSON.overrides) {
+ if (SDKPackageJSON.overrides.hasOwnProperty(key)) {
+ SDKPackageJSON.overrides[key] = packageJSON.overrides[key];
+ }
+ }
+
const data = JSON.stringify(SDKPackageJSON, null, 4);
fs.writeFileSync('package.json', data);