Skip to content

Commit 6a8525e

Browse files
authored
Change prepare script to postinstall in the root package.json (#3483)
## Description It seems like `prepare` script is not available in [modern Yarn versions](https://yarnpkg.com/advanced/lifecycle-scripts). Replaces it with `postinstall`. ## Test plan `yarn` and verify that `husky` is installed correctly
1 parent 20eee2f commit 6a8525e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/static-example-apps-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
node-version: 18
2828
cache: 'yarn'
2929
- name: Install root node dependencies
30-
run: yarn --immutable && yarn prepare
30+
run: yarn --immutable
3131
- name: Install ${{ matrix.working-directory }} app node dependencies
3232
working-directory: ${{ matrix.working-directory }}
3333
run: yarn

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "2.25.0",
44
"description": "Declarative API exposing native platform touch and gesture system to React Native",
55
"scripts": {
6-
"prepare": "bob build && husky install",
6+
"postinstall": "bob build && husky install",
77
"test": "jest",
88
"build": "yarn tsc -p tsconfig.build.json",
99
"precommit": "lint-staged",

0 commit comments

Comments
 (0)