build: upgrade to Yarn v4 (#149)

This commit is contained in:
Erick Zhao
2025-10-17 01:51:49 -07:00
committed by GitHub
parent 7a73b7793e
commit 355fd7c6e8
8 changed files with 3899 additions and 1664 deletions

View File

@@ -19,7 +19,7 @@ jobs:
with: with:
node-version-file: '.nvmrc' node-version-file: '.nvmrc'
- name: Install dependencies - name: Install dependencies
run: yarn --frozen-lockfile run: yarn --immutable
- name: Build API documentation - name: Build API documentation
run: yarn build:docs run: yarn build:docs
- name: Azure login - name: Azure login

View File

@@ -27,7 +27,7 @@ jobs:
node-version-file: '.nvmrc' node-version-file: '.nvmrc'
cache: 'yarn' cache: 'yarn'
- name: Install - name: Install
run: yarn install --frozen-lockfile run: yarn install --immutable
- uses: continuousauth/action@4e8a2573eeb706f6d7300d6a9f3ca6322740b72d # v1.0.5 - uses: continuousauth/action@4e8a2573eeb706f6d7300d6a9f3ca6322740b72d # v1.0.5
timeout-minutes: 60 timeout-minutes: 60
with: with:

View File

@@ -29,7 +29,7 @@ jobs:
node-version: "${{ matrix.node-version }}" node-version: "${{ matrix.node-version }}"
cache: 'yarn' cache: 'yarn'
- name: Install - name: Install
run: yarn install --frozen-lockfile run: yarn install --immutable
- name: Build - name: Build
run: yarn build run: yarn build
- name: Lint - name: Lint

1
.gitignore vendored
View File

@@ -7,3 +7,4 @@ test/fixtures/apps
coverage coverage
docs docs
.vscode .vscode
.yarn/install-state.gz

942
.yarn/releases/yarn-4.10.3.cjs vendored Executable file

File diff suppressed because one or more lines are too long

10
.yarnrc.yml Normal file
View File

@@ -0,0 +1,10 @@
enableScripts: false
nodeLinker: node-modules
npmMinimalAgeGate: 10080
npmPreapprovedPackages:
- "@electron/*"
yarnPath: .yarn/releases/yarn-4.10.3.cjs

View File

@@ -32,8 +32,7 @@
"build:docs": "npx typedoc", "build:docs": "npx typedoc",
"lint": "prettier --check \"{src,entry-asar,test}/**/*.ts\" \"*.ts\"", "lint": "prettier --check \"{src,entry-asar,test}/**/*.ts\" \"*.ts\"",
"prettier:write": "prettier --write \"{src,entry-asar,test}/**/*.ts\" \"*.ts\"", "prettier:write": "prettier --write \"{src,entry-asar,test}/**/*.ts\" \"*.ts\"",
"prepublishOnly": "npm run build", "prepack": "npm run build",
"pretest": "npm run build",
"test": "vitest run", "test": "vitest run",
"prepare": "husky" "prepare": "husky"
}, },
@@ -65,5 +64,6 @@
"*.ts": [ "*.ts": [
"prettier --write" "prettier --write"
] ]
} },
"packageManager": "yarn@4.10.3+sha512.c38cafb5c7bb273f3926d04e55e1d8c9dfa7d9c3ea1f36a4868fa028b9e5f72298f0b7f401ad5eb921749eb012eb1c3bb74bf7503df3ee43fd600d14a018266f"
} }

4596
yarn.lock

File diff suppressed because it is too large Load Diff