build: fix zlib tarball generation
Closes https://github.com/nodejs/node/issues/31858.
Ensures that contrib/optimizations
isn't stripped from the source tree to mitigate build failures e.g
../deps/zlib/deflate.c:54:10: fatal error: 'contrib/optimizations/insert_string.h' file not found
#include "contrib/optimizations/insert_string.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I'm not 100% sure we need to include all of contrib/optimizations
, so let me know if there are any changes I'll need to make.
cc @MylesBorins @richardlau
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines