From c5ba63182ea6b59e5c88828a84d0f62f11928d76 Mon Sep 17 00:00:00 2001 From: Soybean Date: Sun, 28 Aug 2022 18:10:00 +0800 Subject: [PATCH] build(deps): update deps --- .husky/pre-commit | 2 +- package.json | 29 ++++++++++++++--------------- tsconfig.json | 8 +++++++- 3 files changed, 22 insertions(+), 17 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 253914e4e..fea73319a 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,4 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -npm run lint:fix && npm run typecheck +npm run lint && npm run typecheck diff --git a/package.json b/package.json index 61acc30d3..971c3f068 100644 --- a/package.json +++ b/package.json @@ -44,8 +44,7 @@ "build:vercel": "cross-env VITE_HASH_ROUTE=Y VITE_VERCEL=Y vite build", "preview": "vite preview", "typecheck": "vue-tsc --noEmit --skipLibCheck", - "lint": "eslint .", - "lint:fix": "eslint . --fix", + "lint": "eslint . --fix", "prepare": "husky install", "postinstall": "patch-package", "release": "standard-version", @@ -66,23 +65,23 @@ "echarts": "^5.3.3", "form-data": "^4.0.0", "lodash-es": "^4.17.21", - "naive-ui": "^2.32.2", - "pinia": "^2.0.20", + "naive-ui": "^2.33.0", + "pinia": "^2.0.21", "print-js": "^1.6.0", "qs": "^6.11.0", "swiper": "^8.3.2", "ua-parser-js": "^1.0.2", "vditor": "^3.8.17", "vue": "3.2.37", - "vue-router": "^4.1.4", + "vue-router": "^4.1.5", "wangeditor": "^4.7.15", "xgplayer": "^2.31.7" }, "devDependencies": { "@amap/amap-jsapi-types": "^0.0.8", - "@commitlint/cli": "^17.0.3", - "@commitlint/config-conventional": "^17.0.3", - "@iconify/json": "^2.1.97", + "@commitlint/cli": "^17.1.1", + "@commitlint/config-conventional": "^17.1.0", + "@iconify/json": "^2.1.99", "@iconify/vue": "^3.2.1", "@milahu/patch-package": "^6.4.14", "@types/bmapgl": "^0.0.5", @@ -95,9 +94,9 @@ "commitizen": "^4.2.5", "cross-env": "^7.0.3", "cz-conventional-changelog": "^3.3.0", - "cz-customizable": "^6.9.1", - "eslint": "^8.22.0", - "eslint-config-soybeanjs-vue": "^0.0.6", + "cz-customizable": "^6.9.2", + "eslint": "^8.23.0", + "eslint-config-soybeanjs-vue": "^0.0.8", "husky": "^8.0.1", "lint-staged": "^13.0.3", "mockjs": "^1.1.0", @@ -105,11 +104,11 @@ "rollup-plugin-visualizer": "^5.8.0", "sass": "^1.54.5", "standard-version": "^9.5.0", - "typescript": "^4.7.4", - "unocss": "^0.45.12", + "typescript": "4.7.4", + "unocss": "^0.45.13", "unplugin-icons": "^0.14.8", "unplugin-vue-components": "0.22.4", - "unplugin-vue-define-options": "^0.10.0", + "unplugin-vue-define-options": "^0.11.0", "utility-types": "^3.10.0", "vite": "^3.0.9", "vite-plugin-compression": "^0.5.1", @@ -118,7 +117,7 @@ "vite-plugin-progress": "^0.0.3", "vite-plugin-pwa": "^0.12.3", "vite-plugin-svg-icons": "^2.0.1", - "vue-tsc": "^0.40.1" + "vue-tsc": "^0.40.3" }, "lint-staged": { "*.{vue,js,jsx,ts,tsx,json}": "eslint --fix" diff --git a/tsconfig.json b/tsconfig.json index 69b8abaae..89c5728d2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,7 +17,13 @@ "~/*": ["./*"], "@/*": ["./src/*"] }, - "types": ["vite/client", "node", "unplugin-icons/types/vue", "naive-ui/volar", "unplugin-vue-define-options"] + "types": [ + "vite/client", + "node", + "unplugin-icons/types/vue", + "naive-ui/volar", + "unplugin-vue-define-options/macros-global" + ] }, "exclude": ["node_modules", "dist"] }