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

Function findOptional

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

Source from the content-addressed store, hash-verified

127 },
128
129 findOptional(startDir: string): ConfigT {
130 const configPath = findConfigPath(startDir);
131 return configPath
132 ? this.loadFile(configPath, startDir)
133 : {...defaultConfig};
134 },
135
136 loadFile(pathToConfig: string): ConfigT {
137 //$FlowFixMe: necessary dynamic require

Callers

nothing calls this directly

Calls 1

findConfigPathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…