async function mergeLinkingOptionsAsync(providedOptions) {
    var _a;
    const packageJson = require(exports.projectPackageJsonPath);
    const baseOptions = (_a = packageJson.expo) === null || _a === void 0 ? void 0 : _a.autolinking;
    const platformOptions = providedOptions.platform && (baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions[providedOptions.platform]);
    const finalOptions = Object.assign({}, baseOptions, platformOptions, providedOptions);
    // Makes provided paths absolute or falls back to default paths if none was provided.
    finalOptions.searchPaths = await resolveSearchPathsAsync(finalOptions.searchPaths, process.cwd());
    finalOptions.nativeModulesDir = await resolveNativeModulesDirAsync(finalOptions.nativeModulesDir, process.cwd());
    return finalOptions;
}
/**
 * Merges autolinking options from different sources (the later the higher priority)
 * - options defined in package.json's `expo.autolinking` field
 * - platform-specific options from the above (e.g. `expo.autolinking.ios`)
 * - options provided to the CLI command
 */
Merges autolinking options from different sources (the later the higher priority)
- options defined in package.json's `expo.autolinking` field
- platform-specific options from the above
- options provided to the CLI command
Merges autolinking options from different sources ( the later the higher priority ) - options defined in package . json ' s ` expo . autolinking ` field - platform - specific options from the above - options provided to the CLI command
async function mergeLinkingOptionsAsync(providedOptions) {
    var _a;
    const packageJson = require(exports.projectPackageJsonPath);
    const baseOptions = (_a = packageJson.expo) === null || _a === void 0 ? void 0 : _a.autolinking;
    const platformOptions = providedOptions.platform && (baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions[providedOptions.platform]);
    const finalOptions = Object.assign({}, baseOptions, platformOptions, providedOptions);
    finalOptions.searchPaths = await resolveSearchPathsAsync(finalOptions.searchPaths, process.cwd());
    finalOptions.nativeModulesDir = await resolveNativeModulesDirAsync(finalOptions.nativeModulesDir, process.cwd());
    return finalOptions;
}
async function mergeLinkingOptionsAsync ( providedOptions ) { var _a ; const packageJson = require ( exports . projectPackageJsonPath ) ; const baseOptions = ( _a = packageJson . expo ) === null || _a === void 0 ? void 0 : _a . autolinking ; const platformOptions = providedOptions . platform && ( baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions [ providedOptions . platform ] ) ; const finalOptions = Object . assign ( { } , baseOptions , platformOptions , providedOptions ) ; finalOptions . searchPaths = await resolveSearchPathsAsync ( finalOptions . searchPaths , process . cwd ( ) ) ; finalOptions . nativeModulesDir = await resolveNativeModulesDirAsync ( finalOptions . nativeModulesDir , process . cwd ( ) ) ; return finalOptions ; }
Merges autolinking options from different sources (the later the higher priority)
 - options defined in package.json's `expo.autolinking` field
 - platform-specific options from the above (e.g.
Merges autolinking options from different sources ( the later the higher priority ) - options defined in package . json ' s ` expo . autolinking ` field - platform - specific options from the above ( e . g .
// Makes provided paths absolute or falls back to default paths if none was provided.