MCPcopy Index your code
hub / github.com/ptmt/react-native-macos / find

Function find

local-cli/util/Config.js:120–127  ·  view source on GitHub ↗
(startDir: string)

Source from the content-addressed store, hash-verified

118 */
119const Config = {
120 find(startDir: string): ConfigT {
121 const configPath = findConfigPath(startDir);
122 invariant(
123 configPath,
124 `Can't find "${RN_CLI_CONFIG}" file in any parent folder of "${startDir}"`,
125 );
126 return this.loadFile(configPath, startDir);
127 },
128
129 findOptional(startDir: string): ConfigT {
130 const configPath = findConfigPath(startDir);

Callers

nothing calls this directly

Calls 2

findConfigPathFunction · 0.85
invariantFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…