Skip to content

Commit 1e5464c

Browse files
committed
Disable yarn pnp to use --turbo
1 parent 62474f8 commit 1e5464c

File tree

4 files changed

+1597
-3973
lines changed

4 files changed

+1597
-3973
lines changed

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ npm i --global yarn
1313
yarn --version
1414
```
1515

16+
> [!WARNING]
17+
> `--turbo` [doesn't work](https://github.com/vercel/next.js/issues/42651) with [`yarn` PnP](https://yarnpkg.com/features/pnp), try `npm` or force yarn to use `node-modules` instead!
18+
> (Using `node_modules` with new `yarn`: `yarn config set nodeLinker node-modules`)
19+
> (Revert to pnp by `yarn config set nodeLinker pnp`)
20+
1621
```bash
1722
# install
1823
yarn

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"npm": "^10.0.8",
88
"node": "^20.10.0"
99
},
10-
"packageManager": "yarn@4.1.1",
10+
"packageManager": "yarn@4.5.3",
1111
"license": "MIT",
1212
"scripts": {
1313
"dev": "next dev",
@@ -19,13 +19,13 @@
1919
"prettier": "prettier --write \"**/*.{tsx,ts,css,scss}\"",
2020
"clean": "rimraf .next",
2121
"clean-build": "yarn run clean && yarn run build",
22-
"reinstall": "yarn run clean && rimraf node_modules && rm yarn.lock && yarn install"
22+
"reinstall": "yarn run clean && rimraf node_modules && rm yarn.lock && yarn install && rimraf package-lock.json"
2323
},
2424
"dependencies": {
25-
"@types/node": "20.17.10",
26-
"@types/react": "18.3.17",
27-
"@types/react-dom": "18.3.5",
28-
"eslint": "8.57.1",
25+
"@types/node": "22.10.2",
26+
"@types/react": "19.0.1",
27+
"@types/react-dom": "19.0.2",
28+
"eslint": "9.17.0",
2929
"eslint-config-next": "^15.1.0",
3030
"next": "^15.1.0",
3131
"react": "19.0.0",
@@ -36,26 +36,26 @@
3636
"devDependencies": {
3737
"@tailwindcss/typography": "^0.5.15",
3838
"@testing-library/jest-dom": "^6.6.3",
39-
"@testing-library/react": "^14.3.1",
40-
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
39+
"@testing-library/react": "^16.1.0",
40+
"@trivago/prettier-plugin-sort-imports": "^5.2.0",
4141
"@types/jest": "^29.5.14",
42-
"@typescript-eslint/eslint-plugin": "^6.21.0",
43-
"@typescript-eslint/parser": "^6.21.0",
42+
"@typescript-eslint/eslint-plugin": "^8.18.1",
43+
"@typescript-eslint/parser": "^8.18.1",
4444
"autoprefixer": "^10.4.20",
4545
"eslint-config-prettier": "^9.1.0",
4646
"eslint-config-react-app": "^7.0.1",
4747
"eslint-plugin-prettier": "^5.2.1",
4848
"eslint-plugin-react": "^7.37.2",
4949
"eslint-plugin-tailwindcss": "^3.17.5",
50-
"eslint-plugin-unicorn": "^49.0.0",
51-
"eslint-plugin-unused-imports": "^3.2.0",
50+
"eslint-plugin-unicorn": "^56.0.1",
51+
"eslint-plugin-unused-imports": "^4.1.4",
5252
"jest": "^29.7.0",
5353
"jest-environment-jsdom": "^29.7.0",
5454
"postcss": "^8.4.49",
5555
"prettier": "^3.4.2",
56-
"prettier-plugin-organize-imports": "^3.2.4",
56+
"prettier-plugin-organize-imports": "^4.1.0",
5757
"prettier-plugin-tailwindcss": "^0.6.9",
58-
"rimraf": "^5.0.10",
58+
"rimraf": "^6.0.1",
5959
"tailwindcss": "^3.4.16"
6060
}
6161
}

0 commit comments

Comments
 (0)