Skip to content

Commit

Permalink
refactor: upgrade to Expo SDK 51 (#117)
Browse files Browse the repository at this point in the history
* refactor: upgrade to Expo SDK 51

* fix(mobile): add missing `@expo/metro-runtime`

* fix(mobile): re-enable hierarchical lookup
  • Loading branch information
byCedric authored May 9, 2024
1 parent 7c7c9f8 commit 1809d3a
Show file tree
Hide file tree
Showing 6 changed files with 3,636 additions and 2,910 deletions.
2 changes: 0 additions & 2 deletions apps/mobile/metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ const config = getDefaultConfig(projectRoot);

// #1 - Watch all files in the monorepo
config.watchFolders = [workspaceRoot];
// #3 - Force resolving nested modules to the folders below
config.resolver.disableHierarchicalLookup = true;
// #2 - Try resolving with project modules first, then workspace modules
config.resolver.nodeModulesPaths = [
path.resolve(projectRoot, 'node_modules'),
Expand Down
21 changes: 11 additions & 10 deletions apps/mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,22 @@
},
"dependencies": {
"@acme/feature-home": "workspace:*",
"expo": "^49.0.10",
"expo-dev-client": "~2.4.8",
"expo-status-bar": "~1.6.0",
"expo-updates": "~0.18.10",
"@expo/metro-runtime": "^3.2.1",
"expo": "^51.0.1",
"expo-dev-client": "~4.0.12",
"expo-status-bar": "~1.12.1",
"expo-updates": "~0.25.10",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "0.72.4",
"react-native-web": "~0.19.6"
"react-native": "0.74.1",
"react-native-web": "~0.19.11"
},
"devDependencies": {
"@acme/eslint-config": "workspace:*",
"@babel/core": "^7.19.3",
"@types/react": "~18.2.43",
"@types/react-dom": "~18.0.11",
"babel-preset-expo": "~9.5.0"
"@babel/core": "^7.24.5",
"@types/react": "~18.2.79",
"@types/react-dom": "~18.2.25",
"babel-preset-expo": "~11.0.5"
},
"eslintConfig": {
"extends": "@acme/eslint-config",
Expand Down
10 changes: 5 additions & 5 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
"lint": "eslint --ext js,ts,tsx ."
},
"dependencies": {
"@typescript-eslint/eslint-plugin": "^5.42.1",
"@typescript-eslint/parser": "^5.42.1",
"eslint": "^8.34.0",
"eslint-config-universe": "^11.2.0",
"prettier": "^2.7.1"
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"eslint": "^8.57.0",
"eslint-config-universe": "^12.1.0",
"prettier": "^3.2.5"
},
"eslintConfig": {
"extends": "."
Expand Down
12 changes: 6 additions & 6 deletions packages/feature-home/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
},
"devDependencies": {
"@acme/eslint-config": "workspace:*",
"@testing-library/react-native": "^11.4.0",
"@tsconfig/recommended": "^1.0.1",
"@types/jest": "^29.5.11",
"@testing-library/react-native": "^12.5.0",
"@tsconfig/recommended": "^1.0.6",
"@types/jest": "^29.5.12",
"@types/react": "~18.2.43",
"babel-preset-expo": "~9.5.0",
"babel-preset-expo": "~11.0.5",
"jest": "^29.7.0",
"jest-expo": "^49.0.0",
"jest-expo": "^51.0.1",
"react": "18.2.0",
"react-native": "0.72.1",
"react-native": "0.74.1",
"react-test-renderer": "18.2.0",
"tsup": "^6.5.0"
},
Expand Down
12 changes: 6 additions & 6 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
},
"devDependencies": {
"@acme/eslint-config": "workspace:*",
"@testing-library/react-native": "^11.4.0",
"@tsconfig/recommended": "^1.0.1",
"@types/jest": "^29.5.11",
"@testing-library/react-native": "^12.5.0",
"@tsconfig/recommended": "^1.0.6",
"@types/jest": "^29.5.12",
"@types/react": "~18.2.43",
"babel-preset-expo": "~9.5.0",
"babel-preset-expo": "~11.0.5",
"jest": "^29.7.0",
"jest-expo": "^49.0.0",
"jest-expo": "^51.0.1",
"react": "18.2.0",
"react-native": "0.72.1",
"react-native": "0.74.1",
"react-test-renderer": "18.2.0",
"tsup": "^6.5.0"
},
Expand Down
Loading

0 comments on commit 1809d3a

Please sign in to comment.