This reproduction requires Node.js and pnpm. It was verified with Node.js 24.20.0, pnpm 12.3.2, and Knip 6.34.0.
Run these commands in the directory containing package.json:
pnpm install
node node_modules/knip/bin/knip.js --include binaries --no-progressKnip exits with code 1 and reports:
Unlisted binaries (1)
stage package.json
Expected: no unlisted binary, because stage is a built-in pnpm command.
Changing the release script to pnpm publish makes the check pass. Adding {"ignoreBinaries":["stage"]} to knip.json also makes it pass.