(tgzPath)
| 64 | } |
| 65 | |
| 66 | function listTarEntries(tgzPath) { |
| 67 | try { |
| 68 | const out = execFileSync("tar", ["-tf", tgzPath], { encoding: "utf8" }); |
| 69 | return out |
| 70 | .split("\n") |
| 71 | .map((l) => l.trim()) |
| 72 | .filter((l) => l.length > 0); |
| 73 | } catch (err) { |
| 74 | const detail = err instanceof Error ? err.message : String(err); |
| 75 | die(`verify-native-pack: failed to list tar entries via 'tar -tf'.\n${detail}`); |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | function run(cmd, args, cwd) { |
| 80 | const res = spawnSync(cmd, args, { |
no test coverage detected