From 11dc0cde86974bc8ead80cc40ae0e20f64884793 Mon Sep 17 00:00:00 2001 From: LiuJiaNan <15703339975@163.com> Date: Tue, 25 Aug 2026 10:33:36 +0800 Subject: [PATCH] =?UTF-8?q?chore(package):=20=E6=B7=BB=E5=8A=A0=20package.?= =?UTF-8?q?json=20=E7=9A=84=20exports=20=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 为 enum 目录下的字典、隐藏目录和上传文件模块添加导出配置 - 增加对 json 文件(area, industry, nation)的直接导出支持 - 规范模块入口和类型定义路径,支持更好打包和按需加载 - 提升包的模块兼容性和使用便捷性 --- package.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/package.json b/package.json index 1222105..c3aedd5 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,26 @@ "json", "README.md" ], + "exports": { + "./enum/dictionary": { + "types": "./enum/dictionary/index.d.ts", + "import": "./enum/dictionary/index.js", + "default": "./enum/dictionary/index.js" + }, + "./enum/hidden/gwj": { + "types": "./enum/hidden/gwj/index.d.ts", + "import": "./enum/hidden/gwj/index.js", + "default": "./enum/hidden/gwj/index.js" + }, + "./enum/uploadFile": { + "types": "./enum/uploadFile/index.d.ts", + "import": "./enum/uploadFile/index.js", + "default": "./enum/uploadFile/index.js" + }, + "./json/area.json": "./json/area.json", + "./json/industry.json": "./json/industry.json", + "./json/nation.json": "./json/nation.json" + }, "engines": { "node": ">=18.0.0" },