Skip to content

Commit

Permalink
Update to Yarn Modern
Browse files Browse the repository at this point in the history
Yarn Classic was having some transient dependency/environment issues. Modern is... modern? And not broken.

*CHANGES*
- Migrated to Yarn Modern following documentation
- Added relevant ignores to `.gitignore` (Decided to forego zero install to keep checkout times down)
- Added `.gitattributes` to avoid `git diff` showing Yarn binary changes
  • Loading branch information
DylanLacey committed Feb 21, 2024
1 parent ae9c678 commit 08f6a2d
Show file tree
Hide file tree
Showing 6 changed files with 17,773 additions and 12,185 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Don't show diffs of yarn releases etc.
/.yarn/releases/** binary
/.yarn/plugins/** binary
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,16 @@ dist
# production
/build

# yarn cruft
## Disables zero install - https://yarnpkg.com/features/caching and https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# misc
.DS_Store
.env.local
Expand Down
893 changes: 893 additions & 0 deletions .yarn/releases/yarn-4.1.0.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.0.cjs
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,6 @@
"resolutions": {
"@types/react": "17.0.25",
"@types/react-dom": "17.0.25"
}
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit 08f6a2d

Please sign in to comment.