Skip to content

Commit a6a647f

Browse files
committed
fix(expo): export withNxMetro as sync
1 parent 486b4fb commit a6a647f

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

packages/expo/plugins/with-nx-metro.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,7 @@ interface WithNxOptions {
5252
mainFields?: string[];
5353
}
5454

55-
export async function withNxMetro(
56-
userConfig: MetroConfig,
57-
opts: WithNxOptions = {}
58-
) {
55+
export function withNxMetro(userConfig: MetroConfig, opts: WithNxOptions = {}) {
5956
const extensions = ['', 'ts', 'tsx', 'js', 'jsx', 'json'];
6057
if (opts.debug) process.env.NX_REACT_NATIVE_DEBUG = 'true';
6158
if (opts.extensions) extensions.push(...opts.extensions);

packages/expo/src/generators/library/library.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ describe('lib', () => {
563563
"main": "./src/index.ts",
564564
"name": "@proj/my-lib",
565565
"peerDependencies": {
566-
"react": "19.1.0",
566+
"react": "^19.1.0",
567567
"react-native": "0.81.5",
568568
},
569569
"types": "./src/index.ts",
@@ -696,7 +696,7 @@ describe('lib', () => {
696696
"module": "./dist/index.esm.js",
697697
"name": "@proj/my-lib",
698698
"peerDependencies": {
699-
"react": "19.1.0",
699+
"react": "^19.1.0",
700700
"react-native": "0.81.5",
701701
},
702702
"types": "./dist/index.esm.d.ts",

0 commit comments

Comments
 (0)