Skip to content

Commit

Permalink
fix(ios): fix pod install --project-directory=... (#36096)
Browse files Browse the repository at this point in the history
  • Loading branch information
tido64 authored Feb 13, 2023
1 parent 374d874 commit ad1ddc2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/react_native_pods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ def react_native_post_install(installer, react_native_path = "../node_modules/re
flipper_post_install(installer)
end

package = JSON.parse(File.read(File.join(react_native_path, "package.json")))
package_path = File.join(Pod::Config.instance.installation_root, react_native_path, "package.json")
package = JSON.parse(File.read(package_path))
version = package['version']

if ReactNativePodsUtils.has_pod(installer, 'hermes-engine') && is_building_hermes_from_source(version, react_native_path)
Expand Down

0 comments on commit ad1ddc2

Please sign in to comment.