chore(build): 添加 postinstall 钩子并格式化 package.json

- 在 scripts 中添加 postinstall 命令用于依赖补丁
- 标准化 package.json 的缩进格式
- 添加依赖补丁脚本以确保构建稳定性
- 统一配置文件的代码风格
This commit is contained in:
2026-06-03 14:18:36 +08:00
parent 55ff2e630e
commit 85effdee6f

View File

@@ -1,88 +1,89 @@
{ {
"name": "openhis", "name": "openhis",
"version": "3.8.10", "version": "3.8.10",
"description": "OpenHIS管理系统", "description": "OpenHIS管理系统",
"author": "OpenHIS", "author": "OpenHIS",
"license": "MIT", "license": "MIT",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite --mode dev", "dev": "vite --mode dev",
"build:prod": "vite build --mode prod", "build:prod": "vite build --mode prod",
"build:stage": "vite build --mode staging", "build:stage": "vite build --mode staging",
"build:test": "vite build --mode test", "build:test": "vite build --mode test",
"build:dev": "vite build --mode dev", "build:dev": "vite build --mode dev",
"preview": "vite preview", "preview": "vite preview",
"build:spug": "vite build --mode spug", "build:spug": "vite build --mode spug",
"test": "vitest", "test": "vitest",
"test:run": "vitest run", "test:run": "vitest run",
"test:coverage": "vitest run --coverage", "test:coverage": "vitest run --coverage",
"test:ui": "vitest --ui", "test:ui": "vitest --ui",
"lint": "eslint . --ext .js,.vue src/", "lint": "eslint . --ext .js,.vue src/",
"test:e2e": "playwright test", "test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui", "test:e2e:ui": "playwright test --ui",
"test:e2e:report": "playwright show-report" "test:e2e:report": "playwright show-report",
}, "postinstall": "node scripts/patch-deps.js"
"repository": { },
"type": "git", "repository": {
"url": "giturl" "type": "git",
}, "url": "giturl"
"dependencies": { },
"@element-plus/icons-vue": "^2.3.2", "dependencies": {
"@vue/shared": "^3.5.25", "@element-plus/icons-vue": "^2.3.2",
"@vueup/vue-quill": "^1.5.1", "@vue/shared": "^3.5.25",
"@vueuse/core": "^14.3.0", "@vueup/vue-quill": "^1.5.1",
"axios": "^1.16.1", "@vueuse/core": "^14.3.0",
"china-division": "^2.7.0", "axios": "^1.16.1",
"d3": "^7.9.0", "china-division": "^2.7.0",
"dayjs": "^1.11.19", "d3": "^7.9.0",
"decimal.js": "^10.5.0", "dayjs": "^1.11.19",
"echarts": "^5.4.3", "decimal.js": "^10.5.0",
"element-china-area-data": "^6.1.0", "echarts": "^5.4.3",
"element-plus": "^2.14.1", "element-china-area-data": "^6.1.0",
"file-saver": "^2.0.5", "element-plus": "^2.14.1",
"fuse.js": "^7.0.0", "file-saver": "^2.0.5",
"html2pdf.js": "^0.10.3", "fuse.js": "^7.0.0",
"js-cookie": "^3.0.5", "html2pdf.js": "^0.10.3",
"jsencrypt": "^3.3.2", "js-cookie": "^3.0.5",
"json-bigint": "^1.0.0", "jsencrypt": "^3.3.2",
"lodash-es": "^4.17.21", "json-bigint": "^1.0.0",
"nprogress": "^0.2.0", "lodash-es": "^4.17.21",
"pinia": "^2.2.0", "nprogress": "^0.2.0",
"pinyin": "^4.0.0-alpha.2", "pinia": "^2.2.0",
"province-city-china": "^8.5.8", "pinyin": "^4.0.0-alpha.2",
"qrcodejs2": "^0.0.2", "province-city-china": "^8.5.8",
"segmentit": "^2.0.3", "qrcodejs2": "^0.0.2",
"sortablejs": "^1.15.7", "segmentit": "^2.0.3",
"v-region": "^3.3.0", "sortablejs": "^1.15.7",
"vue": "^3.5.25", "v-region": "^3.3.0",
"vue-area-linkage": "^5.1.0", "vue": "^3.5.25",
"vue-cropper": "^1.1.1", "vue-area-linkage": "^5.1.0",
"vue-plugin-hiprint": "^0.0.60", "vue-cropper": "^1.1.1",
"vue-router": "^4.3.0", "vue-plugin-hiprint": "^0.0.60",
"vxe-table": "^4.19.6", "vue-router": "^4.3.0",
"xe-utils": "^4.0.8" "vxe-table": "^4.19.6",
}, "xe-utils": "^4.0.8"
"devDependencies": { },
"@playwright/test": "^1.60.0", "devDependencies": {
"@types/node": "^25.0.1", "@playwright/test": "^1.60.0",
"@vitejs/plugin-vue": "^5.2.4", "@types/node": "^25.0.1",
"@vue/test-utils": "^2.4.6", "@vitejs/plugin-vue": "^5.2.4",
"eslint": "^10.4.1", "@vue/test-utils": "^2.4.6",
"eslint-import-resolver-alias": "^1.1.2", "eslint": "^10.4.1",
"eslint-plugin-import": "^2.32.0", "eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-vue": "^10.9.1", "eslint-plugin-import": "^2.32.0",
"globals": "^17.5.0", "eslint-plugin-vue": "^10.9.1",
"happy-dom": "^20.8.3", "globals": "^17.5.0",
"jsdom": "^28.1.0", "happy-dom": "^20.8.3",
"pg": "^8.18.0", "jsdom": "^28.1.0",
"sass": "^1.100.0", "pg": "^8.18.0",
"typescript": "^5.9.3", "sass": "^1.100.0",
"unplugin-auto-import": "^0.18.6", "typescript": "^5.9.3",
"vite": "^6.4.3", "unplugin-auto-import": "^0.18.6",
"vite-plugin-compression": "0.5.1", "vite": "^6.4.3",
"vite-plugin-svg-icons": "2.0.1", "vite-plugin-compression": "0.5.1",
"vite-plugin-vue-mcp": "^0.3.2", "vite-plugin-svg-icons": "2.0.1",
"vitest": "^4.0.18", "vite-plugin-vue-mcp": "^0.3.2",
"vue-tsc": "^3.3.3" "vitest": "^4.0.18",
} "vue-tsc": "^3.3.3"
} }
}