Skip to content

Commit

Permalink
Update src/react-native/metro.ts
Browse files Browse the repository at this point in the history
Co-authored-by: LucasZF <[email protected]>
  • Loading branch information
krystofwoldrich and lucas-zimerman authored Dec 5, 2023
1 parent 8ec303f commit b3a3aa4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/react-native/metro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ export async function patchMetroConfig(
const showInstructions = () =>
showCopyPasteInstructions(metroConfigPath, getMetroConfigSnippet(true));

const doesConfigExist = fs.existsSync(metroConfigPath);
const missingMetroConfig = !fs.existsSync(metroConfigPath);

if (!doesConfigExist && isExpoManagedProject) {
if (missingMetroConfig && isExpoManagedProject) {
return await createExpoMinimalMetroConfigWithSentry(metroConfigPath);
}

if (!doesConfigExist) {
if (missingMetroConfig) {
Sentry.setTag('metro-config-path', 'not-found');
return await showInstructions();
}
Expand Down

0 comments on commit b3a3aa4

Please sign in to comment.