// Regenerate score-tree.json from the scoring core. The test in // scoring.test.mjs fails when the checked-in file and SCORE_TREE differ. import { writeFile } from 'node:fs/promises' import { scoreTreeDocument } from './scoring.mjs' const out = new URL('./score-tree.json', import.meta.url) await writeFile(out, `${JSON.stringify(scoreTreeDocument(), null, 2)}\n`) console.log(`wrote ${out.pathname}`)