expo-modules-autolinking 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -13,7 +13,7 @@ For managed [managed](https://docs.expo.io/versions/latest/introduction/managed-
13
13
 
14
14
  # Installation in bare React Native projects
15
15
 
16
- For bare React Native projects, you must ensure that you have [installed and configured the `react-native-unimodules` package](https://github.com/expo/expo/tree/master/packages/react-native-unimodules) before continuing.
16
+ For bare React Native projects, you must ensure that you have [installed and configured the `expo` package](https://docs.expo.dev/bare/installing-expo-modules/) before continuing.
17
17
 
18
18
  ### Add the package to your npm dependencies
19
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-modules-autolinking",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "Scripts that autolink Expo modules.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -47,5 +47,5 @@
47
47
  "find-up": "~5.0.0",
48
48
  "fs-extra": "^9.1.0"
49
49
  },
50
- "gitHead": "bff752d7ba830a625773e3b2adb050fb1577e59d"
50
+ "gitHead": "f93456e96091501a9b9f99246846cee29336a964"
51
51
  }
@@ -44,7 +44,7 @@ class ExpoAutolinkingManager {
44
44
  String[] args = convertOptionsToCommandArgs('resolve', this.options)
45
45
  args += ['--json']
46
46
 
47
- String output = exec(args)
47
+ String output = exec(args, projectDir)
48
48
  Object json = new JsonSlurper().parseText(output)
49
49
 
50
50
  cachedResolvingResults = json
@@ -84,11 +84,11 @@ class ExpoAutolinkingManager {
84
84
  args += '--empty'
85
85
  }
86
86
 
87
- exec(args)
87
+ exec(args, project.rootDir)
88
88
  }
89
89
 
90
- static String exec(String[] commandArgs) {
91
- Process proc = commandArgs.execute()
90
+ static String exec(String[] commandArgs, File dir) {
91
+ Process proc = commandArgs.execute(null, dir)
92
92
  StringBuffer outputStream = new StringBuffer()
93
93
  proc.waitForProcessOutput(outputStream, System.err)
94
94
  return outputStream.toString()