chore(deps): 调整依赖包分类及添加peerDependencies声明
- 将部分依赖从dependencies移至devDependencies以优化包体积 - 在package.json中新增peerDependencies,确保依赖版本范围兼容 - 保持主依赖版本不变,提升组件库的可维护性 - 规范版本约束,避免潜在的依赖冲突问题 - 优化项目依赖结构,便于后续依赖管理和升级1.0
parent
e649713898
commit
7539fcd19f
20
package.json
20
package.json
|
|
@ -29,23 +29,20 @@
|
||||||
"postinstall": "echo 'Thanks for using our component library!'"
|
"postinstall": "echo 'Thanks for using our component library!'"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ahooksjs/use-url-state": "^3.5.1",
|
|
||||||
"@ant-design/icons": "^5.6.1",
|
|
||||||
"@ant-design/pro-components": "^2.8.10",
|
|
||||||
"@cqsjjb/jjb-common-lib": "latest",
|
"@cqsjjb/jjb-common-lib": "latest",
|
||||||
"@wangeditor/editor": "^5.1.23",
|
"@wangeditor/editor": "^5.1.23",
|
||||||
"@wangeditor/editor-for-react": "^1.0.6",
|
"@wangeditor/editor-for-react": "^1.0.6",
|
||||||
"ahooks": "^3.9.5",
|
|
||||||
"antd": "^5.27.6",
|
|
||||||
"dayjs": "^1.11.18",
|
"dayjs": "^1.11.18",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
"react": "^18.3.1",
|
|
||||||
"react-pdf": "^10.2.0",
|
"react-pdf": "^10.2.0",
|
||||||
"react-signature-canvas": "^1.1.0-alpha.2",
|
"react-signature-canvas": "^1.1.0-alpha.2",
|
||||||
"throttle-debounce": "^5.0.2",
|
"throttle-debounce": "^5.0.2",
|
||||||
"use-antd-resizable-header": "^3.2.2"
|
"use-antd-resizable-header": "^3.2.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@ahooksjs/use-url-state": "^3.5.1",
|
||||||
|
"@ant-design/icons": "^5.6.1",
|
||||||
|
"@ant-design/pro-components": "^2.8.10",
|
||||||
"@antfu/eslint-config": "^5.4.1",
|
"@antfu/eslint-config": "^5.4.1",
|
||||||
"@babel/core": "^7.28.5",
|
"@babel/core": "^7.28.5",
|
||||||
"@babel/preset-react": "^7.28.5",
|
"@babel/preset-react": "^7.28.5",
|
||||||
|
|
@ -56,12 +53,23 @@
|
||||||
"@rollup/plugin-json": "^6.1.0",
|
"@rollup/plugin-json": "^6.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^16.0.3",
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
||||||
"@rollup/plugin-terser": "^0.4.4",
|
"@rollup/plugin-terser": "^0.4.4",
|
||||||
|
"ahooks": "^3.9.5",
|
||||||
|
"antd": "^5.27.6",
|
||||||
"eslint": "^9.37.0",
|
"eslint": "^9.37.0",
|
||||||
"eslint-plugin-format": "^1.0.2",
|
"eslint-plugin-format": "^1.0.2",
|
||||||
"eslint-plugin-react-hooks": "^7.0.0",
|
"eslint-plugin-react-hooks": "^7.0.0",
|
||||||
"eslint-plugin-react-refresh": "^0.4.23",
|
"eslint-plugin-react-refresh": "^0.4.23",
|
||||||
"glob": "^13.0.0",
|
"glob": "^13.0.0",
|
||||||
"rollup": "^4.54.0",
|
"rollup": "^4.54.0",
|
||||||
|
"react": "^18.3.1",
|
||||||
"typescript": "^5.9.3"
|
"typescript": "^5.9.3"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@ahooksjs/use-url-state": ">=^3.5.1 <4",
|
||||||
|
"@ant-design/icons": ">=5.6.1 <6",
|
||||||
|
"@ant-design/pro-components": ">=2.8.10 <3",
|
||||||
|
"ahooks": ">=^3.9.5 <4",
|
||||||
|
"antd": ">=5.27.6 <6",
|
||||||
|
"react": ">=18.3.1 <19"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue