Files
compras/scripts/order-cancellation-http.mjs
T
nala 96b30368bc
tests / ci (push) Canceled after 0s
commit compras5 2911
2026-11-29 19:49:19 +02:00

15 lines
707 B
JavaScript

// Compatibility entry point: no evaluation login or HTTP mutation is performed.
// Historical issued-order-cancellation-http.json is deliberately preserved.
import { spawnSync } from 'node:child_process';
import { fileURLToPath } from 'node:url';
if (process.argv.length !== 3 || process.argv[2] !== '--read-only') {
throw new Error('Use --read-only for in-process GET checks with existing pilot actors.');
}
const root = fileURLToPath(new URL('../', import.meta.url));
const result = spawnSync('php', ['scripts/check-standalone-pilot-profiles.php', '--read-only'], {
cwd: root, stdio: 'inherit', windowsHide: true,
});
if (result.error) throw result.error;
process.exitCode = result.status ?? 1;