diff --git a/docs/vite.config.ts b/docs/vite.config.ts index 8c3512ffd2..ea44beae23 100644 --- a/docs/vite.config.ts +++ b/docs/vite.config.ts @@ -32,7 +32,8 @@ if (process.env.DOC_ENV !== 'production') { export default defineConfig(async ({ mode }) => { const env = loadEnv(mode, process.cwd(), '') - const { dependencies } = getPackageDependencies(epPackage) + let { dependencies } = getPackageDependencies(epPackage) + dependencies = dependencies.filter((dep) => !dep.startsWith('@types/')) // exclude dts deps const optimizeDeps = [ 'vue', '@vue/shared', diff --git a/package.json b/package.json index 2fabb8effe..e46b676aeb 100644 --- a/package.json +++ b/package.json @@ -68,6 +68,8 @@ "@element-plus/utils": "workspace:*", "@floating-ui/dom": "^0.4.2", "@popperjs/core": "^2.11.4", + "@types/lodash": "^4.14.181", + "@types/lodash-es": "^4.17.6", "@vueuse/core": "^8.2.4", "async-validator": "^4.0.7", "dayjs": "^1.11.0", @@ -92,8 +94,6 @@ "@types/fs-extra": "^9.0.13", "@types/gulp": "^4.0.9", "@types/jest": "^26.0.24", - "@types/lodash": "^4.14.181", - "@types/lodash-es": "^4.17.6", "@types/node": "*", "@types/sass": "^1.43.1", "@vitejs/plugin-vue": "^2.3.1", diff --git a/packages/element-plus/package.json b/packages/element-plus/package.json index 686016f8cd..b4629b2592 100644 --- a/packages/element-plus/package.json +++ b/packages/element-plus/package.json @@ -52,6 +52,8 @@ "@element-plus/icons-vue": "^1.1.4", "@floating-ui/dom": "^0.4.2", "@popperjs/core": "^2.11.4", + "@types/lodash": "^4.14.181", + "@types/lodash-es": "^4.17.6", "@vueuse/core": "^8.2.4", "async-validator": "^4.0.7", "dayjs": "^1.11.0", @@ -63,8 +65,6 @@ "normalize-wheel-es": "^1.1.2" }, "devDependencies": { - "@types/lodash": "^4.14.181", - "@types/lodash-es": "^4.17.6", "@types/node": "*", "csstype": "^2.6.20", "vue-router": "^4.0.14" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 276a1e30d4..73a5d4f690 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -95,6 +95,8 @@ importers: '@element-plus/utils': link:packages/utils '@floating-ui/dom': 0.4.2 '@popperjs/core': 2.11.4 + '@types/lodash': 4.14.181 + '@types/lodash-es': 4.17.6 '@vueuse/core': 8.2.4_vue@3.2.31 async-validator: 4.0.7 dayjs: 1.11.0 @@ -118,8 +120,6 @@ importers: '@types/fs-extra': 9.0.13 '@types/gulp': 4.0.9 '@types/jest': 26.0.24 - '@types/lodash': 4.14.181 - '@types/lodash-es': 4.17.6 '@types/node': 17.0.23 '@types/sass': 1.43.1 '@vitejs/plugin-vue': 2.3.1_vue@3.2.31 @@ -320,6 +320,8 @@ importers: '@element-plus/icons-vue': 1.1.4_vue@3.2.31 '@floating-ui/dom': 0.4.2 '@popperjs/core': 2.11.4 + '@types/lodash': 4.14.181 + '@types/lodash-es': 4.17.6 '@vueuse/core': 8.2.4_vue@3.2.31 async-validator: 4.0.7 dayjs: 1.11.0 @@ -330,8 +332,6 @@ importers: memoize-one: 6.0.0 normalize-wheel-es: 1.1.2 devDependencies: - '@types/lodash': 4.14.181 - '@types/lodash-es': 4.17.6 '@types/node': 17.0.23 csstype: 2.6.20 vue-router: 4.0.14_vue@3.2.31 @@ -2784,11 +2784,11 @@ packages: resolution: {integrity: sha512-R+zTeVUKDdfoRxpAryaQNRKk3105Rrgx2CFRClIgRGaqDTdjsm8h6IYA8ir584W3ePzkZfst5xIgDwYrlh9HLg==} dependencies: '@types/lodash': 4.14.181 - dev: true + dev: false /@types/lodash/4.14.181: resolution: {integrity: sha512-n3tyKthHJbkiWhDZs3DkhkCzt2MexYHXlX0td5iMplyfwketaOeKboEVBqzceH7juqvEg3q5oUoBFxSLu7zFag==} - dev: true + dev: false /@types/markdown-it/12.2.3: resolution: {integrity: sha512-GKMHFfv3458yYy+v/N8gjufHO6MSZKCOXpZc5GXIWWy8uldwfmPn98vp81gZ5f9SVw8YYBctgfJ22a2d7AOMeQ==}