(command: ReadonlyArray<string>, cwd: string)
| 5 | import { pack } from "./pack.js" |
| 6 | |
| 7 | const run = async (command: ReadonlyArray<string>, cwd: string) => { |
| 8 | const process = Bun.spawn(command, { cwd, env: globalThis.process.env, stdout: "inherit", stderr: "inherit" }) |
| 9 | const exitCode = await process.exited |
| 10 | if (exitCode !== 0) throw new Error(`${command.join(" ")} exited with code ${exitCode}`) |
| 11 | } |
| 12 | |
| 13 | export const verifyPackage = async (archive: string) => { |
| 14 | const directory = await mkdtemp(path.join(tmpdir(), "http-recorder-consumer-")) |
no test coverage detected