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.
👀 PR includes
✨ Feature
🎨 Enhance
🐛 Bugfix
🔧 Chore
📝 Description
在 #355 后,协作者们的开发环境应该统一(i.e. Node 16 & pnpm 8)了,于是
pnpm-lock.yml
文件应该尽量保持不动,所以我在本地先删除了该文件,并运行pnpm i
重新生成。以我有限的经验来说,lock文件是不应该经常变动的,之前总是能在proposed changes里看到它的身影,应该是协作者之间的开发环境不统一导致。除了影响开发体验外,1.75MB的
pnpm-lock.yml
还因为经常被提交到commit中生成了许多blob文件,增加了Git仓库的体积,加长了初次clone、日常fetch和push的时间(在网络环境欠佳的时候尤其明显)。这个PR希望能终结
pnpm-lock.yml
频繁改动的现象。希望各位协作者能在本地试试看:gh pr checkout 361
pnpm install --force
(等价于先删除node_modules
再pnpm install
)pnpm run start
然后确认两件事:(1)
pnpm-lock.yml
有没有被改动;(2)项目能不能跑起来。@andyhuang18 @wj23027 @pomelo-nwu @yangzy0603 @Yanyan-Wang
🔗 Related issue link
N.A.
🔍 Self-Check before the merge