Skip to content

Commit cdd86e4

Browse files
authored
chore: migrate to Yarn v4 (#200)
1 parent 3b378c5 commit cdd86e4

File tree

9 files changed

+4418
-3608
lines changed

9 files changed

+4418
-3608
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ on:
55
branches:
66
- main
77
pull_request:
8-
branches:
9-
- main
108

119
permissions:
1210
contents: read
@@ -22,5 +20,5 @@ jobs:
2220
node-version: 20.x
2321
- name: Lint
2422
run: |
25-
npm install
26-
npm run lint
23+
yarn install --immutable
24+
yarn lint

.github/workflows/test.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,20 @@ on:
55
branches:
66
- main
77
pull_request:
8-
branches:
9-
- main
108

119
permissions:
1210
contents: read
1311

1412
jobs:
1513
build:
16-
runs-on: macOS-latest
14+
runs-on: ubuntu-latest
1715
steps:
1816
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag: v4.1.1
1917
- name: Setup Node.js
2018
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # tag: v4.0.1
2119
with:
2220
node-version: 20.x
23-
- name: npm install, build, and test
21+
- name: Run tests
2422
run: |
25-
npm install
26-
npm test
23+
yarn install --immutable
24+
yarn test

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ lib
55
.vscode
66
.envrc
77
coverage
8-
.DS_Store
8+
.DS_Store
9+
.yarn/install-state.gz

.prettierrc.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"trailingComma": "all",
33
"tabWidth": 2,
44
"singleQuote": true,
5-
"printWidth": 100,
6-
"parser": "typescript"
5+
"printWidth": 100
76
}
87

.yarn/releases/yarn-4.11.0.cjs

Lines changed: 942 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
enableScripts: false
2+
3+
nodeLinker: node-modules
4+
5+
npmMinimalAgeGate: 10080
6+
7+
npmPreapprovedPackages: "-'@electron/*'"
8+
9+
yarnPath: .yarn/releases/yarn-4.11.0.cjs

0 commit comments

Comments
 (0)