Skip to content

Commit

Permalink
chore: Upgrade Yarn v3
Browse files Browse the repository at this point in the history
From my experience, Yarn Berry is much faster than v1 (Classic)
even for small project. It also has nicer status messages and
CLI design, even though some significant changes exist
(e.g. lifecycle scripts).
  • Loading branch information
pocka committed Mar 24, 2023
1 parent d1e1df7 commit 2a7dccb
Show file tree
Hide file tree
Showing 5 changed files with 6,550 additions and 3,810 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,13 @@
# Node.js / JS / TS / etc...
node_modules
*.tgz

# Yarn Berry
# https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
# `sdks` is excluded because it's an environment specific files.
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions
873 changes: 873 additions & 0 deletions .yarn/releases/yarn-3.5.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-3.5.0.cjs
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"build:es5": "tsc --outDir es5 -t ES5",
"build": "yarn build:esm && yarn build:cjs && yarn build:es5",
"test": "jest",
"prepare": "yarn build"
"prepack": "yarn build"
},
"husky": {
"hooks": {
Expand All @@ -62,5 +62,6 @@
"lint-staged": {
"*.{js,ts,md,json}": "prettier --write"
},
"prettier": {}
"prettier": {},
"packageManager": "[email protected]"
}
Loading

0 comments on commit 2a7dccb

Please sign in to comment.