Skip to content

Commit

Permalink
fix: Change postinstall step to prepare and run prepare on release in…
Browse files Browse the repository at this point in the history
… package.json (#2109)

## Description

This PR intents to fix error, during the install step on other React
Native applications. That's because of the name of the step - it
shouldn't be named as `postinstall`, as method named this way is
triggered by yarn v4. This was not an issue before, as we used yarn v1.

Fixes #2108.

## Changes

- Changed `postinstall` name to `prepare` in package.json
- Added `yarn prepare` command during the `yarn release`.

## Checklist

- [ ] Ensured that CI passes
  • Loading branch information
tboba committed Apr 23, 2024
1 parent c512c9c commit 7aa5e7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"lint-js": "eslint --ext '.js,.ts,.tsx' --fix src",
"lint-android": "./android/gradlew -p android spotlessCheck -q",
"lint": "yarn lint-js && yarn lint-android",
"release": "npm login && release-it",
"postinstall": "bob build && husky install"
"release": "yarn prepare && npm login && release-it",
"prepare": "bob build && husky install"
},
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down

0 comments on commit 7aa5e7b

Please sign in to comment.