Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@
"webpack-bundle-analyzer": "^4.10.2"
},
"peerDependencies": {
"antd": "^5.20.3",
"antd": "^5.20.3||^6.0.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

为了提高可读性并遵循 semver 的最佳实践,建议在 || 操作符周围添加空格。虽然 npm 目前可以正确解析 ^5.20.3||^6.0.0,但添加空格(即 ^5.20.3 || ^6.0.0)是更标准和清晰的写法,可以避免其他工具或旧版包管理器出现潜在的解析问题。

Suggested change
"antd": "^5.20.3||^6.0.0",
"antd": "^5.20.3 || ^6.0.0",

"react": ">=18.0.0",
"react-dom": ">=18.0.0"
},
Expand Down