import fs from "node:fs"; import path from "node:path"; import { spawnSync } from "node:child_process"; const helperScriptPath = path.resolve(process.cwd(), "..", "scripts", "sync-playwright-root-links.mjs"); if (!fs.existsSync(helperScriptPath)) { console.log( `Skipping root Playwright link sync: helper script not found at ${helperScriptPath}.` ); process.exit(0); } const result = spawnSync(process.execPath, [helperScriptPath], { stdio: "inherit", }); if (typeof result.status === "number") { process.exit(result.status); } process.exit(1);