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

Commit

Permalink
fix: remove postinstall script
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Dec 18, 2019
1 parent 1cba037 commit b084997
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ yarn example start

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.

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.
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.

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

Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@
"test": "jest",
"lint": "eslint --ext .js,.ts,.tsx .",
"typescript": "tsc --noEmit",
"postinstall": "bash scripts/sync-stack.sh",
"prepare": "bob build",
"prerelease": "yarn sync",
"release": "release-it",
"example": "yarn --cwd example",
"bootstrap": "yarn example && yarn",
"bootstrap": "yarn example && yarn && yarn sync",
"sync": "bash scripts/sync-stack.sh",
"patch": "diff -ruN node_modules/@react-navigation/stack/src src/vendor > scripts/stack.patch; printf ''"
},
"publishConfig": {
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1353,9 +1353,9 @@
react-is "^16.8.6"

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

0 comments on commit b084997

Please sign in to comment.