1 | #!/bin/bash
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | THIS_DIR=$(cd -P "$(dirname "$(readlink "${BASH_SOURCE[0]}" || echo "${BASH_SOURCE[0]}")")" && pwd)
|
9 | REACT_NATIVE_ROOT="$THIS_DIR/.."
|
10 | # Application root directory - General use case: react-native is a dependency
|
11 | PROJECT_ROOT=${PROJECT_ROOT:-"$THIS_DIR/../../.."}
|
12 |
|
13 | # check and assign NODE_BINARY env
|
14 | # shellcheck disable=SC1090
|
15 | source "${THIS_DIR}/node-binary.sh"
|
16 |
|
17 | # Start packager from PROJECT_ROOT
|
18 | cd "$PROJECT_ROOT" || exit
|
19 | "$NODE_BINARY" "$REACT_NATIVE_ROOT/cli.js" start --custom-log-reporter-path "$THIS_DIR/packager-reporter.js" "$@"
|
20 |
|
\ | No newline at end of file |