chore(package): 添加 package.json 的 exports 配置
- 为 enum 目录下的字典、隐藏目录和上传文件模块添加导出配置 - 增加对 json 文件(area, industry, nation)的直接导出支持 - 规范模块入口和类型定义路径,支持更好打包和按需加载 - 提升包的模块兼容性和使用便捷性master
parent
7644231185
commit
11dc0cde86
20
package.json
20
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"
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue