File size: 768 Bytes
bdd8da5 fb675fc bdd8da5 fb675fc bdd8da5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #!/usr/bin/env node
/**
* Deprecated compatibility wrapper. The previous implementation audited
* obsolete research inputs and could overwrite current release metadata.
* This wrapper is read-only and delegates to the canonical v0.4 auditor.
*/
import path from "node:path";
import { spawnSync } from "node:child_process";
import { fileURLToPath } from "node:url";
const here = path.dirname(fileURLToPath(import.meta.url));
process.stderr.write("DEPRECATED: scripts/audit-data.mjs delegates read-only to the v0.4 release auditor. Use npm run audit.\n");
const result = spawnSync(process.execPath, [path.join(here, "audit-v03.mjs"), ...process.argv.slice(2)], {
stdio: "inherit"
});
if (result.error) throw result.error;
process.exitCode = result.status ?? 1;
|