Skip to content

Commit 63b9aa5

Browse files
authored
build: upgrade to Yarn v4 (#230)
1 parent 68d792e commit 63b9aa5

File tree

7 files changed

+2628
-1159
lines changed

7 files changed

+2628
-1159
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
node-version: 20.x
2828
cache: 'yarn'
2929
- name: Install
30-
run: yarn install --frozen-lockfile
30+
run: yarn install --immutable
3131
- uses: continuousauth/action@4e8a2573eeb706f6d7300d6a9f3ca6322740b72d # v1.0.5
3232
timeout-minutes: 60
3333
with:

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ jobs:
5555
- name: Setup Node.js
5656
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
5757
with:
58-
node-version: '18.20'
58+
node-version: '22.x'
5959
cache: 'yarn'
6060
- name: Install Dependencies
61-
run: yarn install --frozen-lockfile
61+
run: yarn install --immutable
6262
- name: Install Electron
63-
run: yarn add "electron@${{ matrix.electron-version }}"
63+
run: yarn add "electron@${{ matrix.electron-version }}" -P
6464
- name: Build
6565
run: yarn tsc
6666
- name: Test (Electron 12)

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules/
22
dist/
33
test-results/
4+
.yarn/install-state.gz

.yarn/releases/yarn-4.10.3.cjs

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

.yarnrc.yml

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

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
"chai-as-promised": "^7.1.1",
2121
"dirty-chai": "^2.0.1",
2222
"electron": "35.x",
23-
"mocha": "^10.8.2",
23+
"mocha": "^11.7.4",
2424
"mocha-junit-reporter": "^1.23.3",
2525
"mocha-multi-reporters": "^1.1.7",
2626
"ts-node": "^8.10.2",
2727
"typescript": "^4.1.3"
2828
},
2929
"scripts": {
30-
"prepare": "tsc",
30+
"prepack": "tsc",
3131
"test": "electron test --extension=ts --require=ts-node/register --exit --js-flags=--expose_gc",
3232
"test:ci": "yarn test --reporter=mocha-multi-reporters --reporter-options=configFile=.github/workflows/mocha-reporter-config.json"
3333
},
@@ -42,5 +42,11 @@
4242
"types": "index.d.ts",
4343
"publishConfig": {
4444
"provenance": true
45+
},
46+
"packageManager": "[email protected]+sha512.c38cafb5c7bb273f3926d04e55e1d8c9dfa7d9c3ea1f36a4868fa028b9e5f72298f0b7f401ad5eb921749eb012eb1c3bb74bf7503df3ee43fd600d14a018266f",
47+
"dependenciesMeta": {
48+
"electron": {
49+
"built": true
50+
}
4551
}
4652
}

0 commit comments

Comments
 (0)