Skip to content

Commit

Permalink
Upgrade Yarn to v3 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
dguo authored Mar 25, 2023
1 parent b8fda56 commit dc2de8f
Show file tree
Hide file tree
Showing 8 changed files with 6,153 additions and 3,439 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
* text=auto

# https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
/.yarn/releases/** binary
/.yarn/plugins/** binary
4 changes: 2 additions & 2 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
node-version: ${{ matrix.node }}
- name: Get the Yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
id: yarn-cache
with:
Expand All @@ -30,7 +30,7 @@ jobs:
restore-keys: |
${{ runner.os }}-yarn-
- name: Install packages
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Check formatting
run: yarn run format:check
- name: Lint the code
Expand Down
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,13 @@ build/

# tests
coverage/

# Yarn
# https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
1 change: 0 additions & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
nodejs 18.15.0
yarn 1.22.10
873 changes: 873 additions & 0 deletions .yarn/releases/yarn-3.5.0.cjs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
nodeLinker: "node-modules"
yarnPath: .yarn/releases/yarn-3.5.0.cjs
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,6 @@
"bracketSpacing": false,
"tabWidth": 4,
"trailingComma": "none"
}
},
"packageManager": "yarn@3.5.0"
}
8,695 changes: 5,260 additions & 3,435 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit dc2de8f

Please sign in to comment.