#!/usr/bin/env node /** * Guard against the root `package.json` scripts block becoming a dumping ground * again (issue #9942). Scans package.json scripts and fails CI when it finds: * * (a) ORPHAN root scripts — a root-package.json script that nothing invokes * (no reference in .github/workflows/**, in any other script body, or in * the docs / scripts source) AND that is not a recognised human/CI * entrypoint. New scripts dumped into an ad-hoc namespace, or left behind * after the tool they wrapped was deleted, get caught here. * * (b) FAKE-SUCCESS no-ops — a `lint` / `typecheck` / `test` / `build` script * whose body is just `echo "...skip..."`. Those report success while * running nothing, so real lint/type/test/build failures land green. * * (c) BROKEN references — a root script whose `--cwd