UNPKG

935 BSource Map (JSON)View Raw
1{"version":3,"file":"isExpoUpdatesInstalled.js","sourceRoot":"","sources":["../../src/utils/isExpoUpdatesInstalled.ts"],"names":[],"mappings":";;;;;AAAA,gDAAwB;AAExB,wDAAyB;AAEV,KAAK,UAAU,2BAA2B,CAAC,2BAAmC;IAC3F,MAAM,eAAe,GAAG,cAAI,CAAC,IAAI,CAAC,2BAA2B,EAAE,cAAc,CAAC,CAAC;IAC/E,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,kBAAE,CAAC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,CAAC;IAC3E,OAAO,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,IAAI,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC;AACvF,CAAC;AAJD,8CAIC","sourcesContent":["import path from 'path';\n\nimport fs from 'fs-extra'\n\nexport default async function isExpoUpdatesInstalledAsync(reactNativeProjectDirectory: string): Promise<boolean> {\n const packageJsonPath = path.join(reactNativeProjectDirectory, 'package.json');\n const packageJson = JSON.parse(await fs.readFile(packageJsonPath, 'utf8'));\n return packageJson.dependencies ? 'expo-updates' in packageJson.dependencies : false;\n}\n"]}
\No newline at end of file