refactor: change the package manager to pnpm #3438
Merged
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.
Types of changes
Background and context
Closes #2841
现有的 Monorepo 采用 lerna + yarn workspace 方案,目前社区开源环境下存在诸多问题,影响维护和贡献体验,包括:
此次迁移旨在提升整体开发体验、优化依赖管理,并降低维护成本,让项目更适应开源协作环境。
Solution
变更包管理为 PNPM
将原本的
lerna
+yarn
多包方案迁移至 pnpmworkspaces
方案How is the change tested?
测试工作:
Changelog
Checklist:
npm run test
)feature
branch and othersshould be submitted to
main
branch)Other information
发包 pnpm publish