feat(deps): update vite version to 5.x (#3508)

This commit is contained in:
xingyu 2024-01-06 09:19:52 +08:00 committed by GitHub
parent d709dd67b5
commit e6c7b5f928
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
22 changed files with 467 additions and 744 deletions

View File

@ -181,8 +181,8 @@
"*.env": "$(capture).env.*", "*.env": "$(capture).env.*",
"CHANGELOG.md": "CHANGELOG*", "CHANGELOG.md": "CHANGELOG*",
"package.json": "pnpm-lock.yaml,pnpm-workspace.yaml,LICENSE,.gitattributes,.gitignore,.gitpod.yml,CNAME,README*,.npmrc,.browserslistrc", "package.json": "pnpm-lock.yaml,pnpm-workspace.yaml,LICENSE,.gitattributes,.gitignore,.gitpod.yml,CNAME,README*,.npmrc,.browserslistrc",
".eslintrc.js": ".eslintignore,.prettierignore,.stylelintignore,.commitlintrc.js,.prettierrc.js,.stylelintrc.js" ".eslintrc.cjs": ".eslintignore,.prettierignore,.stylelintignore,.commitlintrc.*,.prettierrc.*,.stylelintrc.*"
}, },
"terminal.integrated.scrollback": 10000, "terminal.integrated.scrollback": 10000,
"nuxt.isNuxtApp": false "nuxt.isNuxtApp": false
} }

View File

@ -2,6 +2,7 @@
"name": "server", "name": "server",
"version": "1.0.0", "version": "1.0.0",
"license": "MIT", "license": "MIT",
"type": "module",
"scripts": { "scripts": {
"compile": "rimraf ./dist && tsup ./index.ts --dts --format cjs,esm ", "compile": "rimraf ./dist && tsup ./index.ts --dts --format cjs,esm ",
"prod": "npx pm2 start ecosystem.config.js --env production", "prod": "npx pm2 start ecosystem.config.js --env production",

View File

@ -12,6 +12,7 @@
"directory": "internal/eslint-config" "directory": "internal/eslint-config"
}, },
"license": "MIT", "license": "MIT",
"type": "module",
"exports": { "exports": {
".": { ".": {
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",

View File

@ -12,6 +12,7 @@
"directory": "internal/stylelint-config" "directory": "internal/stylelint-config"
}, },
"license": "MIT", "license": "MIT",
"type": "module",
"exports": { "exports": {
".": { ".": {
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
@ -31,7 +32,7 @@
"stub": "pnpm unbuild --stub" "stub": "pnpm unbuild --stub"
}, },
"devDependencies": { "devDependencies": {
"postcss": "^8.4.32", "postcss": "^8.4.33",
"postcss-html": "^1.5.0", "postcss-html": "^1.5.0",
"postcss-less": "^6.0.0", "postcss-less": "^6.0.0",
"postcss-scss": "^4.0.9", "postcss-scss": "^4.0.9",
@ -41,7 +42,7 @@
"stylelint-config-recommended-scss": "^14.0.0", "stylelint-config-recommended-scss": "^14.0.0",
"stylelint-config-recommended-vue": "^1.5.0", "stylelint-config-recommended-vue": "^1.5.0",
"stylelint-config-standard": "^36.0.0", "stylelint-config-standard": "^36.0.0",
"stylelint-config-standard-scss": "^12.0.0", "stylelint-config-standard-scss": "^13.0.0",
"stylelint-order": "^6.0.4", "stylelint-order": "^6.0.4",
"stylelint-prettier": "^5.0.0" "stylelint-prettier": "^5.0.0"
} }

View File

@ -4,7 +4,7 @@
"compilerOptions": { "compilerOptions": {
"target": "ESNext", "target": "ESNext",
"module": "ESNext", "module": "ESNext",
"moduleResolution": "node", "moduleResolution": "bundler",
"strict": true, "strict": true,
"declaration": true, "declaration": true,
"noImplicitOverride": true, "noImplicitOverride": true,

View File

@ -12,6 +12,7 @@
"directory": "internal/ts-config" "directory": "internal/ts-config"
}, },
"license": "MIT", "license": "MIT",
"type": "module",
"files": [ "files": [
"base.json", "base.json",
"node.json", "node.json",
@ -20,6 +21,6 @@
], ],
"dependencies": { "dependencies": {
"@types/node": "^20.10.6", "@types/node": "^20.10.6",
"vite": "^4.5.1" "vite": "^5.0.10"
} }
} }

View File

@ -12,6 +12,7 @@
"directory": "internal/vite-config" "directory": "internal/vite-config"
}, },
"license": "MIT", "license": "MIT",
"type": "module",
"exports": { "exports": {
".": { ".": {
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
@ -31,12 +32,12 @@
"stub": "pnpm unbuild --stub" "stub": "pnpm unbuild --stub"
}, },
"dependencies": { "dependencies": {
"@ant-design/colors": "^7.0.1", "@ant-design/colors": "^7.0.2",
"vite": "^4.5.1" "vite": "^5.0.10"
}, },
"devDependencies": { "devDependencies": {
"@types/fs-extra": "^11.0.4", "@types/fs-extra": "^11.0.4",
"@vitejs/plugin-vue": "^4.6.2", "@vitejs/plugin-vue": "^5.0.2",
"@vitejs/plugin-vue-jsx": "^3.1.0", "@vitejs/plugin-vue-jsx": "^3.1.0",
"ant-design-vue": "^4.0.8", "ant-design-vue": "^4.0.8",
"dayjs": "^1.11.10", "dayjs": "^1.11.10",
@ -46,7 +47,7 @@
"picocolors": "^1.0.0", "picocolors": "^1.0.0",
"pkg-types": "^1.0.3", "pkg-types": "^1.0.3",
"rollup-plugin-visualizer": "^5.12.0", "rollup-plugin-visualizer": "^5.12.0",
"sass": "^1.69.6", "sass": "^1.69.7",
"unocss": "0.58.3", "unocss": "0.58.3",
"vite-plugin-compression": "^0.5.1", "vite-plugin-compression": "^0.5.1",
"vite-plugin-dts": "^3.7.0", "vite-plugin-dts": "^3.7.0",

View File

@ -15,6 +15,7 @@
"email": "anncwb@126.com", "email": "anncwb@126.com",
"url": "https://github.com/anncwb" "url": "https://github.com/anncwb"
}, },
"type": "module",
"scripts": { "scripts": {
"bootstrap": "pnpm install", "bootstrap": "pnpm install",
"build": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=8192 pnpm vite build", "build": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=8192 pnpm vite build",
@ -72,11 +73,11 @@
"@logicflow/core": "^1.2.18", "@logicflow/core": "^1.2.18",
"@logicflow/extension": "^1.2.19", "@logicflow/extension": "^1.2.19",
"@vben/hooks": "workspace:*", "@vben/hooks": "workspace:*",
"@vue/shared": "^3.4.3", "@vue/shared": "^3.4.5",
"@vueuse/core": "^10.7.1", "@vueuse/core": "^10.7.1",
"@zxcvbn-ts/core": "^3.0.4", "@zxcvbn-ts/core": "^3.0.4",
"ant-design-vue": "^4.0.8", "ant-design-vue": "^4.0.8",
"axios": "^1.6.3", "axios": "^1.6.4",
"codemirror": "^5.65.16", "codemirror": "^5.65.16",
"cropperjs": "^1.6.1", "cropperjs": "^1.6.1",
"crypto-js": "^4.2.0", "crypto-js": "^4.2.0",
@ -99,7 +100,7 @@
"tinymce": "^5.10.9", "tinymce": "^5.10.9",
"unocss": "0.58.3", "unocss": "0.58.3",
"vditor": "^3.9.8", "vditor": "^3.9.8",
"vue": "^3.4.3", "vue": "^3.4.5",
"vue-i18n": "^9.8.0", "vue-i18n": "^9.8.0",
"vue-json-pretty": "^2.3.0", "vue-json-pretty": "^2.3.0",
"vue-router": "^4.2.5", "vue-router": "^4.2.5",
@ -111,9 +112,9 @@
"xlsx": "^0.18.5" "xlsx": "^0.18.5"
}, },
"devDependencies": { "devDependencies": {
"@commitlint/cli": "^18.4.3", "@commitlint/cli": "^18.4.4",
"@commitlint/config-conventional": "^18.4.3", "@commitlint/config-conventional": "^18.4.4",
"@iconify/json": "^2.2.163", "@iconify/json": "^2.2.164",
"@purge-icons/generated": "^0.10.0", "@purge-icons/generated": "^0.10.0",
"@types/codemirror": "^5.60.15", "@types/codemirror": "^5.60.15",
"@types/crypto-js": "^4.2.1", "@types/crypto-js": "^4.2.1",
@ -129,7 +130,7 @@
"@vben/ts-config": "workspace:*", "@vben/ts-config": "workspace:*",
"@vben/types": "workspace:*", "@vben/types": "workspace:*",
"@vben/vite-config": "workspace:*", "@vben/vite-config": "workspace:*",
"@vue/compiler-sfc": "^3.4.3", "@vue/compiler-sfc": "^3.4.5",
"@vue/test-utils": "^2.4.3", "@vue/test-utils": "^2.4.3",
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
"cz-git": "^1.8.0", "cz-git": "^1.8.0",
@ -139,10 +140,10 @@
"prettier": "^3.1.1", "prettier": "^3.1.1",
"prettier-plugin-packagejson": "^2.4.8", "prettier-plugin-packagejson": "^2.4.8",
"rimraf": "^5.0.5", "rimraf": "^5.0.5",
"turbo": "^1.11.2", "turbo": "^1.11.3",
"typescript": "^5.3.3", "typescript": "^5.3.3",
"unbuild": "^2.0.0", "unbuild": "^2.0.0",
"vite": "^4.5.1", "vite": "^5.0.10",
"vite-plugin-mock": "^2.9.6", "vite-plugin-mock": "^2.9.6",
"vue-tsc": "^1.8.27" "vue-tsc": "^1.8.27"
}, },

View File

@ -12,6 +12,7 @@
}, },
"license": "MIT", "license": "MIT",
"sideEffects": false, "sideEffects": false,
"type": "module",
"exports": { "exports": {
".": { ".": {
"default": "./src/index.ts" "default": "./src/index.ts"
@ -31,7 +32,7 @@
"dependencies": { "dependencies": {
"@vueuse/core": "^10.7.1", "@vueuse/core": "^10.7.1",
"lodash-es": "^4.17.21", "lodash-es": "^4.17.21",
"vue": "^3.4.3" "vue": "^3.4.5"
}, },
"devDependencies": { "devDependencies": {
"@vben/types": "workspace:*" "@vben/types": "workspace:*"

View File

@ -12,6 +12,7 @@
}, },
"license": "MIT", "license": "MIT",
"sideEffects": false, "sideEffects": false,
"type": "module",
"exports": { "exports": {
".": { ".": {
"default": "./src/index.ts" "default": "./src/index.ts"

1160
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -31,6 +31,9 @@ export default defineApplicationConfig({
rewrite: (path) => path.replace(new RegExp(`^/upload`), ''), rewrite: (path) => path.replace(new RegExp(`^/upload`), ''),
}, },
}, },
warmup: {
clientFiles: ['./index.html', './src/{views,components}/*'],
},
}, },
}, },
}); });