(root: string)
| 100 | } |
| 101 | |
| 102 | function buildHandlerZip(root: string): void { |
| 103 | // bun run --cwd packages/aws-lambda build:zip |
| 104 | const result = spawnSync( |
| 105 | "bun", |
| 106 | ["run", "--cwd", join(root, "packages", "aws-lambda"), "build:zip"], |
| 107 | { stdio: "inherit" }, |
| 108 | ); |
| 109 | if (result.status !== 0) { |
| 110 | throw new Error( |
| 111 | `[lambda deploy] handler ZIP build exited with code ${result.status ?? "unknown"}`, |
| 112 | ); |
| 113 | } |
| 114 | } |