Skip to content

Commit 6ee7c94

Browse files
committed
migrate monorepo back to Yarn Classic
1 parent 54e783d commit 6ee7c94

5 files changed

Lines changed: 16788 additions & 22370 deletions

File tree

.github/workflows/pre-merge.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ jobs:
1212
- name: Checkout repository
1313
uses: actions/checkout@v6
1414

15-
- name: Enable Corepack
16-
run: corepack enable
17-
1815
- name: Set up Node.js
1916
uses: actions/setup-node@v6
2017
with:
@@ -42,9 +39,6 @@ jobs:
4239
- name: Checkout repository
4340
uses: actions/checkout@v6
4441

45-
- name: Enable Corepack
46-
run: corepack enable
47-
4842
- name: Set up Node.js
4943
uses: actions/setup-node@v6
5044
with:
@@ -64,9 +58,6 @@ jobs:
6458
- name: Checkout repository
6559
uses: actions/checkout@v6
6660

67-
- name: Enable Corepack
68-
run: corepack enable
69-
7061
- name: Set up Node.js
7162
uses: actions/setup-node@v6
7263
with:

.yarnrc.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,13 @@ This repo contains the website configuration and documentation powering the [Rea
1818

1919
1. [Git](https://git-scm.com/downloads).
2020
1. [Node](https://nodejs.org/en/download/) _(version 22 or greater)_.
21-
1. [Yarn](https://yarnpkg.com/getting-started/install) _(version 4)_.
21+
1. [Yarn Classic](https://classic.yarnpkg.com/en/docs/install) _(version 1)_.
2222
1. A fork and clone of the `react-native-website` repo _(for any contributions)_.
2323

2424
### Installation
2525

2626
1. `cd react-native-website` to go into the project root.
27-
1. Run `corepack enable` to enable Corepack.
28-
29-
> If the command above fails, run `npm install -g corepack@latest` to install the latest version of [Corepack](https://yarnpkg.com/corepack#installation).
30-
3127
1. Run `yarn` to install the website's workspace dependencies.
32-
> If you want to retain the globally installed `yarn` classic, you can use `corepack yarn` instead.
3328

3429
### Running locally
3530

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
"serve": "yarn --cwd website serve",
1919
"prepare": "husky",
2020
"lint": "eslint .",
21-
"lint:packages": "yarn workspaces foreach --from \"packages/*\" -p -R run lint",
22-
"lint:plugins": "yarn workspaces foreach --from \"plugins/*\" -p -R run lint && yarn workspaces foreach --from \"plugins/*\" -p -R run test",
21+
"lint:packages": "yarn workspace @react-native-website/lint-examples lint",
22+
"lint:plugins": "yarn workspace @react-native-website/remark-codeblock-language-as-title lint && yarn workspace @react-native-website/remark-lint-no-broken-external-links lint && yarn workspace @react-native-website/remark-snackplayer lint && yarn workspace @react-native-website/remark-lint-no-broken-external-links test && yarn workspace @react-native-website/remark-snackplayer test",
2323
"lint:website": "eslint ./website ./docs",
24-
"update-lock": "yarn dedupe",
24+
"update-lock": "npx yarn-deduplicate",
2525
"check-dependencies": "manypkg check"
2626
},
2727
"devDependencies": {
@@ -45,7 +45,6 @@
4545
"typescript": "^5.9.3",
4646
"typescript-eslint": "^8.57.1"
4747
},
48-
"packageManager": "yarn@4.13.0",
4948
"resolutions": {
5049
"serialize-javascript": "^7.0.5",
5150
"serve-handler/minimatch": "3.1.4"

0 commit comments

Comments
 (0)