Skip to content

Commit

Permalink
chore: bump yarn to latest stable (4.1.1) (#2097)
Browse files Browse the repository at this point in the history
## 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 <tymoteusz.boba@gmail.com>
  • Loading branch information
maciekstosio and tboba committed Apr 16, 2024
1 parent d54a19a commit 6b694e3
Show file tree
Hide file tree
Showing 15 changed files with 68,303 additions and 48,135 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,5 @@ lib/

android/.settings

# yarn
**/.yarn/install-state.gz
893 changes: 893 additions & 0 deletions .yarn/releases/yarn-4.1.1.cjs

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.1.1.cjs
6 changes: 3 additions & 3 deletions Example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native start",
"android": "npx react-native run-android",
"ios": "npx react-native run-ios",
"start": "npx react-native start",
"format": "prettier --write --list-different './src/**/*.{js,ts,tsx}'",
"lint": "eslint --ext '.js,.ts,.tsx' --fix src && yarn check-types && yarn format",
"check-types": "tsc --noEmit",
Expand Down
20,221 changes: 11,836 additions & 8,385 deletions Example/yarn.lock

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions FabricExample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"android": "npx react-native run-android",
"ios": "npx react-native run-ios",
"lint": "eslint .",
"start": "react-native start",
"start": "npx react-native start",
"test": "jest"
},
"dependencies": {
"@react-navigation/bottom-tabs": "link:../react-navigation/packages/bottom-tabs/",
"@react-navigation/native": "link:../react-navigation/packages/native/",
"@react-navigation/native-stack": "link:../react-navigation/packages/native-stack/",
"@react-navigation/stack": "link:../react-navigation/packages/stack/",
"@react-navigation/core": "link:../react-navigation/packages/core/",
"@react-navigation/elements": "link:../react-navigation/packages/elements/",
"@react-navigation/native": "link:../react-navigation/packages/native/",
"@react-navigation/native-stack": "link:../react-navigation/packages/native-stack/",
"@react-navigation/routers": "link:../react-navigation/packages/routers/",
"@react-navigation/stack": "link:../react-navigation/packages/stack/",
"react": "18.2.0",
"react-native": "0.74.0-rc.2",
"react-native-safe-area-context": "^4.10.0-rc.1",
Expand Down
16,664 changes: 9,761 additions & 6,903 deletions FabricExample/yarn.lock

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions FabricTestExample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"android": "npx react-native run-android",
"ios": "npx react-native run-ios",
"lint": "eslint .",
"start": "react-native start",
"start": "npx react-native start",
"test": "jest",
"check-types": "tsc --noEmit"
},
"dependencies": {
"@react-navigation/bottom-tabs": "link:../react-navigation/packages/bottom-tabs/",
"@react-navigation/native": "link:../react-navigation/packages/native/",
"@react-navigation/native-stack": "link:../react-navigation/packages/native-stack/",
"@react-navigation/stack": "link:../react-navigation/packages/stack/",
"@react-navigation/core": "link:../react-navigation/packages/core/",
"@react-navigation/elements": "link:../react-navigation/packages/elements/",
"@react-navigation/native": "link:../react-navigation/packages/native/",
"@react-navigation/native-stack": "link:../react-navigation/packages/native-stack/",
"@react-navigation/routers": "link:../react-navigation/packages/routers/",
"@react-navigation/stack": "link:../react-navigation/packages/stack/",
"react": "18.2.0",
"react-native": "0.74.0-rc.6",
"react-native-gesture-handler": "^2.16.0-rc.0",
Expand Down
17,701 changes: 10,331 additions & 7,370 deletions FabricTestExample/yarn.lock

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions TVOSExample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"private": true,
"scripts": {
"postinstall": "patch-package",
"android": "react-native run-android",
"ios": "react-native run-ios",
"tv-os": "react-native run-ios --scheme=\"TVOSExample-tvOS\" --simulator=\"Apple TV\"",
"start": "react-native start",
"android": "npx react-native run-android",
"ios": "npx react-native run-ios",
"tv-os": "npx react-native run-ios --scheme=\"TVOSExample-tvOS\" --simulator=\"Apple TV\"",
"start": "npx react-native start",
"test": "jest",
"lint": "eslint ."
},
Expand Down Expand Up @@ -39,10 +39,10 @@
"@react-native-community/eslint-config": "^3.0.0",
"babel-jest": "^27.0.6",
"eslint": "^7.32.0",
"glob-to-regexp": "^0.4.1",
"jest": "^27.0.6",
"metro-react-native-babel-preset": "^0.66.2",
"react-test-renderer": "17.0.1",
"glob-to-regexp": "^0.4.1"
"react-test-renderer": "17.0.1"
},
"jest": {
"preset": "react-native"
Expand Down
18,697 changes: 10,946 additions & 7,751 deletions TVOSExample/yarn.lock

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions TestsExample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native start",
"android": "npx react-native run-android",
"ios": "npx react-native run-ios",
"start": "npx react-native start",
"test": "jest",
"lint": "eslint --ext '.js,.ts,.tsx' --fix src && yarn check-types",
"check-types": "tsc --noEmit"
},
"dependencies": {
"@react-navigation/bottom-tabs": "link:../react-navigation/packages/bottom-tabs/",
"@react-navigation/native": "link:../react-navigation/packages/native/",
"@react-navigation/native-stack": "link:../react-navigation/packages/native-stack/",
"@react-navigation/stack": "link:../react-navigation/packages/stack/",
"@react-navigation/core": "link:../react-navigation/packages/core/",
"@react-navigation/elements": "link:../react-navigation/packages/elements/",
"@react-navigation/native": "link:../react-navigation/packages/native/",
"@react-navigation/native-stack": "link:../react-navigation/packages/native-stack/",
"@react-navigation/routers": "link:../react-navigation/packages/routers/",
"@react-navigation/stack": "link:../react-navigation/packages/stack/",
"nanoid": "^4.0.2",
"postinstall-postinstall": "^2.1.0",
"react": "18.2.0",
Expand Down

0 comments on commit 6b694e3

Please sign in to comment.