Skip to content

Commit

Permalink
feat: fix postinstall
Browse files Browse the repository at this point in the history
  • Loading branch information
pklatka committed Apr 2, 2024
1 parent adb9854 commit d24533a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/turbo/scripts/postinstall.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
VENDOR_DIR=$(realpath ./android/vendor)
PARENT_FOLDER=$(realpath .. | awk -F/ '{print $NF}')

if [ ! -d "$VENDOR_DIR" ]; then
# If the vendor folder does not exist, we're not using the published package.
# We can safely exit here, because postinstall script will be executed again when vendor folder is created.
exit 0
fi

if [ "$PARENT_FOLDER" = "node_modules" ]; then
REACT_NATIVE_DIR=$(realpath ../react-native/android)
else
Expand Down

0 comments on commit d24533a

Please sign in to comment.