Files
weicw e0fc306f15 build: 包管理器切换为 pnpm
- package.json 声明 packageManager: pnpm@12.15.0
- 用 `pnpm import` 从 package-lock.json 生成 pnpm-lock.yaml,
  依赖版本与原 npm/yarn 锁文件逐一对齐(vue 3.2.38、pinia 2.0.21、
  ele-admin-pro 1.10.1、vite 3.0.9),不做升级
- 移除 package-lock.json 与 yarn.lock,只保留 pnpm-lock.yaml
- pnpm-workspace.yaml 保留 allowBuilds,并钉 pinia 2.0.21:
  vue 停在 3.2.38,而 pinia 2.1+ 需要 Vue 3.3 的 hasInjectionContext,
  安装最新版会导致开发服务器预构建失败;pnpm 12 不再读取
  package.json 的 pnpm.overrides,override 只能放这里
- 补 highlight.js@11.8.0 为直接依赖:代码里直接 import 其样式,
  此前仅靠 npm 的扁平提升作为 @bytemd/plugin-highlight 的传递依赖
  才被解析到,pnpm 严格解析下打包失败

验证:pnpm install --frozen-lockfile、pnpm build、pnpm dev 均通过。
2026-10-31 13:17:17 +08:00

87 lines
2.6 KiB
JSON

{
"name": "ele-admin-pro-template",
"version": "1.10.1",
"private": true,
"packageManager": "pnpm@12.15.0",
"scripts": {
"dev": "vite",
"serve": "vite build && vite preview",
"build": "vite build",
"lint:eslint": "eslint --cache --max-warnings 0 \"src/**/*.{vue,ts}\" --fix",
"clean:cache": "rimraf node_modules/.cache/ && rimraf node_modules/.vite/",
"clean:lib": "rimraf node_modules",
"build-css": "tailwindcss -o ./dist/tailwind.css --minify"
},
"dependencies": {
"@amap/amap-jsapi-loader": "^1.0.1",
"@ant-design/colors": "^6.0.0",
"@ant-design/icons-vue": "^6.1.0",
"@antv/g2": "^5.1.22",
"@bytemd/plugin-gfm": "^1.17.2",
"@bytemd/plugin-highlight": "^1.17.4",
"@bytemd/plugin-highlight-ssr": "^1.20.2",
"@wecom/jssdk": "^1.3.1",
"ali-oss": "^6.18.0",
"ant-design-vue": "^3.2.11",
"axios": "^0.27.2",
"bytemd": "^1.17.2",
"countup.js": "^2.3.2",
"cropperjs": "^1.5.12",
"crypto-js": "^4.2.0",
"dayjs": "^1.11.5",
"echarts": "^5.3.3",
"echarts-wordcloud": "^2.0.0",
"ele-admin-pro": "^1.10.1",
"exceljs": "^4.3.0",
"github-markdown-css": "^5.1.0",
"highlight.js": "11.8.0",
"js-cookie": "^3.0.5",
"js-md5": "^0.7.3",
"jsbarcode": "^3.11.5",
"lodash-es": "^4.17.21",
"mitt": "^3.0.1",
"nprogress": "^0.2.0",
"pinia": "^2.0.21",
"socket.io-client": "^4.7.1",
"sortablejs": "^1.15.0",
"tinymce": "^5.10.5",
"vue": "3.2.38",
"vue-echarts": "^6.2.3",
"vue-i18n": "^9.2.2",
"vue-router": "^4.1.5",
"vue-tianditu": "^2.7.6",
"vuedraggable": "^4.1.0",
"xgplayer": "^2.31.7",
"xlsx": "^0.18.5"
},
"devDependencies": {
"@types/lodash-es": "^4.17.6",
"@types/node": "^18.7.14",
"@types/nprogress": "^0.2.0",
"@types/sortablejs": "^1.13.0",
"@typescript-eslint/eslint-plugin": "^5.36.1",
"@typescript-eslint/parser": "^5.36.1",
"@vitejs/plugin-legacy": "^2.0.1",
"@vitejs/plugin-vue": "^3.0.3",
"@vue/compiler-sfc": "^3.2.38",
"autoprefixer": "^10.4.19",
"eslint": "^8.23.0",
"eslint-config-prettier": "^8.5.0",
"eslint-define-config": "^1.7.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-vue": "^9.4.0",
"less": "^4.1.3",
"postcss": "^8.4.39",
"prettier": "^2.7.1",
"rimraf": "^3.0.2",
"tailwindcss": "^3.4.6",
"terser": "^5.15.0",
"typescript": "^4.8.2",
"unplugin-vue-components": "^0.22.4",
"vite": "^3.0.9",
"vite-plugin-compression": "^0.5.1",
"vue-eslint-parser": "^9.0.3",
"vue-tsc": "^0.40.5"
}
}