From 3ab31b4d607d97355d5acf5887f37d3da0b8ca99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Fri, 7 Jul 2023 02:48:28 +0800 Subject: [PATCH] fix: add more exports types (#13498) --- packages/element-plus/package.json | 35 ++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/packages/element-plus/package.json b/packages/element-plus/package.json index b227cfd5b2..6f195c0fbf 100644 --- a/packages/element-plus/package.json +++ b/packages/element-plus/package.json @@ -24,15 +24,36 @@ "import": "./es/index.mjs", "require": "./lib/index.js" }, - "./es": "./es/index.mjs", - "./lib": "./lib/index.js", - "./es/*.mjs": "./es/*.mjs", - "./es/*": { - "types": "./es/*/index.d.ts", + "./es": { + "types": "./es/index.d.ts", + "import": "./es/index.mjs" + }, + "./lib": { + "types": "./lib/index.d.ts", + "require": "./lib/index.js" + }, + "./es/*.mjs": { + "types": "./es/*.d.ts", "import": "./es/*.mjs" }, - "./lib/*.js": "./lib/*.js", - "./lib/*": "./lib/*.js", + "./es/*": { + "types": [ + "./es/*.d.ts", + "./es/*/index.d.ts" + ], + "import": "./es/*.mjs" + }, + "./lib/*.js": { + "types": "./lib/*.d.ts", + "require": "./lib/*.js" + }, + "./lib/*": { + "types": [ + "./lib/*.d.ts", + "./lib/*/index.d.ts" + ], + "require": "./lib/*.js" + }, "./*": "./*" }, "unpkg": "dist/index.full.js",