From 88cb90a61b95b4e9adb663198afd480e994eb2ed Mon Sep 17 00:00:00 2001 From: jdivock-stripe Date: Fri, 28 Jan 2022 13:08:35 -0800 Subject: [PATCH] blank `find-node.sh` after yarn install (#48) * parking * add post install patch for RN * remove from ci config --- .circleci/config.yml | 6 ------ example/package.json | 3 ++- example/scripts/fixRN.sh | 6 ++++++ 3 files changed, 8 insertions(+), 7 deletions(-) create mode 100755 example/scripts/fixRN.sh diff --git a/.circleci/config.yml b/.circleci/config.yml index 72c0b279..1a4c09ca 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -226,12 +226,6 @@ jobs: command: yarn install --frozen-lockfile name: yarn install - - run: - command: | - rm example/node_modules/react-native/scripts/find-node.sh - touch example/node_modules/react-native/scripts/find-node.sh - name: remove find node - - pod_install - run: diff --git a/example/package.json b/example/package.json index d217e6ad..cbac63b8 100644 --- a/example/package.json +++ b/example/package.json @@ -10,7 +10,8 @@ "build:server": "babel server --out-dir dist --extensions '.ts,.tsx' --ignore '**/__tests__/**' --source-maps --copy-files --delete-dir-on-start", "start:server": "ts-node server/index.ts", "start:server:ci": "ts-node server/index.ts &", - "watch:server": "nodemon --exec ts-node server/index.ts" + "watch:server": "nodemon --exec ts-node server/index.ts", + "postinstall": "scripts/fixRN.sh" }, "dependencies": { "@react-native-community/masked-view": "^0.1.11", diff --git a/example/scripts/fixRN.sh b/example/scripts/fixRN.sh new file mode 100755 index 00000000..429a22dc --- /dev/null +++ b/example/scripts/fixRN.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +cd "$(dirname "$0")/.." + +rm node_modules/react-native/scripts/find-node.sh +touch node_modules/react-native/scripts/find-node.sh