Skip to content

Commit e18d8bd

Browse files
committed
[repo] Migrate Yarn to Yarn2
Following https://yarnpkg.com/getting-started/migration and not using zero-installs.
1 parent a0791da commit e18d8bd

7 files changed

Lines changed: 20747 additions & 14450 deletions

File tree

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,12 @@ yarn-error.log*
2323
.github/styles/write-good
2424
.eslintcache
2525
/.idea/
26+
27+
# https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
28+
.pnp.*
29+
.yarn/*
30+
!.yarn/patches
31+
!.yarn/plugins
32+
!.yarn/releases
33+
!.yarn/sdks
34+
!.yarn/versions

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.14.0
1+
18

.yarn/releases/yarn-3.2.4.cjs

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

.yarnrc.yml

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

netlify.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[build.environment]
22
NETLIFY_USE_YARN = "true"
3-
YARN_VERSION = "1.22.5"
4-
NODE_VERSION = "16"
3+
YARN_VERSION = "3.2.4"
4+
NODE_VERSION = "18"
55

66
[[plugins]]
77
package = "netlify-plugin-cache"

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,5 +102,6 @@
102102
"typescript": "^4.6.3",
103103
"unist-util-inspect": "6.0.0",
104104
"winston": "^3.7.2"
105-
}
105+
},
106+
"packageManager": "yarn@3.2.4"
106107
}

yarn.lock

Lines changed: 19930 additions & 14446 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)