Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,13 @@ export const createActZip = async (zipName: string, pathsToZip: string[], cwd: s
}

const writeStream = createWriteStream(zipName);
const archive = archiver('zip');
// Use compression level 6 for better balance between speed and compression ratio (default is 9)
const archive = archiver('zip', {
zlib: { level: 6 },
});
archive.pipe(writeStream);

pathsToZip.forEach((globPath) => archive.glob(globPath, { cwd }));
pathsToZip.forEach((filePath) => archive.file(join(cwd, filePath), { name: filePath }));

await archive.finalize();
};
Expand Down
Loading