Skip to content

Commit 919177f

Browse files
authored
[Monorepo] Move bob build to build script (#3525)
## Description When I tried to install _**GestureHandler**_ from newly created package, it fails with message: ``` command not found: bob ``` This PR moves `bob build` into `build` script (as it is already done in [Reanimated](https://github.com/software-mansion/react-native-reanimated/blob/30f397ff4851029ee10c39283b2893fb231af63e/packages/react-native-reanimated/package.json#L33)), so that `postinstall` no longer fails. ## Test plan Generate new package and add it to newly created app.
1 parent d7279a6 commit 919177f

3 files changed

Lines changed: 14 additions & 4 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"apps/common-app"
1111
],
1212
"scripts": {
13-
"postinstall": "husky",
13+
"postinstall": "yarn build",
14+
"build": "husky && yarn workspaces foreach --all --parallel --topological-dev run build",
1415
"ts-check": "yarn workspaces foreach --all --parallel --topological-dev run ts-check",
1516
"lint-js": "yarn workspaces foreach --all --parallel --topological-dev run lint-js",
1617
"format-js": "yarn workspaces foreach --all --parallel --topological-dev run format-js",

packages/react-native-gesture-handler/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
"version": "2.25.0",
44
"description": "Declarative API exposing native platform touch and gesture system to React Native",
55
"scripts": {
6-
"postinstall": "bob build",
76
"test": "jest",
8-
"build": "yarn tsc -p tsconfig.build.json",
7+
"build": "yarn tsc -p tsconfig.build.json && bob build",
98
"ts-check": "yarn tsc --noEmit",
109
"format-js": "prettier --write --list-different './src/**/*.{js,jsx,ts,tsx}'",
1110
"format:js": "yarn format-js",

yarn.lock

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13723,7 +13723,7 @@ __metadata:
1372313723
languageName: node
1372413724
linkType: hard
1372513725

13726-
"react-native-safe-area-context@npm:5.4.0, react-native-safe-area-context@npm:^5.4.0":
13726+
"react-native-safe-area-context@npm:5.4.0":
1372713727
version: 5.4.0
1372813728
resolution: "react-native-safe-area-context@npm:5.4.0"
1372913729
peerDependencies:
@@ -13733,6 +13733,16 @@ __metadata:
1373313733
languageName: node
1373413734
linkType: hard
1373513735

13736+
"react-native-safe-area-context@npm:^5.4.0":
13737+
version: 5.4.1
13738+
resolution: "react-native-safe-area-context@npm:5.4.1"
13739+
peerDependencies:
13740+
react: "*"
13741+
react-native: "*"
13742+
checksum: 10c0/6da614f4e9318c784700f0586d19d866f565ae08029c9a38cb1b03fd578af3838f2a6d5321c4a220dc7d698d919faf544536b60e45b7cc97f985349328041de2
13743+
languageName: node
13744+
linkType: hard
13745+
1373613746
"react-native-svg@npm:15.11.2":
1373713747
version: 15.11.2
1373813748
resolution: "react-native-svg@npm:15.11.2"

0 commit comments

Comments
 (0)