Skip to content

Commit

Permalink
Merge pull request #309 from happo/zlib-level
Browse files Browse the repository at this point in the history
Use zlib level 6 when making zip files
  • Loading branch information
lencioni authored Feb 13, 2025
2 parents 6e4544d + 0b3c0e1 commit 8fdb4f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/createStaticPackage.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export default function createStaticPackage({ tmpdir, publicFolders }) {
// Concurrency in the stat queue leads to non-deterministic output.
// https://github.com/archiverjs/node-archiver/issues/383#issuecomment-2253139948
statConcurrency: 1,
zlib: { level: 6 },
});

const stream = new Writable();
Expand Down
1 change: 1 addition & 0 deletions src/prepareAssetsPackage.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ function makePackage({ paths, publicFolders }) {
// Concurrency in the stat queue leads to non-deterministic output.
// https://github.com/archiverjs/node-archiver/issues/383#issuecomment-2253139948
statConcurrency: 1,
zlib: { level: 6 },
});

const stream = new Writable();
Expand Down
1 change: 1 addition & 0 deletions src/remoteRunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function staticDirToZipFile(dir) {
// Concurrency in the stat queue leads to non-deterministic output.
// https://github.com/archiverjs/node-archiver/issues/383#issuecomment-2253139948
statConcurrency: 1,
zlib: { level: 6 },
});

const rnd = crypto.randomBytes(4).toString('hex');
Expand Down

0 comments on commit 8fdb4f4

Please sign in to comment.