Skip to content

Commit 53fbe98

Browse files
authored
Upgrading to Yarn 4.1.1 (#1461)
## Please verify the following: - [x] `yarn build-and-test:local` passes - [ ] ~I have added tests for any new features, if relevant~ - [x] `README.md` (or relevant documentation) has been updated with your changes ## Describe your PR This PR moves us to the latest stable version of Yarn version 4.1.1.
1 parent 965f62a commit 53fbe98

File tree

12 files changed

+10699
-11210
lines changed

12 files changed

+10699
-11210
lines changed

.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

-541
This file was deleted.

.yarn/releases/yarn-3.6.3.cjs

-874
This file was deleted.

.yarn/releases/yarn-4.1.1.cjs

+893
Large diffs are not rendered by default.

.yarnrc.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1+
compressionLevel: mixed
2+
3+
enableGlobalCache: false
4+
15
nodeLinker: node-modules
26
# allow NPM_TOKEN env to be set, but provide '' as fallback. This allows CI to publish packages, but not require env var.
37
# See https://yarnpkg.com/configuration/yarnrc
48
npmAuthToken: "${NPM_TOKEN-}"
59

610
npmPublishAccess: public
711

8-
plugins:
9-
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
10-
spec: "@yarnpkg/plugin-interactive-tools"
11-
12-
yarnPath: .yarn/releases/yarn-3.6.3.cjs
12+
yarnPath: .yarn/releases/yarn-4.1.1.cjs

apps/example-app/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
"@babel/runtime": "^7.20.0",
7777
"@types/i18n-js": "3.8.2",
7878
"@types/jest": "^29.2.1",
79+
"@types/node": "^20.11.30",
7980
"@types/react": "~18.2.45",
8081
"@types/react-test-renderer": "^18.0.0",
8182
"@types/redux-logger": "^3.0.13",

apps/reactotron-app/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"@storybook/react": "^5.2.8",
8585
"@testing-library/react": "^14.1.2",
8686
"@types/jest": "^29.5.7",
87-
"@types/react": "18.2.35",
87+
"@types/react": "18.2.45",
8888
"@types/react-dom": "18.2.14",
8989
"@typescript-eslint/eslint-plugin": "^6.7.5",
9090
"@typescript-eslint/parser": "^6.7.5",

docs/contributing/monorepo.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
# Monorepo Structure
22

3-
## Yarn 3
3+
## Yarn 4
44

5-
This project uses yarn 3 workspaces to manage the monorepo. It hoists dependencies shared across workspaces to the root of the project, and allows for a single `yarn.lock` file to be used for all packages.
5+
This project uses yarn 4 workspaces to manage the monorepo. It hoists dependencies shared across workspaces to the root of the project, and allows for a single `yarn.lock` file to be used for all packages.
66

7-
As long as you have yarn 1 installed, you will use the yarn 3 automatically using the version specified in `.yarnrc.yml`.
7+
As long as you have yarn 1 installed, you will use the yarn 4 automatically using the version specified in `.yarnrc.yml`.
88

99
### nodeLinker
1010

11-
Yarn 3 philosophically has chosen to go in a direction where dependencies should be vendored and checked into the repo. This is a departure from the way yarn 1 and npm work, where dependencies are installed in the `node_modules` directory. They call this Plug'n'Play, and it is enabled by default in yarn 3.
11+
Yarn 4 philosophically has chosen to go in a direction where dependencies should be vendored and checked into the repo. This is a departure from the way yarn 1 and npm work, where dependencies are installed in the `node_modules` directory. They call this Plug'n'Play, and it is enabled by default in yarn 4.
1212

1313
However, this can behavior can be modified through the `nodeLinker` value in `yarnrc.yml` to use `node-modules`, which is the normal behavior for yarn 1 and npm.
1414

15-
Since yarn 1 is no longer being actively worked on, so we are using yarn 3 with the `nodeLinker` set to `node-modules`.
15+
Since yarn 1 is no longer being actively worked on, so we are using yarn 4 with the `nodeLinker` set to `node-modules`.
1616

1717
### Patches
1818

19-
Yarn 3 has a patching feature similar to `patch-package` through `yarn patch <package>`. You can read more about it here: https://yarnpkg.com/cli/patch
19+
Yarn 4 has a patching feature similar to `patch-package` through `yarn patch <package>`. You can read more about it here: https://yarnpkg.com/cli/patch
2020

2121
## Nx
2222

lib/reactotron-core-ui/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"@storybook/react": "6.1.21",
7676
"@testing-library/react": "^14.1.2",
7777
"@types/jest": "^29.5.7",
78-
"@types/react": "18.2.35",
78+
"@types/react": "18.2.45",
7979
"@types/react-dom": "18.2.14",
8080
"@types/react-modal": "3.13.1",
8181
"@types/react-motion": "0.0.31",

lib/reactotron-react-js/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"@babel/plugin-proposal-class-properties": "^7.18.6",
5050
"@babel/preset-env": "^7.23.2",
5151
"@babel/preset-typescript": "^7.23.2",
52-
"@types/react": "18.2.35",
52+
"@types/react": "18.2.45",
5353
"@typescript-eslint/eslint-plugin": "^6.7.5",
5454
"@typescript-eslint/parser": "^6.7.5",
5555
"babel-eslint": "^10.1.0",

lib/reactotron-react-native/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"@react-native-async-storage/async-storage": "^1.19.4",
6464
"@types/jest": "^29.5.7",
6565
"@types/node": "^18.18.8",
66-
"@types/react": "18.2.35",
66+
"@types/react": "18.2.45",
6767
"@types/react-native": "0.72.5",
6868
"@typescript-eslint/eslint-plugin": "^6.7.5",
6969
"@typescript-eslint/parser": "^6.7.5",

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
},
4949
"resolutions": {
5050
"@nx/devkit": "17.0.3",
51-
"@types/react": "18.2.35",
51+
"@types/react": "18.2.45",
5252
"electron-webpack": "patch:electron-webpack@npm%3A2.8.2#./.yarn/patches/electron-webpack-npm-2.8.2-1bda600605.patch",
5353
"react-hotkeys": "patch:react-hotkeys@npm%3A2.0.0#./.yarn/patches/react-hotkeys-npm-2.0.0-8e6c50bd05.patch",
5454
"webpack": "patch:webpack@npm%3A4.47.0#./.yarn/patches/webpack-npm-4.47.0-42e477a08c.patch"
@@ -78,5 +78,5 @@
7878
"build-and-test:local": "yarn build && yarn package:validate && yarn lint && yarn format:check && yarn test && yarn typecheck",
7979
"package:validate": "zx scripts/package.validate.mjs"
8080
},
81-
"packageManager": "yarn@3.6.3"
81+
"packageManager": "yarn@4.1.1"
8282
}

0 commit comments

Comments
 (0)