Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: patch react-native-cli-bump-version to support monorepo

ammarahm-ed3f075699ae9f
diff --git a/apps/mobile/patches/react-native-cli-bump-version+1.5.0.patch b/apps/mobile/patches/react-native-cli-bump-version+1.5.0.patch
new file mode 100644
index 000000000..4b0096796
--- /dev/null
+++ b/apps/mobile/patches/react-native-cli-bump-version+1.5.0.patch
@@ -0,0 +1,13 @@
+diff --git a/node_modules/react-native-cli-bump-version/lib/index.js b/node_modules/react-native-cli-bump-version/lib/index.js
+index 1dabda2..b17b130 100644
+--- a/node_modules/react-native-cli-bump-version/lib/index.js
++++ b/node_modules/react-native-cli-bump-version/lib/index.js
+@@ -140,7 +140,7 @@ class ProjectFilesManager {
+ this.configs = configs;
+ this.buildGradle = new BuildGradleManager(buildGradlePath);
+ this.pbx = new PBXManager(pbxprojPath);
+- this.packageJSON = new PackageJSONManager(() => path_1.default.join(root, "package.json"));
++ this.packageJSON = new PackageJSONManager(() => path_1.default.join(root, "../package.json"));
+ }
+ syncSemver(semverString) {
+ const { skipSemVerFor } = this.configs;