From 3cfac894eafa04e0ef76b2da553a7cf5d852282c Mon Sep 17 00:00:00 2001 From: Shay Pepper <39059628+shayff@users.noreply.github.com> Date: Tue, 22 Apr 2025 13:22:07 +0300 Subject: [PATCH] Reduce package size by excluding unused 'deps' directory The 'deps' directory in the node-rdkafka package is significantly large (around 98MB), constituting roughly 83% of the total package size. Seems like removing that directory is not affect the functionality. This pull request proposes removing the 'deps' directory to decrease the package size. **File size breakdown (before this change):** Files: 24K ./bench 88K ./test 16K ./util 24K ./ci 32K ./examples 128K ./lib 98M ./deps 18M ./build 76K ./e2e 264K ./src 118M . --- .npmignore | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.npmignore b/.npmignore index c6793a26..7c9f8987 100644 --- a/.npmignore +++ b/.npmignore @@ -1,10 +1,6 @@ -deps/* -!deps/librdkafka.gyp -!deps/librdkafka -!deps/windows-install.* +deps/ .gitmodules Dockerfile -deps/librdkafka/config.h build .github .vscode