Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: 升级vitev5 版本,规定node版本>=18.0.0pnpm版本>=8.6.10
Browse files Browse the repository at this point in the history
xiaoxian521 committed Sep 17, 2023
1 parent 4415f12 commit a849547
Showing 5 changed files with 1,816 additions and 1,675 deletions.
2 changes: 1 addition & 1 deletion .lintstagedrc
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
"prettier --cache --ignore-unknown --write",
"eslint --cache --fix"
],
"{!(package)*.json,*.code-snippets,.!(browserslist)*rc}": [
"{!(package)*.json,*.code-snippets,.!({browserslist,nvm})*rc}": [
"prettier --cache --write--parser json"
],
"package.json": ["prettier --cache --write"],
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.17.1
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ FROM node:16-alpine as build-stage

WORKDIR /app
RUN corepack enable
RUN corepack prepare pnpm@7.32.1 --activate
RUN corepack prepare pnpm@8.6.10 --activate

RUN npm config set registry https://registry.npmmirror.com

7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -156,7 +156,7 @@
"tailwindcss": "^3.3.3",
"terser": "^5.19.4",
"typescript": "^5.2.2",
"vite": "^4.4.9",
"vite": "5.0.0-beta.2",
"vite-plugin-cdn-import": "^0.3.5",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-mock": "2.9.6",
@@ -165,6 +165,11 @@
"vue-eslint-parser": "^9.3.1",
"vue-tsc": "^1.8.11"
},
"engines": {
"node": "^18.0.0 || >=20.0.0",
"pnpm": ">=8.6.10"
},
"packageManager": "[email protected]",
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [
Loading

0 comments on commit a849547

Please sign in to comment.