Skip to content

Commit a624d09

Browse files
authored
chore: migrate to yarn v4 (#1178)
1 parent 5136525 commit a624d09

File tree

11 files changed

+11380
-14
lines changed

11 files changed

+11380
-14
lines changed

.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
strategy:
1616
matrix:
1717
node:
18-
- 16
1918
- 18
2019
- 20
2120
- 22
@@ -28,12 +27,13 @@ jobs:
2827
uses: actions/setup-node@v4
2928
with:
3029
node-version: ${{ matrix.node }}
30+
cache: yarn
3131

3232
- name: Install dependencies
33-
run: npm i
33+
run: yarn --immutable
3434

3535
- name: Lint, test, and build
36-
run: npm start validate
36+
run: yarn start validate
3737

3838
- name: Check test coverage
3939
uses: codecov/codecov-action@v5

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ jobs:
3030
node-version: lts/*
3131

3232
- name: Install Dependencies
33-
run: npm i
33+
run: yarn --immutable
3434

3535
- name: Build
36-
run: npm start build
36+
run: yarn start build
3737

3838
- name: Create Release Pull Request or Publish to npm
3939
id: changesets

.gitignore

+3-5
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ dist
55
.opt-out
66
.DS_Store
77
.eslintcache
8-
9-
# these cause more harm than good
10-
# when working with contributors
11-
package-lock.json
12-
yarn.lock
8+
.yarn/*
9+
!.yarn/releases
10+
!.yarn/plugins

.npmrc

-3
This file was deleted.

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.yarn
12
node_modules
23
.nyc_output
34
coverage

.simple-git-hooks.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"pre-commit": "npm start validate"
2+
"pre-commit": "yarn start validate"
33
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports={name:"plugin-prepare-lifecycle",factory:e=>({hooks:{afterAllInstalled(r){if(!r.topLevelWorkspace.manifest.scripts.get("prepare"))return;e("@yarnpkg/shell").execute("yarn prepare")}}})};

.yarn/releases/yarn-4.9.1.cjs

+948
Large diffs are not rendered by default.

.yarnrc.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
enableTelemetry: false
2+
3+
nodeLinker: node-modules
4+
5+
plugins:
6+
- checksum: 37b2361b1502b2054e6779788c0e9bdd6a90ce49852a8cad2feda79b0614ec94f06fb6e78951f5f95429c610d7934dd077caa47413a0227378a102c55161616d
7+
path: .yarn/plugins/plugin-prepare-lifecycle.cjs
8+
spec: "https://github.com/un-es/yarn-plugin-prepare-lifecycle/releases/download/v0.0.1/index.js"
9+
10+
yarnPath: .yarn/releases/yarn-4.9.1.cjs

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"JounQin (https://www.1stG.me) <[email protected]>"
1111
],
1212
"license": "MIT",
13+
"packageManager": "[email protected]",
1314
"engines": {
1415
"node": ">=16.10.0"
1516
},

0 commit comments

Comments
 (0)