Skip to content

Commit

Permalink
Update Yarn to 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Oct 22, 2023
1 parent 7ad3809 commit daaf136
Show file tree
Hide file tree
Showing 6 changed files with 1,558 additions and 1,588 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Cache .yarn/cache
- name: Cache Yarn cache
uses: actions/cache@v3
env:
cache-name: yarn-cache
with:
path: .yarn/cache
path: ~/.yarn/berry/cache
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}
Expand Down Expand Up @@ -53,12 +53,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Cache .yarn/cache
- name: Cache Yarn cache
uses: actions/cache@v3
env:
cache-name: yarn-cache
with:
path: .yarn/cache
path: ~/.yarn/berry/cache
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}
Expand Down Expand Up @@ -88,12 +88,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Cache .yarn/cache
- name: Cache Yarn cache
uses: actions/cache@v3
env:
cache-name: yarn-cache
with:
path: .yarn/cache
path: ~/.yarn/berry/cache
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}
Expand All @@ -120,12 +120,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Cache .yarn/cache
- name: Cache Yarn cache
uses: actions/cache@v3
env:
cache-name: yarn-cache
with:
path: .yarn/cache
path: ~/.yarn/berry/cache
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Cache .yarn/cache
- name: Cache Yarn cache
uses: actions/cache@v3
env:
cache-name: yarn-cache
with:
path: .yarn/cache
path: ~/.yarn/berry/cache
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}
Expand Down
28 changes: 0 additions & 28 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

This file was deleted.

6 changes: 2 additions & 4 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
compressionLevel: mixed

logFilters:
- code: YN0076
level: discard

nodeLinker: node-modules

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: '@yarnpkg/plugin-workspace-tools'
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
"scripts": {
"build": "yarn workspace react-date-picker build",
"dev": "yarn workspace react-date-picker watch & yarn workspace test dev",
"lint": "yarn workspaces foreach run lint",
"lint": "yarn workspaces foreach --all run lint",
"postinstall": "husky install",
"prettier": "yarn workspaces foreach run prettier",
"test": "yarn workspaces foreach run test",
"tsc": "yarn workspaces foreach run tsc",
"unit": "yarn workspaces foreach run unit"
"prettier": "yarn workspaces foreach --all run prettier",
"test": "yarn workspaces foreach --all run test",
"tsc": "yarn workspaces foreach --all run tsc",
"unit": "yarn workspaces foreach --all run unit"
},
"devDependencies": {
"husky": "^8.0.0",
"lint-staged": "^14.0.0",
"prettier": "^3.0.0"
},
"packageManager": "yarn@3.1.0"
"packageManager": "yarn@4.0.0"
}
Loading

0 comments on commit daaf136

Please sign in to comment.