mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-12 22:50:10 +08:00
Accept node arguments when iOS app is built (#22423)
Summary: Fixes #22421 If this PR fixes an issue, type "Fixes #issueNumber" to automatically close the issue when the PR is merged. _Pull requests that expand test coverage are more likely to get reviewed. Add a test case whenever possible!_ Pull Request resolved: https://github.com/facebook/react-native/pull/22423 Differential Revision: D13287099 Pulled By: TheSavior fbshipit-source-id: e4ac0fb930107dde092541fd17d4c81907c8cc34
This commit is contained in:
committed by
Facebook Github Bot
parent
757518edba
commit
003dbaa3d3
@@ -82,6 +82,8 @@ fi
|
||||
|
||||
[ -z "$NODE_BINARY" ] && export NODE_BINARY="node"
|
||||
|
||||
[ -z "$NODE_ARGS" ] && export NODE_ARGS=""
|
||||
|
||||
[ -z "$CLI_PATH" ] && export CLI_PATH="$REACT_NATIVE_DIR/local-cli/cli.js"
|
||||
|
||||
[ -z "$BUNDLE_COMMAND" ] && BUNDLE_COMMAND="bundle"
|
||||
@@ -106,7 +108,7 @@ type "$NODE_BINARY" >/dev/null 2>&1 || nodejs_not_found
|
||||
|
||||
BUNDLE_FILE="$DEST/main.jsbundle"
|
||||
|
||||
"$NODE_BINARY" "$CLI_PATH" $BUNDLE_COMMAND \
|
||||
"$NODE_BINARY" $NODE_ARGS "$CLI_PATH" $BUNDLE_COMMAND \
|
||||
$CONFIG_ARG \
|
||||
--entry-file "$ENTRY_FILE" \
|
||||
--platform ios \
|
||||
|
||||
Reference in New Issue
Block a user