30434// src/commands/shot.ts
30435import { spawn as spawn4 } from "child_process";
30436import { existsSync as existsSync18, mkdirSync as mkdirSync12, readFileSync as readFileSync15, rmSync as rmSync5, writeFileSync as writeFileSync18 } from "fs";
30437import { tmpdir as tmpdir3 } from "os";
30438import { join as join22, resolve as resolve6 } from "path";
30439var SHOT_SIZES = [{ name: "phone", size: "390,844" }, { name: "desktop", size: "1440,900" }];
⋯
30446const step = (s) => fs.writeFileSync(file + '.step', s);
30447const bin = (process.env.PATH || '').split(path.delimiter).find((d) => fs.existsSync(path.join(d, '..', 'playwright', 'package.json')));
30448const pw = require(path.join(bin, '..', 'playwright'));