refactor: migration to pnpm #444
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.
Pull Request Description
此 PR 旨在全面从
npm / yarn迁移至pnpmChanges:
从开发体验来看
corepack enable后续扩展
pnpm workspace的机制,我们可以很容易从代码中抽离共用的部分,并且加入workspace变成一个单独的 插件模块,即插即用(如 Electron 和 Renderer 公用的Events 模块,可进行抽离)workspace后,可以针对性的对模块进行依赖管理,无需所有的依赖都放在一个 package.json 中,造成依赖焦虑,如:在 main 中,我们只需要依赖 electron 相关的内容,无需 vue 等渲染依赖,那么可以单独使用 package.json 隔离,renderer 中同样