@expo-harmony/expo-modules-autolinking 55.0.25-harmony.1 → 55.0.25-harmony.2
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.
|
@@ -137,7 +137,9 @@ function classifySource(revision, packageRoot, options) {
|
|
|
137
137
|
&& (0, values_1.isPathInside)(options.nativeModulesDir, packageRoot)) {
|
|
138
138
|
return 'nativeModulesDir';
|
|
139
139
|
}
|
|
140
|
-
|
|
140
|
+
// A package symlink can resolve outside searchPaths (e.g. prebuild --check).
|
|
141
|
+
// The upstream scanner retains its entry path in originPath.
|
|
142
|
+
if (options.searchPaths.some(searchPath => (0, values_1.isPathInside)(searchPath, packageRoot) || (0, values_1.isPathInside)(searchPath, revision.originPath))) {
|
|
141
143
|
return 'searchPath';
|
|
142
144
|
}
|
|
143
145
|
return 'dependency';
|
package/package.json
CHANGED
|
@@ -112,7 +112,10 @@ function classifySource(revision, packageRoot, options) {
|
|
|
112
112
|
&& isPathInside(options.nativeModulesDir, packageRoot)) {
|
|
113
113
|
return 'nativeModulesDir';
|
|
114
114
|
}
|
|
115
|
-
|
|
115
|
+
// A package symlink can resolve outside searchPaths (e.g. prebuild --check).
|
|
116
|
+
// The upstream scanner retains its entry path in originPath.
|
|
117
|
+
if (options.searchPaths.some(searchPath =>
|
|
118
|
+
isPathInside(searchPath, packageRoot) || isPathInside(searchPath, revision.originPath))) {
|
|
116
119
|
return 'searchPath';
|
|
117
120
|
}
|
|
118
121
|
return 'dependency';
|