From d9555e58e0844d2b58ee2bd17d4dc9177517de10 Mon Sep 17 00:00:00 2001 From: Peter Piekarczyk Date: Mon, 2 Jan 2023 11:50:30 -0600 Subject: [PATCH] Fixes package name in script_phases.sh --- scripts/react_native_pods_utils/script_phases.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/react_native_pods_utils/script_phases.sh b/scripts/react_native_pods_utils/script_phases.sh index f1f5b809ed8fbe..08efd2afbde022 100755 --- a/scripts/react_native_pods_utils/script_phases.sh +++ b/scripts/react_native_pods_utils/script_phases.sh @@ -31,9 +31,9 @@ find_node () { } find_codegen () { - CODEGEN_CLI_PATH=$("$NODE_BINARY" --print "require('path').dirname(require.resolve('@react-native/codegen/package.json'))") + CODEGEN_CLI_PATH=$("$NODE_BINARY" --print "require('path').dirname(require.resolve('react-native-codegen/package.json'))") if ! [ -d "$CODEGEN_CLI_PATH" ]; then - error "error: Could not determine @react-native/codegen location, using node module resolution. Try running 'yarn install' or 'npm install' in your project root." + error "error: Could not determine react-native-codegen location, using node module resolution. Try running 'yarn install' or 'npm install' in your project root." fi }