diff --git a/.vscode/settings.json b/.vscode/settings.json index ad23d521..3550496c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -137,6 +137,7 @@ "lintstagedrc", "brotli", "tailwindcss", - "sider" + "sider", + "pnpm" ] } diff --git a/README.md b/README.md index d15f7667..b39b305d 100644 --- a/README.md +++ b/README.md @@ -70,20 +70,20 @@ git clone https://github.com/anncwb/vue-vben-admin.git ```bash cd vue-vben-admin -yarn install +pnpm install ``` - run ```bash -yarn serve +pnpm serve ``` - build ```bash -yarn build +pnpm build ``` ## Change Log diff --git a/README.zh-CN.md b/README.zh-CN.md index acb575f5..408af3cc 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -70,20 +70,20 @@ git clone https://github.com/anncwb/vue-vben-admin.git ```bash cd vue-vben-admin -yarn install +pnpm install ``` - 运行 ```bash -yarn serve +pnpm serve ``` - 打包 ```bash -yarn build +pnpm build ``` ## 更新日志 diff --git a/package.json b/package.json index a1f93bf9..e89cb64e 100644 --- a/package.json +++ b/package.json @@ -7,12 +7,12 @@ "url": "https://github.com/anncwb" }, "scripts": { - "bootstrap": "yarn install", + "bootstrap": "pnpm install", "serve": "npm run dev", "dev": "vite", "build": "cross-env NODE_ENV=production vite build && esno ./build/script/postBuild.ts", "build:test": "cross-env vite build --mode test && esno ./build/script/postBuild.ts", - "build:no-cache": "yarn clean:cache && npm run build", + "build:no-cache": "pnpm clean:cache && npm run build", "report": "cross-env REPORT=true npm run build", "type:check": "vue-tsc --noEmit --skipLibCheck", "preview": "npm run build && vite preview", @@ -28,7 +28,7 @@ "test:unit-coverage": "jest --coverage", "test:gzip": "npx http-server dist --cors --gzip -c-1", "test:br": "npx http-server dist --cors --brotli -c-1", - "reinstall": "rimraf yarn.lock && rimraf package.lock.json && rimraf node_modules && npm run bootstrap", + "reinstall": "rimraf pnpm-lock.yaml && rimraf package.lock.json && rimraf node_modules && npm run bootstrap", "prepare": "husky install", "gen:icon": "esno ./build/generate/icon/index.ts" },