Skip to content
This repository was archived by the owner on Feb 25, 2020. It is now read-only.

Commit b084997

Browse files
committed
fix: remove postinstall script
1 parent 1cba037 commit b084997

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ yarn example start
4949

5050
The code in this repo uses the source from [`@react-navigation/stack`](https://github.com/react-navigation/navigation-ex/tree/master/packages/stack) and patches it to make it usable in React Navigation 4. If you need to make changes, please send a pull request there.
5151

52-
If the change is specifically related to React Navigation 4 integration, change the files in `src/vendor` and then run `yarn patch` to update the patch file with the latest changes.
52+
If the change is specifically related to React Navigation 4 integration, first run `yarn sync`, then change the files in `src/vendor` and then run `yarn patch` to update the patch file with the latest changes.
5353

5454
Make sure your code passes TypeScript and ESLint. Run the following to verify:
5555

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@
1515
"test": "jest",
1616
"lint": "eslint --ext .js,.ts,.tsx .",
1717
"typescript": "tsc --noEmit",
18-
"postinstall": "bash scripts/sync-stack.sh",
1918
"prepare": "bob build",
19+
"prerelease": "yarn sync",
2020
"release": "release-it",
2121
"example": "yarn --cwd example",
22-
"bootstrap": "yarn example && yarn",
22+
"bootstrap": "yarn example && yarn && yarn sync",
23+
"sync": "bash scripts/sync-stack.sh",
2324
"patch": "diff -ruN node_modules/@react-navigation/stack/src src/vendor > scripts/stack.patch; printf ''"
2425
},
2526
"publishConfig": {

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,9 +1353,9 @@
13531353
react-is "^16.8.6"
13541354

13551355
"@react-navigation/core@^5.0.0-alpha.28":
1356-
version "5.0.0-alpha.27"
1357-
resolved "https://registry.yarnpkg.com/@react-navigation/core/-/core-5.0.0-alpha.27.tgz#40a209910e284635570d539eeb0bd6cecb9f8124"
1358-
integrity sha512-R/pIxAyJaORLlUFZlwenN92Llo4pyWNRZJ190JTHDqL5T17yD0jokXoketl3+CO+jUgwesZqy7M4pSiMdSiDqA==
1356+
version "5.0.0-alpha.28"
1357+
resolved "https://registry.yarnpkg.com/@react-navigation/core/-/core-5.0.0-alpha.28.tgz#284d07114e6dd93a2b0bc06d2a23e72f27ea3bf2"
1358+
integrity sha512-GkRGb2F3lxj+F2B/N1Fih1KFFX0B5fnMlsHvuY14uU/7aEOdS0pUeOMMLBzrpQx3FhJDMGm9mIh68j28NEU2eg==
13591359
dependencies:
13601360
escape-string-regexp "^2.0.0"
13611361
query-string "^6.9.0"

0 commit comments

Comments
 (0)