[pnpm pack
] Add option to allow setting custom compression level
#6393
Labels
pnpm pack
] Add option to allow setting custom compression level
#6393
Describe the user story
vercel/next.js team uses
pnpm pack
in their tests and our packages contain some rust binaries, which are large and slow to pack. We want to decrease the compression level used in packing to speed this process up. The fastest compression level (1) could pack our packages under.5s
, but the default level (6) takes up to9s
.Some folks may prefer increasing the compression level to achieve a smaller packed size.
Describe the solution you'd like
Anything that could expose this option to the user would work.
For example,
tar
usesGZIP=-1
environment variable, but we could probably add a command argument or anything else.It could be quickly done with a single line here:
pnpm/releasing/plugin-commands-publishing/src/pack.ts
Line 165 in 5a5512f
Describe the drawbacks of your solution
This is a specific use case that many folks might not need.
Describe alternatives you've considered
None
The text was updated successfully, but these errors were encountered: