Commit 90fa1a6
Fix metro config to always add monorepo root to watchFolders
The previous condition only added watchFolders if the array was empty,
but @rnx-kit/metro-config might return a non-empty array. This caused
the macOS test app to fail to resolve @React-Native-Node-API packages
during bundling.
Fixes the UnableToResolveError for @react-native-node-api/node-addon-examples
Co-authored-by: Kræn Hansen <mail@kraenhansen.dk>1 parent f007b25 commit 90fa1a6
1 file changed
+10
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
0 commit comments