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.
在 npm 不支持 workspace 之前 ,yarn 可能是必要的选择,当前 fork 这个项目使用 npm 安装太久了(几十分钟没装好),而 yarn 安装只要不到一分钟,并且它们的磁盘占用空间差别巨大:
yarn 优势是会尽量提升 node modules,只需要一个 lock file(对比:11,512 additions and 49,431 deletions.)。
相关:https://classic.yarnpkg.com/en/docs/cli/workspaces
TODO:
ava 提升到 root 更好,版本一致,当前项目有 v1 和 v2,统一版本到 v2 或 v3 都会提示出错。