Skip to content

Commit 6cbc22a

Browse files
chore: update yarn and set the minimal age for dependencies (#5585)
* chore: update yarn and set the minimal age for dependencies * chore: add changeset
1 parent 2e5aa56 commit 6cbc22a

12 files changed

Lines changed: 27275 additions & 19585 deletions

File tree

.changeset/clear-donkeys-shout.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@venusprotocol/chains": minor
3+
"@venusprotocol/ui": minor
4+
"@venusprotocol/evm": minor
5+
---
6+
7+
Update yarn and add a minimal age for dependencies

.github/workflows/cd.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,23 @@ jobs:
2929
fetch-depth: 0
3030
token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
3131

32+
- name: Enable Corepack
33+
run: corepack enable
34+
3235
- name: Setup Node.js
3336
uses: actions/setup-node@v4
3437
with:
3538
node-version-file: ".nvmrc"
3639
registry-url: 'https://registry.npmjs.org'
3740
cache: "yarn"
3841

39-
- name: Enable Corepack
40-
run: corepack enable
41-
4242
- name: Install dependencies
4343
run: |
44-
yarn
44+
yarn install --immutable
4545
4646
# Install required npm version to use trusted publisher
4747
# (https://docs.npmjs.com/trusted-publishers)
48-
npm install -g npm@11.5.1
48+
npm install -g npm@11.5.1
4949
5050
- name: Run tests and collect coverage
5151
run: yarn test --coverage

.github/workflows/ci.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ jobs:
1919
- name: Checkout
2020
uses: actions/checkout@v4
2121

22+
- name: Enable Corepack
23+
run: corepack enable
24+
2225
- uses: actions/setup-node@v4
2326
with:
2427
node-version-file: ".nvmrc"
2528
cache: "yarn"
2629

27-
- name: Enable Corepack
28-
run: corepack enable
29-
3030
- name: Install dependencies
31-
run: yarn
31+
run: yarn install --immutable
3232

3333
- name: Typecheck
3434
run: yarn tsc
@@ -48,16 +48,16 @@ jobs:
4848
- name: Checkout
4949
uses: actions/checkout@v4
5050

51+
- name: Enable Corepack
52+
run: corepack enable
53+
5154
- uses: actions/setup-node@v4
5255
with:
5356
node-version-file: ".nvmrc"
5457
cache: "yarn"
5558

56-
- name: Enable Corepack
57-
run: corepack enable
58-
5959
- name: Install dependencies
60-
run: yarn
60+
run: yarn install --immutable
6161

6262
- name: Run tests and collect coverage
6363
run: yarn test --coverage

.yarnrc.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1+
enableScripts: true
2+
13
nodeLinker: node-modules
4+
5+
# In minutes.
6+
npmMinimalAgeGate: 10080

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ WORKDIR /usr/app
99

1010
COPY . .
1111

12-
RUN yarn
12+
RUN corepack enable && yarn install --immutable
1313

1414
COPY . .
1515

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ Official monorepo for the [Venus protocol](https://venus.io) frontend apps.
1010

1111
### Install dependencies with yarn
1212

13+
Yarn version is pinned via Corepack. Enable it once on your machine:
14+
15+
```ssh
16+
corepack enable
17+
```
18+
19+
Then install:
20+
1321
```ssh
1422
yarn
1523
```

apps/evm/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"scripts": {
66
"start": "vite",
7-
"build": "NODE_OPTIONS=\"--max-old-space-size=16384\" && vite build",
7+
"build": "NODE_OPTIONS=--max-old-space-size=16384 vite build",
88
"serve": "vite preview",
99
"test": "TZ=UTC VITE_NETWORK=testnet VITE_ENV=ci vitest run",
1010
"clean": "rm -rf .turbo && rm -rf node_modules",
@@ -21,8 +21,7 @@
2121
"generate-version-files": "genversion --es6 --semi src/constants/version.ts && tsx src/scripts/generatePublicVersionFile.ts && yarn biome format --vcs-use-ignore-file=false --write public/version.json",
2222
"generate": "npm-run-all --parallel generate-version-files generate-contracts generate-pancake-swap-tokens",
2323
"storybook": "storybook dev -p 6006",
24-
"storybook:build": "storybook build",
25-
"postinstall": "turbo run generate"
24+
"storybook:build": "storybook build"
2625
},
2726
"dependencies": {
2827
"@biconomy/abstractjs": "^1.0.21",
@@ -62,8 +61,8 @@
6261
"i18next": "^25.0.0",
6362
"i18next-browser-languagedetector": "^8.2.0",
6463
"immer": "^10.1.1",
65-
"lodash-es": "^4.17.21",
6664
"klinecharts": "^10.0.0-beta1",
65+
"lodash-es": "^4.17.21",
6766
"motion": "^12.0.3",
6867
"noop-ts": "^1.0.6",
6968
"ogl": "^1.0.11",
@@ -123,7 +122,7 @@
123122
"@venusprotocol/token-bridge": "2.7.0",
124123
"@venusprotocol/typescript-config": "*",
125124
"@venusprotocol/venus-periphery": "^1.1.0",
126-
"@venusprotocol/venus-protocol": "10.2.0-dev.2",
125+
"@venusprotocol/venus-protocol": "10.2.0-slim-dev.2",
127126
"@vitejs/plugin-react": "^4.3.3",
128127
"@vitest/coverage-v8": "^2.1.5",
129128
"c8": "^10.0.0",

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "venusprotocol",
33
"version": "1.0.0",
44
"private": true,
5-
"packageManager": "yarn@1.22.21",
5+
"packageManager": "yarn@4.14.1",
66
"workspaces": [
77
"packages/*",
88
"configs/*",
@@ -20,7 +20,8 @@
2020
"build": "turbo run build",
2121
"extract-translations": "turbo run extract-translations",
2222
"changeset": "changeset",
23-
"postinstall": "husky && turbo run generate"
23+
"prepare": "husky",
24+
"postinstall": "turbo run generate"
2425
},
2526
"devDependencies": {
2627
"@changesets/cli": "^2.27.1",
@@ -37,6 +38,7 @@
3738
},
3839
"resolutions": {
3940
"react-error-overlay": "6.0.11",
40-
"@emotion/styled": "^11.0.0"
41+
"@emotion/styled": "^11.0.0",
42+
"hono": "4.12.17"
4143
}
4244
}

packages/chains/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,24 +38,26 @@
3838
"generate": "genversion --es6 --semi src/constants/version.ts && yarn run generate-manifests && yarn run generate-v-tokens && yarn run build"
3939
},
4040
"devDependencies": {
41+
"@biomejs/biome": "1.6.4",
4142
"@rollup/plugin-url": "^8.0.2",
4243
"@types/semver": "^7.5.8",
4344
"@venusprotocol/isolated-pools": "^4.3.0",
4445
"@venusprotocol/typescript-config": "*",
45-
"@venusprotocol/venus-protocol": "10.2.0-dev.2",
46+
"@venusprotocol/venus-protocol": "10.2.0-slim-dev.2",
4647
"@vercel/blob": "^2.0.0",
4748
"commander": "^14.0.1",
4849
"genversion": "^3.2.0",
4950
"npm-run-all": "^4.1.5",
5051
"react": "^19.2.0",
5152
"rimraf": "^6.0.1",
53+
"semver": "^7.7.1",
5254
"tsdown": "^0.19.0",
5355
"tsx": "^4.20.5",
56+
"typescript": "^5.1.6",
5457
"viem": "^2.23.1",
55-
"semver": "^7.7.1",
5658
"vitest": "^3.2.4"
5759
},
5860
"dependencies": {
5961
"@dotenvx/dotenvx": "^1.51.0"
6062
}
61-
}
63+
}

packages/ui/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@
2020
"tsc": "tsc --noEmit"
2121
},
2222
"devDependencies": {
23+
"@biomejs/biome": "1.6.4",
2324
"@venusprotocol/typescript-config": "*",
24-
"tailwindcss": ">=4.1.18"
25+
"tailwindcss": ">=4.1.18",
26+
"typescript": "^5.1.6"
2527
},
2628
"dependencies": {
2729
"@radix-ui/react-slot": "^1.1.2",
@@ -31,4 +33,4 @@
3133
"peerDependencies": {
3234
"tailwindcss": ">=4.0.0"
3335
}
34-
}
36+
}

0 commit comments

Comments
 (0)