From e8d6f8851efd7076946486864936f1797280d3ba Mon Sep 17 00:00:00 2001 From: vben <anncwb@126.com> Date: 星期六, 19 六月 2021 23:17:44 +0800 Subject: [PATCH] fix(store): fix type error after pinia version upgrade --- package.json | 126 +++++++++++++++++++++++------------------- 1 files changed, 69 insertions(+), 57 deletions(-) diff --git a/package.json b/package.json index 157d9ea..d67c814 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vben-admin", - "version": "2.3.0", + "version": "2.4.2", "author": { "name": "vben", "email": "anncwb@126.com", @@ -8,8 +8,8 @@ }, "scripts": { "bootstrap": "yarn install", - "serve": "cross-env --max_old_space_size=4096 vite", - "dev": "cross-env --max_old_space_size=4096 vite", + "serve": "npm run dev", + "dev": "vite", "build": "vite build && esno ./build/script/postBuild.ts", "build:no-cache": "yarn clean:cache && npm run build", "report": "cross-env REPORT=true npm run build", @@ -19,11 +19,13 @@ "log": "conventional-changelog -p angular -i CHANGELOG.md -s", "clean:cache": "rimraf node_modules/.cache/ && rimraf node_modules/.vite", "clean:lib": "rimraf node_modules", - "lint:eslint": "eslint \"{src,mock}/**/*.{vue,ts,tsx}\" --fix", + "lint:eslint": "eslint --cache --max-warnings 0 \"{src,mock}/**/*.{vue,ts,tsx}\" --fix", "lint:prettier": "prettier --write --loglevel warn \"src/**/*.{js,json,tsx,css,less,scss,vue,html,md}\"", - "lint:stylelint": "stylelint --fix \"**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/", + "lint:stylelint": "stylelint --cache --fix \"**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/", "lint:lint-staged": "lint-staged -c ./.husky/lintstagedrc.js", "lint:pretty": "pretty-quick --staged", + "test:unit": "jest", + "test:unit-coverage": "jest --coverage", "test:gzip": "http-server dist --cors --gzip -c-1", "test:br": "http-server dist --cors --brotli -c-1", "reinstall": "rimraf yarn.lock && rimraf package.lock.json && rimraf node_modules && npm run bootstrap", @@ -32,102 +34,112 @@ "postinstall": "npm run install:husky" }, "dependencies": { - "@iconify/iconify": "^2.0.0-rc.6", - "@logicflow/core": "^0.3.4", - "@logicflow/extension": "^0.3.4", - "@vueuse/core": "^4.9.0", + "@iconify/iconify": "^2.0.2", + "@logicflow/core": "^0.5.0", + "@logicflow/extension": "^0.5.0", + "@vueuse/core": "^5.0.3", "@zxcvbn-ts/core": "^0.3.0", - "ant-design-vue": "^2.1.3", + "ant-design-vue": "2.1.6", "axios": "^0.21.1", - "codemirror": "^5.61.0", - "cropperjs": "^1.5.11", + "codemirror": "^5.61.1", + "cropperjs": "^1.5.12", "crypto-js": "^4.0.0", - "echarts": "^5.1.0", + "echarts": "^5.1.2", + "intro.js": "^4.1.0", "lodash-es": "^4.17.21", "mockjs": "^1.1.0", "nprogress": "^0.2.0", "path-to-regexp": "^6.2.0", - "pinia": "2.0.0-alpha.13", + "pinia": "2.0.0-beta.3", "print-js": "^1.6.0", "qrcode": "^1.4.4", "sortablejs": "^1.13.0", - "tinymce": "^5.7.1", - "vditor": "^3.8.4", + "tinymce": "^5.8.1", + "vditor": "^3.8.5", "vue": "3.0.11", - "vue-i18n": "9.0.0", + "vue-i18n": "9.1.6", "vue-json-pretty": "^2.0.2", - "vue-router": "^4.0.6", + "vue-router": "^4.0.9", "vue-types": "^3.0.2", - "xlsx": "^0.16.9" + "xlsx": "^0.17.0" }, "devDependencies": { - "@commitlint/cli": "^12.1.1", - "@commitlint/config-conventional": "^12.1.1", - "@iconify/json": "^1.1.333", + "@commitlint/cli": "^12.1.4", + "@commitlint/config-conventional": "^12.1.4", + "@iconify/json": "^1.1.358", "@purge-icons/generated": "^0.7.0", - "@types/codemirror": "^0.0.109", + "@types/codemirror": "^5.60.0", "@types/crypto-js": "^4.0.1", "@types/fs-extra": "^9.0.11", - "@types/inquirer": "^7.3.1", + "@types/inquirer": "^7.3.2", + "@types/intro.js": "^3.0.1", + "@types/jest": "^26.0.23", "@types/lodash-es": "^4.17.4", "@types/mockjs": "^1.0.3", + "@types/node": "^15.12.4", "@types/nprogress": "^0.2.0", "@types/qrcode": "^1.4.0", "@types/qs": "^6.9.6", "@types/sortablejs": "^1.10.6", - "@typescript-eslint/eslint-plugin": "^4.22.0", - "@typescript-eslint/parser": "^4.22.0", - "@vitejs/plugin-legacy": "^1.3.2", - "@vitejs/plugin-vue": "^1.2.2", - "@vitejs/plugin-vue-jsx": "^1.1.3", + "@typescript-eslint/eslint-plugin": "^4.27.0", + "@typescript-eslint/parser": "^4.27.0", + "@vitejs/plugin-legacy": "^1.4.1", + "@vitejs/plugin-vue": "^1.2.3", + "@vitejs/plugin-vue-jsx": "^1.1.5", "@vue/compiler-sfc": "3.0.11", - "autoprefixer": "^10.2.5", - "commitizen": "^4.2.3", + "@vue/test-utils": "^2.0.0-rc.6", + "autoprefixer": "^10.2.6", + "babel-jest": "^27.0.2", + "commitizen": "^4.2.4", "conventional-changelog-cli": "^2.1.1", "cross-env": "^7.0.3", - "dotenv": "^8.2.0", - "eslint": "^7.25.0", + "dotenv": "^10.0.0", + "eslint": "^7.29.0", "eslint-config-prettier": "^8.3.0", "eslint-define-config": "^1.0.8", + "eslint-plugin-jest": "^24.3.6", "eslint-plugin-prettier": "^3.4.0", - "eslint-plugin-vue": "^7.9.0", - "esno": "^0.5.0", - "fs-extra": "^9.1.0", + "eslint-plugin-vue": "^7.11.1", + "esno": "^0.7.3", + "fs-extra": "^10.0.0", "http-server": "^0.12.3", "husky": "^6.0.0", - "inquirer": "^8.0.0", + "inquirer": "^8.1.1", "is-ci": "^3.0.0", + "jest": "^27.0.4", "less": "^4.1.1", - "lint-staged": "^10.5.4", - "postcss": "^8.2.12", - "prettier": "^2.2.1", - "pretty-quick": "^3.1.0", + "lint-staged": "^11.0.0", + "postcss": "^8.3.5", + "prettier": "^2.3.1", + "pretty-quick": "^3.1.1", "rimraf": "^3.0.2", - "rollup-plugin-visualizer": "5.3.4", - "stylelint": "^13.13.0", + "rollup-plugin-visualizer": "5.5.0", + "stylelint": "^13.13.1", "stylelint-config-prettier": "^8.0.2", "stylelint-config-standard": "^22.0.0", "stylelint-order": "^4.1.0", - "ts-node": "^9.1.1", - "typescript": "4.2.4", - "vite": "2.2.3", - "vite-plugin-compression": "^0.2.4", + "ts-jest": "^27.0.3", + "ts-node": "^10.0.0", + "typescript": "4.3.4", + "vite": "2.3.7", + "vite-plugin-compression": "^0.2.5", "vite-plugin-html": "^2.0.7", - "vite-plugin-imagemin": "^0.3.0", - "vite-plugin-mock": "^2.5.0", + "vite-plugin-imagemin": "^0.3.2", + "vite-plugin-mock": "^2.8.0", "vite-plugin-purge-icons": "^0.7.0", - "vite-plugin-pwa": "^0.7.2", - "vite-plugin-style-import": "^0.10.0", - "vite-plugin-svg-icons": "^0.4.3", - "vite-plugin-theme": "^0.7.1", - "vite-plugin-windicss": "0.14.6", + "vite-plugin-pwa": "^0.8.1", + "vite-plugin-style-import": "^1.0.0", + "vite-plugin-svg-icons": "^0.7.1", + "vite-plugin-theme": "^0.8.1", + "vite-plugin-windicss": "^1.0.4", "vue-eslint-parser": "^7.6.0", - "vue-tsc": "^0.0.25" + "vue-jest": "^5.0.0-alpha.10", + "vue-tsc": "^0.1.7" }, "resolutions": { - "//": "Used to install imagemin dependencies, because imagemin may not be installed in China.If it is abroad, you can delete it", + "//": "Used to install imagemin dependencies, because imagemin may not be installed in China. If it is abroad, you can delete it", "bin-wrapper": "npm:bin-wrapper-china", - "rollup": "^2.45.2" + "rollup": "^2.52.1" }, "repository": { "type": "git", -- Gitblit v1.8.0