Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
建议移除 Bun 设置并解决依赖问题
根据分析,发现以下问题:
>=16.9.0
^18.0.0
--legacy-peer-deps
的必要性说明建议修改:
--legacy-peer-deps
标志,因为项目的依赖版本要求是兼容的🔗 Analysis chain
验证 Bun 设置的必要性
既然这是一个专门用于 npm 测试的工作流程,建议移除 Bun 的设置步骤,除非有特殊需求。另外,使用
--legacy-peer-deps
标志可能会掩盖实际的依赖问题。建议以下修改:
--legacy-peer-deps
标志,或添加说明注释解释其必要性运行以下脚本验证依赖关系:
Let me gather more information about potential Bun usage in the codebase.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 209
Script:
Length of output: 509
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不需要 bun 了吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@afc163,是的,我们不需要 Bun,可以移除相关的设置步骤。更新后的
.github/workflows/test-npm.yml
文件如下:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bun 比 npm 快,其他 rc 库不涉及 React 19 的还能继续用着。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个 workflow 里没用到 bun。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
哦,我误会你的意思了。可以删