Browse Source

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

xingyu 1 năm trước cách đây
mục cha
commit
e6c7b5f928

+ 0 - 0
.commitlintrc.js → .commitlintrc.cjs


+ 0 - 0
.eslintrc.js → .eslintrc.cjs


+ 0 - 0
.prettierrc.js → .prettierrc.cjs


+ 0 - 0
.stylelintrc.js → .stylelintrc.cjs


+ 2 - 2
.vscode/settings.json

@@ -181,8 +181,8 @@
     "*.env": "$(capture).env.*",
     "CHANGELOG.md": "CHANGELOG*",
     "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,
   "nuxt.isNuxtApp": false
-}
+}

+ 0 - 0
apps/test-server/ecosystem.config.js → apps/test-server/ecosystem.config.cjs


+ 1 - 0
apps/test-server/package.json

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

+ 0 - 0
internal/eslint-config/.eslintrc.js → internal/eslint-config/.eslintrc.cjs


+ 1 - 0
internal/eslint-config/package.json

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

+ 0 - 0
internal/stylelint-config/.eslintrc.js → internal/stylelint-config/.eslintrc.cjs


+ 3 - 2
internal/stylelint-config/package.json

@@ -12,6 +12,7 @@
     "directory": "internal/stylelint-config"
   },
   "license": "MIT",
+  "type": "module",
   "exports": {
     ".": {
       "types": "./dist/index.d.ts",
@@ -31,7 +32,7 @@
     "stub": "pnpm unbuild --stub"
   },
   "devDependencies": {
-    "postcss": "^8.4.32",
+    "postcss": "^8.4.33",
     "postcss-html": "^1.5.0",
     "postcss-less": "^6.0.0",
     "postcss-scss": "^4.0.9",
@@ -41,7 +42,7 @@
     "stylelint-config-recommended-scss": "^14.0.0",
     "stylelint-config-recommended-vue": "^1.5.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-prettier": "^5.0.0"
   }

+ 1 - 1
internal/ts-config/base.json

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

+ 2 - 1
internal/ts-config/package.json

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

+ 0 - 0
internal/vite-config/.eslintrc.js → internal/vite-config/.eslintrc.cjs


+ 5 - 4
internal/vite-config/package.json

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

+ 10 - 9
package.json

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

+ 0 - 0
packages/hooks/.eslintrc.js → packages/hooks/.eslintrc.cjs


+ 2 - 1
packages/hooks/package.json

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

+ 0 - 0
packages/types/.eslintrc.js → packages/types/.eslintrc.cjs


+ 1 - 0
packages/types/package.json

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

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 136 - 344
pnpm-lock.yaml


+ 3 - 0
vite.config.ts

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

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác