Add node_modules to PATH in test script

This commit is contained in:
Scott Kyle 2016-04-19 16:57:52 -07:00
parent ece554e58f
commit 648748cd24
1 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,9 @@ SRCROOT=$(cd "$(dirname "$0")/.." && pwd)
# Start current working directory at the root of the project.
cd "$SRCROOT"
# Add node_modules to PATH just in case we weren't called from `npm test`
PATH="$PWD/node_modules/.bin:$PATH"
if [[ $TARGET = *-android ]]; then
# Inform the prepublish script to build Android modules.
export REALM_BUILD_ANDROID=1