Skip to content

Commit

Permalink
fix(cli): remove expo-dev-client for Expo Go (#2601 by @frankcalise)
Browse files Browse the repository at this point in the history
  • Loading branch information
frankcalise authored Jan 6, 2024
1 parent 3fec7be commit cf6154e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tools/expoGoCompatibility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,8 @@ export function findAndUpdateDependencyVersions(
updatedPackageJson = updatedPackageJson.replace(regex, `"${depName}": "${desiredVersion}"`)
})

// Make sure `expo-dev-client` is removed
updatedPackageJson = updatedPackageJson.replace(/"expo-dev-client"\s*:\s*"[^"]+",?/g, "")

return updatedPackageJson
}

0 comments on commit cf6154e

Please sign in to comment.