Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependencies Cleanup #67

Closed
northword opened this issue Dec 13, 2024 · 1 comment · Fixed by #68
Closed

Dependencies Cleanup #67

northword opened this issue Dec 13, 2024 · 1 comment · Fixed by #68
Labels
dependencies enhancement New feature or request

Comments

@northword
Copy link
Owner

northword commented Dec 13, 2024

Current

https://npmgraph.js.org/[email protected]

https://pkg-size.dev/[email protected]

232 pkgs,50 M

LOHG-TERM PLANS

globby

globby 有 23 个依赖项,其中包含 fast-glob,

use tinyglobby,tinyglobby 是 bumpp 的依赖项,因此

replaceInFile

4.2M

sub deps size
glob 3.5MB
yargs 698KB
chalk 44KB

由于 scaffold 已经包含了 glob 相关的功能,且包含文件 IO 相关的方法,因此完全可以自行实现该包功能,且有利于更好组织代码。

另外此依赖项依赖 glob,本项目仅 replaceInFile 依赖 glob,移除 replaceInFile 依赖可以再减少一个 glob 依赖。

Octokit

10 pkgs, 11M

sub deps size
@octokit/app 8.6MB
@octokit/plugin-rest-endpoint-methods 6MB
@octokit/plugin-throttling 5.4MB
@octokit/plugin-retry 5.4MB
@octokit/oauth-app 5.3MB
@octokit/plugin-paginate-rest 4.9MB
@octokit/plugin-paginate-graphql 4.8MB
@octokit/core 4.7MB
@octokit/request-error 4.5MB
@octokit/types 4.5MB

使用各个子模块,移除 app支持,仅需要 type、core、retry.

划不来,这个不改了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies enhancement New feature or request
Projects
None yet
1 participant