fix: Fix node_modules/
directory detection
This commit is contained in:
parent
4833c3e2b8
commit
66c012f3b2
@ -2,13 +2,7 @@ require "json"
|
|||||||
|
|
||||||
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
||||||
|
|
||||||
nodeModules = File.join(__dir__)
|
nodeModules = File.join(File.dirname(`cd "#{Pod::Config.instance.installation_root.to_s}" && node --print "require.resolve('react-native/package.json')"`), '..')
|
||||||
tries = 0
|
|
||||||
while !Dir.exist?(File.join(nodeModules, "node_modules")) && tries < 10
|
|
||||||
nodeModules = File.join(nodeModules, "..")
|
|
||||||
tries += 1
|
|
||||||
end
|
|
||||||
nodeModules = File.join(nodeModules, "node_modules")
|
|
||||||
|
|
||||||
forceDisableFrameProcessors = false
|
forceDisableFrameProcessors = false
|
||||||
if defined?($VCDisableFrameProcessors)
|
if defined?($VCDisableFrameProcessors)
|
||||||
|
Loading…
Reference in New Issue
Block a user