From 465e2ad785450720cb9952c02c27aa3a680dedbe Mon Sep 17 00:00:00 2001 From: Chris Herman Date: Thu, 22 Aug 2024 10:38:05 -0400 Subject: [PATCH] feat: metro bundler profile --- packages/cli/src/lib/profiles.ts | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/lib/profiles.ts b/packages/cli/src/lib/profiles.ts index 8ef8206bc2..1b56cd6280 100644 --- a/packages/cli/src/lib/profiles.ts +++ b/packages/cli/src/lib/profiles.ts @@ -27,7 +27,11 @@ const react_native_0_72: Record = { }, 'react-native': { version: '^0.72.0', - capabilities: ['react', 'metro-react-native-babel-preset'], + capabilities: [ + 'react', + 'metro-react-native-babel-preset', + '@react-native/metro-config', + ], required: true, }, 'metro-react-native-babel-preset': { @@ -47,6 +51,10 @@ const react_native_0_72: Record = { version: '^7.20.0', devOnly: true, }, + '@react-native/metro-config': { + version: '^0.72.0', + devOnly: true, + }, '@types/react': { version: '^18.2.0', devOnly: true, @@ -91,7 +99,11 @@ const react_native_0_73: Record = { ...react_native_0_72, 'react-native': { version: '^0.73.0', - capabilities: ['react', '@react-native/babel-preset'], + capabilities: [ + 'react', + '@react-native/babel-preset', + '@react-native/metro-config', + ], required: true, }, 'react-native-navigation': { @@ -102,6 +114,10 @@ const react_native_0_73: Record = { capabilities: ['@babel/core', '@babel/preset-env', '@babel/runtime'], devOnly: true, }, + '@react-native/metro-config': { + version: '^0.73.0', + devOnly: true, + }, 'metro-react-native-babel-preset': { version: '1000.0.0', devOnly: true,