-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Reduce package installation size #712
Comments
Yeap. We are going to build zx with esbuild and we can build .d.ts as well. |
antongolub
added a commit
to antongolub/zx
that referenced
this issue
Feb 24, 2024
Good news. We have a proposal, that reaches the 414Kb point (4.33MB with optional |
antongolub
added a commit
to antongolub/zx
that referenced
this issue
Feb 24, 2024
antongolub
added a commit
to antongolub/zx
that referenced
this issue
Feb 24, 2024
antonmedv
pushed a commit
that referenced
this issue
Feb 24, 2024
* ci: enable autotests for all pushes * build: bundle with esbuild * test: ignore vendor.js coverage * fix: use vendor chunk for repl * build(dts): rm redundant triple slashes * build: move external typings to optional deps relates #712 * chore(core): relax Options type * perf: replace node-fetch with node-fetch-native * build: turn off minify
🎉 Awesome work @antongolub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The current installation size of the package may discourage its integration into other projects or packages that want to keep their size as low as possible (as mentioned in #687).
The installation size has increased significantly over releases, especially on 2.x, 5.x and 7.x:
1.15.2
2.1.0
3.1.0
4.3.0
5.3.0
6.2.5
7.2.3
→ https://packagephobia.com/result?p=zx%401.15.2%2Czx%402.1.0%2Czx%403.1.0%2Czx%404.3.0%2Czx%405.3.0%2Czx%406.2.5%2Czx%407.2.3
98% of the installation size comes from 5 dependencies:
node-fetch
@types/node
@types/fs-extra
yaml
globby
ps-tree
fs-extra
minimist
chalk
fx
which
@types/minimist
@types/which
@types/ps-tree
webpod
→ https://packagephobia.com/result?p=@types/[email protected],@types/[email protected],@types/[email protected],@types/[email protected],@types/[email protected],[email protected],[email protected],fx,[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
The package size could be drastically reduced (-90%) by:
node-fetch
(Drop Node.js v16 and node-fetch dependency #687, Plan for v8 #589): -47%@types/*
to dev (and optional?) dependencies: -44%fs-extra
and@types/fs-extra
(Plan for v8 #589): -22%Tasks 1 and 3 are already planned for v8, could you consider the 2nd one as well? Thanks 🙂
The text was updated successfully, but these errors were encountered: