Skip to content

Commit 44846c0

Browse files
committed
Update Yarn to 4.0.0
1 parent 7ad3809 commit 44846c0

File tree

7 files changed

+2012
-2042
lines changed

7 files changed

+2012
-2042
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
- name: Checkout
1919
uses: actions/checkout@v4
2020

21-
- name: Cache .yarn/cache
21+
- name: Cache Yarn cache
2222
uses: actions/cache@v3
2323
env:
2424
cache-name: yarn-cache
2525
with:
26-
path: .yarn/cache
26+
path: ~/.yarn/berry/cache
2727
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
2828
restore-keys: |
2929
${{ runner.os }}-${{ env.cache-name }}
@@ -53,12 +53,12 @@ jobs:
5353
- name: Checkout
5454
uses: actions/checkout@v4
5555

56-
- name: Cache .yarn/cache
56+
- name: Cache Yarn cache
5757
uses: actions/cache@v3
5858
env:
5959
cache-name: yarn-cache
6060
with:
61-
path: .yarn/cache
61+
path: ~/.yarn/berry/cache
6262
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
6363
restore-keys: |
6464
${{ runner.os }}-${{ env.cache-name }}
@@ -88,12 +88,12 @@ jobs:
8888
- name: Checkout
8989
uses: actions/checkout@v4
9090

91-
- name: Cache .yarn/cache
91+
- name: Cache Yarn cache
9292
uses: actions/cache@v3
9393
env:
9494
cache-name: yarn-cache
9595
with:
96-
path: .yarn/cache
96+
path: ~/.yarn/berry/cache
9797
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
9898
restore-keys: |
9999
${{ runner.os }}-${{ env.cache-name }}
@@ -120,12 +120,12 @@ jobs:
120120
- name: Checkout
121121
uses: actions/checkout@v4
122122

123-
- name: Cache .yarn/cache
123+
- name: Cache Yarn cache
124124
uses: actions/cache@v3
125125
env:
126126
cache-name: yarn-cache
127127
with:
128-
path: .yarn/cache
128+
path: ~/.yarn/berry/cache
129129
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
130130
restore-keys: |
131131
${{ runner.os }}-${{ env.cache-name }}

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ jobs:
1919
- name: Checkout
2020
uses: actions/checkout@v4
2121

22-
- name: Cache .yarn/cache
22+
- name: Cache Yarn cache
2323
uses: actions/cache@v3
2424
env:
2525
cache-name: yarn-cache
2626
with:
27-
path: .yarn/cache
27+
path: ~/.yarn/berry/cache
2828
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
2929
restore-keys: |
3030
${{ runner.os }}-${{ env.cache-name }}

.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Lines changed: 0 additions & 28 deletions
This file was deleted.

.yarnrc.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1+
compressionLevel: mixed
2+
13
logFilters:
24
- code: YN0076
35
level: discard
46

57
nodeLinker: node-modules
6-
7-
plugins:
8-
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
9-
spec: '@yarnpkg/plugin-workspace-tools'

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@
1010
"scripts": {
1111
"build": "yarn workspace react-date-picker build",
1212
"dev": "yarn workspace react-date-picker watch & yarn workspace test dev",
13-
"lint": "yarn workspaces foreach run lint",
13+
"lint": "yarn workspaces foreach --all run lint",
1414
"postinstall": "husky install",
15-
"prettier": "yarn workspaces foreach run prettier",
16-
"test": "yarn workspaces foreach run test",
17-
"tsc": "yarn workspaces foreach run tsc",
18-
"unit": "yarn workspaces foreach run unit"
15+
"prettier": "yarn workspaces foreach --all run prettier",
16+
"test": "yarn workspaces foreach --all run test",
17+
"tsc": "yarn workspaces foreach --all run tsc",
18+
"unit": "yarn workspaces foreach --all run unit"
1919
},
2020
"devDependencies": {
2121
"husky": "^8.0.0",
2222
"lint-staged": "^14.0.0",
2323
"prettier": "^3.0.0"
2424
},
25-
"packageManager": "yarn@3.1.0"
25+
"packageManager": "yarn@4.0.0"
2626
}

0 commit comments

Comments
 (0)