build(projects): 升级依赖,降低naive-ui版本修复打包问题

This commit is contained in:
Soybean 2022-08-29 22:01:40 +08:00
parent c5ba63182e
commit f408ea017c
4 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,5 @@
.vscode .vscode
.idea .idea
.vscode
.local .local
!.env-config.ts !.env-config.ts
components.d.ts components.d.ts

View File

@ -16,6 +16,7 @@
"typescript", "typescript",
"typescriptreact", "typescriptreact",
"vue", "vue",
"html",
"json", "json",
"jsonc", "jsonc",
"json5", "json5",

View File

@ -18,7 +18,7 @@ export function setupVitePlugins(viteEnv: ImportMetaEnv): (PluginOption | Plugin
const plugins = [vue(), vueJsx(), VitePWA(), html(viteEnv), ...unplugin, unocss(), mock, progress()]; const plugins = [vue(), vueJsx(), VitePWA(), html(viteEnv), ...unplugin, unocss(), mock, progress()];
if (viteEnv.VITE_VISUALIZER === 'Y') { if (viteEnv.VITE_VISUALIZER === 'Y') {
plugins.push(visualizer); plugins.push(visualizer as PluginOption);
} }
if (viteEnv.VITE_COMPRESS === 'Y') { if (viteEnv.VITE_COMPRESS === 'Y') {
plugins.push(compress(viteEnv)); plugins.push(compress(viteEnv));

View File

@ -65,7 +65,7 @@
"echarts": "^5.3.3", "echarts": "^5.3.3",
"form-data": "^4.0.0", "form-data": "^4.0.0",
"lodash-es": "^4.17.21", "lodash-es": "^4.17.21",
"naive-ui": "^2.33.0", "naive-ui": "2.32.2",
"pinia": "^2.0.21", "pinia": "^2.0.21",
"print-js": "^1.6.0", "print-js": "^1.6.0",
"qs": "^6.11.0", "qs": "^6.11.0",
@ -79,9 +79,9 @@
}, },
"devDependencies": { "devDependencies": {
"@amap/amap-jsapi-types": "^0.0.8", "@amap/amap-jsapi-types": "^0.0.8",
"@commitlint/cli": "^17.1.1", "@commitlint/cli": "^17.1.2",
"@commitlint/config-conventional": "^17.1.0", "@commitlint/config-conventional": "^17.1.0",
"@iconify/json": "^2.1.99", "@iconify/json": "^2.1.100",
"@iconify/vue": "^3.2.1", "@iconify/vue": "^3.2.1",
"@milahu/patch-package": "^6.4.14", "@milahu/patch-package": "^6.4.14",
"@types/bmapgl": "^0.0.5", "@types/bmapgl": "^0.0.5",
@ -96,7 +96,7 @@
"cz-conventional-changelog": "^3.3.0", "cz-conventional-changelog": "^3.3.0",
"cz-customizable": "^6.9.2", "cz-customizable": "^6.9.2",
"eslint": "^8.23.0", "eslint": "^8.23.0",
"eslint-config-soybeanjs-vue": "^0.0.8", "eslint-config-soybeanjs-vue": "^0.0.9",
"husky": "^8.0.1", "husky": "^8.0.1",
"lint-staged": "^13.0.3", "lint-staged": "^13.0.3",
"mockjs": "^1.1.0", "mockjs": "^1.1.0",
@ -117,7 +117,7 @@
"vite-plugin-progress": "^0.0.3", "vite-plugin-progress": "^0.0.3",
"vite-plugin-pwa": "^0.12.3", "vite-plugin-pwa": "^0.12.3",
"vite-plugin-svg-icons": "^2.0.1", "vite-plugin-svg-icons": "^2.0.1",
"vue-tsc": "^0.40.3" "vue-tsc": "^0.40.4"
}, },
"lint-staged": { "lint-staged": {
"*.{vue,js,jsx,ts,tsx,json}": "eslint --fix" "*.{vue,js,jsx,ts,tsx,json}": "eslint --fix"