MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / zipDirectory

Function zipDirectory

packages/aws-lambda/scripts/build-zip.ts:504–509  ·  view source on GitHub ↗
(sourceDir: string, zipPath: string)

Source from the content-addressed store, hash-verified

502}
503
504function zipDirectory(sourceDir: string, zipPath: string): void {
505 const result = spawnSync("zip", ["-rq", zipPath, "."], { cwd: sourceDir, stdio: "inherit" });
506 if (result.status !== 0) {
507 throw new Error(`[build-zip] zip exited with status ${result.status}`);
508 }
509}
510
511function directorySizeBytes(dir: string): number {
512 // Use spawnSync (no shell) instead of execSync so `dir` is passed as

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected