Skip to content

Commit 07e9f44

Browse files
authored
fix: readConfigFromDisk should ignore package.json entries (#2472)
1 parent 9686b0e commit 07e9f44

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/cli-config/src/readConfigFromDisk.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const searchPlaces = ['react-native.config.js', 'react-native.config.ts'];
2020
export function readConfigFromDisk(rootFolder: string): UserConfig {
2121
const explorer = cosmiconfigSync('react-native', {
2222
stopDir: rootFolder,
23+
searchPlaces,
2324
});
2425

2526
const searchResult = explorer.search(rootFolder);

0 commit comments

Comments
 (0)