Skip to content

Commit

Permalink
fix: update codegen location in scripts/react_native_pods_utils/scrip…
Browse files Browse the repository at this point in the history
…t_phases.sh
  • Loading branch information
Ruslan Lesiutin committed Nov 26, 2022
1 parent 820104f commit 720b05d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/react_native_pods_utils/script_phases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 720b05d

Please sign in to comment.