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

ci: reduce footprint #1387

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

ci: reduce footprint #1387

wants to merge 1 commit into from

Conversation

osher
Copy link

@osher osher commented May 5, 2024

This will reduce your node_modules on-disk footprint from 1.8M to 884K, and your package size from 256K to 142K.

Cheers ;)

 $ du -h node_modules/ssh2/
20.0K   node_modules/ssh2/examples
352.0K  node_modules/ssh2/test/fixtures/keyParser
404.0K  node_modules/ssh2/test/fixtures
612.0K  node_modules/ssh2/test
12.0K   node_modules/ssh2/.github/workflows
16.0K   node_modules/ssh2/.github
68.0K   node_modules/ssh2/lib/protocol/crypto/src
140.0K  node_modules/ssh2/lib/protocol/crypto/build/Release/obj.target/sshcrypto/src
144.0K  node_modules/ssh2/lib/protocol/crypto/build/Release/obj.target/sshcrypto
148.0K  node_modules/ssh2/lib/protocol/crypto/build/Release/obj.target
24.0K   node_modules/ssh2/lib/protocol/crypto/build/Release/.deps/Release/obj.target/sshcrypto/src
28.0K   node_modules/ssh2/lib/protocol/crypto/build/Release/.deps/Release/obj.target/sshcrypto
36.0K   node_modules/ssh2/lib/protocol/crypto/build/Release/.deps/Release/obj.target
44.0K   node_modules/ssh2/lib/protocol/crypto/build/Release/.deps/Release
48.0K   node_modules/ssh2/lib/protocol/crypto/build/Release/.deps
284.0K  node_modules/ssh2/lib/protocol/crypto/build/Release
4.0K    node_modules/ssh2/lib/protocol/crypto/build/node_gyp_bins
336.0K  node_modules/ssh2/lib/protocol/crypto/build
436.0K  node_modules/ssh2/lib/protocol/crypto
856.0K  node_modules/ssh2/lib/protocol
1.0M    node_modules/ssh2/lib
64.0K   node_modules/ssh2/util
1.8M    node_modules/ssh2/

and the tars:

$ ls -la 
-rw-r--r-- 1 osher osher 256K May  5 19:40 ssh2-1.15.0.before.tgz
-rw-r--r-- 1 osher osher 142K May  5 19:40 ssh2-1.15.0.tgz

@osher
Copy link
Author

osher commented May 5, 2024

oh - Double-check me - I'm not sure if utils are necessary, lmk if to add it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant