MCPcopy Create free account
hub / github.com/vercel/vercel / createZip

Method createZip

packages/build-utils/src/lambda.ts:450–464  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

448 }
449
450 async createZip(): Promise<Buffer> {
451 let { zipBuffer } = this;
452 if (!zipBuffer) {
453 if (!this.files) {
454 throw new Error('`files` is not defined');
455 }
456 await sema.acquire();
457 try {
458 zipBuffer = await createZip(this.files);
459 } finally {
460 sema.release();
461 }
462 }
463 return zipBuffer;
464 }
465
466 /**
467 * @deprecated Use the `supportsResponseStreaming` property instead.

Callers 6

buildHandlerFunction · 0.95
createLambdaFunction · 0.95
executeBuildFunction · 0.80
processLambdaOutputFunction · 0.80
extractLambdaFunction · 0.80
finalizeLambdaFunction · 0.80

Calls 2

createZipFunction · 0.85
releaseMethod · 0.80

Tested by 1

extractLambdaFunction · 0.64