Skip to content

Commit 620833f

Browse files
maciekstosiotboba
authored andcommitted
chore: bump yarn to latest stable (4.1.1) (software-mansion#2097)
## Description This PR intents to bump yarn to the newest version (4.1.1). That's mostly because of not found node_modules directory inside `react-navigation` submodule. It seems that yarn v1 doesn't properly handle monorepos, so I bumped yarn to the latest stable. ## Changes Changes after running: ``` yarn set version stable ``` ## Test code and steps to reproduce Clone repo, `yarn`, `yarn submodules` and `cd TestsExample && yarn`, the latest should finish successfully. --------- Co-authored-by: tboba <[email protected]>
1 parent 0aadff6 commit 620833f

File tree

15 files changed

+68303
-48135
lines changed

15 files changed

+68303
-48135
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,5 @@ lib/
5555

5656
android/.settings
5757

58+
# yarn
59+
**/.yarn/install-state.gz

.yarn/releases/yarn-4.1.1.cjs

Lines changed: 893 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
nodeLinker: node-modules
2+
3+
yarnPath: .yarn/releases/yarn-4.1.1.cjs

Example/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"version": "0.0.1",
44
"private": true,
55
"scripts": {
6-
"android": "react-native run-android",
7-
"ios": "react-native run-ios",
8-
"start": "react-native start",
6+
"android": "npx react-native run-android",
7+
"ios": "npx react-native run-ios",
8+
"start": "npx react-native start",
99
"format": "prettier --write --list-different './src/**/*.{js,ts,tsx}'",
1010
"lint": "eslint --ext '.js,.ts,.tsx' --fix src && yarn check-types && yarn format",
1111
"check-types": "tsc --noEmit",

Example/yarn.lock

Lines changed: 11836 additions & 8385 deletions
Large diffs are not rendered by default.

FabricExample/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33
"version": "0.0.1",
44
"private": true,
55
"scripts": {
6-
"android": "react-native run-android",
7-
"ios": "react-native run-ios",
6+
"android": "npx react-native run-android",
7+
"ios": "npx react-native run-ios",
88
"lint": "eslint .",
9-
"start": "react-native start",
9+
"start": "npx react-native start",
1010
"test": "jest"
1111
},
1212
"dependencies": {
1313
"@react-navigation/bottom-tabs": "link:../react-navigation/packages/bottom-tabs/",
14-
"@react-navigation/native": "link:../react-navigation/packages/native/",
15-
"@react-navigation/native-stack": "link:../react-navigation/packages/native-stack/",
16-
"@react-navigation/stack": "link:../react-navigation/packages/stack/",
1714
"@react-navigation/core": "link:../react-navigation/packages/core/",
1815
"@react-navigation/elements": "link:../react-navigation/packages/elements/",
16+
"@react-navigation/native": "link:../react-navigation/packages/native/",
17+
"@react-navigation/native-stack": "link:../react-navigation/packages/native-stack/",
1918
"@react-navigation/routers": "link:../react-navigation/packages/routers/",
19+
"@react-navigation/stack": "link:../react-navigation/packages/stack/",
2020
"react": "18.2.0",
2121
"react-native": "0.74.0-rc.2",
2222
"react-native-safe-area-context": "^4.10.0-rc.1",

FabricExample/yarn.lock

Lines changed: 9761 additions & 6903 deletions
Large diffs are not rendered by default.

FabricTestExample/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@
33
"version": "0.0.1",
44
"private": true,
55
"scripts": {
6-
"android": "react-native run-android",
7-
"ios": "react-native run-ios",
6+
"android": "npx react-native run-android",
7+
"ios": "npx react-native run-ios",
88
"lint": "eslint .",
9-
"start": "react-native start",
9+
"start": "npx react-native start",
1010
"test": "jest",
1111
"check-types": "tsc --noEmit"
1212
},
1313
"dependencies": {
1414
"@react-navigation/bottom-tabs": "link:../react-navigation/packages/bottom-tabs/",
15-
"@react-navigation/native": "link:../react-navigation/packages/native/",
16-
"@react-navigation/native-stack": "link:../react-navigation/packages/native-stack/",
17-
"@react-navigation/stack": "link:../react-navigation/packages/stack/",
1815
"@react-navigation/core": "link:../react-navigation/packages/core/",
1916
"@react-navigation/elements": "link:../react-navigation/packages/elements/",
17+
"@react-navigation/native": "link:../react-navigation/packages/native/",
18+
"@react-navigation/native-stack": "link:../react-navigation/packages/native-stack/",
2019
"@react-navigation/routers": "link:../react-navigation/packages/routers/",
20+
"@react-navigation/stack": "link:../react-navigation/packages/stack/",
2121
"react": "18.2.0",
2222
"react-native": "0.74.0-rc.6",
2323
"react-native-gesture-handler": "^2.16.0-rc.0",

FabricTestExample/yarn.lock

Lines changed: 10331 additions & 7370 deletions
Large diffs are not rendered by default.

TVOSExample/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"private": true,
55
"scripts": {
66
"postinstall": "patch-package",
7-
"android": "react-native run-android",
8-
"ios": "react-native run-ios",
9-
"tv-os": "react-native run-ios --scheme=\"TVOSExample-tvOS\" --simulator=\"Apple TV\"",
10-
"start": "react-native start",
7+
"android": "npx react-native run-android",
8+
"ios": "npx react-native run-ios",
9+
"tv-os": "npx react-native run-ios --scheme=\"TVOSExample-tvOS\" --simulator=\"Apple TV\"",
10+
"start": "npx react-native start",
1111
"test": "jest",
1212
"lint": "eslint ."
1313
},
@@ -39,10 +39,10 @@
3939
"@react-native-community/eslint-config": "^3.0.0",
4040
"babel-jest": "^27.0.6",
4141
"eslint": "^7.32.0",
42+
"glob-to-regexp": "^0.4.1",
4243
"jest": "^27.0.6",
4344
"metro-react-native-babel-preset": "^0.66.2",
44-
"react-test-renderer": "17.0.1",
45-
"glob-to-regexp": "^0.4.1"
45+
"react-test-renderer": "17.0.1"
4646
},
4747
"jest": {
4848
"preset": "react-native"

0 commit comments

Comments
 (0)